OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [mips/] [configure] - Blame information for rev 481

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in #(
189
         /*)
190
           for as_base in sh bash ksh sh5; do
191
             # Try only shells that exist, to save several forks.
192
             as_shell=$as_dir/$as_base
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
           done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
        # neutralization value for shells without unset; and this also
214
        # works around shells that cannot unset nonexistent variables.
215
        BASH_ENV=/dev/null
216
        ENV=/dev/null
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
        export CONFIG_SHELL
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
# as_fn_unset VAR
248
# ---------------
249
# Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} # as_fn_set_status
263
 
264
# as_fn_exit STATUS
265
# -----------------
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} # as_fn_exit
273
 
274
# as_fn_mkdir_p
275
# -------------
276
# Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
294
         X"$as_dir" : 'X\(//\)$' \| \
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
            s//\1/
299
            q
300
          }
301
          /^X\(\/\/\)[^/].*/{
302
            s//\1/
303
            q
304
          }
305
          /^X\(\/\/\)$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\).*/{
310
            s//\1/
311
            q
312
          }
313
          s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} # as_fn_mkdir_p
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
326
# implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
# as_fn_arith ARG...
340
# ------------------
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} # as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
         X"$0" : 'X\(//\)$' \| \
395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
            s//\1/
399
            q
400
          }
401
          /^X\/\(\/\/\)$/{
402
            s//\1/
403
            q
404
          }
405
          /^X\/\(\/\).*/{
406
            s//\1/
407
            q
408
          }
409
          s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in #(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T=' ';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
        test -d "$1/.";
509
      else
510
        case $1 in #(
511
        -*)set "./$1";;
512
        esac;
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514
        ???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
exec 7<&0 &1
528
 
529
# Name of the host.
530
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531
# so uname gets run too.
532
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
 
534
#
535
# Initializations.
536
#
537
ac_default_prefix=/usr/local
538
ac_clean_files=
539
ac_config_libobj_dir=.
540
LIBOBJS=
541
cross_compiling=no
542
subdirs=
543
MFLAGS=
544
MAKEFLAGS=
545
 
546
# Identity of this package.
547
PACKAGE_NAME=
548
PACKAGE_TARNAME=
549
PACKAGE_VERSION=
550
PACKAGE_STRING=
551
PACKAGE_BUGREPORT=
552
PACKAGE_URL=
553
 
554
ac_unique_file="Makefile.in"
555
# Factoring default headers for most tests.
556
ac_includes_default="\
557
#include 
558
#ifdef HAVE_SYS_TYPES_H
559
# include 
560
#endif
561
#ifdef HAVE_SYS_STAT_H
562
# include 
563
#endif
564
#ifdef STDC_HEADERS
565
# include 
566
# include 
567
#else
568
# ifdef HAVE_STDLIB_H
569
#  include 
570
# endif
571
#endif
572
#ifdef HAVE_STRING_H
573
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574
#  include 
575
# endif
576
# include 
577
#endif
578
#ifdef HAVE_STRINGS_H
579
# include 
580
#endif
581
#ifdef HAVE_INTTYPES_H
582
# include 
583
#endif
584
#ifdef HAVE_STDINT_H
585
# include 
586
#endif
587
#ifdef HAVE_UNISTD_H
588
# include 
589
#endif"
590
 
591
ac_subst_vars='LTLIBOBJS
592
LIBOBJS
593
cgen_breaks
594
mips_extra_libs
595
XMKMF
596
mips_igen_engine
597
mips_extra_objs
598
sim_multi_obj
599
sim_multi_src
600
sim_multi_igen_configs
601
sim_multi_flags
602
sim_gen
603
sim_m16_flags
604
sim_igen_flags
605
SIM_SUBTARGET
606
REPORT_BUGS_TEXI
607
REPORT_BUGS_TO
608
PKGVERSION
609
sim_profile
610
sim_trace
611
sim_stdio
612
sim_debug
613
sim_cflags
614
sim_bswap
615
MAINT
616
EGREP
617
GREP
618
CPP
619
CATOBJEXT
620
GENCAT
621
INSTOBJEXT
622
DATADIRNAME
623
CATALOGS
624
POSUB
625
GMSGFMT
626
XGETTEXT
627
INCINTL
628
LIBINTL_DEP
629
LIBINTL
630
USE_NLS
631
RANLIB
632
AR
633
HDEFINES
634
CC_FOR_BUILD
635
INSTALL_DATA
636
INSTALL_SCRIPT
637
INSTALL_PROGRAM
638
OBJEXT
639
EXEEXT
640
ac_ct_CC
641
CPPFLAGS
642
LDFLAGS
643
CFLAGS
644
CC
645
target_os
646
target_vendor
647
target_cpu
648
target
649
host_os
650
host_vendor
651
host_cpu
652
host
653
build_os
654
build_vendor
655
build_cpu
656
build
657
WERROR_CFLAGS
658
WARN_CFLAGS
659
sim_xor_endian
660
sim_stdcall
661
sim_smp
662
sim_reserved_bits
663
sim_regparm
664
sim_packages
665
sim_inline
666
sim_hw
667
sim_hw_objs
668
sim_hw_cflags
669
sim_default_model
670
sim_scache
671
sim_float
672
sim_hostendian
673
sim_endian
674
sim_bitsize
675
sim_assert
676
sim_alignment
677
sim_environment
678
target_alias
679
host_alias
680
build_alias
681
LIBS
682
ECHO_T
683
ECHO_N
684
ECHO_C
685
DEFS
686
mandir
687
localedir
688
libdir
689
psdir
690
pdfdir
691
dvidir
692
htmldir
693
infodir
694
docdir
695
oldincludedir
696
includedir
697
localstatedir
698
sharedstatedir
699
sysconfdir
700
datadir
701
datarootdir
702
libexecdir
703
sbindir
704
bindir
705
program_transform_name
706
prefix
707
exec_prefix
708
PACKAGE_URL
709
PACKAGE_BUGREPORT
710
PACKAGE_STRING
711
PACKAGE_VERSION
712
PACKAGE_TARNAME
713
PACKAGE_NAME
714
PATH_SEPARATOR
715
SHELL'
716
ac_subst_files=''
717
ac_user_opts='
718
enable_option_checking
719
with_zlib
720
enable_maintainer_mode
721
enable_sim_bswap
722
enable_sim_cflags
723
enable_sim_debug
724
enable_sim_stdio
725
enable_sim_trace
726
enable_sim_profile
727
with_pkgversion
728
with_bugurl
729
enable_sim_inline
730
enable_sim_alignment
731
enable_sim_hostendian
732
enable_build_warnings
733
enable_sim_build_warnings
734
enable_sim_reserved_bits
735
enable_sim_endian
736
enable_sim_bitsize
737
enable_sim_float
738
enable_sim_smp
739
enable_sim_hardware
740
with_x
741
'
742
      ac_precious_vars='build_alias
743
host_alias
744
target_alias
745
CC
746
CFLAGS
747
LDFLAGS
748
LIBS
749
CPPFLAGS
750
CPP
751
XMKMF'
752
 
753
 
754
# Initialize some variables set by options.
755
ac_init_help=
756
ac_init_version=false
757
ac_unrecognized_opts=
758
ac_unrecognized_sep=
759
# The variables have the same names as the options, with
760
# dashes changed to underlines.
761
cache_file=/dev/null
762
exec_prefix=NONE
763
no_create=
764
no_recursion=
765
prefix=NONE
766
program_prefix=NONE
767
program_suffix=NONE
768
program_transform_name=s,x,x,
769
silent=
770
site=
771
srcdir=
772
verbose=
773
x_includes=NONE
774
x_libraries=NONE
775
 
776
# Installation directory options.
777
# These are left unexpanded so users can "make install exec_prefix=/foo"
778
# and all the variables that are supposed to be based on exec_prefix
779
# by default will actually change.
780
# Use braces instead of parens because sh, perl, etc. also accept them.
781
# (The list follows the same order as the GNU Coding Standards.)
782
bindir='${exec_prefix}/bin'
783
sbindir='${exec_prefix}/sbin'
784
libexecdir='${exec_prefix}/libexec'
785
datarootdir='${prefix}/share'
786
datadir='${datarootdir}'
787
sysconfdir='${prefix}/etc'
788
sharedstatedir='${prefix}/com'
789
localstatedir='${prefix}/var'
790
includedir='${prefix}/include'
791
oldincludedir='/usr/include'
792
docdir='${datarootdir}/doc/${PACKAGE}'
793
infodir='${datarootdir}/info'
794
htmldir='${docdir}'
795
dvidir='${docdir}'
796
pdfdir='${docdir}'
797
psdir='${docdir}'
798
libdir='${exec_prefix}/lib'
799
localedir='${datarootdir}/locale'
800
mandir='${datarootdir}/man'
801
 
802
ac_prev=
803
ac_dashdash=
804
for ac_option
805
do
806
  # If the previous option needs an argument, assign it.
807
  if test -n "$ac_prev"; then
808
    eval $ac_prev=\$ac_option
809
    ac_prev=
810
    continue
811
  fi
812
 
813
  case $ac_option in
814
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815
  *)    ac_optarg=yes ;;
816
  esac
817
 
818
  # Accept the important Cygnus configure options, so we can diagnose typos.
819
 
820
  case $ac_dashdash$ac_option in
821
  --)
822
    ac_dashdash=yes ;;
823
 
824
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
825
    ac_prev=bindir ;;
826
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827
    bindir=$ac_optarg ;;
828
 
829
  -build | --build | --buil | --bui | --bu)
830
    ac_prev=build_alias ;;
831
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832
    build_alias=$ac_optarg ;;
833
 
834
  -cache-file | --cache-file | --cache-fil | --cache-fi \
835
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836
    ac_prev=cache_file ;;
837
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839
    cache_file=$ac_optarg ;;
840
 
841
  --config-cache | -C)
842
    cache_file=config.cache ;;
843
 
844
  -datadir | --datadir | --datadi | --datad)
845
    ac_prev=datadir ;;
846
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
847
    datadir=$ac_optarg ;;
848
 
849
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850
  | --dataroo | --dataro | --datar)
851
    ac_prev=datarootdir ;;
852
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854
    datarootdir=$ac_optarg ;;
855
 
856
  -disable-* | --disable-*)
857
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858
    # Reject names that are not valid shell variable names.
859
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860
      as_fn_error "invalid feature name: $ac_useropt"
861
    ac_useropt_orig=$ac_useropt
862
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863
    case $ac_user_opts in
864
      *"
865
"enable_$ac_useropt"
866
"*) ;;
867
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868
         ac_unrecognized_sep=', ';;
869
    esac
870
    eval enable_$ac_useropt=no ;;
871
 
872
  -docdir | --docdir | --docdi | --doc | --do)
873
    ac_prev=docdir ;;
874
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875
    docdir=$ac_optarg ;;
876
 
877
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878
    ac_prev=dvidir ;;
879
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880
    dvidir=$ac_optarg ;;
881
 
882
  -enable-* | --enable-*)
883
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884
    # Reject names that are not valid shell variable names.
885
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886
      as_fn_error "invalid feature name: $ac_useropt"
887
    ac_useropt_orig=$ac_useropt
888
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889
    case $ac_user_opts in
890
      *"
891
"enable_$ac_useropt"
892
"*) ;;
893
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894
         ac_unrecognized_sep=', ';;
895
    esac
896
    eval enable_$ac_useropt=\$ac_optarg ;;
897
 
898
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900
  | --exec | --exe | --ex)
901
    ac_prev=exec_prefix ;;
902
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904
  | --exec=* | --exe=* | --ex=*)
905
    exec_prefix=$ac_optarg ;;
906
 
907
  -gas | --gas | --ga | --g)
908
    # Obsolete; use --with-gas.
909
    with_gas=yes ;;
910
 
911
  -help | --help | --hel | --he | -h)
912
    ac_init_help=long ;;
913
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914
    ac_init_help=recursive ;;
915
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916
    ac_init_help=short ;;
917
 
918
  -host | --host | --hos | --ho)
919
    ac_prev=host_alias ;;
920
  -host=* | --host=* | --hos=* | --ho=*)
921
    host_alias=$ac_optarg ;;
922
 
923
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924
    ac_prev=htmldir ;;
925
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926
  | --ht=*)
927
    htmldir=$ac_optarg ;;
928
 
929
  -includedir | --includedir | --includedi | --included | --include \
930
  | --includ | --inclu | --incl | --inc)
931
    ac_prev=includedir ;;
932
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933
  | --includ=* | --inclu=* | --incl=* | --inc=*)
934
    includedir=$ac_optarg ;;
935
 
936
  -infodir | --infodir | --infodi | --infod | --info | --inf)
937
    ac_prev=infodir ;;
938
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939
    infodir=$ac_optarg ;;
940
 
941
  -libdir | --libdir | --libdi | --libd)
942
    ac_prev=libdir ;;
943
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
944
    libdir=$ac_optarg ;;
945
 
946
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947
  | --libexe | --libex | --libe)
948
    ac_prev=libexecdir ;;
949
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950
  | --libexe=* | --libex=* | --libe=*)
951
    libexecdir=$ac_optarg ;;
952
 
953
  -localedir | --localedir | --localedi | --localed | --locale)
954
    ac_prev=localedir ;;
955
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956
    localedir=$ac_optarg ;;
957
 
958
  -localstatedir | --localstatedir | --localstatedi | --localstated \
959
  | --localstate | --localstat | --localsta | --localst | --locals)
960
    ac_prev=localstatedir ;;
961
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963
    localstatedir=$ac_optarg ;;
964
 
965
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966
    ac_prev=mandir ;;
967
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968
    mandir=$ac_optarg ;;
969
 
970
  -nfp | --nfp | --nf)
971
    # Obsolete; use --without-fp.
972
    with_fp=no ;;
973
 
974
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975
  | --no-cr | --no-c | -n)
976
    no_create=yes ;;
977
 
978
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980
    no_recursion=yes ;;
981
 
982
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984
  | --oldin | --oldi | --old | --ol | --o)
985
    ac_prev=oldincludedir ;;
986
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989
    oldincludedir=$ac_optarg ;;
990
 
991
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992
    ac_prev=prefix ;;
993
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994
    prefix=$ac_optarg ;;
995
 
996
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
997
  | --program-pre | --program-pr | --program-p)
998
    ac_prev=program_prefix ;;
999
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001
    program_prefix=$ac_optarg ;;
1002
 
1003
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004
  | --program-suf | --program-su | --program-s)
1005
    ac_prev=program_suffix ;;
1006
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008
    program_suffix=$ac_optarg ;;
1009
 
1010
  -program-transform-name | --program-transform-name \
1011
  | --program-transform-nam | --program-transform-na \
1012
  | --program-transform-n | --program-transform- \
1013
  | --program-transform | --program-transfor \
1014
  | --program-transfo | --program-transf \
1015
  | --program-trans | --program-tran \
1016
  | --progr-tra | --program-tr | --program-t)
1017
    ac_prev=program_transform_name ;;
1018
  -program-transform-name=* | --program-transform-name=* \
1019
  | --program-transform-nam=* | --program-transform-na=* \
1020
  | --program-transform-n=* | --program-transform-=* \
1021
  | --program-transform=* | --program-transfor=* \
1022
  | --program-transfo=* | --program-transf=* \
1023
  | --program-trans=* | --program-tran=* \
1024
  | --progr-tra=* | --program-tr=* | --program-t=*)
1025
    program_transform_name=$ac_optarg ;;
1026
 
1027
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028
    ac_prev=pdfdir ;;
1029
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030
    pdfdir=$ac_optarg ;;
1031
 
1032
  -psdir | --psdir | --psdi | --psd | --ps)
1033
    ac_prev=psdir ;;
1034
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035
    psdir=$ac_optarg ;;
1036
 
1037
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038
  | -silent | --silent | --silen | --sile | --sil)
1039
    silent=yes ;;
1040
 
1041
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042
    ac_prev=sbindir ;;
1043
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044
  | --sbi=* | --sb=*)
1045
    sbindir=$ac_optarg ;;
1046
 
1047
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049
  | --sharedst | --shareds | --shared | --share | --shar \
1050
  | --sha | --sh)
1051
    ac_prev=sharedstatedir ;;
1052
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055
  | --sha=* | --sh=*)
1056
    sharedstatedir=$ac_optarg ;;
1057
 
1058
  -site | --site | --sit)
1059
    ac_prev=site ;;
1060
  -site=* | --site=* | --sit=*)
1061
    site=$ac_optarg ;;
1062
 
1063
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064
    ac_prev=srcdir ;;
1065
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066
    srcdir=$ac_optarg ;;
1067
 
1068
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069
  | --syscon | --sysco | --sysc | --sys | --sy)
1070
    ac_prev=sysconfdir ;;
1071
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073
    sysconfdir=$ac_optarg ;;
1074
 
1075
  -target | --target | --targe | --targ | --tar | --ta | --t)
1076
    ac_prev=target_alias ;;
1077
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078
    target_alias=$ac_optarg ;;
1079
 
1080
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081
    verbose=yes ;;
1082
 
1083
  -version | --version | --versio | --versi | --vers | -V)
1084
    ac_init_version=: ;;
1085
 
1086
  -with-* | --with-*)
1087
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088
    # Reject names that are not valid shell variable names.
1089
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090
      as_fn_error "invalid package name: $ac_useropt"
1091
    ac_useropt_orig=$ac_useropt
1092
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093
    case $ac_user_opts in
1094
      *"
1095
"with_$ac_useropt"
1096
"*) ;;
1097
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098
         ac_unrecognized_sep=', ';;
1099
    esac
1100
    eval with_$ac_useropt=\$ac_optarg ;;
1101
 
1102
  -without-* | --without-*)
1103
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104
    # Reject names that are not valid shell variable names.
1105
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106
      as_fn_error "invalid package name: $ac_useropt"
1107
    ac_useropt_orig=$ac_useropt
1108
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109
    case $ac_user_opts in
1110
      *"
1111
"with_$ac_useropt"
1112
"*) ;;
1113
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114
         ac_unrecognized_sep=', ';;
1115
    esac
1116
    eval with_$ac_useropt=no ;;
1117
 
1118
  --x)
1119
    # Obsolete; use --with-x.
1120
    with_x=yes ;;
1121
 
1122
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123
  | --x-incl | --x-inc | --x-in | --x-i)
1124
    ac_prev=x_includes ;;
1125
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127
    x_includes=$ac_optarg ;;
1128
 
1129
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131
    ac_prev=x_libraries ;;
1132
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134
    x_libraries=$ac_optarg ;;
1135
 
1136
  -*) as_fn_error "unrecognized option: \`$ac_option'
1137
Try \`$0 --help' for more information."
1138
    ;;
1139
 
1140
  *=*)
1141
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142
    # Reject names that are not valid shell variable names.
1143
    case $ac_envvar in #(
1144
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1145
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1146
    esac
1147
    eval $ac_envvar=\$ac_optarg
1148
    export $ac_envvar ;;
1149
 
1150
  *)
1151
    # FIXME: should be removed in autoconf 3.0.
1152
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156
    ;;
1157
 
1158
  esac
1159
done
1160
 
1161
if test -n "$ac_prev"; then
1162
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163
  as_fn_error "missing argument to $ac_option"
1164
fi
1165
 
1166
if test -n "$ac_unrecognized_opts"; then
1167
  case $enable_option_checking in
1168
    no) ;;
1169
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1170
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171
  esac
1172
fi
1173
 
1174
# Check all directory arguments for consistency.
1175
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176
                datadir sysconfdir sharedstatedir localstatedir includedir \
1177
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178
                libdir localedir mandir
1179
do
1180
  eval ac_val=\$$ac_var
1181
  # Remove trailing slashes.
1182
  case $ac_val in
1183
    */ )
1184
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185
      eval $ac_var=\$ac_val;;
1186
  esac
1187
  # Be sure to have absolute directory names.
1188
  case $ac_val in
1189
    [\\/$]* | ?:[\\/]* )  continue;;
1190
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191
  esac
1192
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1193
done
1194
 
1195
# There might be people who depend on the old broken behavior: `$host'
1196
# used to hold the argument of --host etc.
1197
# FIXME: To remove some day.
1198
build=$build_alias
1199
host=$host_alias
1200
target=$target_alias
1201
 
1202
# FIXME: To remove some day.
1203
if test "x$host_alias" != x; then
1204
  if test "x$build_alias" = x; then
1205
    cross_compiling=maybe
1206
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207
    If a cross compiler is detected then cross compile mode will be used." >&2
1208
  elif test "x$build_alias" != "x$host_alias"; then
1209
    cross_compiling=yes
1210
  fi
1211
fi
1212
 
1213
ac_tool_prefix=
1214
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
 
1216
test "$silent" = yes && exec 6>/dev/null
1217
 
1218
 
1219
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220
ac_ls_di=`ls -di .` &&
1221
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222
  as_fn_error "working directory cannot be determined"
1223
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224
  as_fn_error "pwd does not report name of working directory"
1225
 
1226
 
1227
# Find the source files, if location was not specified.
1228
if test -z "$srcdir"; then
1229
  ac_srcdir_defaulted=yes
1230
  # Try the directory containing this script, then the parent directory.
1231
  ac_confdir=`$as_dirname -- "$as_myself" ||
1232
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233
         X"$as_myself" : 'X\(//\)[^/]' \| \
1234
         X"$as_myself" : 'X\(//\)$' \| \
1235
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236
$as_echo X"$as_myself" |
1237
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238
            s//\1/
1239
            q
1240
          }
1241
          /^X\(\/\/\)[^/].*/{
1242
            s//\1/
1243
            q
1244
          }
1245
          /^X\(\/\/\)$/{
1246
            s//\1/
1247
            q
1248
          }
1249
          /^X\(\/\).*/{
1250
            s//\1/
1251
            q
1252
          }
1253
          s/.*/./; q'`
1254
  srcdir=$ac_confdir
1255
  if test ! -r "$srcdir/$ac_unique_file"; then
1256
    srcdir=..
1257
  fi
1258
else
1259
  ac_srcdir_defaulted=no
1260
fi
1261
if test ! -r "$srcdir/$ac_unique_file"; then
1262
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1264
fi
1265
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266
ac_abs_confdir=`(
1267
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1268
        pwd)`
1269
# When building in place, set srcdir=.
1270
if test "$ac_abs_confdir" = "$ac_pwd"; then
1271
  srcdir=.
1272
fi
1273
# Remove unnecessary trailing slashes from srcdir.
1274
# Double slashes in file names in object file debugging info
1275
# mess up M-x gdb in Emacs.
1276
case $srcdir in
1277
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278
esac
1279
for ac_var in $ac_precious_vars; do
1280
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281
  eval ac_env_${ac_var}_value=\$${ac_var}
1282
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284
done
1285
 
1286
#
1287
# Report the --help message.
1288
#
1289
if test "$ac_init_help" = "long"; then
1290
  # Omit some internal or obsolete options to make the list less imposing.
1291
  # This message is too long to be a string in the A/UX 3.1 sh.
1292
  cat <<_ACEOF
