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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [moxie/] [configure] - Blame information for rev 847

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

powered by: WebSVN 2.1.0

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