1293
\`configure' configures this package to adapt to many kinds of systems.
1294
 
1295
Usage: $0 [OPTION]... [VAR=VALUE]...
1296
 
1297
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298
VAR=VALUE.  See below for descriptions of some of the useful variables.
1299
 
1300
Defaults for the options are specified in brackets.
1301
 
1302
Configuration:
1303
  -h, --help              display this help and exit
1304
      --help=short        display options specific to this package
1305
      --help=recursive    display the short help of all the included packages
1306
  -V, --version           display version information and exit
1307
  -q, --quiet, --silent   do not print \`checking...' messages
1308
      --cache-file=FILE   cache test results in FILE [disabled]
1309
  -C, --config-cache      alias for \`--cache-file=config.cache'
1310
  -n, --no-create         do not create output files
1311
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1312
 
1313
Installation directories:
1314
  --prefix=PREFIX         install architecture-independent files in PREFIX
1315
                          [$ac_default_prefix]
1316
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1317
                          [PREFIX]
1318
 
1319
By default, \`make install' will install all the files in
1320
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1321
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322
for instance \`--prefix=\$HOME'.
1323
 
1324
For better control, use the options below.
1325
 
1326
Fine tuning of the installation directories:
1327
  --bindir=DIR            user executables [EPREFIX/bin]
1328
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1329
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1330
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1331
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1332
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1333
  --libdir=DIR            object code libraries [EPREFIX/lib]
1334
  --includedir=DIR        C header files [PREFIX/include]
1335
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1336
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1337
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1338
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1339
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1340
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1341
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1342
  --htmldir=DIR           html documentation [DOCDIR]
1343
  --dvidir=DIR            dvi documentation [DOCDIR]
1344
  --pdfdir=DIR            pdf documentation [DOCDIR]
1345
  --psdir=DIR             ps documentation [DOCDIR]
1346
_ACEOF
1347
 
1348
  cat <<\_ACEOF
1349
 
1350
Program names:
1351
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1352
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1353
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1354
 
1355
X features:
1356
  --x-includes=DIR    X include files are in DIR
1357
  --x-libraries=DIR   X library files are in DIR
1358
 
1359
System types:
1360
  --build=BUILD     configure for building on BUILD [guessed]
1361
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362
  --target=TARGET   configure for building compilers for TARGET [HOST]
1363
_ACEOF
1364
fi
1365
 
1366
if test -n "$ac_init_help"; then
1367
 
1368
  cat <<\_ACEOF
1369
 
1370
Optional Features:
1371
  --disable-option-checking  ignore unrecognized --enable/--with options
1372
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374
  --enable-maintainer-mode              Enable developer functionality.
1375
  --enable-sim-bswap                    Use Host specific BSWAP instruction.
1376
  --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
1377
  --enable-sim-debug=opts               Enable debugging flags
1378
  --enable-sim-stdio                    Specify whether to use stdio for console input/output.
1379
  --enable-sim-trace=opts               Enable tracing flags
1380
  --enable-sim-profile=opts             Enable profiling flags
1381
  --enable-sim-inline=inlines           Specify which functions should be inlined.
1382
  --enable-sim-alignment=align          Specify strict,  nonstrict or forced alignment of memory accesses.
1383
  --enable-sim-hostendian=end           Specify host byte endian orientation.
1384
  --enable-build-warnings Enable build-time compiler warnings if gcc is used
1385
  --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
1386
  --enable-sim-reserved-bits            Specify whether to check reserved bits in instruction.
1387
  --enable-sim-endian=endian            Specify target byte endian orientation.
1388
  --enable-sim-bitsize=N                Specify target bitsize (32 or 64).
1389
  --enable-sim-float                    Specify that the target processor has floating point hardware.
1390
  --enable-sim-smp=n                    Specify number of processors to configure for (default ${default_sim_smp}).
1391
  --enable-sim-hardware=LIST            Specify the hardware to be included in the build.
1392
 
1393
Optional Packages:
1394
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1395
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1396
  --with-zlib             include zlib support (auto/yes/no) default=auto
1397
  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1398
  --with-bugurl=URL       Direct users to URL to report a bug
1399
  --with-x                use the X Window System
1400
 
1401
Some influential environment variables:
1402
  CC          C compiler command
1403
  CFLAGS      C compiler flags
1404
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1405
              nonstandard directory 
1406
  LIBS        libraries to pass to the linker, e.g. -l
1407
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1408
              you have headers in a nonstandard directory 
1409
  CPP         C preprocessor
1410
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1411
 
1412
Use these variables to override the choices made by `configure' or to help
1413
it to find libraries and programs with nonstandard names/locations.
1414
 
1415
Report bugs to the package provider.
1416
_ACEOF
1417
ac_status=$?
1418
fi
1419
 
1420
if test "$ac_init_help" = "recursive"; then
1421
  # If there are subdirs, report their specific --help.
1422
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423
    test -d "$ac_dir" ||
1424
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425
      continue
1426
    ac_builddir=.
1427
 
1428
case "$ac_dir" in
1429
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430
*)
1431
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432
  # A ".." for each directory in $ac_dir_suffix.
1433
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434
  case $ac_top_builddir_sub in
1435
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437
  esac ;;
1438
esac
1439
ac_abs_top_builddir=$ac_pwd
1440
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441
# for backward compatibility:
1442
ac_top_builddir=$ac_top_build_prefix
1443
 
1444
case $srcdir in
1445
  .)  # We are building in place.
1446
    ac_srcdir=.
1447
    ac_top_srcdir=$ac_top_builddir_sub
1448
    ac_abs_top_srcdir=$ac_pwd ;;
1449
  [\\/]* | ?:[\\/]* )  # Absolute name.
1450
    ac_srcdir=$srcdir$ac_dir_suffix;
1451
    ac_top_srcdir=$srcdir
1452
    ac_abs_top_srcdir=$srcdir ;;
1453
  *) # Relative name.
1454
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457
esac
1458
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
 
1460
    cd "$ac_dir" || { ac_status=$?; continue; }
1461
    # Check for guested configure.
1462
    if test -f "$ac_srcdir/configure.gnu"; then
1463
      echo &&
1464
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465
    elif test -f "$ac_srcdir/configure"; then
1466
      echo &&
1467
      $SHELL "$ac_srcdir/configure" --help=recursive
1468
    else
1469
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470
    fi || ac_status=$?
1471
    cd "$ac_pwd" || { ac_status=$?; break; }
1472
  done
1473
fi
1474
 
1475
test -n "$ac_init_help" && exit $ac_status
1476
if $ac_init_version; then
1477
  cat <<\_ACEOF
1478
configure
1479
generated by GNU Autoconf 2.64
1480
 
1481
Copyright (C) 2009 Free Software Foundation, Inc.
1482
This configure script is free software; the Free Software Foundation
1483
gives unlimited permission to copy, distribute and modify it.
1484
_ACEOF
1485
  exit
1486
fi
1487
 
1488
## ------------------------ ##
1489
## Autoconf initialization. ##
1490
## ------------------------ ##
1491
 
1492
# ac_fn_c_try_compile LINENO
1493
# --------------------------
1494
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495
ac_fn_c_try_compile ()
1496
{
1497
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498
  rm -f conftest.$ac_objext
1499
  if { { ac_try="$ac_compile"
1500
case "(($ac_try" in
1501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502
  *) ac_try_echo=$ac_try;;
1503
esac
1504
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505
$as_echo "$ac_try_echo"; } >&5
1506
  (eval "$ac_compile") 2>conftest.err
1507
  ac_status=$?
1508
  if test -s conftest.err; then
1509
    grep -v '^ *+' conftest.err >conftest.er1
1510
    cat conftest.er1 >&5
1511
    mv -f conftest.er1 conftest.err
1512
  fi
1513
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514
  test $ac_status = 0; } && {
1515
         test -z "$ac_c_werror_flag" ||
1516
         test ! -s conftest.err
1517
       } && test -s conftest.$ac_objext; then :
1518
  ac_retval=0
1519
else
1520
  $as_echo "$as_me: failed program was:" >&5
1521
sed 's/^/| /' conftest.$ac_ext >&5
1522
 
1523
        ac_retval=1
1524
fi
1525
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526
  return $ac_retval
1527
 
1528
} # ac_fn_c_try_compile
1529
 
1530
# ac_fn_c_try_cpp LINENO
1531
# ----------------------
1532
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533
ac_fn_c_try_cpp ()
1534
{
1535
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1537
case "(($ac_try" in
1538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539
  *) ac_try_echo=$ac_try;;
1540
esac
1541
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542
$as_echo "$ac_try_echo"; } >&5
1543
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1544
  ac_status=$?
1545
  if test -s conftest.err; then
1546
    grep -v '^ *+' conftest.err >conftest.er1
1547
    cat conftest.er1 >&5
1548
    mv -f conftest.er1 conftest.err
1549
  fi
1550
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551
  test $ac_status = 0; } >/dev/null && {
1552
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553
         test ! -s conftest.err
1554
       }; then :
1555
  ac_retval=0
1556
else
1557
  $as_echo "$as_me: failed program was:" >&5
1558
sed 's/^/| /' conftest.$ac_ext >&5
1559
 
1560
    ac_retval=1
1561
fi
1562
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563
  return $ac_retval
1564
 
1565
} # ac_fn_c_try_cpp
1566
 
1567
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1568
# -------------------------------------------------------
1569
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1570
# the include files in INCLUDES and setting the cache variable VAR
1571
# accordingly.
1572
ac_fn_c_check_header_mongrel ()
1573
{
1574
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577
$as_echo_n "checking for $2... " >&6; }
1578
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579
  $as_echo_n "(cached) " >&6
1580
fi
1581
eval ac_res=\$$3
1582
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583
$as_echo "$ac_res" >&6; }
1584
else
1585
  # Is the header compilable?
1586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1587
$as_echo_n "checking $2 usability... " >&6; }
1588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589
/* end confdefs.h.  */
1590
$4
1591
#include <$2>
1592
_ACEOF
1593
if ac_fn_c_try_compile "$LINENO"; then :
1594
  ac_header_compiler=yes
1595
else
1596
  ac_header_compiler=no
1597
fi
1598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1600
$as_echo "$ac_header_compiler" >&6; }
1601
 
1602
# Is the header present?
1603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1604
$as_echo_n "checking $2 presence... " >&6; }
1605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606
/* end confdefs.h.  */
1607
#include <$2>
1608
_ACEOF
1609
if ac_fn_c_try_cpp "$LINENO"; then :
1610
  ac_header_preproc=yes
1611
else
1612
  ac_header_preproc=no
1613
fi
1614
rm -f conftest.err conftest.$ac_ext
1615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1616
$as_echo "$ac_header_preproc" >&6; }
1617
 
1618
# So?  What about this header?
1619
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1620
  yes:no: )
1621
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1622
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1623
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625
    ;;
1626
  no:yes:* )
1627
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1628
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1629
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1630
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1631
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1632
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1633
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1634
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1635
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637
    ;;
1638
esac
1639
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640
$as_echo_n "checking for $2... " >&6; }
1641
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642
  $as_echo_n "(cached) " >&6
1643
else
1644
  eval "$3=\$ac_header_compiler"
1645
fi
1646
eval ac_res=\$$3
1647
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648
$as_echo "$ac_res" >&6; }
1649
fi
1650
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651
 
1652
} # ac_fn_c_check_header_mongrel
1653
 
1654
# ac_fn_c_try_run LINENO
1655
# ----------------------
1656
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657
# that executables *can* be run.
1658
ac_fn_c_try_run ()
1659
{
1660
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661
  if { { ac_try="$ac_link"
1662
case "(($ac_try" in
1663
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664
  *) ac_try_echo=$ac_try;;
1665
esac
1666
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667
$as_echo "$ac_try_echo"; } >&5
1668
  (eval "$ac_link") 2>&5
1669
  ac_status=$?
1670
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672
  { { case "(($ac_try" in
1673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674
  *) ac_try_echo=$ac_try;;
1675
esac
1676
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677
$as_echo "$ac_try_echo"; } >&5
1678
  (eval "$ac_try") 2>&5
1679
  ac_status=$?
1680
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681
  test $ac_status = 0; }; }; then :
1682
  ac_retval=0
1683
else
1684
  $as_echo "$as_me: program exited with status $ac_status" >&5
1685
       $as_echo "$as_me: failed program was:" >&5
1686
sed 's/^/| /' conftest.$ac_ext >&5
1687
 
1688
       ac_retval=$ac_status
1689
fi
1690
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
  return $ac_retval
1693
 
1694
} # ac_fn_c_try_run
1695
 
1696
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697
# -------------------------------------------------------
1698
# Tests whether HEADER exists and can be compiled using the include files in
1699
# INCLUDES, setting the cache variable VAR accordingly.
1700
ac_fn_c_check_header_compile ()
1701
{
1702
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704
$as_echo_n "checking for $2... " >&6; }
1705
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706
  $as_echo_n "(cached) " >&6
1707
else
1708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709
/* end confdefs.h.  */
1710
$4
1711
#include <$2>
1712
_ACEOF
1713
if ac_fn_c_try_compile "$LINENO"; then :
1714
  eval "$3=yes"
1715
else
1716
  eval "$3=no"
1717
fi
1718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719
fi
1720
eval ac_res=\$$3
1721
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722
$as_echo "$ac_res" >&6; }
1723
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724
 
1725
} # ac_fn_c_check_header_compile
1726
 
1727
# ac_fn_c_try_link LINENO
1728
# -----------------------
1729
# Try to link conftest.$ac_ext, and return whether this succeeded.
1730
ac_fn_c_try_link ()
1731
{
1732
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
  rm -f conftest.$ac_objext conftest$ac_exeext
1734
  if { { ac_try="$ac_link"
1735
case "(($ac_try" in
1736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737
  *) ac_try_echo=$ac_try;;
1738
esac
1739
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740
$as_echo "$ac_try_echo"; } >&5
1741
  (eval "$ac_link") 2>conftest.err
1742
  ac_status=$?
1743
  if test -s conftest.err; then
1744
    grep -v '^ *+' conftest.err >conftest.er1
1745
    cat conftest.er1 >&5
1746
    mv -f conftest.er1 conftest.err
1747
  fi
1748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749
  test $ac_status = 0; } && {
1750
         test -z "$ac_c_werror_flag" ||
1751
         test ! -s conftest.err
1752
       } && test -s conftest$ac_exeext && {
1753
         test "$cross_compiling" = yes ||
1754
         $as_test_x conftest$ac_exeext
1755
       }; then :
1756
  ac_retval=0
1757
else
1758
  $as_echo "$as_me: failed program was:" >&5
1759
sed 's/^/| /' conftest.$ac_ext >&5
1760
 
1761
        ac_retval=1
1762
fi
1763
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765
  # interfere with the next link command; also delete a directory that is
1766
  # left behind by Apple's compiler.  We do this before executing the actions.
1767
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
  return $ac_retval
1770
 
1771
} # ac_fn_c_try_link
1772
 
1773
# ac_fn_c_check_func LINENO FUNC VAR
1774
# ----------------------------------
1775
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1776
ac_fn_c_check_func ()
1777
{
1778
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780
$as_echo_n "checking for $2... " >&6; }
1781
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782
  $as_echo_n "(cached) " >&6
1783
else
1784
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785
/* end confdefs.h.  */
1786
/* Define $2 to an innocuous variant, in case  declares $2.
1787
   For example, HP-UX 11i  declares gettimeofday.  */
1788
#define $2 innocuous_$2
1789
 
1790
/* System header to define __stub macros and hopefully few prototypes,
1791
    which can conflict with char $2 (); below.
1792
    Prefer  to  if __STDC__ is defined, since
1793
     exists even on freestanding compilers.  */
1794
 
1795
#ifdef __STDC__
1796
# include 
1797
#else
1798
# include 
1799
#endif
1800
 
1801
#undef $2
1802
 
1803
/* Override any GCC internal prototype to avoid an error.
1804
   Use char because int might match the return type of a GCC
1805
   builtin and then its argument prototype would still apply.  */
1806
#ifdef __cplusplus
1807
extern "C"
1808
#endif
1809
char $2 ();
1810
/* The GNU C library defines this for functions which it implements
1811
    to always fail with ENOSYS.  Some functions are actually named
1812
    something starting with __ and the normal name is an alias.  */
1813
#if defined __stub_$2 || defined __stub___$2
1814
choke me
1815
#endif
1816
 
1817
int
1818
main ()
1819
{
1820
return $2 ();
1821
  ;
1822
  return 0;
1823
}
1824
_ACEOF
1825
if ac_fn_c_try_link "$LINENO"; then :
1826
  eval "$3=yes"
1827
else
1828
  eval "$3=no"
1829
fi
1830
rm -f core conftest.err conftest.$ac_objext \
1831
    conftest$ac_exeext conftest.$ac_ext
1832
fi
1833
eval ac_res=\$$3
1834
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835
$as_echo "$ac_res" >&6; }
1836
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
 
1838
} # ac_fn_c_check_func
1839
cat >config.log <<_ACEOF
1840
This file contains any messages produced by compilers while
1841
running configure, to aid debugging if configure makes a mistake.
1842
 
1843
It was created by $as_me, which was
1844
generated by GNU Autoconf 2.64.  Invocation command line was
1845
 
1846
  $ $0 $@
1847
 
1848
_ACEOF
1849
exec 5>>config.log
1850
{
1851
cat <<_ASUNAME
1852
## --------- ##
1853
## Platform. ##
1854
## --------- ##
1855
 
1856
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
 
1862
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1864
 
1865
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1866
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1867
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1869
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1870
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1871
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1872
 
1873
_ASUNAME
1874
 
1875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876
for as_dir in $PATH
1877
do
1878
  IFS=$as_save_IFS
1879
  test -z "$as_dir" && as_dir=.
1880
    $as_echo "PATH: $as_dir"
1881
  done
1882
IFS=$as_save_IFS
1883
 
1884
} >&5
1885
 
1886
cat >&5 <<_ACEOF
1887
 
1888
 
1889
## ----------- ##
1890
## Core tests. ##
1891
## ----------- ##
1892
 
1893
_ACEOF
1894
 
1895
 
1896
# Keep a trace of the command line.
1897
# Strip out --no-create and --no-recursion so they do not pile up.
1898
# Strip out --silent because we don't want to record it for future runs.
1899
# Also quote any args containing shell meta-characters.
1900
# Make two passes to allow for proper duplicate-argument suppression.
1901
ac_configure_args=
1902
ac_configure_args0=
1903
ac_configure_args1=
1904
ac_must_keep_next=false
1905
for ac_pass in 1 2
1906
do
1907
  for ac_arg
1908
  do
1909
    case $ac_arg in
1910
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912
    | -silent | --silent | --silen | --sile | --sil)
1913
      continue ;;
1914
    *\'*)
1915
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916
    esac
1917
    case $ac_pass in
1918
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1919
    2)
1920
      as_fn_append ac_configure_args1 " '$ac_arg'"
1921
      if test $ac_must_keep_next = true; then
1922
        ac_must_keep_next=false # Got value, back to normal.
1923
      else
1924
        case $ac_arg in
1925
          *=* | --config-cache | -C | -disable-* | --disable-* \
1926
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928
          | -with-* | --with-* | -without-* | --without-* | --x)
1929
            case "$ac_configure_args0 " in
1930
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931
            esac
1932
            ;;
1933
          -* ) ac_must_keep_next=true ;;
1934
        esac
1935
      fi
1936
      as_fn_append ac_configure_args " '$ac_arg'"
1937
      ;;
1938
    esac
1939
  done
1940
done
1941
{ ac_configure_args0=; unset ac_configure_args0;}
1942
{ ac_configure_args1=; unset ac_configure_args1;}
1943
 
1944
# When interrupted or exit'd, cleanup temporary files, and complete
1945
# config.log.  We remove comments because anyway the quotes in there
1946
# would cause problems or look ugly.
1947
# WARNING: Use '\'' to represent an apostrophe within the trap.
1948
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949
trap 'exit_status=$?
1950
  # Save into config.log some information that might help in debugging.
1951
  {
1952
    echo
1953
 
1954
    cat <<\_ASBOX
1955
## ---------------- ##
1956
## Cache variables. ##
1957
## ---------------- ##
1958
_ASBOX
1959
    echo
1960
    # The following way of writing the cache mishandles newlines in values,
1961
(
1962
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963
    eval ac_val=\$$ac_var
1964
    case $ac_val in #(
1965
    *${as_nl}*)
1966
      case $ac_var in #(
1967
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1968
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969
      esac
1970
      case $ac_var in #(
1971
      _ | IFS | as_nl) ;; #(
1972
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973
      *) { eval $ac_var=; unset $ac_var;} ;;
1974
      esac ;;
1975
    esac
1976
  done
1977
  (set) 2>&1 |
1978
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979
    *${as_nl}ac_space=\ *)
1980
      sed -n \
1981
        "s/'\''/'\''\\\\'\'''\''/g;
1982
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983
      ;; #(
1984
    *)
1985
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986
      ;;
1987
    esac |
1988
    sort
1989
)
1990
    echo
1991
 
1992
    cat <<\_ASBOX
1993
## ----------------- ##
1994
## Output variables. ##
1995
## ----------------- ##
1996
_ASBOX
1997
    echo
1998
    for ac_var in $ac_subst_vars
1999
    do
2000
      eval ac_val=\$$ac_var
2001
      case $ac_val in
2002
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003
      esac
2004
      $as_echo "$ac_var='\''$ac_val'\''"
2005
    done | sort
2006
    echo
2007
 
2008
    if test -n "$ac_subst_files"; then
2009
      cat <<\_ASBOX
2010
## ------------------- ##
2011
## File substitutions. ##
2012
## ------------------- ##
2013
_ASBOX
2014
      echo
2015
      for ac_var in $ac_subst_files
2016
      do
2017
        eval ac_val=\$$ac_var
2018
        case $ac_val in
2019
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020
        esac
2021
        $as_echo "$ac_var='\''$ac_val'\''"
2022
      done | sort
2023
      echo
2024
    fi
2025
 
2026
    if test -s confdefs.h; then
2027
      cat <<\_ASBOX
2028
## ----------- ##
2029
## confdefs.h. ##
2030
## ----------- ##
2031
_ASBOX
2032
      echo
2033
      cat confdefs.h
2034
      echo
2035
    fi
2036
    test "$ac_signal" != 0 &&
2037
      $as_echo "$as_me: caught signal $ac_signal"
2038
    $as_echo "$as_me: exit $exit_status"
2039
  } >&5
2040
  rm -f core *.core core.conftest.* &&
2041
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042
    exit $exit_status
2043
' 0
2044
for ac_signal in 1 2 13 15; do
2045
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046
done
2047
ac_signal=0
2048
 
2049
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2050
rm -f -r conftest* confdefs.h
2051
 
2052
$as_echo "/* confdefs.h */" > confdefs.h
2053
 
2054
# Predefined preprocessor variables.
2055
 
2056
cat >>confdefs.h <<_ACEOF
2057
#define PACKAGE_NAME "$PACKAGE_NAME"
2058
_ACEOF
2059
 
2060
cat >>confdefs.h <<_ACEOF
2061
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062
_ACEOF
2063
 
2064
cat >>confdefs.h <<_ACEOF
2065
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2066
_ACEOF
2067
 
2068
cat >>confdefs.h <<_ACEOF
2069
#define PACKAGE_STRING "$PACKAGE_STRING"
2070
_ACEOF
2071
 
2072
cat >>confdefs.h <<_ACEOF
2073
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074
_ACEOF
2075
 
2076
cat >>confdefs.h <<_ACEOF
2077
#define PACKAGE_URL "$PACKAGE_URL"
2078
_ACEOF
2079
 
2080
 
2081
# Let the site file select an alternate cache file if it wants to.
2082
# Prefer an explicitly selected file to automatically selected ones.
2083
ac_site_file1=NONE
2084
ac_site_file2=NONE
2085
if test -n "$CONFIG_SITE"; then
2086
  ac_site_file1=$CONFIG_SITE
2087
elif test "x$prefix" != xNONE; then
2088
  ac_site_file1=$prefix/share/config.site
2089
  ac_site_file2=$prefix/etc/config.site
2090
else
2091
  ac_site_file1=$ac_default_prefix/share/config.site
2092
  ac_site_file2=$ac_default_prefix/etc/config.site
2093
fi
2094
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2095
do
2096
  test "x$ac_site_file" = xNONE && continue
2097
  if test -r "$ac_site_file"; then
2098
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100
    sed 's/^/| /' "$ac_site_file" >&5
2101
    . "$ac_site_file"
2102
  fi
2103
done
2104
 
2105
if test -r "$cache_file"; then
2106
  # Some versions of bash will fail to source /dev/null (special
2107
  # files actually), so we avoid doing that.
2108
  if test -f "$cache_file"; then
2109
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110
$as_echo "$as_me: loading cache $cache_file" >&6;}
2111
    case $cache_file in
2112
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113
      *)                      . "./$cache_file";;
2114
    esac
2115
  fi
2116
else
2117
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118
$as_echo "$as_me: creating cache $cache_file" >&6;}
2119
  >$cache_file
2120
fi
2121
 
2122
# Check that the precious variables saved in the cache have kept the same
2123
# value.
2124
ac_cache_corrupted=false
2125
for ac_var in $ac_precious_vars; do
2126
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127
  eval ac_new_set=\$ac_env_${ac_var}_set
2128
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129
  eval ac_new_val=\$ac_env_${ac_var}_value
2130
  case $ac_old_set,$ac_new_set in
2131
    set,)
2132
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134
      ac_cache_corrupted=: ;;
2135
    ,set)
2136
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138
      ac_cache_corrupted=: ;;
2139
    ,);;
2140
    *)
2141
      if test "x$ac_old_val" != "x$ac_new_val"; then
2142
        # differences in whitespace do not lead to failure.
2143
        ac_old_val_w=`echo x $ac_old_val`
2144
        ac_new_val_w=`echo x $ac_new_val`
2145
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148
          ac_cache_corrupted=:
2149
        else
2150
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152
          eval $ac_var=\$ac_old_val
2153
        fi
2154
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2155
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2156
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2157
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2158
      fi;;
2159
  esac
2160
  # Pass precious variables to config.status.
2161
  if test "$ac_new_set" = set; then
2162
    case $ac_new_val in
2163
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164
    *) ac_arg=$ac_var=$ac_new_val ;;
2165
    esac
2166
    case " $ac_configure_args " in
2167
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2168
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169
    esac
2170
  fi
2171
done
2172
if $ac_cache_corrupted; then
2173
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2178
fi
2179
## -------------------- ##
2180
## Main body of script. ##
2181
## -------------------- ##
2182
 
2183
ac_ext=c
2184
ac_cpp='$CPP $CPPFLAGS'
2185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
 
2189
 
2190
ac_config_headers="$ac_config_headers config.h:config.in"
2191
 
2192
 
2193
# This file contains common code used by all simulators.
2194
#
2195
# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2196
# directory.  It is intended to be invoked before any target specific stuff.
2197
# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2198
# It is intended to be invoked last.
2199
#
2200
# The simulator's configure.in should look like:
2201
#
2202
# dnl Process this file with autoconf to produce a configure script.
2203
# sinclude(../common/aclocal.m4)
2204
# AC_PREREQ(2.5)dnl
2205
# AC_INIT(Makefile.in)
2206
#
2207
# SIM_AC_COMMON
2208
#
2209
# ... target specific stuff ...
2210
#
2211
# SIM_AC_OUTPUT
2212
 
2213
# Include global overrides and fixes for Autoconf.
2214
 
2215
 
2216
 
2217
 
2218
 
2219
 
2220
 
2221
 
2222
 
2223
 
2224
 
2225
 
2226
 
2227
 
2228
 
2229
 
2230
 
2231
 
2232
 
2233
 
2234
 
2235
 
2236
 
2237
# _AC_CHECK_DECL_BODY
2238
# -------------------
2239
# Shell function body for AC_CHECK_DECL.
2240
# _AC_CHECK_DECL_BODY
2241
 
2242
# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2243
#                 INCLUDES)
2244
# -------------------------------------------------------------
2245
# Helper to AC_CHECK_DECLS, which generates the check for a single
2246
# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2247
# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2248
 
2249
 
2250
 
2251
 
2252
 
2253
 
2254
 
2255
 
2256
 
2257
 
2258
 
2259
 
2260
 
2261
 
2262
 
2263
 
2264
 
2265
 
2266
 
2267
 
2268
 
2269
 
2270
 
2271
 
2272
 
2273
 
2274
 
2275
 
2276
 
2277
 
2278
 
2279
 
2280
 
2281
 
2282
 
2283
 
2284
 
2285
 
2286
 
2287
 
2288
 
2289
 
2290
 
2291
 
2292
 
2293
 
2294
 
2295
 
2296
 
2297
 
2298
 
2299
 
2300
 
2301
 
2302
 
2303
 
2304
 
2305
 
2306
sim_inline="-DDEFAULT_INLINE=0"
2307
 
2308
 
2309
 
2310
 
2311
 
2312
 
2313
 
2314
 
2315
 
2316
 
2317
 
2318
 
2319
 
2320
 
2321
 
2322
 
2323
 
2324
 
2325
 
2326
 
2327
 
2328
 
2329
 
2330
 
2331
 
2332
 
2333
 
2334
 
2335
 
2336
 
2337
 
2338
 
2339
 
2340
 
2341
 
2342
 
2343
# intl sister-directory configuration rules.
2344
#
2345
 
2346
# The idea behind this macro is that there's no need to repeat all the
2347
# autoconf probes done by the intl directory - it's already done them
2348
# for us.  In fact, there's no need even to look at the cache for the
2349
# answers.  All we need to do is nab a few pieces of information.
2350
# The intl directory is set up to make this easy, by generating a
2351
# small file which can be sourced as a shell script; then we produce
2352
# the necessary substitutions and definitions for this directory.
2353
 
2354
 
2355
 
2356
# Autoconf M4 include file defining utility macros for complex Canadian
2357
# cross builds.
2358
 
2359
 
2360
 
2361
 
2362
 
2363
 
2364
 
2365
 
2366
 
2367
####
2368
# _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2369
# or AC_INIT.
2370
# These demand that AC_CANONICAL_SYSTEM be called beforehand.
2371
 
2372
####
2373
# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2374
# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2375
 
2376
 
2377
####
2378
# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2379
# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2380
 
2381
 
2382
 
2383
# Backported from Autoconf 2.5x; can go away when and if
2384
# we switch.  Put the OS path separator in $PATH_SEPARATOR.
2385
 
2386
 
2387
 
2388
 
2389
# ACX_HAVE_GCC_FOR_TARGET
2390
# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2391
 
2392
 
2393
# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2394
# Searching for installed target binutils.  We need to take extra care,
2395
# else we may find the wrong assembler, linker, etc., and lose.
2396
#
2397
# First try --with-build-time-tools, if specified.
2398
#
2399
# For build != host, we ask the installed GCC for the name of the tool it
2400
# uses, and accept it if it is an absolute path.  This is because the
2401
# only good choice for a compiler is the same GCC version that is being
2402
# installed (or we couldn't make target libraries), and we assume that
2403
# on the host system we'll have not only the same GCC version, but also
2404
# the same binutils version.
2405
#
2406
# For build == host, search the same directories that the installed
2407
# compiler will search.  We used to do this for the assembler, linker,
2408
# and nm only; for simplicity of configuration, however, we extend this
2409
# criterion to tools (such as ar and ranlib) that are never invoked by
2410
# the compiler, to avoid mismatches.
2411
#
2412
# Also note we have to check MD_EXEC_PREFIX before checking the user's path
2413
# if build == target.  This makes the most sense only when bootstrapping,
2414
# but we also do so when build != host.  In this case, we hope that the
2415
# build and host systems will have similar contents of MD_EXEC_PREFIX.
2416
#
2417
# If we do not find a suitable binary, then try the user's path.
2418
 
2419
 
2420
###
2421
# AC_PROG_CPP_WERROR
2422
# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2423
# triggers warnings from the preprocessor.  Will be in autoconf 2.58.
2424
# For now, using this also overrides header checks to use only the
2425
# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2426
# bit harder from here).
2427
# Eventually autoconf will default to checking headers with the compiler
2428
# instead, and we'll have to do this differently.
2429
 
2430
# AC_PROG_CPP_WERROR
2431
 
2432
# Test for GNAT.
2433
# We require the gnatbind program, and a compiler driver that
2434
# understands Ada.  We use the user's CC setting, already found,
2435
# and possibly add $1 to the command-line parameters.
2436
#
2437
# Sets the shell variable have_gnat to yes or no as appropriate, and
2438
# substitutes GNATBIND and GNATMAKE.
2439
 
2440
 
2441
 
2442
 
2443
 
2444
 
2445
 
2446
 
2447
 
2448
 
2449
 
2450
 
2451
 
2452
 
2453
 
2454
 
2455
 
2456
 
2457
 
2458
 
2459
 
2460
 
2461
 
2462
 
2463
 
2464
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2465
# it by inlining the macro's contents.
2466
# This file contains common code used by all simulators.
2467
#
2468
# common.m4 invokes AC macros used by all simulators and by the common
2469
# directory.  It is intended to be included before any target specific
2470
# stuff.  SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2471
# the Makefile.  It is intended to be invoked last.
2472
#
2473
# The simulator's configure.in should look like:
2474
#
2475
# dnl Process this file with autoconf to produce a configure script.
2476
# AC_PREREQ(2.5)dnl
2477
# AC_INIT(Makefile.in)
2478
# AC_CONFIG_HEADER(config.h:config.in)
2479
#
2480
# sinclude(../common/aclocal.m4)
2481
# sinclude(../common/common.m4)
2482
#
2483
# ... target specific stuff ...
2484
 
2485
ac_aux_dir=
2486
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2487
  for ac_t in install-sh install.sh shtool; do
2488
    if test -f "$ac_dir/$ac_t"; then
2489
      ac_aux_dir=$ac_dir
2490
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2491
      break 2
2492
    fi
2493
  done
2494
done
2495
if test -z "$ac_aux_dir"; then
2496
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2497
fi
2498
 
2499
# These three variables are undocumented and unsupported,
2500
# and are intended to be withdrawn in a future Autoconf release.
2501
# They can cause serious problems if a builder's source tree is in a directory
2502
# whose full name contains unusual characters.
2503
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2504
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2505
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2506
 
2507
 
2508
# Make sure we can run config.sub.
2509
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2510
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2511
 
2512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2513
$as_echo_n "checking build system type... " >&6; }
2514
if test "${ac_cv_build+set}" = set; then :
2515
  $as_echo_n "(cached) " >&6
2516
else
2517
  ac_build_alias=$build_alias
2518
test "x$ac_build_alias" = x &&
2519
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2520
test "x$ac_build_alias" = x &&
2521
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2522
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2524
 
2525
fi
2526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2527
$as_echo "$ac_cv_build" >&6; }
2528
case $ac_cv_build in
2529
*-*-*) ;;
2530
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2531
esac
2532
build=$ac_cv_build
2533
ac_save_IFS=$IFS; IFS='-'
2534
set x $ac_cv_build
2535
shift
2536
build_cpu=$1
2537
build_vendor=$2
2538
shift; shift
2539
# Remember, the first character of IFS is used to create $*,
2540
# except with old shells:
2541
build_os=$*
2542
IFS=$ac_save_IFS
2543
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2544
 
2545
 
2546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2547
$as_echo_n "checking host system type... " >&6; }
2548
if test "${ac_cv_host+set}" = set; then :
2549
  $as_echo_n "(cached) " >&6
2550
else
2551
  if test "x$host_alias" = x; then
2552
  ac_cv_host=$ac_cv_build
2553
else
2554
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2555
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2556
fi
2557
 
2558
fi
2559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2560
$as_echo "$ac_cv_host" >&6; }
2561
case $ac_cv_host in
2562
*-*-*) ;;
2563
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2564
esac
2565
host=$ac_cv_host
2566
ac_save_IFS=$IFS; IFS='-'
2567
set x $ac_cv_host
2568
shift
2569
host_cpu=$1
2570
host_vendor=$2
2571
shift; shift
2572
# Remember, the first character of IFS is used to create $*,
2573
# except with old shells:
2574
host_os=$*
2575
IFS=$ac_save_IFS
2576
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2577
 
2578
 
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2580
$as_echo_n "checking target system type... " >&6; }
2581
if test "${ac_cv_target+set}" = set; then :
2582
  $as_echo_n "(cached) " >&6
2583
else
2584
  if test "x$target_alias" = x; then
2585
  ac_cv_target=$ac_cv_host
2586
else
2587
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2588
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2589
fi
2590
 
2591
fi
2592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2593
$as_echo "$ac_cv_target" >&6; }
2594
case $ac_cv_target in
2595
*-*-*) ;;
2596
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2597
esac
2598
target=$ac_cv_target
2599
ac_save_IFS=$IFS; IFS='-'
2600
set x $ac_cv_target
2601
shift
2602
target_cpu=$1
2603
target_vendor=$2
2604
shift; shift
2605
# Remember, the first character of IFS is used to create $*,
2606
# except with old shells:
2607
target_os=$*
2608
IFS=$ac_save_IFS
2609
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2610
 
2611
 
2612
# The aliases save the names the user supplied, while $host etc.
2613
# will get canonicalized.
2614
test -n "$target_alias" &&
2615
  test "$program_prefix$program_suffix$program_transform_name" = \
2616
    NONENONEs,x,x, &&
2617
  program_prefix=${target_alias}-
2618
 
2619
test "$program_prefix" != NONE &&
2620
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2621
# Use a double $ so make ignores it.
2622
test "$program_suffix" != NONE &&
2623
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2624
# Double any \ or $.
2625
# By default was `s,x,x', remove it if useless.
2626
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2627
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2628
 
2629
ac_ext=c
2630
ac_cpp='$CPP $CPPFLAGS'
2631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
if test -n "$ac_tool_prefix"; then
2635
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638
$as_echo_n "checking for $ac_word... " >&6; }
2639
if test "${ac_cv_prog_CC+set}" = set; then :
2640
  $as_echo_n "(cached) " >&6
2641
else
2642
  if test -n "$CC"; then
2643
  ac_cv_prog_CC="$CC" # Let the user override the test.
2644
else
2645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646
for as_dir in $PATH
2647
do
2648
  IFS=$as_save_IFS
2649
  test -z "$as_dir" && as_dir=.
2650
    for ac_exec_ext in '' $ac_executable_extensions; do
2651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2653
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654
    break 2
2655
  fi
2656
done
2657
  done
2658
IFS=$as_save_IFS
2659
 
2660
fi
2661
fi
2662
CC=$ac_cv_prog_CC
2663
if test -n "$CC"; then
2664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665
$as_echo "$CC" >&6; }
2666
else
2667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668
$as_echo "no" >&6; }
2669
fi
2670
 
2671
 
2672
fi
2673
if test -z "$ac_cv_prog_CC"; then
2674
  ac_ct_CC=$CC
2675
  # Extract the first word of "gcc", so it can be a program name with args.
2676
set dummy gcc; ac_word=$2
2677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678
$as_echo_n "checking for $ac_word... " >&6; }
2679
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2680
  $as_echo_n "(cached) " >&6
2681
else
2682
  if test -n "$ac_ct_CC"; then
2683
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684
else
2685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686
for as_dir in $PATH
2687
do
2688
  IFS=$as_save_IFS
2689
  test -z "$as_dir" && as_dir=.
2690
    for ac_exec_ext in '' $ac_executable_extensions; do
2691
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692
    ac_cv_prog_ac_ct_CC="gcc"
2693
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694
    break 2
2695
  fi
2696
done
2697
  done
2698
IFS=$as_save_IFS
2699
 
2700
fi
2701
fi
2702
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703
if test -n "$ac_ct_CC"; then
2704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705
$as_echo "$ac_ct_CC" >&6; }
2706
else
2707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708
$as_echo "no" >&6; }
2709
fi
2710
 
2711
  if test "x$ac_ct_CC" = x; then
2712
    CC=""
2713
  else
2714
    case $cross_compiling:$ac_tool_warned in
2715
yes:)
2716
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718
ac_tool_warned=yes ;;
2719
esac
2720
    CC=$ac_ct_CC
2721
  fi
2722
else
2723
  CC="$ac_cv_prog_CC"
2724
fi
2725
 
2726
if test -z "$CC"; then
2727
          if test -n "$ac_tool_prefix"; then
2728
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729
set dummy ${ac_tool_prefix}cc; ac_word=$2
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731
$as_echo_n "checking for $ac_word... " >&6; }
2732
if test "${ac_cv_prog_CC+set}" = set; then :
2733
  $as_echo_n "(cached) " >&6
2734
else
2735
  if test -n "$CC"; then
2736
  ac_cv_prog_CC="$CC" # Let the user override the test.
2737
else
2738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739
for as_dir in $PATH
2740
do
2741
  IFS=$as_save_IFS
2742
  test -z "$as_dir" && as_dir=.
2743
    for ac_exec_ext in '' $ac_executable_extensions; do
2744
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2746
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747
    break 2
2748
  fi
2749
done
2750
  done
2751
IFS=$as_save_IFS
2752
 
2753
fi
2754
fi
2755
CC=$ac_cv_prog_CC
2756
if test -n "$CC"; then
2757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758
$as_echo "$CC" >&6; }
2759
else
2760
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761
$as_echo "no" >&6; }
2762
fi
2763
 
2764
 
2765
  fi
2766
fi
2767
if test -z "$CC"; then
2768
  # Extract the first word of "cc", so it can be a program name with args.
2769
set dummy cc; ac_word=$2
2770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771
$as_echo_n "checking for $ac_word... " >&6; }
2772
if test "${ac_cv_prog_CC+set}" = set; then :
2773
  $as_echo_n "(cached) " >&6
2774
else
2775
  if test -n "$CC"; then
2776
  ac_cv_prog_CC="$CC" # Let the user override the test.
2777
else
2778
  ac_prog_rejected=no
2779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780
for as_dir in $PATH
2781
do
2782
  IFS=$as_save_IFS
2783
  test -z "$as_dir" && as_dir=.
2784
    for ac_exec_ext in '' $ac_executable_extensions; do
2785
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787
       ac_prog_rejected=yes
2788
       continue
2789
     fi
2790
    ac_cv_prog_CC="cc"
2791
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792
    break 2
2793
  fi
2794
done
2795
  done
2796
IFS=$as_save_IFS
2797
 
2798
if test $ac_prog_rejected = yes; then
2799
  # We found a bogon in the path, so make sure we never use it.
2800
  set dummy $ac_cv_prog_CC
2801
  shift
2802
  if test $# != 0; then
2803
    # We chose a different compiler from the bogus one.
2804
    # However, it has the same basename, so the bogon will be chosen
2805
    # first if we set CC to just the basename; use the full file name.
2806
    shift
2807
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808
  fi
2809
fi
2810
fi
2811
fi
2812
CC=$ac_cv_prog_CC
2813
if test -n "$CC"; then
2814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815
$as_echo "$CC" >&6; }
2816
else
2817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818
$as_echo "no" >&6; }
2819
fi
2820
 
2821
 
2822
fi
2823
if test -z "$CC"; then
2824
  if test -n "$ac_tool_prefix"; then
2825
  for ac_prog in cl.exe
2826
  do
2827
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830
$as_echo_n "checking for $ac_word... " >&6; }
2831
if test "${ac_cv_prog_CC+set}" = set; then :
2832
  $as_echo_n "(cached) " >&6
2833
else
2834
  if test -n "$CC"; then
2835
  ac_cv_prog_CC="$CC" # Let the user override the test.
2836
else
2837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838
for as_dir in $PATH
2839
do
2840
  IFS=$as_save_IFS
2841
  test -z "$as_dir" && as_dir=.
2842
    for ac_exec_ext in '' $ac_executable_extensions; do
2843
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846
    break 2
2847
  fi
2848
done
2849
  done
2850
IFS=$as_save_IFS
2851
 
2852
fi
2853
fi
2854
CC=$ac_cv_prog_CC
2855
if test -n "$CC"; then
2856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857
$as_echo "$CC" >&6; }
2858
else
2859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860
$as_echo "no" >&6; }
2861
fi
2862
 
2863
 
2864
    test -n "$CC" && break
2865
  done
2866
fi
2867
if test -z "$CC"; then
2868
  ac_ct_CC=$CC
2869
  for ac_prog in cl.exe
2870
do
2871
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2872
set dummy $ac_prog; ac_word=$2
2873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874
$as_echo_n "checking for $ac_word... " >&6; }
2875
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2876
  $as_echo_n "(cached) " >&6
2877
else
2878
  if test -n "$ac_ct_CC"; then
2879
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880
else
2881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882
for as_dir in $PATH
2883
do
2884
  IFS=$as_save_IFS
2885
  test -z "$as_dir" && as_dir=.
2886
    for ac_exec_ext in '' $ac_executable_extensions; do
2887
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888
    ac_cv_prog_ac_ct_CC="$ac_prog"
2889
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890
    break 2
2891
  fi
2892
done
2893
  done
2894
IFS=$as_save_IFS
2895
 
2896
fi
2897
fi
2898
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899
if test -n "$ac_ct_CC"; then
2900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901
$as_echo "$ac_ct_CC" >&6; }
2902
else
2903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904
$as_echo "no" >&6; }
2905
fi
2906
 
2907
 
2908
  test -n "$ac_ct_CC" && break
2909
done
2910
 
2911
  if test "x$ac_ct_CC" = x; then
2912
    CC=""
2913
  else
2914
    case $cross_compiling:$ac_tool_warned in
2915
yes:)
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918
ac_tool_warned=yes ;;
2919
esac
2920
    CC=$ac_ct_CC
2921
  fi
2922
fi
2923
 
2924
fi
2925
 
2926
 
2927
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929
as_fn_error "no acceptable C compiler found in \$PATH
2930
See \`config.log' for more details." "$LINENO" 5; }
2931
 
2932
# Provide some information about the compiler.
2933
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2934
set X $ac_compile
2935
ac_compiler=$2
2936
for ac_option in --version -v -V -qversion; do
2937
  { { ac_try="$ac_compiler $ac_option >&5"
2938
case "(($ac_try" in
2939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940
  *) ac_try_echo=$ac_try;;
2941
esac
2942
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943
$as_echo "$ac_try_echo"; } >&5
2944
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2945
  ac_status=$?
2946
  if test -s conftest.err; then
2947
    sed '10a\
2948
... rest of stderr output deleted ...
2949
         10q' conftest.err >conftest.er1
2950
    cat conftest.er1 >&5
2951
    rm -f conftest.er1 conftest.err
2952
  fi
2953
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954
  test $ac_status = 0; }
2955
done
2956
 
2957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958
/* end confdefs.h.  */
2959
 
2960
int
2961
main ()
2962
{
2963
 
2964
  ;
2965
  return 0;
2966
}
2967
_ACEOF
2968
ac_clean_files_save=$ac_clean_files
2969
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2970
# Try to create an executable without -o first, disregard a.out.
2971
# It will help us diagnose broken compilers, and finding out an intuition
2972
# of exeext.
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2974
$as_echo_n "checking for C compiler default output file name... " >&6; }
2975
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2976
 
2977
# The possible output files:
2978
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2979
 
2980
ac_rmfiles=
2981
for ac_file in $ac_files
2982
do
2983
  case $ac_file in
2984
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986
  esac
2987
done
2988
rm -f $ac_rmfiles
2989
 
2990
if { { ac_try="$ac_link_default"
2991
case "(($ac_try" in
2992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993
  *) ac_try_echo=$ac_try;;
2994
esac
2995
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996
$as_echo "$ac_try_echo"; } >&5
2997
  (eval "$ac_link_default") 2>&5
2998
  ac_status=$?
2999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000
  test $ac_status = 0; }; then :
3001
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3004
# so that the user can short-circuit this test for compilers unknown to
3005
# Autoconf.
3006
for ac_file in $ac_files ''
3007
do
3008
  test -f "$ac_file" || continue
3009
  case $ac_file in
3010
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3011
        ;;
3012
    [ab].out )
3013
        # We found the default executable, but exeext='' is most
3014
        # certainly right.
3015
        break;;
3016
    *.* )
3017
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018
        then :; else
3019
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020
        fi
3021
        # We set ac_cv_exeext here because the later test for it is not
3022
        # safe: cross compilers may not add the suffix if given an `-o'
3023
        # argument, so we may need to know it at that point already.
3024
        # Even if this section looks crufty: it has the advantage of
3025
        # actually working.
3026
        break;;
3027
    * )
3028
        break;;
3029
  esac
3030
done
3031
test "$ac_cv_exeext" = no && ac_cv_exeext=
3032
 
3033
else
3034
  ac_file=''
3035
fi
3036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037
$as_echo "$ac_file" >&6; }
3038
if test -z "$ac_file"; then :
3039
  $as_echo "$as_me: failed program was:" >&5
3040
sed 's/^/| /' conftest.$ac_ext >&5
3041
 
3042
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044
{ as_fn_set_status 77
3045
as_fn_error "C compiler cannot create executables
3046
See \`config.log' for more details." "$LINENO" 5; }; }
3047
fi
3048
ac_exeext=$ac_cv_exeext
3049
 
3050
# Check that the compiler produces executables we can run.  If not, either
3051
# the compiler is broken, or we cross compile.
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3053
$as_echo_n "checking whether the C compiler works... " >&6; }
3054
# If not cross compiling, check that we can run a simple program.
3055
if test "$cross_compiling" != yes; then
3056
  if { ac_try='./$ac_file'
3057
  { { case "(($ac_try" in
3058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059
  *) ac_try_echo=$ac_try;;
3060
esac
3061
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062
$as_echo "$ac_try_echo"; } >&5
3063
  (eval "$ac_try") 2>&5
3064
  ac_status=$?
3065
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066
  test $ac_status = 0; }; }; then
3067
    cross_compiling=no
3068
  else
3069
    if test "$cross_compiling" = maybe; then
3070
        cross_compiling=yes
3071
    else
3072
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074
as_fn_error "cannot run C compiled programs.
3075
If you meant to cross compile, use \`--host'.
3076
See \`config.log' for more details." "$LINENO" 5; }
3077
    fi
3078
  fi
3079
fi
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081
$as_echo "yes" >&6; }
3082
 
3083
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3084
ac_clean_files=$ac_clean_files_save
3085
# Check that the compiler produces executables we can run.  If not, either
3086
# the compiler is broken, or we cross compile.
3087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3088
$as_echo_n "checking whether we are cross compiling... " >&6; }
3089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3090
$as_echo "$cross_compiling" >&6; }
3091
 
3092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3093
$as_echo_n "checking for suffix of executables... " >&6; }
3094
if { { ac_try="$ac_link"
3095
case "(($ac_try" in
3096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097
  *) ac_try_echo=$ac_try;;
3098
esac
3099
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100
$as_echo "$ac_try_echo"; } >&5
3101
  (eval "$ac_link") 2>&5
3102
  ac_status=$?
3103
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104
  test $ac_status = 0; }; then :
3105
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3107
# work properly (i.e., refer to `conftest.exe'), while it won't with
3108
# `rm'.
3109
for ac_file in conftest.exe conftest conftest.*; do
3110
  test -f "$ac_file" || continue
3111
  case $ac_file in
3112
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114
          break;;
3115
    * ) break;;
3116
  esac
3117
done
3118
else
3119
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121
as_fn_error "cannot compute suffix of executables: cannot compile and link
3122
See \`config.log' for more details." "$LINENO" 5; }
3123
fi
3124
rm -f conftest$ac_cv_exeext
3125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3126
$as_echo "$ac_cv_exeext" >&6; }
3127
 
3128
rm -f conftest.$ac_ext
3129
EXEEXT=$ac_cv_exeext
3130
ac_exeext=$EXEEXT
3131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3132
$as_echo_n "checking for suffix of object files... " >&6; }
3133
if test "${ac_cv_objext+set}" = set; then :
3134
  $as_echo_n "(cached) " >&6
3135
else
3136
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137
/* end confdefs.h.  */
3138
 
3139
int
3140
main ()
3141
{
3142
 
3143
  ;
3144
  return 0;
3145
}
3146
_ACEOF
3147
rm -f conftest.o conftest.obj
3148
if { { ac_try="$ac_compile"
3149
case "(($ac_try" in
3150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151
  *) ac_try_echo=$ac_try;;
3152
esac
3153
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154
$as_echo "$ac_try_echo"; } >&5
3155
  (eval "$ac_compile") 2>&5
3156
  ac_status=$?
3157
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158
  test $ac_status = 0; }; then :
3159
  for ac_file in conftest.o conftest.obj conftest.*; do
3160
  test -f "$ac_file" || continue;
3161
  case $ac_file in
3162
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3163
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164
       break;;
3165
  esac
3166
done
3167
else
3168
  $as_echo "$as_me: failed program was:" >&5
3169
sed 's/^/| /' conftest.$ac_ext >&5
3170
 
3171
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173
as_fn_error "cannot compute suffix of object files: cannot compile
3174
See \`config.log' for more details." "$LINENO" 5; }
3175
fi
3176
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3177
fi
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3179
$as_echo "$ac_cv_objext" >&6; }
3180
OBJEXT=$ac_cv_objext
3181
ac_objext=$OBJEXT
3182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3183
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3184
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3185
  $as_echo_n "(cached) " >&6
3186
else
3187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188
/* end confdefs.h.  */
3189
 
3190
int
3191
main ()
3192
{
3193
#ifndef __GNUC__
3194
       choke me
3195
#endif
3196
 
3197
  ;
3198
  return 0;
3199
}
3200
_ACEOF
3201
if ac_fn_c_try_compile "$LINENO"; then :
3202
  ac_compiler_gnu=yes
3203
else
3204
  ac_compiler_gnu=no
3205
fi
3206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3208
 
3209
fi
3210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3211
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3212
if test $ac_compiler_gnu = yes; then
3213
  GCC=yes
3214
else
3215
  GCC=
3216
fi
3217
ac_test_CFLAGS=${CFLAGS+set}
3218
ac_save_CFLAGS=$CFLAGS
3219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3220
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3221
if test "${ac_cv_prog_cc_g+set}" = set; then :
3222
  $as_echo_n "(cached) " >&6
3223
else
3224
  ac_save_c_werror_flag=$ac_c_werror_flag
3225
   ac_c_werror_flag=yes
3226
   ac_cv_prog_cc_g=no
3227
   CFLAGS="-g"
3228
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229
/* end confdefs.h.  */
3230
 
3231
int
3232
main ()
3233
{
3234
 
3235
  ;
3236
  return 0;
3237
}
3238
_ACEOF
3239
if ac_fn_c_try_compile "$LINENO"; then :
3240
  ac_cv_prog_cc_g=yes
3241
else
3242
  CFLAGS=""
3243
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244
/* end confdefs.h.  */
3245
 
3246
int
3247
main ()
3248
{
3249
 
3250
  ;
3251
  return 0;
3252
}
3253
_ACEOF
3254
if ac_fn_c_try_compile "$LINENO"; then :
3255
 
3256
else
3257
  ac_c_werror_flag=$ac_save_c_werror_flag
3258
         CFLAGS="-g"
3259
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260
/* end confdefs.h.  */
3261
 
3262
int
3263
main ()
3264
{
3265
 
3266
  ;
3267
  return 0;
3268
}
3269
_ACEOF
3270
if ac_fn_c_try_compile "$LINENO"; then :
3271
  ac_cv_prog_cc_g=yes
3272
fi
3273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274
fi
3275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276
fi
3277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278
   ac_c_werror_flag=$ac_save_c_werror_flag
3279
fi
3280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3281
$as_echo "$ac_cv_prog_cc_g" >&6; }
3282
if test "$ac_test_CFLAGS" = set; then
3283
  CFLAGS=$ac_save_CFLAGS
3284
elif test $ac_cv_prog_cc_g = yes; then
3285
  if test "$GCC" = yes; then
3286
    CFLAGS="-g -O2"
3287
  else
3288
    CFLAGS="-g"
3289
  fi
3290
else
3291
  if test "$GCC" = yes; then
3292
    CFLAGS="-O2"
3293
  else
3294
    CFLAGS=
3295
  fi
3296
fi
3297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3298
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3299
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3300
  $as_echo_n "(cached) " >&6
3301
else
3302
  ac_cv_prog_cc_c89=no
3303
ac_save_CC=$CC
3304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305
/* end confdefs.h.  */
3306
#include 
3307
#include 
3308
#include 
3309
#include 
3310
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3311
struct buf { int x; };
3312
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3313
static char *e (p, i)
3314
     char **p;
3315
     int i;
3316
{
3317
  return p[i];
3318
}
3319
static char *f (char * (*g) (char **, int), char **p, ...)
3320
{
3321
  char *s;
3322
  va_list v;
3323
  va_start (v,p);
3324
  s = g (p, va_arg (v,int));
3325
  va_end (v);
3326
  return s;
3327
}
3328
 
3329
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3330
   function prototypes and stuff, but not '\xHH' hex character constants.
3331
   These don't provoke an error unfortunately, instead are silently treated
3332
   as 'x'.  The following induces an error, until -std is added to get
3333
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3334
   array size at least.  It's necessary to write '\x00'==0 to get something
3335
   that's true only with -std.  */
3336
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337
 
3338
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3339
   inside strings and character constants.  */
3340
#define FOO(x) 'x'
3341
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342
 
3343
int test (int i, double x);
3344
struct s1 {int (*f) (int a);};
3345
struct s2 {int (*f) (double a);};
3346
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3347
int argc;
3348
char **argv;
3349
int
3350
main ()
3351
{
3352
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3353
  ;
3354
  return 0;
3355
}
3356
_ACEOF
3357
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3358
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359
do
3360
  CC="$ac_save_CC $ac_arg"
3361
  if ac_fn_c_try_compile "$LINENO"; then :
3362
  ac_cv_prog_cc_c89=$ac_arg
3363
fi
3364
rm -f core conftest.err conftest.$ac_objext
3365
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3366
done
3367
rm -f conftest.$ac_ext
3368
CC=$ac_save_CC
3369
 
3370
fi
3371
# AC_CACHE_VAL
3372
case "x$ac_cv_prog_cc_c89" in
3373
  x)
3374
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3375
$as_echo "none needed" >&6; } ;;
3376
  xno)
3377
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3378
$as_echo "unsupported" >&6; } ;;
3379
  *)
3380
    CC="$CC $ac_cv_prog_cc_c89"
3381
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3382
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3383
esac
3384
if test "x$ac_cv_prog_cc_c89" != xno; then :
3385
 
3386
fi
3387
 
3388
ac_ext=c
3389
ac_cpp='$CPP $CPPFLAGS'
3390
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393
 
3394
# Find a good install program.  We prefer a C program (faster),
3395
# so one script is as good as another.  But avoid the broken or
3396
# incompatible versions:
3397
# SysV /etc/install, /usr/sbin/install
3398
# SunOS /usr/etc/install
3399
# IRIX /sbin/install
3400
# AIX /bin/install
3401
# AmigaOS /C/install, which installs bootblocks on floppy discs
3402
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3403
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3404
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3405
# OS/2's system install, which has a completely different semantic
3406
# ./install, which can be erroneously created by make from ./install.sh.
3407
# Reject install programs that cannot install multiple files.
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3409
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3410
if test -z "$INSTALL"; then
3411
if test "${ac_cv_path_install+set}" = set; then :
3412
  $as_echo_n "(cached) " >&6
3413
else
3414
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415
for as_dir in $PATH
3416
do
3417
  IFS=$as_save_IFS
3418
  test -z "$as_dir" && as_dir=.
3419
    # Account for people who put trailing slashes in PATH elements.
3420
case $as_dir/ in #((
3421
  ./ | .// | /[cC]/* | \
3422
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3423
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3424
  /usr/ucb/* ) ;;
3425
  *)
3426
    # OSF1 and SCO ODT 3.0 have their own names for install.
3427
    # Don't use installbsd from OSF since it installs stuff as root
3428
    # by default.
3429
    for ac_prog in ginstall scoinst install; do
3430
      for ac_exec_ext in '' $ac_executable_extensions; do
3431
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3432
          if test $ac_prog = install &&
3433
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3434
            # AIX install.  It has an incompatible calling convention.
3435
            :
3436
          elif test $ac_prog = install &&
3437
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438
            # program-specific install script used by HP pwplus--don't use.
3439
            :
3440
          else
3441
            rm -rf conftest.one conftest.two conftest.dir
3442
            echo one > conftest.one
3443
            echo two > conftest.two
3444
            mkdir conftest.dir
3445
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3446
              test -s conftest.one && test -s conftest.two &&
3447
              test -s conftest.dir/conftest.one &&
3448
              test -s conftest.dir/conftest.two
3449
            then
3450
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3451
              break 3
3452
            fi
3453
          fi
3454
        fi
3455
      done
3456
    done
3457
    ;;
3458
esac
3459
 
3460
  done
3461
IFS=$as_save_IFS
3462
 
3463
rm -rf conftest.one conftest.two conftest.dir
3464
 
3465
fi
3466
  if test "${ac_cv_path_install+set}" = set; then
3467
    INSTALL=$ac_cv_path_install
3468
  else
3469
    # As a last resort, use the slow shell script.  Don't cache a
3470
    # value for INSTALL within a source directory, because that will
3471
    # break other packages using the cache if that directory is
3472
    # removed, or if the value is a relative name.
3473
    INSTALL=$ac_install_sh
3474
  fi
3475
fi
3476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3477
$as_echo "$INSTALL" >&6; }
3478
 
3479
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3480
# It thinks the first close brace ends the variable substitution.
3481
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3482
 
3483
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3484
 
3485
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3486
 
3487
 
3488
# Put a plausible default for CC_FOR_BUILD in Makefile.
3489
if test "x$cross_compiling" = "xno"; then
3490
  CC_FOR_BUILD='$(CC)'
3491
else
3492
  CC_FOR_BUILD=gcc
3493
fi
3494
 
3495
 
3496
 
3497
 
3498
AR=${AR-ar}
3499
 
3500
if test -n "$ac_tool_prefix"; then
3501
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3502
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504
$as_echo_n "checking for $ac_word... " >&6; }
3505
if test "${ac_cv_prog_RANLIB+set}" = set; then :
3506
  $as_echo_n "(cached) " >&6
3507
else
3508
  if test -n "$RANLIB"; then
3509
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3510
else
3511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512
for as_dir in $PATH
3513
do
3514
  IFS=$as_save_IFS
3515
  test -z "$as_dir" && as_dir=.
3516
    for ac_exec_ext in '' $ac_executable_extensions; do
3517
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3519
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520
    break 2
3521
  fi
3522
done
3523
  done
3524
IFS=$as_save_IFS
3525
 
3526
fi
3527
fi
3528
RANLIB=$ac_cv_prog_RANLIB
3529
if test -n "$RANLIB"; then
3530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3531
$as_echo "$RANLIB" >&6; }
3532
else
3533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534
$as_echo "no" >&6; }
3535
fi
3536
 
3537
 
3538
fi
3539
if test -z "$ac_cv_prog_RANLIB"; then
3540
  ac_ct_RANLIB=$RANLIB
3541
  # Extract the first word of "ranlib", so it can be a program name with args.
3542
set dummy ranlib; ac_word=$2
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544
$as_echo_n "checking for $ac_word... " >&6; }
3545
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3546
  $as_echo_n "(cached) " >&6
3547
else
3548
  if test -n "$ac_ct_RANLIB"; then
3549
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3550
else
3551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552
for as_dir in $PATH
3553
do
3554
  IFS=$as_save_IFS
3555
  test -z "$as_dir" && as_dir=.
3556
    for ac_exec_ext in '' $ac_executable_extensions; do
3557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560
    break 2
3561
  fi
3562
done
3563
  done
3564
IFS=$as_save_IFS
3565
 
3566
fi
3567
fi
3568
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3569
if test -n "$ac_ct_RANLIB"; then
3570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3571
$as_echo "$ac_ct_RANLIB" >&6; }
3572
else
3573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574
$as_echo "no" >&6; }
3575
fi
3576
 
3577
  if test "x$ac_ct_RANLIB" = x; then
3578
    RANLIB=":"
3579
  else
3580
    case $cross_compiling:$ac_tool_warned in
3581
yes:)
3582
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584
ac_tool_warned=yes ;;
3585
esac
3586
    RANLIB=$ac_ct_RANLIB
3587
  fi
3588
else
3589
  RANLIB="$ac_cv_prog_RANLIB"
3590
fi
3591
 
3592
 
3593
ALL_LINGUAS=
3594
# If we haven't got the data from the intl directory,
3595
# assume NLS is disabled.
3596
USE_NLS=no
3597
LIBINTL=
3598
LIBINTL_DEP=
3599
INCINTL=
3600
XGETTEXT=
3601
GMSGFMT=
3602
POSUB=
3603
 
3604
if test -f  ../../intl/config.intl; then
3605
  .  ../../intl/config.intl
3606
fi
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3608
$as_echo_n "checking whether NLS is requested... " >&6; }
3609
if test x"$USE_NLS" != xyes; then
3610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611
$as_echo "no" >&6; }
3612
else
3613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614
$as_echo "yes" >&6; }
3615
 
3616
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
3617
 
3618
 
3619
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3620
$as_echo_n "checking for catalogs to be installed... " >&6; }
3621
  # Look for .po and .gmo files in the source directory.
3622
  CATALOGS=
3623
  XLINGUAS=
3624
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3625
    # If there aren't any .gmo files the shell will give us the
3626
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
3627
    # weeded out.
3628
    case "$cat" in *\**)
3629
      continue;;
3630
    esac
3631
    # The quadruple backslash is collapsed to a double backslash
3632
    # by the backticks, then collapsed again by the double quotes,
3633
    # leaving us with one backslash in the sed expression (right
3634
    # before the dot that mustn't act as a wildcard).
3635
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3636
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3637
    # The user is allowed to set LINGUAS to a list of languages to
3638
    # install catalogs for.  If it's empty that means "all of them."
3639
    if test "x$LINGUAS" = x; then
3640
      CATALOGS="$CATALOGS $cat"
3641
      XLINGUAS="$XLINGUAS $lang"
3642
    else
3643
      case "$LINGUAS" in *$lang*)
3644
        CATALOGS="$CATALOGS $cat"
3645
        XLINGUAS="$XLINGUAS $lang"
3646
        ;;
3647
      esac
3648
    fi
3649
  done
3650
  LINGUAS="$XLINGUAS"
3651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3652
$as_echo "$LINGUAS" >&6; }
3653
 
3654
 
3655
    DATADIRNAME=share
3656
 
3657
  INSTOBJEXT=.mo
3658
 
3659
  GENCAT=gencat
3660
 
3661
  CATOBJEXT=.gmo
3662
 
3663
fi
3664
 
3665
# Check for common headers.
3666
# FIXME: Seems to me this can cause problems for i386-windows hosts.
3667
# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
3668
 
3669
ac_ext=c
3670
ac_cpp='$CPP $CPPFLAGS'
3671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3675
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3676
# On Suns, sometimes $CPP names a directory.
3677
if test -n "$CPP" && test -d "$CPP"; then
3678
  CPP=
3679
fi
3680
if test -z "$CPP"; then
3681
  if test "${ac_cv_prog_CPP+set}" = set; then :
3682
  $as_echo_n "(cached) " >&6
3683
else
3684
      # Double quotes because CPP needs to be expanded
3685
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3686
    do
3687
      ac_preproc_ok=false
3688
for ac_c_preproc_warn_flag in '' yes
3689
do
3690
  # Use a header file that comes with gcc, so configuring glibc
3691
  # with a fresh cross-compiler works.
3692
  # Prefer  to  if __STDC__ is defined, since
3693
  #  exists even on freestanding compilers.
3694
  # On the NeXT, cc -E runs the code through the compiler's parser,
3695
  # not just through cpp. "Syntax error" is here to catch this case.
3696
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697
/* end confdefs.h.  */
3698
#ifdef __STDC__
3699
# include 
3700
#else
3701
# include 
3702
#endif
3703
                     Syntax error
3704
_ACEOF
3705
if ac_fn_c_try_cpp "$LINENO"; then :
3706
 
3707
else
3708
  # Broken: fails on valid input.
3709
continue
3710
fi
3711
rm -f conftest.err conftest.$ac_ext
3712
 
3713
  # OK, works on sane cases.  Now check whether nonexistent headers
3714
  # can be detected and how.
3715
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716
/* end confdefs.h.  */
3717
#include 
3718
_ACEOF
3719
if ac_fn_c_try_cpp "$LINENO"; then :
3720
  # Broken: success on invalid input.
3721
continue
3722
else
3723
  # Passes both tests.
3724
ac_preproc_ok=:
3725
break
3726
fi
3727
rm -f conftest.err conftest.$ac_ext
3728
 
3729
done
3730
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731
rm -f conftest.err conftest.$ac_ext
3732
if $ac_preproc_ok; then :
3733
  break
3734
fi
3735
 
3736
    done
3737
    ac_cv_prog_CPP=$CPP
3738
 
3739
fi
3740
  CPP=$ac_cv_prog_CPP
3741
else
3742
  ac_cv_prog_CPP=$CPP
3743
fi
3744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3745
$as_echo "$CPP" >&6; }
3746
ac_preproc_ok=false
3747
for ac_c_preproc_warn_flag in '' yes
3748
do
3749
  # Use a header file that comes with gcc, so configuring glibc
3750
  # with a fresh cross-compiler works.
3751
  # Prefer  to  if __STDC__ is defined, since
3752
  #  exists even on freestanding compilers.
3753
  # On the NeXT, cc -E runs the code through the compiler's parser,
3754
  # not just through cpp. "Syntax error" is here to catch this case.
3755
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756
/* end confdefs.h.  */
3757
#ifdef __STDC__
3758
# include 
3759
#else
3760
# include 
3761
#endif
3762
                     Syntax error
3763
_ACEOF
3764
if ac_fn_c_try_cpp "$LINENO"; then :
3765
 
3766
else
3767
  # Broken: fails on valid input.
3768
continue
3769
fi
3770
rm -f conftest.err conftest.$ac_ext
3771
 
3772
  # OK, works on sane cases.  Now check whether nonexistent headers
3773
  # can be detected and how.
3774
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775
/* end confdefs.h.  */
3776
#include 
3777
_ACEOF
3778
if ac_fn_c_try_cpp "$LINENO"; then :
3779
  # Broken: success on invalid input.
3780
continue
3781
else
3782
  # Passes both tests.
3783
ac_preproc_ok=:
3784
break
3785
fi
3786
rm -f conftest.err conftest.$ac_ext
3787
 
3788
done
3789
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3790
rm -f conftest.err conftest.$ac_ext
3791
if $ac_preproc_ok; then :
3792
 
3793
else
3794
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3797
See \`config.log' for more details." "$LINENO" 5; }
3798
fi
3799
 
3800
ac_ext=c
3801
ac_cpp='$CPP $CPPFLAGS'
3802
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
 
3806
 
3807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3808
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3809
if test "${ac_cv_path_GREP+set}" = set; then :
3810
  $as_echo_n "(cached) " >&6
3811
else
3812
  if test -z "$GREP"; then
3813
  ac_path_GREP_found=false
3814
  # Loop through the user's path and test for each of PROGNAME-LIST
3815
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3817
do
3818
  IFS=$as_save_IFS
3819
  test -z "$as_dir" && as_dir=.
3820
    for ac_prog in grep ggrep; do
3821
    for ac_exec_ext in '' $ac_executable_extensions; do
3822
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3823
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3824
# Check for GNU ac_path_GREP and select it if it is found.
3825
  # Check for GNU $ac_path_GREP
3826
case `"$ac_path_GREP" --version 2>&1` in
3827
*GNU*)
3828
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3829
*)
3830
  ac_count=0
3831
  $as_echo_n 0123456789 >"conftest.in"
3832
  while :
3833
  do
3834
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3835
    mv "conftest.tmp" "conftest.in"
3836
    cp "conftest.in" "conftest.nl"
3837
    $as_echo 'GREP' >> "conftest.nl"
3838
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3839
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3840
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3841
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3842
      # Best one so far, save it but keep looking for a better one
3843
      ac_cv_path_GREP="$ac_path_GREP"
3844
      ac_path_GREP_max=$ac_count
3845
    fi
3846
    # 10*(2^10) chars as input seems more than enough
3847
    test $ac_count -gt 10 && break
3848
  done
3849
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3850
esac
3851
 
3852
      $ac_path_GREP_found && break 3
3853
    done
3854
  done
3855
  done
3856
IFS=$as_save_IFS
3857
  if test -z "$ac_cv_path_GREP"; then
3858
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3859
  fi
3860
else
3861
  ac_cv_path_GREP=$GREP
3862
fi
3863
 
3864
fi
3865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3866
$as_echo "$ac_cv_path_GREP" >&6; }
3867
 GREP="$ac_cv_path_GREP"
3868
 
3869
 
3870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3871
$as_echo_n "checking for egrep... " >&6; }
3872
if test "${ac_cv_path_EGREP+set}" = set; then :
3873
  $as_echo_n "(cached) " >&6
3874
else
3875
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3876
   then ac_cv_path_EGREP="$GREP -E"
3877
   else
3878
     if test -z "$EGREP"; then
3879
  ac_path_EGREP_found=false
3880
  # Loop through the user's path and test for each of PROGNAME-LIST
3881
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883
do
3884
  IFS=$as_save_IFS
3885
  test -z "$as_dir" && as_dir=.
3886
    for ac_prog in egrep; do
3887
    for ac_exec_ext in '' $ac_executable_extensions; do
3888
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3889
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3890
# Check for GNU ac_path_EGREP and select it if it is found.
3891
  # Check for GNU $ac_path_EGREP
3892
case `"$ac_path_EGREP" --version 2>&1` in
3893
*GNU*)
3894
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3895
*)
3896
  ac_count=0
3897
  $as_echo_n 0123456789 >"conftest.in"
3898
  while :
3899
  do
3900
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3901
    mv "conftest.tmp" "conftest.in"
3902
    cp "conftest.in" "conftest.nl"
3903
    $as_echo 'EGREP' >> "conftest.nl"
3904
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3907
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3908
      # Best one so far, save it but keep looking for a better one
3909
      ac_cv_path_EGREP="$ac_path_EGREP"
3910
      ac_path_EGREP_max=$ac_count
3911
    fi
3912
    # 10*(2^10) chars as input seems more than enough
3913
    test $ac_count -gt 10 && break
3914
  done
3915
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916
esac
3917
 
3918
      $ac_path_EGREP_found && break 3
3919
    done
3920
  done
3921
  done
3922
IFS=$as_save_IFS
3923
  if test -z "$ac_cv_path_EGREP"; then
3924
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3925
  fi
3926
else
3927
  ac_cv_path_EGREP=$EGREP
3928
fi
3929
 
3930
   fi
3931
fi
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3933
$as_echo "$ac_cv_path_EGREP" >&6; }
3934
 EGREP="$ac_cv_path_EGREP"
3935
 
3936
 
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3938
$as_echo_n "checking for ANSI C header files... " >&6; }
3939
if test "${ac_cv_header_stdc+set}" = set; then :
3940
  $as_echo_n "(cached) " >&6
3941
else
3942
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943
/* end confdefs.h.  */
3944
#include 
3945
#include 
3946
#include 
3947
#include 
3948
 
3949
int
3950
main ()
3951
{
3952
 
3953
  ;
3954
  return 0;
3955
}
3956
_ACEOF
3957
if ac_fn_c_try_compile "$LINENO"; then :
3958
  ac_cv_header_stdc=yes
3959
else
3960
  ac_cv_header_stdc=no
3961
fi
3962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963
 
3964
if test $ac_cv_header_stdc = yes; then
3965
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3966
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967
/* end confdefs.h.  */
3968
#include 
3969
 
3970
_ACEOF
3971
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972
  $EGREP "memchr" >/dev/null 2>&1; then :
3973
 
3974
else
3975
  ac_cv_header_stdc=no
3976
fi
3977
rm -f conftest*
3978
 
3979
fi
3980
 
3981
if test $ac_cv_header_stdc = yes; then
3982
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3983
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984
/* end confdefs.h.  */
3985
#include 
3986
 
3987
_ACEOF
3988
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3989
  $EGREP "free" >/dev/null 2>&1; then :
3990
 
3991
else
3992
  ac_cv_header_stdc=no
3993
fi
3994
rm -f conftest*
3995
 
3996
fi
3997
 
3998
if test $ac_cv_header_stdc = yes; then
3999
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4000
  if test "$cross_compiling" = yes; then :
4001
  :
4002
else
4003
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004
/* end confdefs.h.  */
4005
#include 
4006
#include 
4007
#if ((' ' & 0x0FF) == 0x020)
4008
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4009
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4010
#else
4011
# define ISLOWER(c) \
4012
                   (('a' <= (c) && (c) <= 'i') \
4013
                     || ('j' <= (c) && (c) <= 'r') \
4014
                     || ('s' <= (c) && (c) <= 'z'))
4015
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016
#endif
4017
 
4018
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4019
int
4020
main ()
4021
{
4022
  int i;
4023
  for (i = 0; i < 256; i++)
4024
    if (XOR (islower (i), ISLOWER (i))
4025
        || toupper (i) != TOUPPER (i))
4026
      return 2;
4027
  return 0;
4028
}
4029
_ACEOF
4030
if ac_fn_c_try_run "$LINENO"; then :
4031
 
4032
else
4033
  ac_cv_header_stdc=no
4034
fi
4035
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4036
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4037
fi
4038
 
4039
fi
4040
fi
4041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4042
$as_echo "$ac_cv_header_stdc" >&6; }
4043
if test $ac_cv_header_stdc = yes; then
4044
 
4045
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4046
 
4047
fi
4048
 
4049
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4050
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4051
                  inttypes.h stdint.h unistd.h
4052
do :
4053
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4054
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4055
"
4056
eval as_val=\$$as_ac_Header
4057
   if test "x$as_val" = x""yes; then :
4058
  cat >>confdefs.h <<_ACEOF
4059
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4060
_ACEOF
4061
 
4062
fi
4063
 
4064
done
4065
 
4066
 
4067
for ac_header in stdlib.h string.h strings.h unistd.h time.h
4068
do :
4069
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4070
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4071
eval as_val=\$$as_ac_Header
4072
   if test "x$as_val" = x""yes; then :
4073
  cat >>confdefs.h <<_ACEOF
4074
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4075
_ACEOF
4076
 
4077
fi
4078
 
4079
done
4080
 
4081
for ac_header in sys/time.h sys/resource.h
4082
do :
4083
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4084
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4085
eval as_val=\$$as_ac_Header
4086
   if test "x$as_val" = x""yes; then :
4087
  cat >>confdefs.h <<_ACEOF
4088
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089
_ACEOF
4090
 
4091
fi
4092
 
4093
done
4094
 
4095
for ac_header in fcntl.h fpu_control.h
4096
do :
4097
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4099
eval as_val=\$$as_ac_Header
4100
   if test "x$as_val" = x""yes; then :
4101
  cat >>confdefs.h <<_ACEOF
4102
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103
_ACEOF
4104
 
4105
fi
4106
 
4107
done
4108
 
4109
for ac_header in dlfcn.h errno.h sys/stat.h
4110
do :
4111
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4112
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4113
eval as_val=\$$as_ac_Header
4114
   if test "x$as_val" = x""yes; then :
4115
  cat >>confdefs.h <<_ACEOF
4116
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117
_ACEOF
4118
 
4119
fi
4120
 
4121
done
4122
 
4123
for ac_func in getrusage time sigaction __setfpucw
4124
do :
4125
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4126
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4127
eval as_val=\$$as_ac_var
4128
   if test "x$as_val" = x""yes; then :
4129
  cat >>confdefs.h <<_ACEOF
4130
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4131
_ACEOF
4132
 
4133
fi
4134
done
4135
 
4136
 
4137
# Check for socket libraries
4138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4139
$as_echo_n "checking for bind in -lsocket... " >&6; }
4140
if test "${ac_cv_lib_socket_bind+set}" = set; then :
4141
  $as_echo_n "(cached) " >&6
4142
else
4143
  ac_check_lib_save_LIBS=$LIBS
4144
LIBS="-lsocket  $LIBS"
4145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146
/* end confdefs.h.  */
4147
 
4148
/* Override any GCC internal prototype to avoid an error.
4149
   Use char because int might match the return type of a GCC
4150
   builtin and then its argument prototype would still apply.  */
4151
#ifdef __cplusplus
4152
extern "C"
4153
#endif
4154
char bind ();
4155
int
4156
main ()
4157
{
4158
return bind ();
4159
  ;
4160
  return 0;
4161
}
4162
_ACEOF
4163
if ac_fn_c_try_link "$LINENO"; then :
4164
  ac_cv_lib_socket_bind=yes
4165
else
4166
  ac_cv_lib_socket_bind=no
4167
fi
4168
rm -f core conftest.err conftest.$ac_objext \
4169
    conftest$ac_exeext conftest.$ac_ext
4170
LIBS=$ac_check_lib_save_LIBS
4171
fi
4172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4173
$as_echo "$ac_cv_lib_socket_bind" >&6; }
4174
if test "x$ac_cv_lib_socket_bind" = x""yes; then :
4175
  cat >>confdefs.h <<_ACEOF
4176
#define HAVE_LIBSOCKET 1
4177
_ACEOF
4178
 
4179
  LIBS="-lsocket $LIBS"
4180
 
4181
fi
4182
 
4183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4184
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4185
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4186
  $as_echo_n "(cached) " >&6
4187
else
4188
  ac_check_lib_save_LIBS=$LIBS
4189
LIBS="-lnsl  $LIBS"
4190
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191
/* end confdefs.h.  */
4192
 
4193
/* Override any GCC internal prototype to avoid an error.
4194
   Use char because int might match the return type of a GCC
4195
   builtin and then its argument prototype would still apply.  */
4196
#ifdef __cplusplus
4197
extern "C"
4198
#endif
4199
char gethostbyname ();
4200
int
4201
main ()
4202
{
4203
return gethostbyname ();
4204
  ;
4205
  return 0;
4206
}
4207
_ACEOF
4208
if ac_fn_c_try_link "$LINENO"; then :
4209
  ac_cv_lib_nsl_gethostbyname=yes
4210
else
4211
  ac_cv_lib_nsl_gethostbyname=no
4212
fi
4213
rm -f core conftest.err conftest.$ac_objext \
4214
    conftest$ac_exeext conftest.$ac_ext
4215
LIBS=$ac_check_lib_save_LIBS
4216
fi
4217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4218
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4219
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4220
  cat >>confdefs.h <<_ACEOF
4221
#define HAVE_LIBNSL 1
4222
_ACEOF
4223
 
4224
  LIBS="-lnsl $LIBS"
4225
 
4226
fi
4227
 
4228
 
4229
# BFD conditionally uses zlib, so we must link it in if libbfd does, by
4230
# using the same condition.
4231
 
4232
  # See if the user specified whether he wants zlib support or not.
4233
 
4234
# Check whether --with-zlib was given.
4235
if test "${with_zlib+set}" = set; then :
4236
  withval=$with_zlib;
4237
else
4238
  with_zlib=auto
4239
fi
4240
 
4241
 
4242
  if test "$with_zlib" != "no"; then
4243
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4244
$as_echo_n "checking for library containing zlibVersion... " >&6; }
4245
if test "${ac_cv_search_zlibVersion+set}" = set; then :
4246
  $as_echo_n "(cached) " >&6
4247
else
4248
  ac_func_search_save_LIBS=$LIBS
4249
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250
/* end confdefs.h.  */
4251
 
4252
/* Override any GCC internal prototype to avoid an error.
4253
   Use char because int might match the return type of a GCC
4254
   builtin and then its argument prototype would still apply.  */
4255
#ifdef __cplusplus
4256
extern "C"
4257
#endif
4258
char zlibVersion ();
4259
int
4260
main ()
4261
{
4262
return zlibVersion ();
4263
  ;
4264
  return 0;
4265
}
4266
_ACEOF
4267
for ac_lib in '' z; do
4268
  if test -z "$ac_lib"; then
4269
    ac_res="none required"
4270
  else
4271
    ac_res=-l$ac_lib
4272
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4273
  fi
4274
  if ac_fn_c_try_link "$LINENO"; then :
4275
  ac_cv_search_zlibVersion=$ac_res
4276
fi
4277
rm -f core conftest.err conftest.$ac_objext \
4278
    conftest$ac_exeext
4279
  if test "${ac_cv_search_zlibVersion+set}" = set; then :
4280
  break
4281
fi
4282
done
4283
if test "${ac_cv_search_zlibVersion+set}" = set; then :
4284
 
4285
else
4286
  ac_cv_search_zlibVersion=no
4287
fi
4288
rm conftest.$ac_ext
4289
LIBS=$ac_func_search_save_LIBS
4290
fi
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4292
$as_echo "$ac_cv_search_zlibVersion" >&6; }
4293
ac_res=$ac_cv_search_zlibVersion
4294
if test "$ac_res" != no; then :
4295
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4296
  for ac_header in zlib.h
4297
do :
4298
  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4299
if test "x$ac_cv_header_zlib_h" = x""yes; then :
4300
  cat >>confdefs.h <<_ACEOF
4301
#define HAVE_ZLIB_H 1
4302
_ACEOF
4303
 
4304
fi
4305
 
4306
done
4307
 
4308
fi
4309
 
4310
    if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4311
      as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4312
    fi
4313
  fi
4314
 
4315
 
4316
. ${srcdir}/../../bfd/configure.host
4317
 
4318
 
4319
 
4320
USE_MAINTAINER_MODE=no
4321
# Check whether --enable-maintainer-mode was given.
4322
if test "${enable_maintainer_mode+set}" = set; then :
4323
  enableval=$enable_maintainer_mode; case "${enableval}" in
4324
  yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
4325
  no)   MAINT="#" ;;
4326
  *)    as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;;
4327
esac
4328
if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4329
  echo "Setting maintainer mode" 6>&1
4330
fi
4331
else
4332
  MAINT="#"
4333
fi
4334
 
4335
 
4336
 
4337
# Check whether --enable-sim-bswap was given.
4338
if test "${enable_sim_bswap+set}" = set; then :
4339
  enableval=$enable_sim_bswap; case "${enableval}" in
4340
  yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4341
  no)   sim_bswap="-DWITH_BSWAP=0";;
4342
  *)    as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
4343
esac
4344
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4345
  echo "Setting bswap flags = $sim_bswap" 6>&1
4346
fi
4347
else
4348
  sim_bswap=""
4349
fi
4350
 
4351
 
4352
 
4353
# Check whether --enable-sim-cflags was given.
4354
if test "${enable_sim_cflags+set}" = set; then :
4355
  enableval=$enable_sim_cflags; case "${enableval}" in
4356
  yes)   sim_cflags="-O2 -fomit-frame-pointer";;
4357
  trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
4358
  no)    sim_cflags="";;
4359
  *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4360
esac
4361
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4362
  echo "Setting sim cflags = $sim_cflags" 6>&1
4363
fi
4364
else
4365
  sim_cflags=""
4366
fi
4367
 
4368
 
4369
 
4370
# Check whether --enable-sim-debug was given.
4371
if test "${enable_sim_debug+set}" = set; then :
4372
  enableval=$enable_sim_debug; case "${enableval}" in
4373
  yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4374
  no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4375
  *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4376
esac
4377
if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4378
  echo "Setting sim debug = $sim_debug" 6>&1
4379
fi
4380
else
4381
  sim_debug=""
4382
fi
4383
 
4384
 
4385
 
4386
# Check whether --enable-sim-stdio was given.
4387
if test "${enable_sim_stdio+set}" = set; then :
4388
  enableval=$enable_sim_stdio; case "${enableval}" in
4389
  yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4390
  no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4391
  *)    as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
4392
esac
4393
if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4394
  echo "Setting stdio flags = $sim_stdio" 6>&1
4395
fi
4396
else
4397
  sim_stdio=""
4398
fi
4399
 
4400
 
4401
 
4402
# Check whether --enable-sim-trace was given.
4403
if test "${enable_sim_trace+set}" = set; then :
4404
  enableval=$enable_sim_trace; case "${enableval}" in
4405
  yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4406
  no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4407
  [-0-9]*)
4408
        sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4409
  [a-z]*)
4410
        sim_trace=""
4411
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4412
          if test x"$sim_trace" = x; then
4413
            sim_trace="-DWITH_TRACE='(TRACE_$x"
4414
          else
4415
            sim_trace="${sim_trace}|TRACE_$x"
4416
          fi
4417
        done
4418
        sim_trace="$sim_trace)'" ;;
4419
esac
4420
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4421
  echo "Setting sim trace = $sim_trace" 6>&1
4422
fi
4423
else
4424
  sim_trace=""
4425
fi
4426
 
4427
 
4428
 
4429
# Check whether --enable-sim-profile was given.
4430
if test "${enable_sim_profile+set}" = set; then :
4431
  enableval=$enable_sim_profile; case "${enableval}" in
4432
  yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4433
  no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4434
  [-0-9]*)
4435
        sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4436
  [a-z]*)
4437
        sim_profile=""
4438
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4439
          if test x"$sim_profile" = x; then
4440
            sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4441
          else
4442
            sim_profile="${sim_profile}|PROFILE_$x"
4443
          fi
4444
        done
4445
        sim_profile="$sim_profile)'" ;;
4446
esac
4447
if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4448
  echo "Setting sim profile = $sim_profile" 6>&1
4449
fi
4450
else
4451
  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4452
fi
4453
 
4454
 
4455
 
4456
 
4457
# Check whether --with-pkgversion was given.
4458
if test "${with_pkgversion+set}" = set; then :
4459
  withval=$with_pkgversion; case "$withval" in
4460
      yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4461
      no)  PKGVERSION= ;;
4462
      *)   PKGVERSION="($withval) " ;;
4463
     esac
4464
else
4465
  PKGVERSION="(GDB) "
4466
 
4467
fi
4468
 
4469
 
4470
 
4471
 
4472
 
4473
# Check whether --with-bugurl was given.
4474
if test "${with_bugurl+set}" = set; then :
4475
  withval=$with_bugurl; case "$withval" in
4476
      yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4477
      no)  BUGURL=
4478
           ;;
4479
      *)   BUGURL="$withval"
4480
           ;;
4481
     esac
4482
else
4483
  BUGURL="http://www.gnu.org/software/gdb/bugs/"
4484
 
4485
fi
4486
 
4487
  case ${BUGURL} in
4488
  "")
4489
    REPORT_BUGS_TO=
4490
    REPORT_BUGS_TEXI=
4491
    ;;
4492
  *)
4493
    REPORT_BUGS_TO="<$BUGURL>"
4494
    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4495
    ;;
4496
  esac;
4497
 
4498
 
4499
 
4500
 
4501
cat >>confdefs.h <<_ACEOF
4502
#define PKGVERSION "$PKGVERSION"
4503
_ACEOF
4504
 
4505
 
4506
cat >>confdefs.h <<_ACEOF
4507
#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4508
_ACEOF
4509
 
4510
 
4511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4512
$as_echo_n "checking return type of signal handlers... " >&6; }
4513
if test "${ac_cv_type_signal+set}" = set; then :
4514
  $as_echo_n "(cached) " >&6
4515
else
4516
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517
/* end confdefs.h.  */
4518
#include 
4519
#include 
4520
 
4521
int
4522
main ()
4523
{
4524
return *(signal (0, 0)) (0) == 1;
4525
  ;
4526
  return 0;
4527
}
4528
_ACEOF
4529
if ac_fn_c_try_compile "$LINENO"; then :
4530
  ac_cv_type_signal=int
4531
else
4532
  ac_cv_type_signal=void
4533
fi
4534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535
fi
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4537
$as_echo "$ac_cv_type_signal" >&6; }
4538
 
4539
cat >>confdefs.h <<_ACEOF
4540
#define RETSIGTYPE $ac_cv_type_signal
4541
_ACEOF
4542
 
4543
 
4544
 
4545
 
4546
 
4547
sim_link_files=
4548
sim_link_links=
4549
 
4550
sim_link_links=tconfig.h
4551
if test -f ${srcdir}/tconfig.in
4552
then
4553
  sim_link_files=tconfig.in
4554
else
4555
  sim_link_files=../common/tconfig.in
4556
fi
4557
 
4558
# targ-vals.def points to the libc macro description file.
4559
case "${target}" in
4560
*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4561
esac
4562
sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4563
sim_link_links="${sim_link_links} targ-vals.def"
4564
 
4565
 
4566
 
4567
default_sim_inline=""
4568
# Check whether --enable-sim-inline was given.
4569
if test "${enable_sim_inline+set}" = set; then :
4570
  enableval=$enable_sim_inline; sim_inline=""
4571
case "$enableval" in
4572
  no)           sim_inline="-DDEFAULT_INLINE=0";;
4573
  0)            sim_inline="-DDEFAULT_INLINE=0";;
4574
  yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
4575
  1)            sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
4576
  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4577
       new_flag=""
4578
       case "$x" in
4579
         *_INLINE=*)    new_flag="-D$x";;
4580
         *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4581
         *_INLINE)      new_flag="-D$x=ALL_C_INLINE";;
4582
         *)             new_flag="-D$x""_INLINE=ALL_C_INLINE";;
4583
       esac
4584
       if test x"$sim_inline" = x""; then
4585
         sim_inline="$new_flag"
4586
       else
4587
         sim_inline="$sim_inline $new_flag"
4588
       fi
4589
     done;;
4590
esac
4591
if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4592
  echo "Setting inline flags = $sim_inline" 6>&1
4593
fi
4594
else
4595
 
4596
if test "x$cross_compiling" = "xno"; then
4597
  if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
4598
    sim_inline="${default_sim_inline}"
4599
    if test x"$silent" != x"yes"; then
4600
      echo "Setting inline flags = $sim_inline" 6>&1
4601
    fi
4602
  else
4603
    sim_inline=""
4604
  fi
4605
else
4606
  sim_inline="-DDEFAULT_INLINE=0"
4607
fi
4608
fi
4609
 
4610
wire_alignment="NONSTRICT_ALIGNMENT"
4611
default_alignment=""
4612
 
4613
# Check whether --enable-sim-alignment was given.
4614
if test "${enable_sim_alignment+set}" = set; then :
4615
  enableval=$enable_sim_alignment; case "${enableval}" in
4616
  strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4617
  nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4618
  forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4619
  yes) if test x"$wire_alignment" != x; then
4620
         sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4621
       else
4622
         if test x"$default_alignment" != x; then
4623
           sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4624
         else
4625
           echo "No hard-wired alignment for target $target" 1>&6
4626
           sim_alignment="-DWITH_ALIGNMENT=0"
4627
         fi
4628
       fi;;
4629
  no)  if test x"$default_alignment" != x; then
4630
         sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4631
       else
4632
         if test x"$wire_alignment" != x; then
4633
           sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4634
         else
4635
           echo "No default alignment for target $target" 1>&6
4636
           sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4637
         fi
4638
       fi;;
4639
  *)   as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
4640
esac
4641
if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4642
  echo "Setting alignment flags = $sim_alignment" 6>&1
4643
fi
4644
else
4645
  if test x"$default_alignment" != x; then
4646
  sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4647
else
4648
  if test x"$wire_alignment" != x; then
4649
    sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4650
  else
4651
    sim_alignment=
4652
  fi
4653
fi
4654
fi
4655
 
4656
 
4657
# Check whether --enable-sim-hostendian was given.
4658
if test "${enable_sim_hostendian+set}" = set; then :
4659
  enableval=$enable_sim_hostendian; case "${enableval}" in
4660
  no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4661
  b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4662
  l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4663
  *)     as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
4664
esac
4665
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4666
  echo "Setting hostendian flags = $sim_hostendian" 6>&1
4667
fi
4668
else
4669
 
4670
if test "x$cross_compiling" = "xno"; then
4671
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4672
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4673
if test "${ac_cv_c_bigendian+set}" = set; then :
4674
  $as_echo_n "(cached) " >&6
4675
else
4676
  ac_cv_c_bigendian=unknown
4677
    # See if we're dealing with a universal compiler.
4678
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679
/* end confdefs.h.  */
4680
#ifndef __APPLE_CC__
4681
               not a universal capable compiler
4682
             #endif
4683
             typedef int dummy;
4684
 
4685
_ACEOF
4686
if ac_fn_c_try_compile "$LINENO"; then :
4687
 
4688
        # Check for potential -arch flags.  It is not universal unless
4689
        # there are at least two -arch flags with different values.
4690
        ac_arch=
4691
        ac_prev=
4692
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4693
         if test -n "$ac_prev"; then
4694
           case $ac_word in
4695
             i?86 | x86_64 | ppc | ppc64)
4696
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4697
                 ac_arch=$ac_word
4698
               else
4699
                 ac_cv_c_bigendian=universal
4700
                 break
4701
               fi
4702
               ;;
4703
           esac
4704
           ac_prev=
4705
         elif test "x$ac_word" = "x-arch"; then
4706
           ac_prev=arch
4707
         fi
4708
       done
4709
fi
4710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711
    if test $ac_cv_c_bigendian = unknown; then
4712
      # See if sys/param.h defines the BYTE_ORDER macro.
4713
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714
/* end confdefs.h.  */
4715
#include 
4716
             #include 
4717
 
4718
int
4719
main ()
4720
{
4721
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4722
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4723
                     && LITTLE_ENDIAN)
4724
              bogus endian macros
4725
             #endif
4726
 
4727
  ;
4728
  return 0;
4729
}
4730
_ACEOF
4731
if ac_fn_c_try_compile "$LINENO"; then :
4732
  # It does; now see whether it defined to BIG_ENDIAN or not.
4733
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734
/* end confdefs.h.  */
4735
#include 
4736
                #include 
4737
 
4738
int
4739
main ()
4740
{
4741
#if BYTE_ORDER != BIG_ENDIAN
4742
                 not big endian
4743
                #endif
4744
 
4745
  ;
4746
  return 0;
4747
}
4748
_ACEOF
4749
if ac_fn_c_try_compile "$LINENO"; then :
4750
  ac_cv_c_bigendian=yes
4751
else
4752
  ac_cv_c_bigendian=no
4753
fi
4754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755
fi
4756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757
    fi
4758
    if test $ac_cv_c_bigendian = unknown; then
4759
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4760
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761
/* end confdefs.h.  */
4762
#include 
4763
 
4764
int
4765
main ()
4766
{
4767
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4768
              bogus endian macros
4769
             #endif
4770
 
4771
  ;
4772
  return 0;
4773
}
4774
_ACEOF
4775
if ac_fn_c_try_compile "$LINENO"; then :
4776
  # It does; now see whether it defined to _BIG_ENDIAN or not.
4777
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778
/* end confdefs.h.  */
4779
#include 
4780
 
4781
int
4782
main ()
4783
{
4784
#ifndef _BIG_ENDIAN
4785
                 not big endian
4786
                #endif
4787
 
4788
  ;
4789
  return 0;
4790
}
4791
_ACEOF
4792
if ac_fn_c_try_compile "$LINENO"; then :
4793
  ac_cv_c_bigendian=yes
4794
else
4795
  ac_cv_c_bigendian=no
4796
fi
4797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798
fi
4799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800
    fi
4801
    if test $ac_cv_c_bigendian = unknown; then
4802
      # Compile a test program.
4803
      if test "$cross_compiling" = yes; then :
4804
  # Try to guess by grepping values from an object file.
4805
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806
/* end confdefs.h.  */
4807
short int ascii_mm[] =
4808
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4809
                short int ascii_ii[] =
4810
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4811
                int use_ascii (int i) {
4812
                  return ascii_mm[i] + ascii_ii[i];
4813
                }
4814
                short int ebcdic_ii[] =
4815
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4816
                short int ebcdic_mm[] =
4817
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4818
                int use_ebcdic (int i) {
4819
                  return ebcdic_mm[i] + ebcdic_ii[i];
4820
                }
4821
                extern int foo;
4822
 
4823
int
4824
main ()
4825
{
4826
return use_ascii (foo) == use_ebcdic (foo);
4827
  ;
4828
  return 0;
4829
}
4830
_ACEOF
4831
if ac_fn_c_try_compile "$LINENO"; then :
4832
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4833
              ac_cv_c_bigendian=yes
4834
            fi
4835
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4836
              if test "$ac_cv_c_bigendian" = unknown; then
4837
                ac_cv_c_bigendian=no
4838
              else
4839
                # finding both strings is unlikely to happen, but who knows?
4840
                ac_cv_c_bigendian=unknown
4841
              fi
4842
            fi
4843
fi
4844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845
else
4846
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847
/* end confdefs.h.  */
4848
$ac_includes_default
4849
int
4850
main ()
4851
{
4852
 
4853
             /* Are we little or big endian?  From Harbison&Steele.  */
4854
             union
4855
             {
4856
               long int l;
4857
               char c[sizeof (long int)];
4858
             } u;
4859
             u.l = 1;
4860
             return u.c[sizeof (long int) - 1] == 1;
4861
 
4862
  ;
4863
  return 0;
4864
}
4865
_ACEOF
4866
if ac_fn_c_try_run "$LINENO"; then :
4867
  ac_cv_c_bigendian=no
4868
else
4869
  ac_cv_c_bigendian=yes
4870
fi
4871
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4872
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4873
fi
4874
 
4875
    fi
4876
fi
4877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4878
$as_echo "$ac_cv_c_bigendian" >&6; }
4879
 case $ac_cv_c_bigendian in #(
4880
   yes)
4881
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4882
;; #(
4883
   no)
4884
      ;; #(
4885
   universal)
4886
 
4887
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4888
 
4889
     ;; #(
4890
   *)
4891
     as_fn_error "unknown endianness
4892
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4893
 esac
4894
 
4895
  if test $ac_cv_c_bigendian = yes; then
4896
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4897
  else
4898
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4899
  fi
4900
else
4901
  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4902
fi
4903
fi
4904
 
4905
 
4906
# NOTE: Don't add -Wall or -Wunused, they both include
4907
# -Wunused-parameter which reports bogus warnings.
4908
# NOTE: If you add to this list, remember to update
4909
# gdb/doc/gdbint.texinfo.
4910
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4911
-Wformat -Wparentheses -Wpointer-arith"
4912
# GCC supports -Wuninitialized only with -O or -On, n != 0.
4913
if test x${CFLAGS+set} = xset; then
4914
  case "${CFLAGS}" in
4915
    *"-O0"* ) ;;
4916
    *"-O"* )
4917
      build_warnings="${build_warnings} -Wuninitialized"
4918
    ;;
4919
  esac
4920
else
4921
  build_warnings="${build_warnings} -Wuninitialized"
4922
fi
4923
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4924
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4925
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4926
# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4927
# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4928
# -Woverloaded-virtual -Winline -Werror"
4929
# Check whether --enable-build-warnings was given.
4930
if test "${enable_build_warnings+set}" = set; then :
4931
  enableval=$enable_build_warnings; case "${enableval}" in
4932
  yes)  ;;
4933
  no)   build_warnings="-w";;
4934
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4935
        build_warnings="${build_warnings} ${t}";;
4936
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4937
        build_warnings="${t} ${build_warnings}";;
4938
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4939
esac
4940
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4941
  echo "Setting compiler warning flags = $build_warnings" 6>&1
4942
fi
4943
fi
4944
# Check whether --enable-sim-build-warnings was given.
4945
if test "${enable_sim_build_warnings+set}" = set; then :
4946
  enableval=$enable_sim_build_warnings; case "${enableval}" in
4947
  yes)  ;;
4948
  no)   build_warnings="-w";;
4949
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4950
        build_warnings="${build_warnings} ${t}";;
4951
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4952
        build_warnings="${t} ${build_warnings}";;
4953
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4954
esac
4955
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4956
  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4957
fi
4958
fi
4959
WARN_CFLAGS=""
4960
WERROR_CFLAGS=""
4961
if test "x${build_warnings}" != x -a "x$GCC" = xyes
4962
then
4963
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4964
$as_echo_n "checking compiler warning flags... " >&6; }
4965
    # Separate out the -Werror flag as some files just cannot be
4966
    # compiled with it enabled.
4967
    for w in ${build_warnings}; do
4968
        case $w in
4969
        -Werr*) WERROR_CFLAGS=-Werror ;;
4970
        *) # Check that GCC accepts it
4971
            saved_CFLAGS="$CFLAGS"
4972
            CFLAGS="$CFLAGS $w"
4973
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974
/* end confdefs.h.  */
4975
 
4976
int
4977
main ()
4978
{
4979
 
4980
  ;
4981
  return 0;
4982
}
4983
_ACEOF
4984
if ac_fn_c_try_compile "$LINENO"; then :
4985
  WARN_CFLAGS="${WARN_CFLAGS} $w"
4986
fi
4987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988
            CFLAGS="$saved_CFLAGS"
4989
        esac
4990
    done
4991
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4992
$as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
4993
fi
4994
 
4995
 
4996
default_sim_reserved_bits="1"
4997
# Check whether --enable-sim-reserved-bits was given.
4998
if test "${enable_sim_reserved_bits+set}" = set; then :
4999
  enableval=$enable_sim_reserved_bits; case "${enableval}" in
5000
  yes)  sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
5001
  no)   sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
5002
  *)    as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
5003
esac
5004
if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5005
  echo "Setting reserved flags = $sim_reserved_bits" 6>&1
5006
fi
5007
else
5008
  sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5009
fi
5010
 
5011
 
5012
# DEPRECATED
5013
#
5014
# Instead of defining a `subtarget' macro, code should be checking
5015
# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5016
# in question.
5017
#
5018
case "${target}" in
5019
  mips64vr*-*-*)        SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
5020
  mips*tx39*)           SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
5021
  mips*-sde-elf*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5022
  mipsisa32*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5023
  mipsisa64*-*-*)       SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5024
  *)                    SIM_SUBTARGET="";;
5025
esac
5026
 
5027
 
5028
 
5029
 
5030
#
5031
# Select the byte order of the target
5032
#
5033
mips_endian=
5034
default_endian=
5035
case "${target}" in
5036
  mips64el*-*-*)        mips_endian=LITTLE_ENDIAN ;;
5037
  mips64vr*el-*-*)      default_endian=LITTLE_ENDIAN ;;
5038
  mips64*-*-*)          default_endian=BIG_ENDIAN ;;
5039
  mips16*-*-*)          default_endian=BIG_ENDIAN ;;
5040
  mipsisa32*-*-*)       default_endian=BIG_ENDIAN ;;
5041
  mipsisa64*-*-*)       default_endian=BIG_ENDIAN ;;
5042
  mips*-*-*)            default_endian=BIG_ENDIAN ;;
5043
  *)                    default_endian=BIG_ENDIAN ;;
5044
esac
5045
 
5046
wire_endian="$mips_endian"
5047
default_endian="$default_endian"
5048
# Check whether --enable-sim-endian was given.
5049
if test "${enable_sim_endian+set}" = set; then :
5050
  enableval=$enable_sim_endian; case "${enableval}" in
5051
  b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5052
  l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5053
  yes)   if test x"$wire_endian" != x; then
5054
           sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5055
         else
5056
           if test x"$default_endian" != x; then
5057
             sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5058
           else
5059
             echo "No hard-wired endian for target $target" 1>&6
5060
             sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5061
           fi
5062
         fi;;
5063
  no)    if test x"$default_endian" != x; then
5064
           sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5065
         else
5066
           if test x"$wire_endian" != x; then
5067
             sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5068
           else
5069
             echo "No default endian for target $target" 1>&6
5070
             sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5071
           fi
5072
         fi;;
5073
  *)     as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5074
esac
5075
if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5076
  echo "Setting endian flags = $sim_endian" 6>&1
5077
fi
5078
else
5079
  if test x"$default_endian" != x; then
5080
  sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5081
else
5082
  if test x"$wire_endian" != x; then
5083
    sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5084
  else
5085
    sim_endian=
5086
  fi
5087
fi
5088
fi
5089
 
5090
 
5091
 
5092
 
5093
#
5094
# Select the bitsize of the target
5095
#
5096
mips_addr_bitsize=
5097
case "${target}" in
5098
  mips*-sde-elf*)       mips_bitsize=64 ; mips_msb=63 ;;
5099
  mips64*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
5100
  mips16*-*-*)          mips_bitsize=64 ; mips_msb=63 ;;
5101
  mipsisa32*-*-*)       mips_bitsize=32 ; mips_msb=31 ;;
5102
  mipsisa64*-*-*)       mips_bitsize=64 ; mips_msb=63 ;;
5103
  mips*-*-*)            mips_bitsize=32 ; mips_msb=31 ;;
5104
  *)                    mips_bitsize=64 ; mips_msb=63 ;;
5105
esac
5106
wire_word_bitsize="$mips_bitsize"
5107
wire_word_msb="$mips_msb"
5108
wire_address_bitsize="$mips_addr_bitsize"
5109
wire_cell_bitsize=""
5110
# Check whether --enable-sim-bitsize was given.
5111
if test "${enable_sim_bitsize+set}" = set; then :
5112
  enableval=$enable_sim_bitsize; sim_bitsize=
5113
case "${enableval}" in
5114
  64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5115
  32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5116
  64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5117
  32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5118
  32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5119
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5120
      else
5121
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5122
      fi ;;
5123
  64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5124
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5125
      else
5126
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5127
      fi ;;
5128
  *)  as_fn_error "\"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
5129
esac
5130
# address bitsize
5131
tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5132
case x"${tmp}" in
5133
  x ) ;;
5134
  x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5135
  x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5136
  * ) as_fn_error "\"--enable-sim-bitsize was given address size $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
5137
esac
5138
# cell bitsize
5139
tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5140
case x"${tmp}" in
5141
  x ) ;;
5142
  x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5143
  x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5144
  * ) as_fn_error "\"--enable-sim-bitsize was given cell size $enableval.  Expected 32 or 64\"" "$LINENO" 5 ;;
5145
esac
5146
if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5147
  echo "Setting bitsize flags = $sim_bitsize" 6>&1
5148
fi
5149
else
5150
  sim_bitsize=""
5151
if test x"$wire_word_bitsize" != x; then
5152
  sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5153
fi
5154
if test x"$wire_word_msb" != x; then
5155
  sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5156
fi
5157
if test x"$wire_address_bitsize" != x; then
5158
  sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5159
fi
5160
if test x"$wire_cell_bitsize" != x; then
5161
  sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5162
fi
5163
fi
5164
 
5165
 
5166
 
5167
 
5168
#
5169
# Select the floating hardware support of the target
5170
#
5171
mips_fpu=HARDWARE_FLOATING_POINT
5172
mips_fpu_bitsize=
5173
case "${target}" in
5174
  mips*tx39*)           mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5175
  mips*-sde-elf*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5176
  mips64*-*-*)          mips_fpu=HARD_FLOATING_POINT ;;
5177
  mips16*-*-*)          mips_fpu=HARD_FLOATING_POINT ;;
5178
  mipsisa32*-*-*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5179
  mipsisa64*-*-*)       mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5180
  mips*-*-*)            mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5181
  *)                    mips_fpu=HARD_FLOATING_POINT ;;
5182
esac
5183
 
5184
default_sim_float="$mips_fpu"
5185
default_sim_float_bitsize="$mips_fpu_bitsize"
5186
# Check whether --enable-sim-float was given.
5187
if test "${enable_sim_float+set}" = set; then :
5188
  enableval=$enable_sim_float; case "${enableval}" in
5189
  yes | hard)   sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5190
  no | soft)    sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5191
  32)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5192
  64)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5193
  *)            as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5194
esac
5195
if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5196
  echo "Setting float flags = $sim_float" 6>&1
5197
fi
5198
else
5199
 
5200
sim_float=
5201
if test x"${default_sim_float}" != x""; then
5202
  sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5203
fi
5204
if test x"${default_sim_float_bitsize}" != x""; then
5205
  sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5206
fi
5207
 
5208
fi
5209
 
5210
 
5211
 
5212
 
5213
#
5214
# Select the level of SMP support
5215
#
5216
case "${target}" in
5217
  *)                    mips_smp=0 ;;
5218
esac
5219
 
5220
default_sim_smp="$mips_smp"
5221
# Check whether --enable-sim-smp was given.
5222
if test "${enable_sim_smp+set}" = set; then :
5223
  enableval=$enable_sim_smp; case "${enableval}" in
5224
  yes)  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5225
  no)   sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5226
  *)    sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5227
esac
5228
if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5229
  echo "Setting smp flags = $sim_smp" 6>&1
5230
fi
5231
else
5232
  sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5233
if test x"$silent" != x"yes"; then
5234
  echo "Setting smp flags = $sim_smp" 6>&1
5235
fi
5236
fi
5237
 
5238
 
5239
 
5240
 
5241
#
5242
# Select the IGEN architecture
5243
#
5244
sim_gen=IGEN
5245
sim_igen_machine="-M mipsIV"
5246
sim_m16_machine="-M mips16,mipsIII"
5247
sim_igen_filter="32,64,f"
5248
sim_m16_filter="16"
5249
sim_mach_default="mips8000"
5250
 
5251
case "${target}" in
5252
  mips*tx39*)           sim_gen=IGEN
5253
                        sim_igen_filter="32,f"
5254
                        sim_igen_machine="-M r3900"
5255
                        ;;
5256
  mips64vr43*-*-*)      sim_gen=IGEN
5257
                        sim_igen_machine="-M mipsIV"
5258
                        sim_mach_default="mips8000"
5259
                        ;;
5260
  mips64vr5*-*-*)       sim_gen=IGEN
5261
                        sim_igen_machine="-M vr5000"
5262
                        sim_mach_default="mips5000"
5263
                        ;;
5264
  mips64vr41*)          sim_gen=M16
5265
                        sim_igen_machine="-M vr4100"
5266
                        sim_m16_machine="-M vr4100"
5267
                        sim_igen_filter="32,64,f"
5268
                        sim_m16_filter="16"
5269
                        sim_mach_default="mips4100"
5270
                        ;;
5271
  mips64vr-*-* | mips64vrel-*-*)
5272
                        sim_gen=MULTI
5273
                        sim_multi_configs="\
5274
                          vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5275
                          vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5276
                          vr5000:mipsIV:32,64,f:mips4300,mips5000\
5277
                          vr5400:mipsIV,vr5400:32,64,f:mips5400\
5278
                          vr5500:mipsIV,vr5500:32,64,f:mips5500"
5279
                        sim_multi_default=mips5000
5280
                        ;;
5281
  mips*-sde-elf*)       sim_gen=M16
5282
                        sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5283
                        sim_m16_machine="-M mips16,mips16e,mips64r2"
5284
                        sim_igen_filter="32,64,f"
5285
                        sim_mach_default="mipsisa64r2"
5286
                        ;;
5287
  mips64*-*-*)          sim_igen_filter="32,64,f"
5288
                        sim_gen=IGEN
5289
                        ;;
5290
  mips16*-*-*)          sim_gen=M16
5291
                        sim_igen_filter="32,64,f"
5292
                        sim_m16_filter="16"
5293
                        ;;
5294
  mipsisa32r2*-*-*)     sim_gen=M16
5295
                        sim_igen_machine="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5296
                        sim_m16_machine="-M mips16,mips16e,mips32r2"
5297
                        sim_igen_filter="32,f"
5298
                        sim_mach_default="mipsisa32r2"
5299
                        ;;
5300
  mipsisa32*-*-*)       sim_gen=M16
5301
                        sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
5302
                        sim_m16_machine="-M mips16,mips16e,mips32"
5303
                        sim_igen_filter="32,f"
5304
                        sim_mach_default="mipsisa32"
5305
                        ;;
5306
  mipsisa64r2*-*-*)     sim_gen=M16
5307
                        sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
5308
                        sim_m16_machine="-M mips16,mips16e,mips64r2"
5309
                        sim_igen_filter="32,64,f"
5310
                        sim_mach_default="mipsisa64r2"
5311
                        ;;
5312
  mipsisa64sb1*-*-*)    sim_gen=IGEN
5313
                        sim_igen_machine="-M mips64,mips3d,sb1"
5314
                        sim_igen_filter="32,64,f"
5315
                        sim_mach_default="mips_sb1"
5316
                        ;;
5317
  mipsisa64*-*-*)       sim_gen=M16
5318
                        sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
5319
                        sim_m16_machine="-M mips16,mips16e,mips64"
5320
                        sim_igen_filter="32,64,f"
5321
                        sim_mach_default="mipsisa64"
5322
                        ;;
5323
  mips*lsi*)            sim_gen=M16
5324
                        sim_igen_machine="-M mipsIII,mips16"
5325
                        sim_m16_machine="-M mips16,mipsIII"
5326
                        sim_igen_filter="32,f"
5327
                        sim_m16_filter="16"
5328
                        sim_mach_default="mips4000"
5329
                        ;;
5330
  mips*-*-*)            sim_gen=IGEN
5331
                        sim_igen_filter="32,f"
5332
                        ;;
5333
esac
5334
 
5335
# The MULTI generator can combine several simulation engines into one.
5336
# executable.  A configuration which uses the MULTI should set two
5337
# variables: ${sim_multi_configs} and ${sim_multi_default}.
5338
#
5339
# ${sim_multi_configs} is the list of engines to build.  Each
5340
# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5341
# where:
5342
#
5343
# - NAME is a C-compatible prefix for the engine,
5344
# - MACHINE is a -M argument,
5345
# - FILTER is a -F argument, and
5346
# - BFDMACHS is a comma-separated list of bfd machines that the
5347
#     simulator can run.
5348
#
5349
# Each entry will have a separate simulation engine whose prefix is
5350
# m32.  If the machine list includes "mips16", there will also
5351
# be a mips16 engine, prefix m16.  The mips16 engine will be
5352
# generated using the same machine list as the 32-bit version,
5353
# but the filter will be "16" instead of FILTER.
5354
#
5355
# The simulator compares the bfd mach against BFDMACHS to decide
5356
# which engine to use.  Entries in BFDMACHS should be bfd_mach
5357
# values with "bfd_mach_" removed.  ${sim_multi_default} says
5358
# which entry should be the default.
5359
if test ${sim_gen} = MULTI; then
5360
 
5361
  # Simple sanity check.
5362
  if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5363
    as_fn_error "Error in configure.in: MULTI simulator not set up correctly" "$LINENO" 5
5364
  fi
5365
 
5366
  # Start in a known state.
5367
  rm -f multi-include.h multi-run.c
5368
  sim_multi_flags=
5369
  sim_multi_src=
5370
  sim_multi_obj=multi-run.o
5371
  sim_multi_igen_configs=
5372
  sim_seen_default=no
5373
 
5374
  cat << __EOF__ > multi-run.c
5375
/* Main entry point for MULTI simulators.
5376
   Copyright (C) 2003, 2007, 2010 Free Software Foundation, Inc.
5377
 
5378
   This program is free software; you can redistribute it and/or modify
5379
   it under the terms of the GNU General Public License as published by
5380
   the Free Software Foundation; either version 3 of the License, or
5381
   (at your option) any later version.
5382
 
5383
   This program is distributed in the hope that it will be useful,
5384
   but WITHOUT ANY WARRANTY; without even the implied warranty of
5385
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5386
   GNU General Public License for more details.
5387
 
5388
   You should have received a copy of the GNU General Public License
5389
   along with this program.  If not, see .
5390
 
5391
   --
5392
 
5393
   This file was generated by sim/mips/configure.  */
5394
 
5395
#include "sim-main.h"
5396
#include "multi-include.h"
5397
 
5398
#define SD sd
5399
#define CPU cpu
5400
 
5401
void
5402
sim_engine_run (SIM_DESC sd,
5403
                int next_cpu_nr,
5404
                int nr_cpus,
5405
                int signal) /* ignore */
5406
{
5407
  int mach;
5408
 
5409
  if (STATE_ARCHITECTURE (sd) == NULL)
5410
    mach = bfd_mach_${sim_multi_default};
5411
  else
5412
    mach = STATE_ARCHITECTURE (SD)->mach;
5413
 
5414
  switch (mach)
5415
    {
5416
__EOF__
5417
 
5418
  for fc in ${sim_multi_configs}; do
5419
 
5420
    # Split up the entry.  ${c} contains the first three elements.
5421
    # Note: outer sqaure brackets are m4 quotes.
5422
    c=`echo ${fc} | sed 's/:[^:]*$//'`
5423
    bfdmachs=`echo ${fc} | sed 's/.*://'`
5424
    name=`echo ${c} | sed 's/:.*//'`
5425
    machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5426
    filter=`echo ${c} | sed 's/.*://'`
5427
 
5428
    # Build the following lists:
5429
    #
5430
    #   sim_multi_flags: all -M and -F flags used by the simulator
5431
    #   sim_multi_src: all makefile-generated source files
5432
    #   sim_multi_obj: the objects for ${sim_multi_src}
5433
    #   sim_multi_igen_configs: igen configuration strings.
5434
    #
5435
    # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5436
    # or m16) followed by the NAME, MACHINE and FILTER part of
5437
    # the ${sim_multi_configs} entry.
5438
    sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5439
 
5440
    # Check whether mips16 handling is needed.
5441
    case ${c} in
5442
      *:*mips16*:*)
5443
        # Run igen twice, once for normal mode and once for mips16.
5444
        ws="m32 m16"
5445
 
5446
        # The top-level function for the mips16 simulator is
5447
        # in a file m16${name}_run.c, generated by the
5448
        # tmp-run-multi Makefile rule.
5449
        sim_multi_src="${sim_multi_src} m16${name}_run.c"
5450
        sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
5451
        sim_multi_flags="${sim_multi_flags} -F 16"
5452
        ;;
5453
      *)
5454
        ws=m32
5455
        ;;
5456
    esac
5457
 
5458
    # Now add the list of igen-generated files to ${sim_multi_src}
5459
    # and ${sim_multi_obj}.
5460
    for w in ${ws}; do
5461
      for base in engine icache idecode model semantics support; do
5462
        sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
5463
        sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
5464
        sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
5465
      done
5466
      sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5467
    done
5468
 
5469
    # Add an include for the engine.h file.  This file declares the
5470
    # top-level foo_engine_run() function.
5471
    echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5472
 
5473
    # Add case statements for this engine to sim_engine_run().
5474
    for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5475
      echo "    case bfd_mach_${mach}:" >> multi-run.c
5476
      if test ${mach} = ${sim_multi_default}; then
5477
        echo "    default:" >> multi-run.c
5478
        sim_seen_default=yes
5479
      fi
5480
    done
5481
    echo "      ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5482
      >> multi-run.c
5483
    echo "      break;" >> multi-run.c
5484
  done
5485
 
5486
  # Check whether we added a 'default:' label.
5487
  if test ${sim_seen_default} = no; then
5488
    as_fn_error "Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5489
  fi
5490
 
5491
  cat << __EOF__ >> multi-run.c
5492
    }
5493
}
5494
 
5495
int
5496
mips_mach_multi (SIM_DESC sd)
5497
{
5498
  if (STATE_ARCHITECTURE (sd) == NULL)
5499
    return bfd_mach_${sim_multi_default};
5500
 
5501
  switch (STATE_ARCHITECTURE (SD)->mach)
5502
    {
5503
__EOF__
5504
 
5505
  # Add case statements for this engine to mips_mach_multi().
5506
  for fc in ${sim_multi_configs}; do
5507
 
5508
    # Split up the entry.  ${c} contains the first three elements.
5509
    # Note: outer sqaure brackets are m4 quotes.
5510
    c=`echo ${fc} | sed 's/:[^:]*$//'`
5511
    bfdmachs=`echo ${fc} | sed 's/.*://'`
5512
 
5513
    for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5514
      echo "    case bfd_mach_${mach}:" >> multi-run.c
5515
    done
5516
  done
5517
 
5518
  cat << __EOF__ >> multi-run.c
5519
      return (STATE_ARCHITECTURE (SD)->mach);
5520
    default:
5521
      return bfd_mach_${sim_multi_default};
5522
    }
5523
}
5524
__EOF__
5525
 
5526
  SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5527
else
5528
  # For clean-extra
5529
  sim_multi_src=doesnt-exist.c
5530
 
5531
  if test x"${sim_mach_default}" = x""; then
5532
    as_fn_error "Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5533
  fi
5534
  SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5535
fi
5536
sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5537
sim_m16_flags=" -F ${sim_m16_filter}  ${sim_m16_machine}  ${sim_igen_smp}"
5538
 
5539
 
5540
 
5541
 
5542
 
5543
 
5544
 
5545
 
5546
 
5547
#
5548
# Add simulated hardware devices
5549
#
5550
hw_enabled=no
5551
case "${target}" in
5552
  mips*tx39*)
5553
        hw_enabled=yes
5554
        hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5555
        mips_extra_objs="dv-sockser.o"
5556
        SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5557
        ;;
5558
  *)
5559
        mips_extra_objs=""
5560
        ;;
5561
esac
5562
 
5563
if test x"$hw_enabled" = x"yes"; then
5564
  sim_hw_p=yes
5565
else
5566
  sim_hw_p=no
5567
fi
5568
if test "$hw_devices"; then
5569
  hardware="core pal glue"
5570
else
5571
  hardware="core pal glue $hw_extra_devices"
5572
fi
5573
sim_hw_cflags="-DWITH_HW=1"
5574
sim_hw="$hardware"
5575
sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5576
# Check whether --enable-sim-hardware was given.
5577
if test "${enable_sim_hardware+set}" = set; then :
5578
  enableval=$enable_sim_hardware;
5579
case "${enableval}" in
5580
  yes)  sim_hw_p=yes;;
5581
  no)   sim_hw_p=no;;
5582
  ,*)   sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5583
  *,)   sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5584
  *)    sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5585
esac
5586
if test "$sim_hw_p" != yes; then
5587
  sim_hw_objs=
5588
  sim_hw_cflags="-DWITH_HW=0"
5589
  sim_hw=
5590
else
5591
  sim_hw_cflags="-DWITH_HW=1"
5592
  # remove duplicates
5593
  sim_hw=""
5594
  sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
5595
  for i in $hardware ; do
5596
    case " $sim_hw " in
5597
      *" $i "*) ;;
5598
      *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5599
    esac
5600
  done
5601
fi
5602
if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5603
  echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5604
fi
5605
else
5606
 
5607
if test "$sim_hw_p" != yes; then
5608
  sim_hw_objs=
5609
  sim_hw_cflags="-DWITH_HW=0"
5610
  sim_hw=
5611
fi
5612
if test x"$silent" != x"yes"; then
5613
  echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5614
fi
5615
fi
5616
 
5617
 
5618
 
5619
 
5620
# Choose simulator engine
5621
case "${target}" in
5622
  *)    mips_igen_engine="engine.o"
5623
        ;;
5624
esac
5625
 
5626
 
5627
 
5628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5629
$as_echo_n "checking for X... " >&6; }
5630
 
5631
 
5632
# Check whether --with-x was given.
5633
if test "${with_x+set}" = set; then :
5634
  withval=$with_x;
5635
fi
5636
 
5637
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5638
if test "x$with_x" = xno; then
5639
  # The user explicitly disabled X.
5640
  have_x=disabled
5641
else
5642
  case $x_includes,$x_libraries in #(
5643
    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5644
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5645
  $as_echo_n "(cached) " >&6
5646
else
5647
  # One or both of the vars are not set, and there is no cached value.
5648
ac_x_includes=no ac_x_libraries=no
5649
rm -f -r conftest.dir
5650
if mkdir conftest.dir; then
5651
  cd conftest.dir
5652
  cat >Imakefile <<'_ACEOF'
5653
incroot:
5654
        @echo incroot='${INCROOT}'
5655
usrlibdir:
5656
        @echo usrlibdir='${USRLIBDIR}'
5657
libdir:
5658
        @echo libdir='${LIBDIR}'
5659
_ACEOF
5660
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5661
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5662
    for ac_var in incroot usrlibdir libdir; do
5663
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5664
    done
5665
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5666
    for ac_extension in a so sl dylib la dll; do
5667
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5668
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
5669
        ac_im_usrlibdir=$ac_im_libdir; break
5670
      fi
5671
    done
5672
    # Screen out bogus values from the imake configuration.  They are
5673
    # bogus both because they are the default anyway, and because
5674
    # using them would break gcc on systems where it needs fixed includes.
5675
    case $ac_im_incroot in
5676
        /usr/include) ac_x_includes= ;;
5677
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5678
    esac
5679
    case $ac_im_usrlibdir in
5680
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5681
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5682
    esac
5683
  fi
5684
  cd ..
5685
  rm -f -r conftest.dir
5686
fi
5687
 
5688
# Standard set of common directories for X headers.
5689
# Check X11 before X11Rn because it is often a symlink to the current release.
5690
ac_x_header_dirs='
5691
/usr/X11/include
5692
/usr/X11R7/include
5693
/usr/X11R6/include
5694
/usr/X11R5/include
5695
/usr/X11R4/include
5696
 
5697
/usr/include/X11
5698
/usr/include/X11R7
5699
/usr/include/X11R6
5700
/usr/include/X11R5
5701
/usr/include/X11R4
5702
 
5703
/usr/local/X11/include
5704
/usr/local/X11R7/include
5705
/usr/local/X11R6/include
5706
/usr/local/X11R5/include
5707
/usr/local/X11R4/include
5708
 
5709
/usr/local/include/X11
5710
/usr/local/include/X11R7
5711
/usr/local/include/X11R6
5712
/usr/local/include/X11R5
5713
/usr/local/include/X11R4
5714
 
5715
/usr/X386/include
5716
/usr/x386/include
5717
/usr/XFree86/include/X11
5718
 
5719
/usr/include
5720
/usr/local/include
5721
/usr/unsupported/include
5722
/usr/athena/include
5723
/usr/local/x11r5/include
5724
/usr/lpp/Xamples/include
5725
 
5726
/usr/openwin/include
5727
/usr/openwin/share/include'
5728
 
5729
if test "$ac_x_includes" = no; then
5730
  # Guess where to find include files, by looking for Xlib.h.
5731
  # First, try using that file with no special directory specified.
5732
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733
/* end confdefs.h.  */
5734
#include 
5735
_ACEOF
5736
if ac_fn_c_try_cpp "$LINENO"; then :
5737
  # We can compile using X headers with no special include directory.
5738
ac_x_includes=
5739
else
5740
  for ac_dir in $ac_x_header_dirs; do
5741
  if test -r "$ac_dir/X11/Xlib.h"; then
5742
    ac_x_includes=$ac_dir
5743
    break
5744
  fi
5745
done
5746
fi
5747
rm -f conftest.err conftest.$ac_ext
5748
fi # $ac_x_includes = no
5749
 
5750
if test "$ac_x_libraries" = no; then
5751
  # Check for the libraries.
5752
  # See if we find them without any special options.
5753
  # Don't add to $LIBS permanently.
5754
  ac_save_LIBS=$LIBS
5755
  LIBS="-lX11 $LIBS"
5756
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757
/* end confdefs.h.  */
5758
#include 
5759
int
5760
main ()
5761
{
5762
XrmInitialize ()
5763
  ;
5764
  return 0;
5765
}
5766
_ACEOF
5767
if ac_fn_c_try_link "$LINENO"; then :
5768
  LIBS=$ac_save_LIBS
5769
# We can link X programs with no special library path.
5770
ac_x_libraries=
5771
else
5772
  LIBS=$ac_save_LIBS
5773
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5774
do
5775
  # Don't even attempt the hair of trying to link an X program!
5776
  for ac_extension in a so sl dylib la dll; do
5777
    if test -r "$ac_dir/libX11.$ac_extension"; then
5778
      ac_x_libraries=$ac_dir
5779
      break 2
5780
    fi
5781
  done
5782
done
5783
fi
5784
rm -f core conftest.err conftest.$ac_objext \
5785
    conftest$ac_exeext conftest.$ac_ext
5786
fi # $ac_x_libraries = no
5787
 
5788
case $ac_x_includes,$ac_x_libraries in #(
5789
  no,* | *,no | *\'*)
5790
    # Didn't find X, or a directory has "'" in its name.
5791
    ac_cv_have_x="have_x=no";; #(
5792
  *)
5793
    # Record where we found X for the cache.
5794
    ac_cv_have_x="have_x=yes\
5795
        ac_x_includes='$ac_x_includes'\
5796
        ac_x_libraries='$ac_x_libraries'"
5797
esac
5798
fi
5799
;; #(
5800
    *) have_x=yes;;
5801
  esac
5802
  eval "$ac_cv_have_x"
5803
fi # $with_x != no
5804
 
5805
if test "$have_x" != yes; then
5806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5807
$as_echo "$have_x" >&6; }
5808
  no_x=yes
5809
else
5810
  # If each of the values was on the command line, it overrides each guess.
5811
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5812
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5813
  # Update the cache value to reflect the command line values.
5814
  ac_cv_have_x="have_x=yes\
5815
        ac_x_includes='$x_includes'\
5816
        ac_x_libraries='$x_libraries'"
5817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5818
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5819
fi
5820
 
5821
mips_extra_libs=""
5822
 
5823
 
5824
for ac_header in string.h strings.h stdlib.h stdlib.h
5825
do :
5826
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5827
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5828
eval as_val=\$$as_ac_Header
5829
   if test "x$as_val" = x""yes; then :
5830
  cat >>confdefs.h <<_ACEOF
5831
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5832
_ACEOF
5833
 
5834
fi
5835
 
5836
done
5837
 
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
5839
$as_echo_n "checking for fabs in -lm... " >&6; }
5840
if test "${ac_cv_lib_m_fabs+set}" = set; then :
5841
  $as_echo_n "(cached) " >&6
5842
else
5843
  ac_check_lib_save_LIBS=$LIBS
5844
LIBS="-lm  $LIBS"
5845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846
/* end confdefs.h.  */
5847
 
5848
/* Override any GCC internal prototype to avoid an error.
5849
   Use char because int might match the return type of a GCC
5850
   builtin and then its argument prototype would still apply.  */
5851
#ifdef __cplusplus
5852
extern "C"
5853
#endif
5854
char fabs ();
5855
int
5856
main ()
5857
{
5858
return fabs ();
5859
  ;
5860
  return 0;
5861
}
5862
_ACEOF
5863
if ac_fn_c_try_link "$LINENO"; then :
5864
  ac_cv_lib_m_fabs=yes
5865
else
5866
  ac_cv_lib_m_fabs=no
5867
fi
5868
rm -f core conftest.err conftest.$ac_objext \
5869
    conftest$ac_exeext conftest.$ac_ext
5870
LIBS=$ac_check_lib_save_LIBS
5871
fi
5872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
5873
$as_echo "$ac_cv_lib_m_fabs" >&6; }
5874
if test "x$ac_cv_lib_m_fabs" = x""yes; then :
5875
  cat >>confdefs.h <<_ACEOF
5876
#define HAVE_LIBM 1
5877
_ACEOF
5878
 
5879
  LIBS="-lm $LIBS"
5880
 
5881
fi
5882
 
5883
for ac_func in aint anint sqrt
5884
do :
5885
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5886
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5887
eval as_val=\$$as_ac_var
5888
   if test "x$as_val" = x""yes; then :
5889
  cat >>confdefs.h <<_ACEOF
5890
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5891
_ACEOF
5892
 
5893
fi
5894
done
5895
 
5896
 
5897
 
5898
ac_sources="$sim_link_files"
5899
ac_dests="$sim_link_links"
5900
while test -n "$ac_sources"; do
5901
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5902
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
5903
  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5904
done
5905
ac_config_links="$ac_config_links $ac_config_links_1"
5906
 
5907
cgen_breaks=""
5908
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5909
cgen_breaks="break cgen_rtx_error";
5910
fi
5911
 
5912
ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5913
 
5914
ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5915
 
5916
ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5917
 
5918
ac_config_commands="$ac_config_commands Makefile"
5919
 
5920
ac_config_commands="$ac_config_commands stamp-h"
5921
 
5922
cat >confcache <<\_ACEOF
5923
# This file is a shell script that caches the results of configure
5924
# tests run on this system so they can be shared between configure
5925
# scripts and configure runs, see configure's option --config-cache.
5926
# It is not useful on other systems.  If it contains results you don't
5927
# want to keep, you may remove or edit it.
5928
#
5929
# config.status only pays attention to the cache file if you give it
5930
# the --recheck option to rerun configure.
5931
#
5932
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5933
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5934
# following values.
5935
 
5936
_ACEOF
5937
 
5938
# The following way of writing the cache mishandles newlines in values,
5939
# but we know of no workaround that is simple, portable, and efficient.
5940
# So, we kill variables containing newlines.
5941
# Ultrix sh set writes to stderr and can't be redirected directly,
5942
# and sets the high bit in the cache file unless we assign to the vars.
5943
(
5944
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5945
    eval ac_val=\$$ac_var
5946
    case $ac_val in #(
5947
    *${as_nl}*)
5948
      case $ac_var in #(
5949
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5950
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5951
      esac
5952
      case $ac_var in #(
5953
      _ | IFS | as_nl) ;; #(
5954
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5955
      *) { eval $ac_var=; unset $ac_var;} ;;
5956
      esac ;;
5957
    esac
5958
  done
5959
 
5960
  (set) 2>&1 |
5961
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5962
    *${as_nl}ac_space=\ *)
5963
      # `set' does not quote correctly, so add quotes: double-quote
5964
      # substitution turns \\\\ into \\, and sed turns \\ into \.
5965
      sed -n \
5966
        "s/'/'\\\\''/g;
5967
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5968
      ;; #(
5969
    *)
5970
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5971
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5972
      ;;
5973
    esac |
5974
    sort
5975
) |
5976
  sed '
5977
     /^ac_cv_env_/b end
5978
     t clear
5979
     :clear
5980
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5981
     t end
5982
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5983
     :end' >>confcache
5984
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5985
  if test -w "$cache_file"; then
5986
    test "x$cache_file" != "x/dev/null" &&
5987
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5988
$as_echo "$as_me: updating cache $cache_file" >&6;}
5989
    cat confcache >$cache_file
5990
  else
5991
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5992
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5993
  fi
5994
fi
5995
rm -f confcache
5996
 
5997
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5998
# Let make expand exec_prefix.
5999
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6000
 
6001
DEFS=-DHAVE_CONFIG_H
6002
 
6003
ac_libobjs=
6004
ac_ltlibobjs=
6005
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6006
  # 1. Remove the extension, and $U if already installed.
6007
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6008
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6009
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6010
  #    will be set to the directory where LIBOBJS objects are built.
6011
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6012
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6013
done
6014
LIBOBJS=$ac_libobjs
6015
 
6016
LTLIBOBJS=$ac_ltlibobjs
6017
 
6018
 
6019
 
6020
 
6021
: ${CONFIG_STATUS=./config.status}
6022
ac_write_fail=0
6023
ac_clean_files_save=$ac_clean_files
6024
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6026
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6027
as_write_fail=0
6028
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6029
#! $SHELL
6030
# Generated by $as_me.
6031
# Run this file to recreate the current configuration.
6032
# Compiler output produced by configure, useful for debugging
6033
# configure, is in config.log if it exists.
6034
 
6035
debug=false
6036
ac_cs_recheck=false
6037
ac_cs_silent=false
6038
 
6039
SHELL=\${CONFIG_SHELL-$SHELL}
6040
export SHELL
6041
_ASEOF
6042
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6043
## -------------------- ##
6044
## M4sh Initialization. ##
6045
## -------------------- ##
6046
 
6047
# Be more Bourne compatible
6048
DUALCASE=1; export DUALCASE # for MKS sh
6049
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6050
  emulate sh
6051
  NULLCMD=:
6052
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6053
  # is contrary to our usage.  Disable this feature.
6054
  alias -g '${1+"$@"}'='"$@"'
6055
  setopt NO_GLOB_SUBST
6056
else
6057
  case `(set -o) 2>/dev/null` in #(
6058
  *posix*) :
6059
    set -o posix ;; #(
6060
  *) :
6061
     ;;
6062
esac
6063
fi
6064
 
6065
 
6066
as_nl='
6067
'
6068
export as_nl
6069
# Printing a long string crashes Solaris 7 /usr/bin/printf.
6070
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6071
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6072
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6073
# Prefer a ksh shell builtin over an external printf program on Solaris,
6074
# but without wasting forks for bash or zsh.
6075
if test -z "$BASH_VERSION$ZSH_VERSION" \
6076
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6077
  as_echo='print -r --'
6078
  as_echo_n='print -rn --'
6079
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6080
  as_echo='printf %s\n'
6081
  as_echo_n='printf %s'
6082
else
6083
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6084
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6085
    as_echo_n='/usr/ucb/echo -n'
6086
  else
6087
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6088
    as_echo_n_body='eval
6089
      arg=$1;
6090
      case $arg in #(
6091
      *"$as_nl"*)
6092
        expr "X$arg" : "X\\(.*\\)$as_nl";
6093
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6094
      esac;
6095
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6096
    '
6097
    export as_echo_n_body
6098
    as_echo_n='sh -c $as_echo_n_body as_echo'
6099
  fi
6100
  export as_echo_body
6101
  as_echo='sh -c $as_echo_body as_echo'
6102
fi
6103
 
6104
# The user is always right.
6105
if test "${PATH_SEPARATOR+set}" != set; then
6106
  PATH_SEPARATOR=:
6107
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6108
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6109
      PATH_SEPARATOR=';'
6110
  }
6111
fi
6112
 
6113
 
6114
# IFS
6115
# We need space, tab and new line, in precisely that order.  Quoting is
6116
# there to prevent editors from complaining about space-tab.
6117
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6118
# splitting by setting IFS to empty value.)
6119
IFS=" ""        $as_nl"
6120
 
6121
# Find who we are.  Look in the path if we contain no directory separator.
6122
case $0 in #((
6123
  *[\\/]* ) as_myself=$0 ;;
6124
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125
for as_dir in $PATH
6126
do
6127
  IFS=$as_save_IFS
6128
  test -z "$as_dir" && as_dir=.
6129
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6130
  done
6131
IFS=$as_save_IFS
6132
 
6133
     ;;
6134
esac
6135
# We did not find ourselves, most probably we were run as `sh COMMAND'
6136
# in which case we are not to be found in the path.
6137
if test "x$as_myself" = x; then
6138
  as_myself=$0
6139
fi
6140
if test ! -f "$as_myself"; then
6141
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6142
  exit 1
6143
fi
6144
 
6145
# Unset variables that we do not need and which cause bugs (e.g. in
6146
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6147
# suppresses any "Segmentation fault" message there.  '((' could
6148
# trigger a bug in pdksh 5.2.14.
6149
for as_var in BASH_ENV ENV MAIL MAILPATH
6150
do eval test x\${$as_var+set} = xset \
6151
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6152
done
6153
PS1='$ '
6154
PS2='> '
6155
PS4='+ '
6156
 
6157
# NLS nuisances.
6158
LC_ALL=C
6159
export LC_ALL
6160
LANGUAGE=C
6161
export LANGUAGE
6162
 
6163
# CDPATH.
6164
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6165
 
6166
 
6167
# as_fn_error ERROR [LINENO LOG_FD]
6168
# ---------------------------------
6169
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6170
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6171
# script with status $?, using 1 if that was 0.
6172
as_fn_error ()
6173
{
6174
  as_status=$?; test $as_status -eq 0 && as_status=1
6175
  if test "$3"; then
6176
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6177
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6178
  fi
6179
  $as_echo "$as_me: error: $1" >&2
6180
  as_fn_exit $as_status
6181
} # as_fn_error
6182
 
6183
 
6184
# as_fn_set_status STATUS
6185
# -----------------------
6186
# Set $? to STATUS, without forking.
6187
as_fn_set_status ()
6188
{
6189
  return $1
6190
} # as_fn_set_status
6191
 
6192
# as_fn_exit STATUS
6193
# -----------------
6194
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6195
as_fn_exit ()
6196
{
6197
  set +e
6198
  as_fn_set_status $1
6199
  exit $1
6200
} # as_fn_exit
6201
 
6202
# as_fn_unset VAR
6203
# ---------------
6204
# Portably unset VAR.
6205
as_fn_unset ()
6206
{
6207
  { eval $1=; unset $1;}
6208
}
6209
as_unset=as_fn_unset
6210
# as_fn_append VAR VALUE
6211
# ----------------------
6212
# Append the text in VALUE to the end of the definition contained in VAR. Take
6213
# advantage of any shell optimizations that allow amortized linear growth over
6214
# repeated appends, instead of the typical quadratic growth present in naive
6215
# implementations.
6216
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6217
  eval 'as_fn_append ()
6218
  {
6219
    eval $1+=\$2
6220
  }'
6221
else
6222
  as_fn_append ()
6223
  {
6224
    eval $1=\$$1\$2
6225
  }
6226
fi # as_fn_append
6227
 
6228
# as_fn_arith ARG...
6229
# ------------------
6230
# Perform arithmetic evaluation on the ARGs, and store the result in the
6231
# global $as_val. Take advantage of shells that can avoid forks. The arguments
6232
# must be portable across $(()) and expr.
6233
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6234
  eval 'as_fn_arith ()
6235
  {
6236
    as_val=$(( $* ))
6237
  }'
6238
else
6239
  as_fn_arith ()
6240
  {
6241
    as_val=`expr "$@" || test $? -eq 1`
6242
  }
6243
fi # as_fn_arith
6244
 
6245
 
6246
if expr a : '\(a\)' >/dev/null 2>&1 &&
6247
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6248
  as_expr=expr
6249
else
6250
  as_expr=false
6251
fi
6252
 
6253
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6254
  as_basename=basename
6255
else
6256
  as_basename=false
6257
fi
6258
 
6259
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6260
  as_dirname=dirname
6261
else
6262
  as_dirname=false
6263
fi
6264
 
6265
as_me=`$as_basename -- "$0" ||
6266
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6267
         X"$0" : 'X\(//\)$' \| \
6268
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6269
$as_echo X/"$0" |
6270
    sed '/^.*\/\([^/][^/]*\)\/*$/{
6271
            s//\1/
6272
            q
6273
          }
6274
          /^X\/\(\/\/\)$/{
6275
            s//\1/
6276
            q
6277
          }
6278
          /^X\/\(\/\).*/{
6279
            s//\1/
6280
            q
6281
          }
6282
          s/.*/./; q'`
6283
 
6284
# Avoid depending upon Character Ranges.
6285
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6286
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6287
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6288
as_cr_digits='0123456789'
6289
as_cr_alnum=$as_cr_Letters$as_cr_digits
6290
 
6291
ECHO_C= ECHO_N= ECHO_T=
6292
case `echo -n x` in #(((((
6293
-n*)
6294
  case `echo 'xy\c'` in
6295
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6296
  xy)  ECHO_C='\c';;
6297
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6298
       ECHO_T=' ';;
6299
  esac;;
6300
*)
6301
  ECHO_N='-n';;
6302
esac
6303
 
6304
rm -f conf$$ conf$$.exe conf$$.file
6305
if test -d conf$$.dir; then
6306
  rm -f conf$$.dir/conf$$.file
6307
else
6308
  rm -f conf$$.dir
6309
  mkdir conf$$.dir 2>/dev/null
6310
fi
6311
if (echo >conf$$.file) 2>/dev/null; then
6312
  if ln -s conf$$.file conf$$ 2>/dev/null; then
6313
    as_ln_s='ln -s'
6314
    # ... but there are two gotchas:
6315
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6316
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6317
    # In both cases, we have to default to `cp -p'.
6318
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6319
      as_ln_s='cp -p'
6320
  elif ln conf$$.file conf$$ 2>/dev/null; then
6321
    as_ln_s=ln
6322
  else
6323
    as_ln_s='cp -p'
6324
  fi
6325
else
6326
  as_ln_s='cp -p'
6327
fi
6328
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6329
rmdir conf$$.dir 2>/dev/null
6330
 
6331
 
6332
# as_fn_mkdir_p
6333
# -------------
6334
# Create "$as_dir" as a directory, including parents if necessary.
6335
as_fn_mkdir_p ()
6336
{
6337
 
6338
  case $as_dir in #(
6339
  -*) as_dir=./$as_dir;;
6340
  esac
6341
  test -d "$as_dir" || eval $as_mkdir_p || {
6342
    as_dirs=
6343
    while :; do
6344
      case $as_dir in #(
6345
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6346
      *) as_qdir=$as_dir;;
6347
      esac
6348
      as_dirs="'$as_qdir' $as_dirs"
6349
      as_dir=`$as_dirname -- "$as_dir" ||
6350
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6351
         X"$as_dir" : 'X\(//\)[^/]' \| \
6352
         X"$as_dir" : 'X\(//\)$' \| \
6353
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6354
$as_echo X"$as_dir" |
6355
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6356
            s//\1/
6357
            q
6358
          }
6359
          /^X\(\/\/\)[^/].*/{
6360
            s//\1/
6361
            q
6362
          }
6363
          /^X\(\/\/\)$/{
6364
            s//\1/
6365
            q
6366
          }
6367
          /^X\(\/\).*/{
6368
            s//\1/
6369
            q
6370
          }
6371
          s/.*/./; q'`
6372
      test -d "$as_dir" && break
6373
    done
6374
    test -z "$as_dirs" || eval "mkdir $as_dirs"
6375
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6376
 
6377
 
6378
} # as_fn_mkdir_p
6379
if mkdir -p . 2>/dev/null; then
6380
  as_mkdir_p='mkdir -p "$as_dir"'
6381
else
6382
  test -d ./-p && rmdir ./-p
6383
  as_mkdir_p=false
6384
fi
6385
 
6386
if test -x / >/dev/null 2>&1; then
6387
  as_test_x='test -x'
6388
else
6389
  if ls -dL / >/dev/null 2>&1; then
6390
    as_ls_L_option=L
6391
  else
6392
    as_ls_L_option=
6393
  fi
6394
  as_test_x='
6395
    eval sh -c '\''
6396
      if test -d "$1"; then
6397
        test -d "$1/.";
6398
      else
6399
        case $1 in #(
6400
        -*)set "./$1";;
6401
        esac;
6402
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6403
        ???[sx]*):;;*)false;;esac;fi
6404
    '\'' sh
6405
  '
6406
fi
6407
as_executable_p=$as_test_x
6408
 
6409
# Sed expression to map a string onto a valid CPP name.
6410
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6411
 
6412
# Sed expression to map a string onto a valid variable name.
6413
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6414
 
6415
 
6416
exec 6>&1
6417
## ----------------------------------- ##
6418
## Main body of $CONFIG_STATUS script. ##
6419
## ----------------------------------- ##
6420
_ASEOF
6421
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6422
 
6423
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6424
# Save the log message, to keep $0 and so on meaningful, and to
6425
# report actual input values of CONFIG_FILES etc. instead of their
6426
# values after options handling.
6427
ac_log="
6428
This file was extended by $as_me, which was
6429
generated by GNU Autoconf 2.64.  Invocation command line was
6430
 
6431
  CONFIG_FILES    = $CONFIG_FILES
6432
  CONFIG_HEADERS  = $CONFIG_HEADERS
6433
  CONFIG_LINKS    = $CONFIG_LINKS
6434
  CONFIG_COMMANDS = $CONFIG_COMMANDS
6435
  $ $0 $@
6436
 
6437
on `(hostname || uname -n) 2>/dev/null | sed 1q`
6438
"
6439
 
6440
_ACEOF
6441
 
6442
case $ac_config_files in *"
6443
"*) set x $ac_config_files; shift; ac_config_files=$*;;
6444
esac
6445
 
6446
case $ac_config_headers in *"
6447
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6448
esac
6449
 
6450
 
6451
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6452
# Files that config.status was made for.
6453
config_files="$ac_config_files"
6454
config_headers="$ac_config_headers"
6455
config_links="$ac_config_links"
6456
config_commands="$ac_config_commands"
6457
 
6458
_ACEOF
6459
 
6460
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6461
ac_cs_usage="\
6462
\`$as_me' instantiates files and other configuration actions
6463
from templates according to the current configuration.  Unless the files
6464
and actions are specified as TAGs, all are instantiated by default.
6465
 
6466
Usage: $0 [OPTION]... [TAG]...
6467
 
6468
  -h, --help       print this help, then exit
6469
  -V, --version    print version number and configuration settings, then exit
6470
  -q, --quiet, --silent
6471
                   do not print progress messages
6472
  -d, --debug      don't remove temporary files
6473
      --recheck    update $as_me by reconfiguring in the same conditions
6474
      --file=FILE[:TEMPLATE]
6475
                   instantiate the configuration file FILE
6476
      --header=FILE[:TEMPLATE]
6477
                   instantiate the configuration header FILE
6478
 
6479
Configuration files:
6480
$config_files
6481
 
6482
Configuration headers:
6483
$config_headers
6484
 
6485
Configuration links:
6486
$config_links
6487
 
6488
Configuration commands:
6489
$config_commands
6490
 
6491
Report bugs to the package provider."
6492
 
6493
_ACEOF
6494
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6495
ac_cs_version="\\
6496
config.status
6497
configured by $0, generated by GNU Autoconf 2.64,
6498
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6499
 
6500
Copyright (C) 2009 Free Software Foundation, Inc.
6501
This config.status script is free software; the Free Software Foundation
6502
gives unlimited permission to copy, distribute and modify it."
6503
 
6504
ac_pwd='$ac_pwd'
6505
srcdir='$srcdir'
6506
INSTALL='$INSTALL'
6507
test -n "\$AWK" || AWK=awk
6508
_ACEOF
6509
 
6510
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6511
# The default lists apply if the user does not specify any file.
6512
ac_need_defaults=:
6513
while test $# != 0
6514
do
6515
  case $1 in
6516
  --*=*)
6517
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6518
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6519
    ac_shift=:
6520
    ;;
6521
  *)
6522
    ac_option=$1
6523
    ac_optarg=$2
6524
    ac_shift=shift
6525
    ;;
6526
  esac
6527
 
6528
  case $ac_option in
6529
  # Handling of the options.
6530
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6531
    ac_cs_recheck=: ;;
6532
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6533
    $as_echo "$ac_cs_version"; exit ;;
6534
  --debug | --debu | --deb | --de | --d | -d )
6535
    debug=: ;;
6536
  --file | --fil | --fi | --f )
6537
    $ac_shift
6538
    case $ac_optarg in
6539
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6540
    esac
6541
    as_fn_append CONFIG_FILES " '$ac_optarg'"
6542
    ac_need_defaults=false;;
6543
  --header | --heade | --head | --hea )
6544
    $ac_shift
6545
    case $ac_optarg in
6546
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6547
    esac
6548
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6549
    ac_need_defaults=false;;
6550
  --he | --h)
6551
    # Conflict between --help and --header
6552
    as_fn_error "ambiguous option: \`$1'
6553
Try \`$0 --help' for more information.";;
6554
  --help | --hel | -h )
6555
    $as_echo "$ac_cs_usage"; exit ;;
6556
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6557
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6558
    ac_cs_silent=: ;;
6559
 
6560
  # This is an error.
6561
  -*) as_fn_error "unrecognized option: \`$1'
6562
Try \`$0 --help' for more information." ;;
6563
 
6564
  *) as_fn_append ac_config_targets " $1"
6565
     ac_need_defaults=false ;;
6566
 
6567
  esac
6568
  shift
6569
done
6570
 
6571
ac_configure_extra_args=
6572
 
6573
if $ac_cs_silent; then
6574
  exec 6>/dev/null
6575
  ac_configure_extra_args="$ac_configure_extra_args --silent"
6576
fi
6577
 
6578
_ACEOF
6579
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6580
if \$ac_cs_recheck; then
6581
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6582
  shift
6583
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6584
  CONFIG_SHELL='$SHELL'
6585
  export CONFIG_SHELL
6586
  exec "\$@"
6587
fi
6588
 
6589
_ACEOF
6590
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6591
exec 5>>config.log
6592
{
6593
  echo
6594
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6595
## Running $as_me. ##
6596
_ASBOX
6597
  $as_echo "$ac_log"
6598
} >&5
6599
 
6600
_ACEOF
6601
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6602
_ACEOF
6603
 
6604
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6605
 
6606
# Handling of arguments.
6607
for ac_config_target in $ac_config_targets
6608
do
6609
  case $ac_config_target in
6610
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6611
    "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6612
    "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6613
    "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6614
    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6615
    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6616
    "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6617
 
6618
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6619
  esac
6620
done
6621
 
6622
 
6623
# If the user did not use the arguments to specify the items to instantiate,
6624
# then the envvar interface is used.  Set only those that are not.
6625
# We use the long form for the default assignment because of an extremely
6626
# bizarre bug on SunOS 4.1.3.
6627
if $ac_need_defaults; then
6628
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6629
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6630
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6631
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6632
fi
6633
 
6634
# Have a temporary directory for convenience.  Make it in the build tree
6635
# simply because there is no reason against having it here, and in addition,
6636
# creating and moving files from /tmp can sometimes cause problems.
6637
# Hook for its removal unless debugging.
6638
# Note that there is a small window in which the directory will not be cleaned:
6639
# after its creation but before its name has been assigned to `$tmp'.
6640
$debug ||
6641
{
6642
  tmp=
6643
  trap 'exit_status=$?
6644
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6645
' 0
6646
  trap 'as_fn_exit 1' 1 2 13 15
6647
}
6648
# Create a (secure) tmp directory for tmp files.
6649
 
6650
{
6651
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6652
  test -n "$tmp" && test -d "$tmp"
6653
}  ||
6654
{
6655
  tmp=./conf$$-$RANDOM
6656
  (umask 077 && mkdir "$tmp")
6657
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6658
 
6659
# Set up the scripts for CONFIG_FILES section.
6660
# No need to generate them if there are no CONFIG_FILES.
6661
# This happens for instance with `./config.status config.h'.
6662
if test -n "$CONFIG_FILES"; then
6663
 
6664
 
6665
ac_cr=`echo X | tr X '\015'`
6666
# On cygwin, bash can eat \r inside `` if the user requested igncr.
6667
# But we know of no other shell where ac_cr would be empty at this
6668
# point, so we can use a bashism as a fallback.
6669
if test "x$ac_cr" = x; then
6670
  eval ac_cr=\$\'\\r\'
6671
fi
6672
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
6673
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6674
  ac_cs_awk_cr='\r'
6675
else
6676
  ac_cs_awk_cr=$ac_cr
6677
fi
6678
 
6679
echo 'BEGIN {' >"$tmp/subs1.awk" &&
6680
_ACEOF
6681
 
6682
 
6683
{
6684
  echo "cat >conf$$subs.awk <<_ACEOF" &&
6685
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6686
  echo "_ACEOF"
6687
} >conf$$subs.sh ||
6688
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6689
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6690
ac_delim='%!_!# '
6691
for ac_last_try in false false false false false :; do
6692
  . ./conf$$subs.sh ||
6693
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6694
 
6695
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6696
  if test $ac_delim_n = $ac_delim_num; then
6697
    break
6698
  elif $ac_last_try; then
6699
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6700
  else
6701
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6702
  fi
6703
done
6704
rm -f conf$$subs.sh
6705
 
6706
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6707
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6708
_ACEOF
6709
sed -n '
6710
h
6711
s/^/S["/; s/!.*/"]=/
6712
p
6713
g
6714
s/^[^!]*!//
6715
:repl
6716
t repl
6717
s/'"$ac_delim"'$//
6718
t delim
6719
:nl
6720
h
6721
s/\(.\{148\}\).*/\1/
6722
t more1
6723
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6724
p
6725
n
6726
b repl
6727
:more1
6728
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6729
p
6730
g
6731
s/.\{148\}//
6732
t nl
6733
:delim
6734
h
6735
s/\(.\{148\}\).*/\1/
6736
t more2
6737
s/["\\]/\\&/g; s/^/"/; s/$/"/
6738
p
6739
b
6740
:more2
6741
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6742
p
6743
g
6744
s/.\{148\}//
6745
t delim
6746
' 
6747
/^[^""]/{
6748
  N
6749
  s/\n//
6750
}
6751
' >>$CONFIG_STATUS || ac_write_fail=1
6752
rm -f conf$$subs.awk
6753
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6754
_ACAWK
6755
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6756
  for (key in S) S_is_set[key] = 1
6757
  FS = ""
6758
 
6759
}
6760
{
6761
  line = $ 0
6762
  nfields = split(line, field, "@")
6763
  substed = 0
6764
  len = length(field[1])
6765
  for (i = 2; i < nfields; i++) {
6766
    key = field[i]
6767
    keylen = length(key)
6768
    if (S_is_set[key]) {
6769
      value = S[key]
6770
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6771
      len += length(value) + length(field[++i])
6772
      substed = 1
6773
    } else
6774
      len += 1 + keylen
6775
  }
6776
 
6777
  print line
6778
}
6779
 
6780
_ACAWK
6781
_ACEOF
6782
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6783
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6784
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6785
else
6786
  cat
6787
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6788
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6789
_ACEOF
6790
 
6791
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6792
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6793
# trailing colons and then remove the whole line if VPATH becomes empty
6794
# (actually we leave an empty line to preserve line numbers).
6795
if test "x$srcdir" = x.; then
6796
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6797
s/:*\$(srcdir):*/:/
6798
s/:*\${srcdir}:*/:/
6799
s/:*@srcdir@:*/:/
6800
s/^\([^=]*=[     ]*\):*/\1/
6801
s/:*$//
6802
s/^[^=]*=[       ]*$//
6803
}'
6804
fi
6805
 
6806
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6807
fi # test -n "$CONFIG_FILES"
6808
 
6809
# Set up the scripts for CONFIG_HEADERS section.
6810
# No need to generate them if there are no CONFIG_HEADERS.
6811
# This happens for instance with `./config.status Makefile'.
6812
if test -n "$CONFIG_HEADERS"; then
6813
cat >"$tmp/defines.awk" <<\_ACAWK ||
6814
BEGIN {
6815
_ACEOF
6816
 
6817
# Transform confdefs.h into an awk script `defines.awk', embedded as
6818
# here-document in config.status, that substitutes the proper values into
6819
# config.h.in to produce config.h.
6820
 
6821
# Create a delimiter string that does not exist in confdefs.h, to ease
6822
# handling of long lines.
6823
ac_delim='%!_!# '
6824
for ac_last_try in false false :; do
6825
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6826
  if test -z "$ac_t"; then
6827
    break
6828
  elif $ac_last_try; then
6829
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6830
  else
6831
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6832
  fi
6833
done
6834
 
6835
# For the awk script, D is an array of macro values keyed by name,
6836
# likewise P contains macro parameters if any.  Preserve backslash
6837
# newline sequences.
6838
 
6839
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6840
sed -n '
6841
s/.\{148\}/&'"$ac_delim"'/g
6842
t rset
6843
:rset
6844
s/^[     ]*#[    ]*define[       ][      ]*/ /
6845
t def
6846
d
6847
:def
6848
s/\\$//
6849
t bsnl
6850
s/["\\]/\\&/g
6851
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6852
D["\1"]=" \3"/p
6853
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6854
d
6855
:bsnl
6856
s/["\\]/\\&/g
6857
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6858
D["\1"]=" \3\\\\\\n"\\/p
6859
t cont
6860
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6861
t cont
6862
d
6863
:cont
6864
n
6865
s/.\{148\}/&'"$ac_delim"'/g
6866
t clear
6867
:clear
6868
s/\\$//
6869
t bsnlc
6870
s/["\\]/\\&/g; s/^/"/; s/$/"/p
6871
d
6872
:bsnlc
6873
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6874
b cont
6875
' 
6876
s/'"$ac_delim"'/"\\\
6877
"/g' >>$CONFIG_STATUS || ac_write_fail=1
6878
 
6879
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6880
  for (key in D) D_is_set[key] = 1
6881
  FS = ""
6882
}
6883
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6884
  line = \$ 0
6885
  split(line, arg, " ")
6886
  if (arg[1] == "#") {
6887
    defundef = arg[2]
6888
    mac1 = arg[3]
6889
  } else {
6890
    defundef = substr(arg[1], 2)
6891
    mac1 = arg[2]
6892
  }
6893
  split(mac1, mac2, "(") #)
6894
  macro = mac2[1]
6895
  prefix = substr(line, 1, index(line, defundef) - 1)
6896
  if (D_is_set[macro]) {
6897
    # Preserve the white space surrounding the "#".
6898
    print prefix "define", macro P[macro] D[macro]
6899
    next
6900
  } else {
6901
    # Replace #undef with comments.  This is necessary, for example,
6902
    # in the case of _POSIX_SOURCE, which is predefined and required
6903
    # on some systems where configure will not decide to define it.
6904
    if (defundef == "undef") {
6905
      print "/*", prefix defundef, macro, "*/"
6906
      next
6907
    }
6908
  }
6909
}
6910
{ print }
6911
_ACAWK
6912
_ACEOF
6913
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6914
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
6915
fi # test -n "$CONFIG_HEADERS"
6916
 
6917
 
6918
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
6919
shift
6920
for ac_tag
6921
do
6922
  case $ac_tag in
6923
  :[FHLC]) ac_mode=$ac_tag; continue;;
6924
  esac
6925
  case $ac_mode$ac_tag in
6926
  :[FHL]*:*);;
6927
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6928
  :[FH]-) ac_tag=-:-;;
6929
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6930
  esac
6931
  ac_save_IFS=$IFS
6932
  IFS=:
6933
  set x $ac_tag
6934
  IFS=$ac_save_IFS
6935
  shift
6936
  ac_file=$1
6937
  shift
6938
 
6939
  case $ac_mode in
6940
  :L) ac_source=$1;;
6941
  :[FH])
6942
    ac_file_inputs=
6943
    for ac_f
6944
    do
6945
      case $ac_f in
6946
      -) ac_f="$tmp/stdin";;
6947
      *) # Look for the file first in the build tree, then in the source tree
6948
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
6949
         # because $ac_f cannot contain `:'.
6950
         test -f "$ac_f" ||
6951
           case $ac_f in
6952
           [\\/$]*) false;;
6953
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6954
           esac ||
6955
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6956
      esac
6957
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6958
      as_fn_append ac_file_inputs " '$ac_f'"
6959
    done
6960
 
6961
    # Let's still pretend it is `configure' which instantiates (i.e., don't
6962
    # use $as_me), people would be surprised to read:
6963
    #    /* config.h.  Generated by config.status.  */
6964
    configure_input='Generated from '`
6965
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6966
        `' by configure.'
6967
    if test x"$ac_file" != x-; then
6968
      configure_input="$ac_file.  $configure_input"
6969
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6970
$as_echo "$as_me: creating $ac_file" >&6;}
6971
    fi
6972
    # Neutralize special characters interpreted by sed in replacement strings.
6973
    case $configure_input in #(
6974
    *\&* | *\|* | *\\* )
6975
       ac_sed_conf_input=`$as_echo "$configure_input" |
6976
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6977
    *) ac_sed_conf_input=$configure_input;;
6978
    esac
6979
 
6980
    case $ac_tag in
6981
    *:-:* | *:-) cat >"$tmp/stdin" \
6982
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6983
    esac
6984
    ;;
6985
  esac
6986
 
6987
  ac_dir=`$as_dirname -- "$ac_file" ||
6988
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6989
         X"$ac_file" : 'X\(//\)[^/]' \| \
6990
         X"$ac_file" : 'X\(//\)$' \| \
6991
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6992
$as_echo X"$ac_file" |
6993
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6994
            s//\1/
6995
            q
6996
          }
6997
          /^X\(\/\/\)[^/].*/{
6998
            s//\1/
6999
            q
7000
          }
7001
          /^X\(\/\/\)$/{
7002
            s//\1/
7003
            q
7004
          }
7005
          /^X\(\/\).*/{
7006
            s//\1/
7007
            q
7008
          }
7009
          s/.*/./; q'`
7010
  as_dir="$ac_dir"; as_fn_mkdir_p
7011
  ac_builddir=.
7012
 
7013
case "$ac_dir" in
7014
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7015
*)
7016
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7017
  # A ".." for each directory in $ac_dir_suffix.
7018
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7019
  case $ac_top_builddir_sub in
7020
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7021
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7022
  esac ;;
7023
esac
7024
ac_abs_top_builddir=$ac_pwd
7025
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7026
# for backward compatibility:
7027
ac_top_builddir=$ac_top_build_prefix
7028
 
7029
case $srcdir in
7030
  .)  # We are building in place.
7031
    ac_srcdir=.
7032
    ac_top_srcdir=$ac_top_builddir_sub
7033
    ac_abs_top_srcdir=$ac_pwd ;;
7034
  [\\/]* | ?:[\\/]* )  # Absolute name.
7035
    ac_srcdir=$srcdir$ac_dir_suffix;
7036
    ac_top_srcdir=$srcdir
7037
    ac_abs_top_srcdir=$srcdir ;;
7038
  *) # Relative name.
7039
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7040
    ac_top_srcdir=$ac_top_build_prefix$srcdir
7041
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7042
esac
7043
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7044
 
7045
 
7046
  case $ac_mode in
7047
  :F)
7048
  #
7049
  # CONFIG_FILE
7050
  #
7051
 
7052
  case $INSTALL in
7053
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7054
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7055
  esac
7056
_ACEOF
7057
 
7058
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7059
# If the template does not know about datarootdir, expand it.
7060
# FIXME: This hack should be removed a few years after 2.60.
7061
ac_datarootdir_hack=; ac_datarootdir_seen=
7062
ac_sed_dataroot='
7063
/datarootdir/ {
7064
  p
7065
  q
7066
}
7067
/@datadir@/p
7068
/@docdir@/p
7069
/@infodir@/p
7070
/@localedir@/p
7071
/@mandir@/p'
7072
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7073
*datarootdir*) ac_datarootdir_seen=yes;;
7074
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7075
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7076
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7077
_ACEOF
7078
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7079
  ac_datarootdir_hack='
7080
  s&@datadir@&$datadir&g
7081
  s&@docdir@&$docdir&g
7082
  s&@infodir@&$infodir&g
7083
  s&@localedir@&$localedir&g
7084
  s&@mandir@&$mandir&g
7085
  s&\\\${datarootdir}&$datarootdir&g' ;;
7086
esac
7087
_ACEOF
7088
 
7089
# Neutralize VPATH when `$srcdir' = `.'.
7090
# Shell code in configure.ac might set extrasub.
7091
# FIXME: do we really want to maintain this feature?
7092
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7093
ac_sed_extra="$ac_vpsub
7094
$extrasub
7095
_ACEOF
7096
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7097
:t
7098
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7099
s|@configure_input@|$ac_sed_conf_input|;t t
7100
s&@top_builddir@&$ac_top_builddir_sub&;t t
7101
s&@top_build_prefix@&$ac_top_build_prefix&;t t
7102
s&@srcdir@&$ac_srcdir&;t t
7103
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7104
s&@top_srcdir@&$ac_top_srcdir&;t t
7105
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7106
s&@builddir@&$ac_builddir&;t t
7107
s&@abs_builddir@&$ac_abs_builddir&;t t
7108
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7109
s&@INSTALL@&$ac_INSTALL&;t t
7110
$ac_datarootdir_hack
7111
"
7112
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7113
  || as_fn_error "could not create $ac_file" "$LINENO" 5
7114
 
7115
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7116
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7117
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7118
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7119
which seems to be undefined.  Please make sure it is defined." >&5
7120
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7121
which seems to be undefined.  Please make sure it is defined." >&2;}
7122
 
7123
  rm -f "$tmp/stdin"
7124
  case $ac_file in
7125
  -) cat "$tmp/out" && rm -f "$tmp/out";;
7126
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7127
  esac \
7128
  || as_fn_error "could not create $ac_file" "$LINENO" 5
7129
 ;;
7130
  :H)
7131
  #
7132
  # CONFIG_HEADER
7133
  #
7134
  if test x"$ac_file" != x-; then
7135
    {
7136
      $as_echo "/* $configure_input  */" \
7137
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7138
    } >"$tmp/config.h" \
7139
      || as_fn_error "could not create $ac_file" "$LINENO" 5
7140
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7141
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7142
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7143
    else
7144
      rm -f "$ac_file"
7145
      mv "$tmp/config.h" "$ac_file" \
7146
        || as_fn_error "could not create $ac_file" "$LINENO" 5
7147
    fi
7148
  else
7149
    $as_echo "/* $configure_input  */" \
7150
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7151
      || as_fn_error "could not create -" "$LINENO" 5
7152
  fi
7153
 ;;
7154
  :L)
7155
  #
7156
  # CONFIG_LINK
7157
  #
7158
 
7159
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
7160
    :
7161
  else
7162
    # Prefer the file from the source tree if names are identical.
7163
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7164
      ac_source=$srcdir/$ac_source
7165
    fi
7166
 
7167
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7168
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7169
 
7170
    if test ! -r "$ac_source"; then
7171
      as_fn_error "$ac_source: file not found" "$LINENO" 5
7172
    fi
7173
    rm -f "$ac_file"
7174
 
7175
    # Try a relative symlink, then a hard link, then a copy.
7176
    case $srcdir in
7177
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7178
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7179
    esac
7180
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7181
      ln "$ac_source" "$ac_file" 2>/dev/null ||
7182
      cp -p "$ac_source" "$ac_file" ||
7183
      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7184
  fi
7185
 ;;
7186
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7187
$as_echo "$as_me: executing $ac_file commands" >&6;}
7188
 ;;
7189
  esac
7190
 
7191
 
7192
  case $ac_file$ac_mode in
7193
    "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7194
 rm -f Makesim1.tmp Makesim2.tmp Makefile
7195
 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' Makesim1.tmp
7196
 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' Makesim2.tmp
7197
 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7198
        -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7199
        Makefile
7200
 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7201
 ;;
7202
    "stamp-h":C) echo > stamp-h ;;
7203
 
7204
  esac
7205
done # for ac_tag
7206
 
7207
 
7208
as_fn_exit 0
7209
_ACEOF
7210
ac_clean_files=$ac_clean_files_save
7211
 
7212
test $ac_write_fail = 0 ||
7213
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7214
 
7215
 
7216
# configure is writing to config.log, and then calls config.status.
7217
# config.status does its own redirection, appending to config.log.
7218
# Unfortunately, on DOS this fails, as config.log is still kept open
7219
# by configure, so config.status won't be able to write to it; its
7220
# output is simply discarded.  So we exec the FD to /dev/null,
7221
# effectively closing config.log, so it can be properly (re)opened and
7222
# appended to by config.status.  When coming back to configure, we
7223
# need to make the FD available again.
7224
if test "$no_create" != yes; then
7225
  ac_cs_success=:
7226
  ac_config_status_args=
7227
  test "$silent" = yes &&
7228
    ac_config_status_args="$ac_config_status_args --quiet"
7229
  exec 5>/dev/null
7230
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7231
  exec 5>>config.log
7232
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7233
  # would make configure fail if this is the last instruction.
7234
  $ac_cs_success || as_fn_exit $?
7235
fi
7236
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7237
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7238
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7239
fi
7240
 
7241
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.