sim: unify toolchain probing logic
[deliverable/binutils-gdb.git] / sim / rx / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199 if (eval "$as_required") 2>/dev/null; then :
200 as_have_required=yes
201 else
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206 else
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 break 2
224 fi
225 fi
226 done;;
227 esac
228 as_found=false
229 done
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi; }
234 IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265 else
266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267 $0: including any error possibly output before this
268 $0: message. Then install a modern shell, or manually run
269 $0: the script under such a shell if you do have one."
270 fi
271 exit 1
272 fi
273 fi
274 fi
275 SHELL=${CONFIG_SHELL-/bin/sh}
276 export SHELL
277 # Unset more variables known to interfere with behavior of common tools.
278 CLICOLOR_FORCE= GREP_OPTIONS=
279 unset CLICOLOR_FORCE GREP_OPTIONS
280
281 ## --------------------- ##
282 ## M4sh Shell Functions. ##
283 ## --------------------- ##
284 # as_fn_unset VAR
285 # ---------------
286 # Portably unset VAR.
287 as_fn_unset ()
288 {
289 { eval $1=; unset $1;}
290 }
291 as_unset=as_fn_unset
292
293 # as_fn_set_status STATUS
294 # -----------------------
295 # Set $? to STATUS, without forking.
296 as_fn_set_status ()
297 {
298 return $1
299 } # as_fn_set_status
300
301 # as_fn_exit STATUS
302 # -----------------
303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304 as_fn_exit ()
305 {
306 set +e
307 as_fn_set_status $1
308 exit $1
309 } # as_fn_exit
310
311 # as_fn_mkdir_p
312 # -------------
313 # Create "$as_dir" as a directory, including parents if necessary.
314 as_fn_mkdir_p ()
315 {
316
317 case $as_dir in #(
318 -*) as_dir=./$as_dir;;
319 esac
320 test -d "$as_dir" || eval $as_mkdir_p || {
321 as_dirs=
322 while :; do
323 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325 *) as_qdir=$as_dir;;
326 esac
327 as_dirs="'$as_qdir' $as_dirs"
328 as_dir=`$as_dirname -- "$as_dir" ||
329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330 X"$as_dir" : 'X\(//\)[^/]' \| \
331 X"$as_dir" : 'X\(//\)$' \| \
332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333 $as_echo X"$as_dir" |
334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 s//\1/
336 q
337 }
338 /^X\(\/\/\)[^/].*/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\).*/{
347 s//\1/
348 q
349 }
350 s/.*/./; q'`
351 test -d "$as_dir" && break
352 done
353 test -z "$as_dirs" || eval "mkdir $as_dirs"
354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357 } # as_fn_mkdir_p
358
359 # as_fn_executable_p FILE
360 # -----------------------
361 # Test if FILE is an executable regular file.
362 as_fn_executable_p ()
363 {
364 test -f "$1" && test -x "$1"
365 } # as_fn_executable_p
366 # as_fn_append VAR VALUE
367 # ----------------------
368 # Append the text in VALUE to the end of the definition contained in VAR. Take
369 # advantage of any shell optimizations that allow amortized linear growth over
370 # repeated appends, instead of the typical quadratic growth present in naive
371 # implementations.
372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373 eval 'as_fn_append ()
374 {
375 eval $1+=\$2
376 }'
377 else
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 }
382 fi # as_fn_append
383
384 # as_fn_arith ARG...
385 # ------------------
386 # Perform arithmetic evaluation on the ARGs, and store the result in the
387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
388 # must be portable across $(()) and expr.
389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390 eval 'as_fn_arith ()
391 {
392 as_val=$(( $* ))
393 }'
394 else
395 as_fn_arith ()
396 {
397 as_val=`expr "$@" || test $? -eq 1`
398 }
399 fi # as_fn_arith
400
401
402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
403 # ----------------------------------------
404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406 # script with STATUS, using 1 if that was 0.
407 as_fn_error ()
408 {
409 as_status=$1; test $as_status -eq 0 && as_status=1
410 if test "$4"; then
411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413 fi
414 $as_echo "$as_me: error: $2" >&2
415 as_fn_exit $as_status
416 } # as_fn_error
417
418 if expr a : '\(a\)' >/dev/null 2>&1 &&
419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
420 as_expr=expr
421 else
422 as_expr=false
423 fi
424
425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426 as_basename=basename
427 else
428 as_basename=false
429 fi
430
431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432 as_dirname=dirname
433 else
434 as_dirname=false
435 fi
436
437 as_me=`$as_basename -- "$0" ||
438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439 X"$0" : 'X\(//\)$' \| \
440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441 $as_echo X/"$0" |
442 sed '/^.*\/\([^/][^/]*\)\/*$/{
443 s//\1/
444 q
445 }
446 /^X\/\(\/\/\)$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\).*/{
451 s//\1/
452 q
453 }
454 s/.*/./; q'`
455
456 # Avoid depending upon Character Ranges.
457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460 as_cr_digits='0123456789'
461 as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464 as_lineno_1=$LINENO as_lineno_1a=$LINENO
465 as_lineno_2=$LINENO as_lineno_2a=$LINENO
466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
470 p
471 /[$]LINENO/=
472 ' <$as_myself |
473 sed '
474 s/[$]LINENO.*/&-/
475 t lineno
476 b
477 :lineno
478 N
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481 t loop
482 s/-\n.*//
483 ' >$as_me.lineno &&
484 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488 # already done that, so ensure we don't try to do so again and fall
489 # in an infinite loop. This has already happened in practice.
490 _as_can_reexec=no; export _as_can_reexec
491 # Don't try to exec as it changes $[0], causing all sort of problems
492 # (the dirname of $[0] is not the place where we might find the
493 # original and so on. Autoconf is especially sensitive to this).
494 . "./$as_me.lineno"
495 # Exit status is that of the last command.
496 exit
497 }
498
499 ECHO_C= ECHO_N= ECHO_T=
500 case `echo -n x` in #(((((
501 -n*)
502 case `echo 'xy\c'` in
503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 xy) ECHO_C='\c';;
505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506 ECHO_T=' ';;
507 esac;;
508 *)
509 ECHO_N='-n';;
510 esac
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -pR'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -pR'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -pR'
532 fi
533 else
534 as_ln_s='cp -pR'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p='mkdir -p "$as_dir"'
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 as_test_x='test -x'
547 as_executable_p=as_fn_executable_p
548
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556 test -n "$DJDIR" || exec 7<&0 </dev/null
557 exec 6>&1
558
559 # Name of the host.
560 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564 #
565 # Initializations.
566 #
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575
576 # Identity of this package.
577 PACKAGE_NAME=
578 PACKAGE_TARNAME=
579 PACKAGE_VERSION=
580 PACKAGE_STRING=
581 PACKAGE_BUGREPORT=
582 PACKAGE_URL=
583
584 ac_unique_file="Makefile.in"
585 ac_subst_vars='LTLIBOBJS
586 LIBOBJS
587 sim_reserved_bits
588 sim_default_model
589 sim_scache
590 sim_float
591 sim_bitsize
592 cgen_breaks
593 sim_cycle_accurate_flags
594 MAINT
595 MAINTAINER_MODE_FALSE
596 MAINTAINER_MODE_TRUE
597 CATOBJEXT
598 GENCAT
599 INSTOBJEXT
600 DATADIRNAME
601 CATALOGS
602 POSUB
603 GMSGFMT
604 XGETTEXT
605 INCINTL
606 LIBINTL_DEP
607 LIBINTL
608 USE_NLS
609 CCDEPMODE
610 DEPDIR
611 am__leading_dot
612 INSTALL_DATA
613 INSTALL_SCRIPT
614 INSTALL_PROGRAM
615 OBJEXT
616 EXEEXT
617 ac_ct_CC
618 CPPFLAGS
619 LDFLAGS
620 CFLAGS
621 CC
622 target_alias
623 host_alias
624 build_alias
625 LIBS
626 ECHO_T
627 ECHO_N
628 ECHO_C
629 DEFS
630 mandir
631 localedir
632 libdir
633 psdir
634 pdfdir
635 dvidir
636 htmldir
637 infodir
638 docdir
639 oldincludedir
640 includedir
641 localstatedir
642 sharedstatedir
643 sysconfdir
644 datadir
645 datarootdir
646 libexecdir
647 sbindir
648 bindir
649 program_transform_name
650 prefix
651 exec_prefix
652 PACKAGE_URL
653 PACKAGE_BUGREPORT
654 PACKAGE_STRING
655 PACKAGE_VERSION
656 PACKAGE_TARNAME
657 PACKAGE_NAME
658 PATH_SEPARATOR
659 SHELL
660 sim_inline
661 sim_hw
662 sim_hw_objs
663 sim_hw_cflags'
664 ac_subst_files=''
665 ac_user_opts='
666 enable_option_checking
667 enable_maintainer_mode
668 enable_sim_inline
669 enable_cycle_accurate
670 enable_sim_hardware
671 '
672 ac_precious_vars='build_alias
673 host_alias
674 target_alias
675 CC
676 CFLAGS
677 LDFLAGS
678 LIBS
679 CPPFLAGS'
680
681
682 # Initialize some variables set by options.
683 ac_init_help=
684 ac_init_version=false
685 ac_unrecognized_opts=
686 ac_unrecognized_sep=
687 # The variables have the same names as the options, with
688 # dashes changed to underlines.
689 cache_file=/dev/null
690 exec_prefix=NONE
691 no_create=
692 no_recursion=
693 prefix=NONE
694 program_prefix=NONE
695 program_suffix=NONE
696 program_transform_name=s,x,x,
697 silent=
698 site=
699 srcdir=
700 verbose=
701 x_includes=NONE
702 x_libraries=NONE
703
704 # Installation directory options.
705 # These are left unexpanded so users can "make install exec_prefix=/foo"
706 # and all the variables that are supposed to be based on exec_prefix
707 # by default will actually change.
708 # Use braces instead of parens because sh, perl, etc. also accept them.
709 # (The list follows the same order as the GNU Coding Standards.)
710 bindir='${exec_prefix}/bin'
711 sbindir='${exec_prefix}/sbin'
712 libexecdir='${exec_prefix}/libexec'
713 datarootdir='${prefix}/share'
714 datadir='${datarootdir}'
715 sysconfdir='${prefix}/etc'
716 sharedstatedir='${prefix}/com'
717 localstatedir='${prefix}/var'
718 includedir='${prefix}/include'
719 oldincludedir='/usr/include'
720 docdir='${datarootdir}/doc/${PACKAGE}'
721 infodir='${datarootdir}/info'
722 htmldir='${docdir}'
723 dvidir='${docdir}'
724 pdfdir='${docdir}'
725 psdir='${docdir}'
726 libdir='${exec_prefix}/lib'
727 localedir='${datarootdir}/locale'
728 mandir='${datarootdir}/man'
729
730 ac_prev=
731 ac_dashdash=
732 for ac_option
733 do
734 # If the previous option needs an argument, assign it.
735 if test -n "$ac_prev"; then
736 eval $ac_prev=\$ac_option
737 ac_prev=
738 continue
739 fi
740
741 case $ac_option in
742 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
743 *=) ac_optarg= ;;
744 *) ac_optarg=yes ;;
745 esac
746
747 # Accept the important Cygnus configure options, so we can diagnose typos.
748
749 case $ac_dashdash$ac_option in
750 --)
751 ac_dashdash=yes ;;
752
753 -bindir | --bindir | --bindi | --bind | --bin | --bi)
754 ac_prev=bindir ;;
755 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
756 bindir=$ac_optarg ;;
757
758 -build | --build | --buil | --bui | --bu)
759 ac_prev=build_alias ;;
760 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
761 build_alias=$ac_optarg ;;
762
763 -cache-file | --cache-file | --cache-fil | --cache-fi \
764 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
765 ac_prev=cache_file ;;
766 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
767 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
768 cache_file=$ac_optarg ;;
769
770 --config-cache | -C)
771 cache_file=config.cache ;;
772
773 -datadir | --datadir | --datadi | --datad)
774 ac_prev=datadir ;;
775 -datadir=* | --datadir=* | --datadi=* | --datad=*)
776 datadir=$ac_optarg ;;
777
778 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
779 | --dataroo | --dataro | --datar)
780 ac_prev=datarootdir ;;
781 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
782 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
783 datarootdir=$ac_optarg ;;
784
785 -disable-* | --disable-*)
786 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
789 as_fn_error $? "invalid feature name: $ac_useropt"
790 ac_useropt_orig=$ac_useropt
791 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
792 case $ac_user_opts in
793 *"
794 "enable_$ac_useropt"
795 "*) ;;
796 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
797 ac_unrecognized_sep=', ';;
798 esac
799 eval enable_$ac_useropt=no ;;
800
801 -docdir | --docdir | --docdi | --doc | --do)
802 ac_prev=docdir ;;
803 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
804 docdir=$ac_optarg ;;
805
806 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
807 ac_prev=dvidir ;;
808 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
809 dvidir=$ac_optarg ;;
810
811 -enable-* | --enable-*)
812 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
815 as_fn_error $? "invalid feature name: $ac_useropt"
816 ac_useropt_orig=$ac_useropt
817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
818 case $ac_user_opts in
819 *"
820 "enable_$ac_useropt"
821 "*) ;;
822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
823 ac_unrecognized_sep=', ';;
824 esac
825 eval enable_$ac_useropt=\$ac_optarg ;;
826
827 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
828 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
829 | --exec | --exe | --ex)
830 ac_prev=exec_prefix ;;
831 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
832 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
833 | --exec=* | --exe=* | --ex=*)
834 exec_prefix=$ac_optarg ;;
835
836 -gas | --gas | --ga | --g)
837 # Obsolete; use --with-gas.
838 with_gas=yes ;;
839
840 -help | --help | --hel | --he | -h)
841 ac_init_help=long ;;
842 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
843 ac_init_help=recursive ;;
844 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
845 ac_init_help=short ;;
846
847 -host | --host | --hos | --ho)
848 ac_prev=host_alias ;;
849 -host=* | --host=* | --hos=* | --ho=*)
850 host_alias=$ac_optarg ;;
851
852 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
853 ac_prev=htmldir ;;
854 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
855 | --ht=*)
856 htmldir=$ac_optarg ;;
857
858 -includedir | --includedir | --includedi | --included | --include \
859 | --includ | --inclu | --incl | --inc)
860 ac_prev=includedir ;;
861 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
862 | --includ=* | --inclu=* | --incl=* | --inc=*)
863 includedir=$ac_optarg ;;
864
865 -infodir | --infodir | --infodi | --infod | --info | --inf)
866 ac_prev=infodir ;;
867 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
868 infodir=$ac_optarg ;;
869
870 -libdir | --libdir | --libdi | --libd)
871 ac_prev=libdir ;;
872 -libdir=* | --libdir=* | --libdi=* | --libd=*)
873 libdir=$ac_optarg ;;
874
875 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
876 | --libexe | --libex | --libe)
877 ac_prev=libexecdir ;;
878 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
879 | --libexe=* | --libex=* | --libe=*)
880 libexecdir=$ac_optarg ;;
881
882 -localedir | --localedir | --localedi | --localed | --locale)
883 ac_prev=localedir ;;
884 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
885 localedir=$ac_optarg ;;
886
887 -localstatedir | --localstatedir | --localstatedi | --localstated \
888 | --localstate | --localstat | --localsta | --localst | --locals)
889 ac_prev=localstatedir ;;
890 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
891 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
892 localstatedir=$ac_optarg ;;
893
894 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
895 ac_prev=mandir ;;
896 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897 mandir=$ac_optarg ;;
898
899 -nfp | --nfp | --nf)
900 # Obsolete; use --without-fp.
901 with_fp=no ;;
902
903 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
904 | --no-cr | --no-c | -n)
905 no_create=yes ;;
906
907 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
908 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
909 no_recursion=yes ;;
910
911 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
912 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
913 | --oldin | --oldi | --old | --ol | --o)
914 ac_prev=oldincludedir ;;
915 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
916 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
917 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
918 oldincludedir=$ac_optarg ;;
919
920 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
921 ac_prev=prefix ;;
922 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
923 prefix=$ac_optarg ;;
924
925 -program-prefix | --program-prefix | --program-prefi | --program-pref \
926 | --program-pre | --program-pr | --program-p)
927 ac_prev=program_prefix ;;
928 -program-prefix=* | --program-prefix=* | --program-prefi=* \
929 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
930 program_prefix=$ac_optarg ;;
931
932 -program-suffix | --program-suffix | --program-suffi | --program-suff \
933 | --program-suf | --program-su | --program-s)
934 ac_prev=program_suffix ;;
935 -program-suffix=* | --program-suffix=* | --program-suffi=* \
936 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
937 program_suffix=$ac_optarg ;;
938
939 -program-transform-name | --program-transform-name \
940 | --program-transform-nam | --program-transform-na \
941 | --program-transform-n | --program-transform- \
942 | --program-transform | --program-transfor \
943 | --program-transfo | --program-transf \
944 | --program-trans | --program-tran \
945 | --progr-tra | --program-tr | --program-t)
946 ac_prev=program_transform_name ;;
947 -program-transform-name=* | --program-transform-name=* \
948 | --program-transform-nam=* | --program-transform-na=* \
949 | --program-transform-n=* | --program-transform-=* \
950 | --program-transform=* | --program-transfor=* \
951 | --program-transfo=* | --program-transf=* \
952 | --program-trans=* | --program-tran=* \
953 | --progr-tra=* | --program-tr=* | --program-t=*)
954 program_transform_name=$ac_optarg ;;
955
956 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
957 ac_prev=pdfdir ;;
958 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
959 pdfdir=$ac_optarg ;;
960
961 -psdir | --psdir | --psdi | --psd | --ps)
962 ac_prev=psdir ;;
963 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
964 psdir=$ac_optarg ;;
965
966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
967 | -silent | --silent | --silen | --sile | --sil)
968 silent=yes ;;
969
970 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971 ac_prev=sbindir ;;
972 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973 | --sbi=* | --sb=*)
974 sbindir=$ac_optarg ;;
975
976 -sharedstatedir | --sharedstatedir | --sharedstatedi \
977 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
978 | --sharedst | --shareds | --shared | --share | --shar \
979 | --sha | --sh)
980 ac_prev=sharedstatedir ;;
981 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
982 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
983 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984 | --sha=* | --sh=*)
985 sharedstatedir=$ac_optarg ;;
986
987 -site | --site | --sit)
988 ac_prev=site ;;
989 -site=* | --site=* | --sit=*)
990 site=$ac_optarg ;;
991
992 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993 ac_prev=srcdir ;;
994 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
995 srcdir=$ac_optarg ;;
996
997 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
998 | --syscon | --sysco | --sysc | --sys | --sy)
999 ac_prev=sysconfdir ;;
1000 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1001 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1002 sysconfdir=$ac_optarg ;;
1003
1004 -target | --target | --targe | --targ | --tar | --ta | --t)
1005 ac_prev=target_alias ;;
1006 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1007 target_alias=$ac_optarg ;;
1008
1009 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1010 verbose=yes ;;
1011
1012 -version | --version | --versio | --versi | --vers | -V)
1013 ac_init_version=: ;;
1014
1015 -with-* | --with-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid package name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "with_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval with_$ac_useropt=\$ac_optarg ;;
1030
1031 -without-* | --without-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid package name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040 "with_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval with_$ac_useropt=no ;;
1046
1047 --x)
1048 # Obsolete; use --with-x.
1049 with_x=yes ;;
1050
1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 | --x-incl | --x-inc | --x-in | --x-i)
1053 ac_prev=x_includes ;;
1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 x_includes=$ac_optarg ;;
1057
1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 ac_prev=x_libraries ;;
1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 x_libraries=$ac_optarg ;;
1064
1065 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1066 Try \`$0 --help' for more information"
1067 ;;
1068
1069 *=*)
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 case $ac_envvar in #(
1073 '' | [0-9]* | *[!_$as_cr_alnum]* )
1074 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1075 esac
1076 eval $ac_envvar=\$ac_optarg
1077 export $ac_envvar ;;
1078
1079 *)
1080 # FIXME: should be removed in autoconf 3.0.
1081 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1085 ;;
1086
1087 esac
1088 done
1089
1090 if test -n "$ac_prev"; then
1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 as_fn_error $? "missing argument to $ac_option"
1093 fi
1094
1095 if test -n "$ac_unrecognized_opts"; then
1096 case $enable_option_checking in
1097 no) ;;
1098 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1099 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1100 esac
1101 fi
1102
1103 # Check all directory arguments for consistency.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1108 do
1109 eval ac_val=\$$ac_var
1110 # Remove trailing slashes.
1111 case $ac_val in
1112 */ )
1113 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1114 eval $ac_var=\$ac_val;;
1115 esac
1116 # Be sure to have absolute directory names.
1117 case $ac_val in
1118 [\\/$]* | ?:[\\/]* ) continue;;
1119 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 esac
1121 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1122 done
1123
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1130
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 elif test "x$build_alias" != "x$host_alias"; then
1136 cross_compiling=yes
1137 fi
1138 fi
1139
1140 ac_tool_prefix=
1141 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1142
1143 test "$silent" = yes && exec 6>/dev/null
1144
1145
1146 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di=`ls -di .` &&
1148 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149 as_fn_error $? "working directory cannot be determined"
1150 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1151 as_fn_error $? "pwd does not report name of working directory"
1152
1153
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156 ac_srcdir_defaulted=yes
1157 # Try the directory containing this script, then the parent directory.
1158 ac_confdir=`$as_dirname -- "$as_myself" ||
1159 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160 X"$as_myself" : 'X\(//\)[^/]' \| \
1161 X"$as_myself" : 'X\(//\)$' \| \
1162 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1163 $as_echo X"$as_myself" |
1164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)[^/].*/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\/\)$/{
1173 s//\1/
1174 q
1175 }
1176 /^X\(\/\).*/{
1177 s//\1/
1178 q
1179 }
1180 s/.*/./; q'`
1181 srcdir=$ac_confdir
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 srcdir=..
1184 fi
1185 else
1186 ac_srcdir_defaulted=no
1187 fi
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1191 fi
1192 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 ac_abs_confdir=`(
1194 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1199 fi
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1212
1213 #
1214 # Report the --help message.
1215 #
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures this package to adapt to many kinds of systems.
1221
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1223
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1226
1227 Defaults for the options are specified in brackets.
1228
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking ...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1245
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1250
1251 For better control, use the options below.
1252
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1274
1275 cat <<\_ACEOF
1276 _ACEOF
1277 fi
1278
1279 if test -n "$ac_init_help"; then
1280
1281 cat <<\_ACEOF
1282
1283 Optional Features:
1284 --disable-option-checking ignore unrecognized --enable/--with options
1285 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1286 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1287 --enable-maintainer-mode
1288 enable make rules and dependencies not useful (and
1289 sometimes confusing) to the casual installer
1290 --enable-sim-inline=inlines
1291 Specify which functions should be inlined
1292 --disable-cycle-accurate
1293 Disable cycle accurate simulation (faster runtime)
1294 --enable-sim-hardware=LIST
1295 Specify the hardware to be included in the build.
1296
1297 Some influential environment variables:
1298 CC C compiler command
1299 CFLAGS C compiler flags
1300 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1301 nonstandard directory <lib dir>
1302 LIBS libraries to pass to the linker, e.g. -l<library>
1303 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1304 you have headers in a nonstandard directory <include dir>
1305
1306 Use these variables to override the choices made by `configure' or to help
1307 it to find libraries and programs with nonstandard names/locations.
1308
1309 Report bugs to the package provider.
1310 _ACEOF
1311 ac_status=$?
1312 fi
1313
1314 if test "$ac_init_help" = "recursive"; then
1315 # If there are subdirs, report their specific --help.
1316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1317 test -d "$ac_dir" ||
1318 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1319 continue
1320 ac_builddir=.
1321
1322 case "$ac_dir" in
1323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 *)
1325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1326 # A ".." for each directory in $ac_dir_suffix.
1327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1328 case $ac_top_builddir_sub in
1329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1331 esac ;;
1332 esac
1333 ac_abs_top_builddir=$ac_pwd
1334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335 # for backward compatibility:
1336 ac_top_builddir=$ac_top_build_prefix
1337
1338 case $srcdir in
1339 .) # We are building in place.
1340 ac_srcdir=.
1341 ac_top_srcdir=$ac_top_builddir_sub
1342 ac_abs_top_srcdir=$ac_pwd ;;
1343 [\\/]* | ?:[\\/]* ) # Absolute name.
1344 ac_srcdir=$srcdir$ac_dir_suffix;
1345 ac_top_srcdir=$srcdir
1346 ac_abs_top_srcdir=$srcdir ;;
1347 *) # Relative name.
1348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349 ac_top_srcdir=$ac_top_build_prefix$srcdir
1350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1351 esac
1352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1353
1354 cd "$ac_dir" || { ac_status=$?; continue; }
1355 # Check for guested configure.
1356 if test -f "$ac_srcdir/configure.gnu"; then
1357 echo &&
1358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359 elif test -f "$ac_srcdir/configure"; then
1360 echo &&
1361 $SHELL "$ac_srcdir/configure" --help=recursive
1362 else
1363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1364 fi || ac_status=$?
1365 cd "$ac_pwd" || { ac_status=$?; break; }
1366 done
1367 fi
1368
1369 test -n "$ac_init_help" && exit $ac_status
1370 if $ac_init_version; then
1371 cat <<\_ACEOF
1372 configure
1373 generated by GNU Autoconf 2.69
1374
1375 Copyright (C) 2012 Free Software Foundation, Inc.
1376 This configure script is free software; the Free Software Foundation
1377 gives unlimited permission to copy, distribute and modify it.
1378 _ACEOF
1379 exit
1380 fi
1381
1382 ## ------------------------ ##
1383 ## Autoconf initialization. ##
1384 ## ------------------------ ##
1385
1386 # ac_fn_c_try_compile LINENO
1387 # --------------------------
1388 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1389 ac_fn_c_try_compile ()
1390 {
1391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1392 rm -f conftest.$ac_objext
1393 if { { ac_try="$ac_compile"
1394 case "(($ac_try" in
1395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1396 *) ac_try_echo=$ac_try;;
1397 esac
1398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1399 $as_echo "$ac_try_echo"; } >&5
1400 (eval "$ac_compile") 2>conftest.err
1401 ac_status=$?
1402 if test -s conftest.err; then
1403 grep -v '^ *+' conftest.err >conftest.er1
1404 cat conftest.er1 >&5
1405 mv -f conftest.er1 conftest.err
1406 fi
1407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1408 test $ac_status = 0; } && {
1409 test -z "$ac_c_werror_flag" ||
1410 test ! -s conftest.err
1411 } && test -s conftest.$ac_objext; then :
1412 ac_retval=0
1413 else
1414 $as_echo "$as_me: failed program was:" >&5
1415 sed 's/^/| /' conftest.$ac_ext >&5
1416
1417 ac_retval=1
1418 fi
1419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1420 as_fn_set_status $ac_retval
1421
1422 } # ac_fn_c_try_compile
1423 cat >config.log <<_ACEOF
1424 This file contains any messages produced by compilers while
1425 running configure, to aid debugging if configure makes a mistake.
1426
1427 It was created by $as_me, which was
1428 generated by GNU Autoconf 2.69. Invocation command line was
1429
1430 $ $0 $@
1431
1432 _ACEOF
1433 exec 5>>config.log
1434 {
1435 cat <<_ASUNAME
1436 ## --------- ##
1437 ## Platform. ##
1438 ## --------- ##
1439
1440 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1441 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1442 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1443 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1444 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1445
1446 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1447 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1448
1449 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1450 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1451 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1452 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1453 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1454 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1455 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1456
1457 _ASUNAME
1458
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 for as_dir in $PATH
1461 do
1462 IFS=$as_save_IFS
1463 test -z "$as_dir" && as_dir=.
1464 $as_echo "PATH: $as_dir"
1465 done
1466 IFS=$as_save_IFS
1467
1468 } >&5
1469
1470 cat >&5 <<_ACEOF
1471
1472
1473 ## ----------- ##
1474 ## Core tests. ##
1475 ## ----------- ##
1476
1477 _ACEOF
1478
1479
1480 # Keep a trace of the command line.
1481 # Strip out --no-create and --no-recursion so they do not pile up.
1482 # Strip out --silent because we don't want to record it for future runs.
1483 # Also quote any args containing shell meta-characters.
1484 # Make two passes to allow for proper duplicate-argument suppression.
1485 ac_configure_args=
1486 ac_configure_args0=
1487 ac_configure_args1=
1488 ac_must_keep_next=false
1489 for ac_pass in 1 2
1490 do
1491 for ac_arg
1492 do
1493 case $ac_arg in
1494 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1496 | -silent | --silent | --silen | --sile | --sil)
1497 continue ;;
1498 *\'*)
1499 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 esac
1501 case $ac_pass in
1502 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1503 2)
1504 as_fn_append ac_configure_args1 " '$ac_arg'"
1505 if test $ac_must_keep_next = true; then
1506 ac_must_keep_next=false # Got value, back to normal.
1507 else
1508 case $ac_arg in
1509 *=* | --config-cache | -C | -disable-* | --disable-* \
1510 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1511 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1512 | -with-* | --with-* | -without-* | --without-* | --x)
1513 case "$ac_configure_args0 " in
1514 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1515 esac
1516 ;;
1517 -* ) ac_must_keep_next=true ;;
1518 esac
1519 fi
1520 as_fn_append ac_configure_args " '$ac_arg'"
1521 ;;
1522 esac
1523 done
1524 done
1525 { ac_configure_args0=; unset ac_configure_args0;}
1526 { ac_configure_args1=; unset ac_configure_args1;}
1527
1528 # When interrupted or exit'd, cleanup temporary files, and complete
1529 # config.log. We remove comments because anyway the quotes in there
1530 # would cause problems or look ugly.
1531 # WARNING: Use '\'' to represent an apostrophe within the trap.
1532 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1533 trap 'exit_status=$?
1534 # Save into config.log some information that might help in debugging.
1535 {
1536 echo
1537
1538 $as_echo "## ---------------- ##
1539 ## Cache variables. ##
1540 ## ---------------- ##"
1541 echo
1542 # The following way of writing the cache mishandles newlines in values,
1543 (
1544 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1545 eval ac_val=\$$ac_var
1546 case $ac_val in #(
1547 *${as_nl}*)
1548 case $ac_var in #(
1549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1551 esac
1552 case $ac_var in #(
1553 _ | IFS | as_nl) ;; #(
1554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1555 *) { eval $ac_var=; unset $ac_var;} ;;
1556 esac ;;
1557 esac
1558 done
1559 (set) 2>&1 |
1560 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1561 *${as_nl}ac_space=\ *)
1562 sed -n \
1563 "s/'\''/'\''\\\\'\'''\''/g;
1564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1565 ;; #(
1566 *)
1567 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1568 ;;
1569 esac |
1570 sort
1571 )
1572 echo
1573
1574 $as_echo "## ----------------- ##
1575 ## Output variables. ##
1576 ## ----------------- ##"
1577 echo
1578 for ac_var in $ac_subst_vars
1579 do
1580 eval ac_val=\$$ac_var
1581 case $ac_val in
1582 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1583 esac
1584 $as_echo "$ac_var='\''$ac_val'\''"
1585 done | sort
1586 echo
1587
1588 if test -n "$ac_subst_files"; then
1589 $as_echo "## ------------------- ##
1590 ## File substitutions. ##
1591 ## ------------------- ##"
1592 echo
1593 for ac_var in $ac_subst_files
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 $as_echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602 fi
1603
1604 if test -s confdefs.h; then
1605 $as_echo "## ----------- ##
1606 ## confdefs.h. ##
1607 ## ----------- ##"
1608 echo
1609 cat confdefs.h
1610 echo
1611 fi
1612 test "$ac_signal" != 0 &&
1613 $as_echo "$as_me: caught signal $ac_signal"
1614 $as_echo "$as_me: exit $exit_status"
1615 } >&5
1616 rm -f core *.core core.conftest.* &&
1617 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1618 exit $exit_status
1619 ' 0
1620 for ac_signal in 1 2 13 15; do
1621 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1622 done
1623 ac_signal=0
1624
1625 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1626 rm -f -r conftest* confdefs.h
1627
1628 $as_echo "/* confdefs.h */" > confdefs.h
1629
1630 # Predefined preprocessor variables.
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_NAME "$PACKAGE_NAME"
1634 _ACEOF
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638 _ACEOF
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1642 _ACEOF
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_STRING "$PACKAGE_STRING"
1646 _ACEOF
1647
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1650 _ACEOF
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_URL "$PACKAGE_URL"
1654 _ACEOF
1655
1656
1657 # Let the site file select an alternate cache file if it wants to.
1658 # Prefer an explicitly selected file to automatically selected ones.
1659 ac_site_file1=NONE
1660 ac_site_file2=NONE
1661 if test -n "$CONFIG_SITE"; then
1662 # We do not want a PATH search for config.site.
1663 case $CONFIG_SITE in #((
1664 -*) ac_site_file1=./$CONFIG_SITE;;
1665 */*) ac_site_file1=$CONFIG_SITE;;
1666 *) ac_site_file1=./$CONFIG_SITE;;
1667 esac
1668 elif test "x$prefix" != xNONE; then
1669 ac_site_file1=$prefix/share/config.site
1670 ac_site_file2=$prefix/etc/config.site
1671 else
1672 ac_site_file1=$ac_default_prefix/share/config.site
1673 ac_site_file2=$ac_default_prefix/etc/config.site
1674 fi
1675 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1676 do
1677 test "x$ac_site_file" = xNONE && continue
1678 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1680 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1681 sed 's/^/| /' "$ac_site_file" >&5
1682 . "$ac_site_file" \
1683 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1685 as_fn_error $? "failed to load site script $ac_site_file
1686 See \`config.log' for more details" "$LINENO" 5; }
1687 fi
1688 done
1689
1690 if test -r "$cache_file"; then
1691 # Some versions of bash will fail to source /dev/null (special files
1692 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1693 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1695 $as_echo "$as_me: loading cache $cache_file" >&6;}
1696 case $cache_file in
1697 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1698 *) . "./$cache_file";;
1699 esac
1700 fi
1701 else
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1703 $as_echo "$as_me: creating cache $cache_file" >&6;}
1704 >$cache_file
1705 fi
1706
1707 # Check that the precious variables saved in the cache have kept the same
1708 # value.
1709 ac_cache_corrupted=false
1710 for ac_var in $ac_precious_vars; do
1711 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1712 eval ac_new_set=\$ac_env_${ac_var}_set
1713 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1714 eval ac_new_val=\$ac_env_${ac_var}_value
1715 case $ac_old_set,$ac_new_set in
1716 set,)
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1718 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1719 ac_cache_corrupted=: ;;
1720 ,set)
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1722 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,);;
1725 *)
1726 if test "x$ac_old_val" != "x$ac_new_val"; then
1727 # differences in whitespace do not lead to failure.
1728 ac_old_val_w=`echo x $ac_old_val`
1729 ac_new_val_w=`echo x $ac_new_val`
1730 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1732 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1733 ac_cache_corrupted=:
1734 else
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1736 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1737 eval $ac_var=\$ac_old_val
1738 fi
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1740 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1742 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1743 fi;;
1744 esac
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1747 case $ac_new_val in
1748 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1750 esac
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1754 esac
1755 fi
1756 done
1757 if $ac_cache_corrupted; then
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1761 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1762 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1763 fi
1764 ## -------------------- ##
1765 ## Main body of script. ##
1766 ## -------------------- ##
1767
1768 ac_ext=c
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 if test -n "$ac_tool_prefix"; then
1786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1787 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1789 $as_echo_n "checking for $ac_word... " >&6; }
1790 if ${ac_cv_prog_CC+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1806 fi
1807 done
1808 done
1809 IFS=$as_save_IFS
1810
1811 fi
1812 fi
1813 CC=$ac_cv_prog_CC
1814 if test -n "$CC"; then
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1816 $as_echo "$CC" >&6; }
1817 else
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1819 $as_echo "no" >&6; }
1820 fi
1821
1822
1823 fi
1824 if test -z "$ac_cv_prog_CC"; then
1825 ac_ct_CC=$CC
1826 # Extract the first word of "gcc", so it can be a program name with args.
1827 set dummy gcc; ac_word=$2
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1829 $as_echo_n "checking for $ac_word... " >&6; }
1830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC="gcc"
1844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847 done
1848 done
1849 IFS=$as_save_IFS
1850
1851 fi
1852 fi
1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854 if test -n "$ac_ct_CC"; then
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1856 $as_echo "$ac_ct_CC" >&6; }
1857 else
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1859 $as_echo "no" >&6; }
1860 fi
1861
1862 if test "x$ac_ct_CC" = x; then
1863 CC=""
1864 else
1865 case $cross_compiling:$ac_tool_warned in
1866 yes:)
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1869 ac_tool_warned=yes ;;
1870 esac
1871 CC=$ac_ct_CC
1872 fi
1873 else
1874 CC="$ac_cv_prog_CC"
1875 fi
1876
1877 if test -z "$CC"; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}cc; ac_word=$2
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1882 $as_echo_n "checking for $ac_word... " >&6; }
1883 if ${ac_cv_prog_CC+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="${ac_tool_prefix}cc"
1897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1899 fi
1900 done
1901 done
1902 IFS=$as_save_IFS
1903
1904 fi
1905 fi
1906 CC=$ac_cv_prog_CC
1907 if test -n "$CC"; then
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1909 $as_echo "$CC" >&6; }
1910 else
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1912 $as_echo "no" >&6; }
1913 fi
1914
1915
1916 fi
1917 fi
1918 if test -z "$CC"; then
1919 # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1922 $as_echo_n "checking for $ac_word... " >&6; }
1923 if ${ac_cv_prog_CC+:} false; then :
1924 $as_echo_n "(cached) " >&6
1925 else
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1928 else
1929 ac_prog_rejected=no
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1938 ac_prog_rejected=yes
1939 continue
1940 fi
1941 ac_cv_prog_CC="cc"
1942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1944 fi
1945 done
1946 done
1947 IFS=$as_save_IFS
1948
1949 if test $ac_prog_rejected = yes; then
1950 # We found a bogon in the path, so make sure we never use it.
1951 set dummy $ac_cv_prog_CC
1952 shift
1953 if test $# != 0; then
1954 # We chose a different compiler from the bogus one.
1955 # However, it has the same basename, so the bogon will be chosen
1956 # first if we set CC to just the basename; use the full file name.
1957 shift
1958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1959 fi
1960 fi
1961 fi
1962 fi
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1966 $as_echo "$CC" >&6; }
1967 else
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1969 $as_echo "no" >&6; }
1970 fi
1971
1972
1973 fi
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in cl.exe
1977 do
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1981 $as_echo_n "checking for $ac_word... " >&6; }
1982 if ${ac_cv_prog_CC+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1998 fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2008 $as_echo "$CC" >&6; }
2009 else
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2011 $as_echo "no" >&6; }
2012 fi
2013
2014
2015 test -n "$CC" && break
2016 done
2017 fi
2018 if test -z "$CC"; then
2019 ac_ct_CC=$CC
2020 for ac_prog in cl.exe
2021 do
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2025 $as_echo_n "checking for $ac_word... " >&6; }
2026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2052 $as_echo "$ac_ct_CC" >&6; }
2053 else
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2055 $as_echo "no" >&6; }
2056 fi
2057
2058
2059 test -n "$ac_ct_CC" && break
2060 done
2061
2062 if test "x$ac_ct_CC" = x; then
2063 CC=""
2064 else
2065 case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2069 ac_tool_warned=yes ;;
2070 esac
2071 CC=$ac_ct_CC
2072 fi
2073 fi
2074
2075 fi
2076
2077
2078 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details" "$LINENO" 5; }
2082
2083 # Provide some information about the compiler.
2084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2085 set X $ac_compile
2086 ac_compiler=$2
2087 for ac_option in --version -v -V -qversion; do
2088 { { ac_try="$ac_compiler $ac_option >&5"
2089 case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 sed '10a\
2099 ... rest of stderr output deleted ...
2100 10q' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 fi
2103 rm -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; }
2106 done
2107
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110
2111 int
2112 main ()
2113 {
2114
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2123 # of exeext.
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2125 $as_echo_n "checking whether the C compiler works... " >&6; }
2126 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127
2128 # The possible output files:
2129 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2130
2131 ac_rmfiles=
2132 for ac_file in $ac_files
2133 do
2134 case $ac_file in
2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2137 esac
2138 done
2139 rm -f $ac_rmfiles
2140
2141 if { { ac_try="$ac_link_default"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link_default") 2>&5
2149 ac_status=$?
2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151 test $ac_status = 0; }; then :
2152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2155 # so that the user can short-circuit this test for compilers unknown to
2156 # Autoconf.
2157 for ac_file in $ac_files ''
2158 do
2159 test -f "$ac_file" || continue
2160 case $ac_file in
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2162 ;;
2163 [ab].out )
2164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
2167 *.* )
2168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2169 then :; else
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 fi
2172 # We set ac_cv_exeext here because the later test for it is not
2173 # safe: cross compilers may not add the suffix if given an `-o'
2174 # argument, so we may need to know it at that point already.
2175 # Even if this section looks crufty: it has the advantage of
2176 # actually working.
2177 break;;
2178 * )
2179 break;;
2180 esac
2181 done
2182 test "$ac_cv_exeext" = no && ac_cv_exeext=
2183
2184 else
2185 ac_file=''
2186 fi
2187 if test -z "$ac_file"; then :
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2189 $as_echo "no" >&6; }
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195 as_fn_error 77 "C compiler cannot create executables
2196 See \`config.log' for more details" "$LINENO" 5; }
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2199 $as_echo "yes" >&6; }
2200 fi
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2202 $as_echo_n "checking for C compiler default output file name... " >&6; }
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2204 $as_echo "$ac_file" >&6; }
2205 ac_exeext=$ac_cv_exeext
2206
2207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2208 ac_clean_files=$ac_clean_files_save
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2210 $as_echo_n "checking for suffix of executables... " >&6; }
2211 if { { ac_try="$ac_link"
2212 case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_link") 2>&5
2219 ac_status=$?
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; }; then :
2222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2224 # work properly (i.e., refer to `conftest.exe'), while it won't with
2225 # `rm'.
2226 for ac_file in conftest.exe conftest conftest.*; do
2227 test -f "$ac_file" || continue
2228 case $ac_file in
2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 break;;
2232 * ) break;;
2233 esac
2234 done
2235 else
2236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details" "$LINENO" 5; }
2240 fi
2241 rm -f conftest conftest$ac_cv_exeext
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2243 $as_echo "$ac_cv_exeext" >&6; }
2244
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2247 ac_exeext=$EXEEXT
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 #include <stdio.h>
2251 int
2252 main ()
2253 {
2254 FILE *f = fopen ("conftest.out", "w");
2255 return ferror (f) || fclose (f) != 0;
2256
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 ac_clean_files="$ac_clean_files conftest.out"
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2265 $as_echo_n "checking whether we are cross compiling... " >&6; }
2266 if test "$cross_compiling" != yes; then
2267 { { ac_try="$ac_link"
2268 case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_link") 2>&5
2275 ac_status=$?
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; }
2278 if { ac_try='./conftest$ac_cv_exeext'
2279 { { case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282 esac
2283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284 $as_echo "$ac_try_echo"; } >&5
2285 (eval "$ac_try") 2>&5
2286 ac_status=$?
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; }; }; then
2289 cross_compiling=no
2290 else
2291 if test "$cross_compiling" = maybe; then
2292 cross_compiling=yes
2293 else
2294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "cannot run C compiled programs.
2297 If you meant to cross compile, use \`--host'.
2298 See \`config.log' for more details" "$LINENO" 5; }
2299 fi
2300 fi
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2303 $as_echo "$cross_compiling" >&6; }
2304
2305 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2306 ac_clean_files=$ac_clean_files_save
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2308 $as_echo_n "checking for suffix of object files... " >&6; }
2309 if ${ac_cv_objext+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314
2315 int
2316 main ()
2317 {
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { { ac_try="$ac_compile"
2325 case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_compile") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; }; then :
2335 for ac_file in conftest.o conftest.obj conftest.*; do
2336 test -f "$ac_file" || continue;
2337 case $ac_file in
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 break;;
2341 esac
2342 done
2343 else
2344 $as_echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 as_fn_error $? "cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details" "$LINENO" 5; }
2351 fi
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 fi
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2355 $as_echo "$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2359 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2360 if ${ac_cv_c_compiler_gnu+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365
2366 int
2367 main ()
2368 {
2369 #ifndef __GNUC__
2370 choke me
2371 #endif
2372
2373 ;
2374 return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378 ac_compiler_gnu=yes
2379 else
2380 ac_compiler_gnu=no
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384
2385 fi
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2387 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2388 if test $ac_compiler_gnu = yes; then
2389 GCC=yes
2390 else
2391 GCC=
2392 fi
2393 ac_test_CFLAGS=${CFLAGS+set}
2394 ac_save_CFLAGS=$CFLAGS
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2396 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2397 if ${ac_cv_prog_cc_g+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 ac_save_c_werror_flag=$ac_c_werror_flag
2401 ac_c_werror_flag=yes
2402 ac_cv_prog_cc_g=no
2403 CFLAGS="-g"
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406
2407 int
2408 main ()
2409 {
2410
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 ac_cv_prog_cc_g=yes
2417 else
2418 CFLAGS=""
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421
2422 int
2423 main ()
2424 {
2425
2426 ;
2427 return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431
2432 else
2433 ac_c_werror_flag=$ac_save_c_werror_flag
2434 CFLAGS="-g"
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437
2438 int
2439 main ()
2440 {
2441
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447 ac_cv_prog_cc_g=yes
2448 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 ac_c_werror_flag=$ac_save_c_werror_flag
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2457 $as_echo "$ac_cv_prog_cc_g" >&6; }
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS=$ac_save_CFLAGS
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2462 CFLAGS="-g -O2"
2463 else
2464 CFLAGS="-g"
2465 fi
2466 else
2467 if test "$GCC" = yes; then
2468 CFLAGS="-O2"
2469 else
2470 CFLAGS=
2471 fi
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2474 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2475 if ${ac_cv_prog_cc_c89+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 ac_cv_prog_cc_c89=no
2479 ac_save_CC=$CC
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 #include <stdarg.h>
2483 #include <stdio.h>
2484 struct stat;
2485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2486 struct buf { int x; };
2487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488 static char *e (p, i)
2489 char **p;
2490 int i;
2491 {
2492 return p[i];
2493 }
2494 static char *f (char * (*g) (char **, int), char **p, ...)
2495 {
2496 char *s;
2497 va_list v;
2498 va_start (v,p);
2499 s = g (p, va_arg (v,int));
2500 va_end (v);
2501 return s;
2502 }
2503
2504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2505 function prototypes and stuff, but not '\xHH' hex character constants.
2506 These don't provoke an error unfortunately, instead are silently treated
2507 as 'x'. The following induces an error, until -std is added to get
2508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2509 array size at least. It's necessary to write '\x00'==0 to get something
2510 that's true only with -std. */
2511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512
2513 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2514 inside strings and character constants. */
2515 #define FOO(x) 'x'
2516 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2517
2518 int test (int i, double x);
2519 struct s1 {int (*f) (int a);};
2520 struct s2 {int (*f) (double a);};
2521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2522 int argc;
2523 char **argv;
2524 int
2525 main ()
2526 {
2527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2528 ;
2529 return 0;
2530 }
2531 _ACEOF
2532 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2533 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534 do
2535 CC="$ac_save_CC $ac_arg"
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 ac_cv_prog_cc_c89=$ac_arg
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext
2540 test "x$ac_cv_prog_cc_c89" != "xno" && break
2541 done
2542 rm -f conftest.$ac_ext
2543 CC=$ac_save_CC
2544
2545 fi
2546 # AC_CACHE_VAL
2547 case "x$ac_cv_prog_cc_c89" in
2548 x)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2550 $as_echo "none needed" >&6; } ;;
2551 xno)
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2553 $as_echo "unsupported" >&6; } ;;
2554 *)
2555 CC="$CC $ac_cv_prog_cc_c89"
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2557 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2558 esac
2559 if test "x$ac_cv_prog_cc_c89" != xno; then :
2560
2561 fi
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569 ac_aux_dir=
2570 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2571 if test -f "$ac_dir/install-sh"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/install-sh -c"
2574 break
2575 elif test -f "$ac_dir/install.sh"; then
2576 ac_aux_dir=$ac_dir
2577 ac_install_sh="$ac_aux_dir/install.sh -c"
2578 break
2579 elif test -f "$ac_dir/shtool"; then
2580 ac_aux_dir=$ac_dir
2581 ac_install_sh="$ac_aux_dir/shtool install -c"
2582 break
2583 fi
2584 done
2585 if test -z "$ac_aux_dir"; then
2586 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2587 fi
2588
2589 # These three variables are undocumented and unsupported,
2590 # and are intended to be withdrawn in a future Autoconf release.
2591 # They can cause serious problems if a builder's source tree is in a directory
2592 # whose full name contains unusual characters.
2593 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2594 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2595 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2596
2597
2598 # Find a good install program. We prefer a C program (faster),
2599 # so one script is as good as another. But avoid the broken or
2600 # incompatible versions:
2601 # SysV /etc/install, /usr/sbin/install
2602 # SunOS /usr/etc/install
2603 # IRIX /sbin/install
2604 # AIX /bin/install
2605 # AmigaOS /C/install, which installs bootblocks on floppy discs
2606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2609 # OS/2's system install, which has a completely different semantic
2610 # ./install, which can be erroneously created by make from ./install.sh.
2611 # Reject install programs that cannot install multiple files.
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2613 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2614 if test -z "$INSTALL"; then
2615 if ${ac_cv_path_install+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 # Account for people who put trailing slashes in PATH elements.
2624 case $as_dir/ in #((
2625 ./ | .// | /[cC]/* | \
2626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2627 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2628 /usr/ucb/* ) ;;
2629 *)
2630 # OSF1 and SCO ODT 3.0 have their own names for install.
2631 # Don't use installbsd from OSF since it installs stuff as root
2632 # by default.
2633 for ac_prog in ginstall scoinst install; do
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2636 if test $ac_prog = install &&
2637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638 # AIX install. It has an incompatible calling convention.
2639 :
2640 elif test $ac_prog = install &&
2641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2642 # program-specific install script used by HP pwplus--don't use.
2643 :
2644 else
2645 rm -rf conftest.one conftest.two conftest.dir
2646 echo one > conftest.one
2647 echo two > conftest.two
2648 mkdir conftest.dir
2649 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2650 test -s conftest.one && test -s conftest.two &&
2651 test -s conftest.dir/conftest.one &&
2652 test -s conftest.dir/conftest.two
2653 then
2654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2655 break 3
2656 fi
2657 fi
2658 fi
2659 done
2660 done
2661 ;;
2662 esac
2663
2664 done
2665 IFS=$as_save_IFS
2666
2667 rm -rf conftest.one conftest.two conftest.dir
2668
2669 fi
2670 if test "${ac_cv_path_install+set}" = set; then
2671 INSTALL=$ac_cv_path_install
2672 else
2673 # As a last resort, use the slow shell script. Don't cache a
2674 # value for INSTALL within a source directory, because that will
2675 # break other packages using the cache if that directory is
2676 # removed, or if the value is a relative name.
2677 INSTALL=$ac_install_sh
2678 fi
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2681 $as_echo "$INSTALL" >&6; }
2682
2683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2684 # It thinks the first close brace ends the variable substitution.
2685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2686
2687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2688
2689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2690
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2694 am__leading_dot=.
2695 else
2696 am__leading_dot=_
2697 fi
2698 rmdir .tst 2>/dev/null
2699
2700 DEPDIR="${am__leading_dot}deps"
2701
2702 # Dependency checking.
2703
2704
2705 ac_config_commands="$ac_config_commands depdir"
2706
2707
2708 depcc="$CC" am_compiler_list=
2709
2710 am_depcomp=$ac_aux_dir/depcomp
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2712 $as_echo_n "checking dependency style of $depcc... " >&6; }
2713 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -f "$am_depcomp"; then
2717 # We make a subdir and do the tests there. Otherwise we can end up
2718 # making bogus files that we don't know about and never remove. For
2719 # instance it was reported that on HP-UX the gcc test will end up
2720 # making a dummy file named `D' -- because `-MD' means `put the output
2721 # in D'.
2722 mkdir conftest.dir
2723 # Copy depcomp to subdir because otherwise we won't find it if we're
2724 # using a relative directory.
2725 cp "$am_depcomp" conftest.dir
2726 cd conftest.dir
2727 # We will build objects and dependencies in a subdirectory because
2728 # it helps to detect inapplicable dependency modes. For instance
2729 # both Tru64's cc and ICC support -MD to output dependencies as a
2730 # side effect of compilation, but ICC will put the dependencies in
2731 # the current directory while Tru64 will put them in the object
2732 # directory.
2733 mkdir sub
2734
2735 am_cv_CC_dependencies_compiler_type=none
2736 if test "$am_compiler_list" = ""; then
2737 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2738 fi
2739 for depmode in $am_compiler_list; do
2740 if test $depmode = none; then break; fi
2741
2742 $as_echo "$as_me:$LINENO: trying $depmode" >&5
2743 # Setup a source with many dependencies, because some compilers
2744 # like to wrap large dependency lists on column 80 (with \), and
2745 # we should not choose a depcomp mode which is confused by this.
2746 #
2747 # We need to recreate these files for each test, as the compiler may
2748 # overwrite some of them when testing with obscure command lines.
2749 # This happens at least with the AIX C compiler.
2750 : > sub/conftest.c
2751 for i in 1 2 3 4 5 6; do
2752 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2753 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2754 # Solaris 8's {/usr,}/bin/sh.
2755 touch sub/conftst$i.h
2756 done
2757 echo "include sub/conftest.Po" > confmf
2758
2759 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2760 # mode. It turns out that the SunPro C++ compiler does not properly
2761 # handle `-M -o', and we need to detect this.
2762 depcmd="depmode=$depmode \
2763 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2765 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2766 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2767 if env $depcmd > conftest.err 2>&1 &&
2768 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2769 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2770 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2771 # icc doesn't choke on unknown options, it will just issue warnings
2772 # or remarks (even with -Werror). So we grep stderr for any message
2773 # that says an option was ignored or not supported.
2774 # When given -MP, icc 7.0 and 7.1 complain thusly:
2775 # icc: Command line warning: ignoring option '-M'; no argument required
2776 # The diagnosis changed in icc 8.0:
2777 # icc: Command line remark: option '-MP' not supported
2778 if (grep 'ignoring option' conftest.err ||
2779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2780 am_cv_CC_dependencies_compiler_type=$depmode
2781 $as_echo "$as_me:$LINENO: success" >&5
2782 break
2783 fi
2784 fi
2785 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2786 sed -e 's/^/| /' < conftest.err >&5
2787 done
2788
2789 cd ..
2790 rm -rf conftest.dir
2791 else
2792 am_cv_CC_dependencies_compiler_type=none
2793 fi
2794
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2797 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2798 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2799 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
2800 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2801
2802 fi
2803
2804
2805 ALL_LINGUAS=
2806 # If we haven't got the data from the intl directory,
2807 # assume NLS is disabled.
2808 USE_NLS=no
2809 LIBINTL=
2810 LIBINTL_DEP=
2811 INCINTL=
2812 XGETTEXT=
2813 GMSGFMT=
2814 POSUB=
2815
2816 if test -f ../../intl/config.intl; then
2817 . ../../intl/config.intl
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2820 $as_echo_n "checking whether NLS is requested... " >&6; }
2821 if test x"$USE_NLS" != xyes; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826 $as_echo "yes" >&6; }
2827
2828 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
2829
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
2832 $as_echo_n "checking for catalogs to be installed... " >&6; }
2833 # Look for .po and .gmo files in the source directory.
2834 CATALOGS=
2835 XLINGUAS=
2836 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2837 # If there aren't any .gmo files the shell will give us the
2838 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2839 # weeded out.
2840 case "$cat" in *\**)
2841 continue;;
2842 esac
2843 # The quadruple backslash is collapsed to a double backslash
2844 # by the backticks, then collapsed again by the double quotes,
2845 # leaving us with one backslash in the sed expression (right
2846 # before the dot that mustn't act as a wildcard).
2847 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2848 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2849 # The user is allowed to set LINGUAS to a list of languages to
2850 # install catalogs for. If it's empty that means "all of them."
2851 if test "x$LINGUAS" = x; then
2852 CATALOGS="$CATALOGS $cat"
2853 XLINGUAS="$XLINGUAS $lang"
2854 else
2855 case "$LINGUAS" in *$lang*)
2856 CATALOGS="$CATALOGS $cat"
2857 XLINGUAS="$XLINGUAS $lang"
2858 ;;
2859 esac
2860 fi
2861 done
2862 LINGUAS="$XLINGUAS"
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
2864 $as_echo "$LINGUAS" >&6; }
2865
2866
2867 DATADIRNAME=share
2868
2869 INSTOBJEXT=.mo
2870
2871 GENCAT=gencat
2872
2873 CATOBJEXT=.gmo
2874
2875 fi
2876
2877
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2879 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2880 # Check whether --enable-maintainer-mode was given.
2881 if test "${enable_maintainer_mode+set}" = set; then :
2882 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2883 else
2884 USE_MAINTAINER_MODE=no
2885 fi
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2888 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2889 if test $USE_MAINTAINER_MODE = yes; then
2890 MAINTAINER_MODE_TRUE=
2891 MAINTAINER_MODE_FALSE='#'
2892 else
2893 MAINTAINER_MODE_TRUE='#'
2894 MAINTAINER_MODE_FALSE=
2895 fi
2896
2897 MAINT=$MAINTAINER_MODE_TRUE
2898
2899
2900
2901
2902 sim_inline="-DDEFAULT_INLINE=0"
2903 # Check whether --enable-sim-inline was given.
2904 if test "${enable_sim_inline+set}" = set; then :
2905 enableval=$enable_sim_inline; sim_inline=""
2906 case "$enableval" in
2907 no) sim_inline="-DDEFAULT_INLINE=0";;
2908 0) sim_inline="-DDEFAULT_INLINE=0";;
2909 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
2910 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
2911 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
2912 new_flag=""
2913 case "$x" in
2914 *_INLINE=*) new_flag="-D$x";;
2915 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
2916 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
2917 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
2918 esac
2919 if test x"$sim_inline" = x""; then
2920 sim_inline="$new_flag"
2921 else
2922 sim_inline="$sim_inline $new_flag"
2923 fi
2924 done;;
2925 esac
2926 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
2927 echo "Setting inline flags = $sim_inline" 6>&1
2928 fi
2929 fi
2930
2931
2932
2933 # Check whether --enable-cycle-accurate was given.
2934 if test "${enable_cycle_accurate+set}" = set; then :
2935 enableval=$enable_cycle_accurate; case "${enableval}" in
2936 yes | no) ;;
2937 *) as_fn_error $? "bad value ${enableval} given for --enable-cycle-accurate option" "$LINENO" 5 ;;
2938 esac
2939 fi
2940
2941
2942 echo enable_cycle_accurate is $enable_cycle_accurate
2943
2944 if test "x${enable_cycle_accurate}" != xno; then
2945 sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
2946 fi
2947
2948
2949
2950 hardware="cfi core pal glue "
2951 sim_hw_cflags="-DWITH_HW=1"
2952 sim_hw="$hardware"
2953 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
2954
2955 # Check whether --enable-sim-hardware was given.
2956 if test "${enable_sim_hardware+set}" = set; then :
2957 enableval=$enable_sim_hardware;
2958 else
2959 enable_sim_hardware="yes"
2960 fi
2961
2962 case ${enable_sim_hardware} in
2963 yes|no) ;;
2964 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
2965 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
2966 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
2967 esac
2968
2969 if test "$enable_sim_hardware" = no; then
2970 sim_hw_objs=
2971 sim_hw_cflags="-DWITH_HW=0"
2972 sim_hw=
2973 else
2974 sim_hw_cflags="-DWITH_HW=1"
2975 # remove duplicates
2976 sim_hw=""
2977 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
2978 for i in $hardware ; do
2979 case " $sim_hw " in
2980 *" $i "*) ;;
2981 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
2982 esac
2983 done
2984 # mingw does not support sockser
2985 case ${host} in
2986 *mingw*) ;;
2987 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
2988 # that you instatiate. Instead, other code will call into it directly.
2989 # At some point, we should convert it over.
2990 sim_hw_objs="$sim_hw_objs dv-sockser.o"
2991 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
2992 ;;
2993 esac
2994 if test x"$silent" != x"yes"; then
2995 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
2996 fi
2997 fi
2998
2999
3000 cgen_breaks=""
3001 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3002 cgen_breaks="break cgen_rtx_error";
3003 fi
3004
3005 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
3006
3007 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
3008
3009 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
3010
3011 ac_config_commands="$ac_config_commands Makefile"
3012
3013 ac_config_commands="$ac_config_commands stamp-h"
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025 cat >confcache <<\_ACEOF
3026 # This file is a shell script that caches the results of configure
3027 # tests run on this system so they can be shared between configure
3028 # scripts and configure runs, see configure's option --config-cache.
3029 # It is not useful on other systems. If it contains results you don't
3030 # want to keep, you may remove or edit it.
3031 #
3032 # config.status only pays attention to the cache file if you give it
3033 # the --recheck option to rerun configure.
3034 #
3035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3037 # following values.
3038
3039 _ACEOF
3040
3041 # The following way of writing the cache mishandles newlines in values,
3042 # but we know of no workaround that is simple, portable, and efficient.
3043 # So, we kill variables containing newlines.
3044 # Ultrix sh set writes to stderr and can't be redirected directly,
3045 # and sets the high bit in the cache file unless we assign to the vars.
3046 (
3047 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3048 eval ac_val=\$$ac_var
3049 case $ac_val in #(
3050 *${as_nl}*)
3051 case $ac_var in #(
3052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3054 esac
3055 case $ac_var in #(
3056 _ | IFS | as_nl) ;; #(
3057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3058 *) { eval $ac_var=; unset $ac_var;} ;;
3059 esac ;;
3060 esac
3061 done
3062
3063 (set) 2>&1 |
3064 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3065 *${as_nl}ac_space=\ *)
3066 # `set' does not quote correctly, so add quotes: double-quote
3067 # substitution turns \\\\ into \\, and sed turns \\ into \.
3068 sed -n \
3069 "s/'/'\\\\''/g;
3070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3071 ;; #(
3072 *)
3073 # `set' quotes correctly as required by POSIX, so do not add quotes.
3074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3075 ;;
3076 esac |
3077 sort
3078 ) |
3079 sed '
3080 /^ac_cv_env_/b end
3081 t clear
3082 :clear
3083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3084 t end
3085 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3086 :end' >>confcache
3087 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3088 if test -w "$cache_file"; then
3089 if test "x$cache_file" != "x/dev/null"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3091 $as_echo "$as_me: updating cache $cache_file" >&6;}
3092 if test ! -f "$cache_file" || test -h "$cache_file"; then
3093 cat confcache >"$cache_file"
3094 else
3095 case $cache_file in #(
3096 */* | ?:*)
3097 mv -f confcache "$cache_file"$$ &&
3098 mv -f "$cache_file"$$ "$cache_file" ;; #(
3099 *)
3100 mv -f confcache "$cache_file" ;;
3101 esac
3102 fi
3103 fi
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3106 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3107 fi
3108 fi
3109 rm -f confcache
3110
3111 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3112 # Let make expand exec_prefix.
3113 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3114
3115 # Transform confdefs.h into DEFS.
3116 # Protect against shell expansion while executing Makefile rules.
3117 # Protect against Makefile macro expansion.
3118 #
3119 # If the first sed substitution is executed (which looks for macros that
3120 # take arguments), then branch to the quote section. Otherwise,
3121 # look for a macro that doesn't take arguments.
3122 ac_script='
3123 :mline
3124 /\\$/{
3125 N
3126 s,\\\n,,
3127 b mline
3128 }
3129 t clear
3130 :clear
3131 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3132 t quote
3133 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3134 t quote
3135 b any
3136 :quote
3137 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3138 s/\[/\\&/g
3139 s/\]/\\&/g
3140 s/\$/$$/g
3141 H
3142 :any
3143 ${
3144 g
3145 s/^\n//
3146 s/\n/ /g
3147 p
3148 }
3149 '
3150 DEFS=`sed -n "$ac_script" confdefs.h`
3151
3152
3153 ac_libobjs=
3154 ac_ltlibobjs=
3155 U=
3156 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3157 # 1. Remove the extension, and $U if already installed.
3158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3161 # will be set to the directory where LIBOBJS objects are built.
3162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3164 done
3165 LIBOBJS=$ac_libobjs
3166
3167 LTLIBOBJS=$ac_ltlibobjs
3168
3169
3170 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3171 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3173 fi
3174
3175 : "${CONFIG_STATUS=./config.status}"
3176 ac_write_fail=0
3177 ac_clean_files_save=$ac_clean_files
3178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3181 as_write_fail=0
3182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3183 #! $SHELL
3184 # Generated by $as_me.
3185 # Run this file to recreate the current configuration.
3186 # Compiler output produced by configure, useful for debugging
3187 # configure, is in config.log if it exists.
3188
3189 debug=false
3190 ac_cs_recheck=false
3191 ac_cs_silent=false
3192
3193 SHELL=\${CONFIG_SHELL-$SHELL}
3194 export SHELL
3195 _ASEOF
3196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3197 ## -------------------- ##
3198 ## M4sh Initialization. ##
3199 ## -------------------- ##
3200
3201 # Be more Bourne compatible
3202 DUALCASE=1; export DUALCASE # for MKS sh
3203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3204 emulate sh
3205 NULLCMD=:
3206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3207 # is contrary to our usage. Disable this feature.
3208 alias -g '${1+"$@"}'='"$@"'
3209 setopt NO_GLOB_SUBST
3210 else
3211 case `(set -o) 2>/dev/null` in #(
3212 *posix*) :
3213 set -o posix ;; #(
3214 *) :
3215 ;;
3216 esac
3217 fi
3218
3219
3220 as_nl='
3221 '
3222 export as_nl
3223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3227 # Prefer a ksh shell builtin over an external printf program on Solaris,
3228 # but without wasting forks for bash or zsh.
3229 if test -z "$BASH_VERSION$ZSH_VERSION" \
3230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3231 as_echo='print -r --'
3232 as_echo_n='print -rn --'
3233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3234 as_echo='printf %s\n'
3235 as_echo_n='printf %s'
3236 else
3237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3239 as_echo_n='/usr/ucb/echo -n'
3240 else
3241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3242 as_echo_n_body='eval
3243 arg=$1;
3244 case $arg in #(
3245 *"$as_nl"*)
3246 expr "X$arg" : "X\\(.*\\)$as_nl";
3247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3248 esac;
3249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3250 '
3251 export as_echo_n_body
3252 as_echo_n='sh -c $as_echo_n_body as_echo'
3253 fi
3254 export as_echo_body
3255 as_echo='sh -c $as_echo_body as_echo'
3256 fi
3257
3258 # The user is always right.
3259 if test "${PATH_SEPARATOR+set}" != set; then
3260 PATH_SEPARATOR=:
3261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3263 PATH_SEPARATOR=';'
3264 }
3265 fi
3266
3267
3268 # IFS
3269 # We need space, tab and new line, in precisely that order. Quoting is
3270 # there to prevent editors from complaining about space-tab.
3271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3272 # splitting by setting IFS to empty value.)
3273 IFS=" "" $as_nl"
3274
3275 # Find who we are. Look in the path if we contain no directory separator.
3276 as_myself=
3277 case $0 in #((
3278 *[\\/]* ) as_myself=$0 ;;
3279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3285 done
3286 IFS=$as_save_IFS
3287
3288 ;;
3289 esac
3290 # We did not find ourselves, most probably we were run as `sh COMMAND'
3291 # in which case we are not to be found in the path.
3292 if test "x$as_myself" = x; then
3293 as_myself=$0
3294 fi
3295 if test ! -f "$as_myself"; then
3296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3297 exit 1
3298 fi
3299
3300 # Unset variables that we do not need and which cause bugs (e.g. in
3301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3302 # suppresses any "Segmentation fault" message there. '((' could
3303 # trigger a bug in pdksh 5.2.14.
3304 for as_var in BASH_ENV ENV MAIL MAILPATH
3305 do eval test x\${$as_var+set} = xset \
3306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3307 done
3308 PS1='$ '
3309 PS2='> '
3310 PS4='+ '
3311
3312 # NLS nuisances.
3313 LC_ALL=C
3314 export LC_ALL
3315 LANGUAGE=C
3316 export LANGUAGE
3317
3318 # CDPATH.
3319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3320
3321
3322 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3323 # ----------------------------------------
3324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3326 # script with STATUS, using 1 if that was 0.
3327 as_fn_error ()
3328 {
3329 as_status=$1; test $as_status -eq 0 && as_status=1
3330 if test "$4"; then
3331 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3333 fi
3334 $as_echo "$as_me: error: $2" >&2
3335 as_fn_exit $as_status
3336 } # as_fn_error
3337
3338
3339 # as_fn_set_status STATUS
3340 # -----------------------
3341 # Set $? to STATUS, without forking.
3342 as_fn_set_status ()
3343 {
3344 return $1
3345 } # as_fn_set_status
3346
3347 # as_fn_exit STATUS
3348 # -----------------
3349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3350 as_fn_exit ()
3351 {
3352 set +e
3353 as_fn_set_status $1
3354 exit $1
3355 } # as_fn_exit
3356
3357 # as_fn_unset VAR
3358 # ---------------
3359 # Portably unset VAR.
3360 as_fn_unset ()
3361 {
3362 { eval $1=; unset $1;}
3363 }
3364 as_unset=as_fn_unset
3365 # as_fn_append VAR VALUE
3366 # ----------------------
3367 # Append the text in VALUE to the end of the definition contained in VAR. Take
3368 # advantage of any shell optimizations that allow amortized linear growth over
3369 # repeated appends, instead of the typical quadratic growth present in naive
3370 # implementations.
3371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3372 eval 'as_fn_append ()
3373 {
3374 eval $1+=\$2
3375 }'
3376 else
3377 as_fn_append ()
3378 {
3379 eval $1=\$$1\$2
3380 }
3381 fi # as_fn_append
3382
3383 # as_fn_arith ARG...
3384 # ------------------
3385 # Perform arithmetic evaluation on the ARGs, and store the result in the
3386 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3387 # must be portable across $(()) and expr.
3388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3389 eval 'as_fn_arith ()
3390 {
3391 as_val=$(( $* ))
3392 }'
3393 else
3394 as_fn_arith ()
3395 {
3396 as_val=`expr "$@" || test $? -eq 1`
3397 }
3398 fi # as_fn_arith
3399
3400
3401 if expr a : '\(a\)' >/dev/null 2>&1 &&
3402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3403 as_expr=expr
3404 else
3405 as_expr=false
3406 fi
3407
3408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3409 as_basename=basename
3410 else
3411 as_basename=false
3412 fi
3413
3414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3415 as_dirname=dirname
3416 else
3417 as_dirname=false
3418 fi
3419
3420 as_me=`$as_basename -- "$0" ||
3421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3422 X"$0" : 'X\(//\)$' \| \
3423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3424 $as_echo X/"$0" |
3425 sed '/^.*\/\([^/][^/]*\)\/*$/{
3426 s//\1/
3427 q
3428 }
3429 /^X\/\(\/\/\)$/{
3430 s//\1/
3431 q
3432 }
3433 /^X\/\(\/\).*/{
3434 s//\1/
3435 q
3436 }
3437 s/.*/./; q'`
3438
3439 # Avoid depending upon Character Ranges.
3440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3443 as_cr_digits='0123456789'
3444 as_cr_alnum=$as_cr_Letters$as_cr_digits
3445
3446 ECHO_C= ECHO_N= ECHO_T=
3447 case `echo -n x` in #(((((
3448 -n*)
3449 case `echo 'xy\c'` in
3450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3451 xy) ECHO_C='\c';;
3452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3453 ECHO_T=' ';;
3454 esac;;
3455 *)
3456 ECHO_N='-n';;
3457 esac
3458
3459 rm -f conf$$ conf$$.exe conf$$.file
3460 if test -d conf$$.dir; then
3461 rm -f conf$$.dir/conf$$.file
3462 else
3463 rm -f conf$$.dir
3464 mkdir conf$$.dir 2>/dev/null
3465 fi
3466 if (echo >conf$$.file) 2>/dev/null; then
3467 if ln -s conf$$.file conf$$ 2>/dev/null; then
3468 as_ln_s='ln -s'
3469 # ... but there are two gotchas:
3470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3472 # In both cases, we have to default to `cp -pR'.
3473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3474 as_ln_s='cp -pR'
3475 elif ln conf$$.file conf$$ 2>/dev/null; then
3476 as_ln_s=ln
3477 else
3478 as_ln_s='cp -pR'
3479 fi
3480 else
3481 as_ln_s='cp -pR'
3482 fi
3483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3484 rmdir conf$$.dir 2>/dev/null
3485
3486
3487 # as_fn_mkdir_p
3488 # -------------
3489 # Create "$as_dir" as a directory, including parents if necessary.
3490 as_fn_mkdir_p ()
3491 {
3492
3493 case $as_dir in #(
3494 -*) as_dir=./$as_dir;;
3495 esac
3496 test -d "$as_dir" || eval $as_mkdir_p || {
3497 as_dirs=
3498 while :; do
3499 case $as_dir in #(
3500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3501 *) as_qdir=$as_dir;;
3502 esac
3503 as_dirs="'$as_qdir' $as_dirs"
3504 as_dir=`$as_dirname -- "$as_dir" ||
3505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3506 X"$as_dir" : 'X\(//\)[^/]' \| \
3507 X"$as_dir" : 'X\(//\)$' \| \
3508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3509 $as_echo X"$as_dir" |
3510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3511 s//\1/
3512 q
3513 }
3514 /^X\(\/\/\)[^/].*/{
3515 s//\1/
3516 q
3517 }
3518 /^X\(\/\/\)$/{
3519 s//\1/
3520 q
3521 }
3522 /^X\(\/\).*/{
3523 s//\1/
3524 q
3525 }
3526 s/.*/./; q'`
3527 test -d "$as_dir" && break
3528 done
3529 test -z "$as_dirs" || eval "mkdir $as_dirs"
3530 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3531
3532
3533 } # as_fn_mkdir_p
3534 if mkdir -p . 2>/dev/null; then
3535 as_mkdir_p='mkdir -p "$as_dir"'
3536 else
3537 test -d ./-p && rmdir ./-p
3538 as_mkdir_p=false
3539 fi
3540
3541
3542 # as_fn_executable_p FILE
3543 # -----------------------
3544 # Test if FILE is an executable regular file.
3545 as_fn_executable_p ()
3546 {
3547 test -f "$1" && test -x "$1"
3548 } # as_fn_executable_p
3549 as_test_x='test -x'
3550 as_executable_p=as_fn_executable_p
3551
3552 # Sed expression to map a string onto a valid CPP name.
3553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3554
3555 # Sed expression to map a string onto a valid variable name.
3556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3557
3558
3559 exec 6>&1
3560 ## ----------------------------------- ##
3561 ## Main body of $CONFIG_STATUS script. ##
3562 ## ----------------------------------- ##
3563 _ASEOF
3564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3565
3566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3567 # Save the log message, to keep $0 and so on meaningful, and to
3568 # report actual input values of CONFIG_FILES etc. instead of their
3569 # values after options handling.
3570 ac_log="
3571 This file was extended by $as_me, which was
3572 generated by GNU Autoconf 2.69. Invocation command line was
3573
3574 CONFIG_FILES = $CONFIG_FILES
3575 CONFIG_HEADERS = $CONFIG_HEADERS
3576 CONFIG_LINKS = $CONFIG_LINKS
3577 CONFIG_COMMANDS = $CONFIG_COMMANDS
3578 $ $0 $@
3579
3580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3581 "
3582
3583 _ACEOF
3584
3585 case $ac_config_files in *"
3586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3587 esac
3588
3589
3590
3591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3592 # Files that config.status was made for.
3593 config_files="$ac_config_files"
3594 config_commands="$ac_config_commands"
3595
3596 _ACEOF
3597
3598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3599 ac_cs_usage="\
3600 \`$as_me' instantiates files and other configuration actions
3601 from templates according to the current configuration. Unless the files
3602 and actions are specified as TAGs, all are instantiated by default.
3603
3604 Usage: $0 [OPTION]... [TAG]...
3605
3606 -h, --help print this help, then exit
3607 -V, --version print version number and configuration settings, then exit
3608 --config print configuration, then exit
3609 -q, --quiet, --silent
3610 do not print progress messages
3611 -d, --debug don't remove temporary files
3612 --recheck update $as_me by reconfiguring in the same conditions
3613 --file=FILE[:TEMPLATE]
3614 instantiate the configuration file FILE
3615
3616 Configuration files:
3617 $config_files
3618
3619 Configuration commands:
3620 $config_commands
3621
3622 Report bugs to the package provider."
3623
3624 _ACEOF
3625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3626 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3627 ac_cs_version="\\
3628 config.status
3629 configured by $0, generated by GNU Autoconf 2.69,
3630 with options \\"\$ac_cs_config\\"
3631
3632 Copyright (C) 2012 Free Software Foundation, Inc.
3633 This config.status script is free software; the Free Software Foundation
3634 gives unlimited permission to copy, distribute and modify it."
3635
3636 ac_pwd='$ac_pwd'
3637 srcdir='$srcdir'
3638 INSTALL='$INSTALL'
3639 test -n "\$AWK" || AWK=awk
3640 _ACEOF
3641
3642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3643 # The default lists apply if the user does not specify any file.
3644 ac_need_defaults=:
3645 while test $# != 0
3646 do
3647 case $1 in
3648 --*=?*)
3649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3651 ac_shift=:
3652 ;;
3653 --*=)
3654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3655 ac_optarg=
3656 ac_shift=:
3657 ;;
3658 *)
3659 ac_option=$1
3660 ac_optarg=$2
3661 ac_shift=shift
3662 ;;
3663 esac
3664
3665 case $ac_option in
3666 # Handling of the options.
3667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3668 ac_cs_recheck=: ;;
3669 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3670 $as_echo "$ac_cs_version"; exit ;;
3671 --config | --confi | --conf | --con | --co | --c )
3672 $as_echo "$ac_cs_config"; exit ;;
3673 --debug | --debu | --deb | --de | --d | -d )
3674 debug=: ;;
3675 --file | --fil | --fi | --f )
3676 $ac_shift
3677 case $ac_optarg in
3678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3679 '') as_fn_error $? "missing file argument" ;;
3680 esac
3681 as_fn_append CONFIG_FILES " '$ac_optarg'"
3682 ac_need_defaults=false;;
3683 --he | --h | --help | --hel | -h )
3684 $as_echo "$ac_cs_usage"; exit ;;
3685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3687 ac_cs_silent=: ;;
3688
3689 # This is an error.
3690 -*) as_fn_error $? "unrecognized option: \`$1'
3691 Try \`$0 --help' for more information." ;;
3692
3693 *) as_fn_append ac_config_targets " $1"
3694 ac_need_defaults=false ;;
3695
3696 esac
3697 shift
3698 done
3699
3700 ac_configure_extra_args=
3701
3702 if $ac_cs_silent; then
3703 exec 6>/dev/null
3704 ac_configure_extra_args="$ac_configure_extra_args --silent"
3705 fi
3706
3707 _ACEOF
3708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3709 if \$ac_cs_recheck; then
3710 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3711 shift
3712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3713 CONFIG_SHELL='$SHELL'
3714 export CONFIG_SHELL
3715 exec "\$@"
3716 fi
3717
3718 _ACEOF
3719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3720 exec 5>>config.log
3721 {
3722 echo
3723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3724 ## Running $as_me. ##
3725 _ASBOX
3726 $as_echo "$ac_log"
3727 } >&5
3728
3729 _ACEOF
3730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3731 #
3732 # INIT-COMMANDS
3733 #
3734 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
3735
3736 _ACEOF
3737
3738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3739
3740 # Handling of arguments.
3741 for ac_config_target in $ac_config_targets
3742 do
3743 case $ac_config_target in
3744 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
3745 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
3746 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
3747 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
3748 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
3749 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
3750
3751 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3752 esac
3753 done
3754
3755
3756 # If the user did not use the arguments to specify the items to instantiate,
3757 # then the envvar interface is used. Set only those that are not.
3758 # We use the long form for the default assignment because of an extremely
3759 # bizarre bug on SunOS 4.1.3.
3760 if $ac_need_defaults; then
3761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3763 fi
3764
3765 # Have a temporary directory for convenience. Make it in the build tree
3766 # simply because there is no reason against having it here, and in addition,
3767 # creating and moving files from /tmp can sometimes cause problems.
3768 # Hook for its removal unless debugging.
3769 # Note that there is a small window in which the directory will not be cleaned:
3770 # after its creation but before its name has been assigned to `$tmp'.
3771 $debug ||
3772 {
3773 tmp= ac_tmp=
3774 trap 'exit_status=$?
3775 : "${ac_tmp:=$tmp}"
3776 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3777 ' 0
3778 trap 'as_fn_exit 1' 1 2 13 15
3779 }
3780 # Create a (secure) tmp directory for tmp files.
3781
3782 {
3783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3784 test -d "$tmp"
3785 } ||
3786 {
3787 tmp=./conf$$-$RANDOM
3788 (umask 077 && mkdir "$tmp")
3789 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3790 ac_tmp=$tmp
3791
3792 # Set up the scripts for CONFIG_FILES section.
3793 # No need to generate them if there are no CONFIG_FILES.
3794 # This happens for instance with `./config.status config.h'.
3795 if test -n "$CONFIG_FILES"; then
3796
3797
3798 ac_cr=`echo X | tr X '\015'`
3799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3800 # But we know of no other shell where ac_cr would be empty at this
3801 # point, so we can use a bashism as a fallback.
3802 if test "x$ac_cr" = x; then
3803 eval ac_cr=\$\'\\r\'
3804 fi
3805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3807 ac_cs_awk_cr='\\r'
3808 else
3809 ac_cs_awk_cr=$ac_cr
3810 fi
3811
3812 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3813 _ACEOF
3814
3815
3816 {
3817 echo "cat >conf$$subs.awk <<_ACEOF" &&
3818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3819 echo "_ACEOF"
3820 } >conf$$subs.sh ||
3821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3822 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3823 ac_delim='%!_!# '
3824 for ac_last_try in false false false false false :; do
3825 . ./conf$$subs.sh ||
3826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3827
3828 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3829 if test $ac_delim_n = $ac_delim_num; then
3830 break
3831 elif $ac_last_try; then
3832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3833 else
3834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3835 fi
3836 done
3837 rm -f conf$$subs.sh
3838
3839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3840 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3841 _ACEOF
3842 sed -n '
3843 h
3844 s/^/S["/; s/!.*/"]=/
3845 p
3846 g
3847 s/^[^!]*!//
3848 :repl
3849 t repl
3850 s/'"$ac_delim"'$//
3851 t delim
3852 :nl
3853 h
3854 s/\(.\{148\}\)..*/\1/
3855 t more1
3856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3857 p
3858 n
3859 b repl
3860 :more1
3861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3862 p
3863 g
3864 s/.\{148\}//
3865 t nl
3866 :delim
3867 h
3868 s/\(.\{148\}\)..*/\1/
3869 t more2
3870 s/["\\]/\\&/g; s/^/"/; s/$/"/
3871 p
3872 b
3873 :more2
3874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3875 p
3876 g
3877 s/.\{148\}//
3878 t delim
3879 ' <conf$$subs.awk | sed '
3880 /^[^""]/{
3881 N
3882 s/\n//
3883 }
3884 ' >>$CONFIG_STATUS || ac_write_fail=1
3885 rm -f conf$$subs.awk
3886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3887 _ACAWK
3888 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3889 for (key in S) S_is_set[key] = 1
3890 FS = "\a"
3891
3892 }
3893 {
3894 line = $ 0
3895 nfields = split(line, field, "@")
3896 substed = 0
3897 len = length(field[1])
3898 for (i = 2; i < nfields; i++) {
3899 key = field[i]
3900 keylen = length(key)
3901 if (S_is_set[key]) {
3902 value = S[key]
3903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3904 len += length(value) + length(field[++i])
3905 substed = 1
3906 } else
3907 len += 1 + keylen
3908 }
3909
3910 print line
3911 }
3912
3913 _ACAWK
3914 _ACEOF
3915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3918 else
3919 cat
3920 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3921 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3922 _ACEOF
3923
3924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3926 # trailing colons and then remove the whole line if VPATH becomes empty
3927 # (actually we leave an empty line to preserve line numbers).
3928 if test "x$srcdir" = x.; then
3929 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3930 h
3931 s///
3932 s/^/:/
3933 s/[ ]*$/:/
3934 s/:\$(srcdir):/:/g
3935 s/:\${srcdir}:/:/g
3936 s/:@srcdir@:/:/g
3937 s/^:*//
3938 s/:*$//
3939 x
3940 s/\(=[ ]*\).*/\1/
3941 G
3942 s/\n//
3943 s/^[^=]*=[ ]*$//
3944 }'
3945 fi
3946
3947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3948 fi # test -n "$CONFIG_FILES"
3949
3950
3951 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
3952 shift
3953 for ac_tag
3954 do
3955 case $ac_tag in
3956 :[FHLC]) ac_mode=$ac_tag; continue;;
3957 esac
3958 case $ac_mode$ac_tag in
3959 :[FHL]*:*);;
3960 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3961 :[FH]-) ac_tag=-:-;;
3962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3963 esac
3964 ac_save_IFS=$IFS
3965 IFS=:
3966 set x $ac_tag
3967 IFS=$ac_save_IFS
3968 shift
3969 ac_file=$1
3970 shift
3971
3972 case $ac_mode in
3973 :L) ac_source=$1;;
3974 :[FH])
3975 ac_file_inputs=
3976 for ac_f
3977 do
3978 case $ac_f in
3979 -) ac_f="$ac_tmp/stdin";;
3980 *) # Look for the file first in the build tree, then in the source tree
3981 # (if the path is not absolute). The absolute path cannot be DOS-style,
3982 # because $ac_f cannot contain `:'.
3983 test -f "$ac_f" ||
3984 case $ac_f in
3985 [\\/$]*) false;;
3986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3987 esac ||
3988 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3989 esac
3990 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3991 as_fn_append ac_file_inputs " '$ac_f'"
3992 done
3993
3994 # Let's still pretend it is `configure' which instantiates (i.e., don't
3995 # use $as_me), people would be surprised to read:
3996 # /* config.h. Generated by config.status. */
3997 configure_input='Generated from '`
3998 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3999 `' by configure.'
4000 if test x"$ac_file" != x-; then
4001 configure_input="$ac_file. $configure_input"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4003 $as_echo "$as_me: creating $ac_file" >&6;}
4004 fi
4005 # Neutralize special characters interpreted by sed in replacement strings.
4006 case $configure_input in #(
4007 *\&* | *\|* | *\\* )
4008 ac_sed_conf_input=`$as_echo "$configure_input" |
4009 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4010 *) ac_sed_conf_input=$configure_input;;
4011 esac
4012
4013 case $ac_tag in
4014 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4016 esac
4017 ;;
4018 esac
4019
4020 ac_dir=`$as_dirname -- "$ac_file" ||
4021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4022 X"$ac_file" : 'X\(//\)[^/]' \| \
4023 X"$ac_file" : 'X\(//\)$' \| \
4024 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4025 $as_echo X"$ac_file" |
4026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4027 s//\1/
4028 q
4029 }
4030 /^X\(\/\/\)[^/].*/{
4031 s//\1/
4032 q
4033 }
4034 /^X\(\/\/\)$/{
4035 s//\1/
4036 q
4037 }
4038 /^X\(\/\).*/{
4039 s//\1/
4040 q
4041 }
4042 s/.*/./; q'`
4043 as_dir="$ac_dir"; as_fn_mkdir_p
4044 ac_builddir=.
4045
4046 case "$ac_dir" in
4047 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4048 *)
4049 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4050 # A ".." for each directory in $ac_dir_suffix.
4051 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4052 case $ac_top_builddir_sub in
4053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4055 esac ;;
4056 esac
4057 ac_abs_top_builddir=$ac_pwd
4058 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4059 # for backward compatibility:
4060 ac_top_builddir=$ac_top_build_prefix
4061
4062 case $srcdir in
4063 .) # We are building in place.
4064 ac_srcdir=.
4065 ac_top_srcdir=$ac_top_builddir_sub
4066 ac_abs_top_srcdir=$ac_pwd ;;
4067 [\\/]* | ?:[\\/]* ) # Absolute name.
4068 ac_srcdir=$srcdir$ac_dir_suffix;
4069 ac_top_srcdir=$srcdir
4070 ac_abs_top_srcdir=$srcdir ;;
4071 *) # Relative name.
4072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4073 ac_top_srcdir=$ac_top_build_prefix$srcdir
4074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4075 esac
4076 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4077
4078
4079 case $ac_mode in
4080 :F)
4081 #
4082 # CONFIG_FILE
4083 #
4084
4085 case $INSTALL in
4086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4088 esac
4089 _ACEOF
4090
4091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4092 # If the template does not know about datarootdir, expand it.
4093 # FIXME: This hack should be removed a few years after 2.60.
4094 ac_datarootdir_hack=; ac_datarootdir_seen=
4095 ac_sed_dataroot='
4096 /datarootdir/ {
4097 p
4098 q
4099 }
4100 /@datadir@/p
4101 /@docdir@/p
4102 /@infodir@/p
4103 /@localedir@/p
4104 /@mandir@/p'
4105 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4106 *datarootdir*) ac_datarootdir_seen=yes;;
4107 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4109 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4110 _ACEOF
4111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4112 ac_datarootdir_hack='
4113 s&@datadir@&$datadir&g
4114 s&@docdir@&$docdir&g
4115 s&@infodir@&$infodir&g
4116 s&@localedir@&$localedir&g
4117 s&@mandir@&$mandir&g
4118 s&\\\${datarootdir}&$datarootdir&g' ;;
4119 esac
4120 _ACEOF
4121
4122 # Neutralize VPATH when `$srcdir' = `.'.
4123 # Shell code in configure.ac might set extrasub.
4124 # FIXME: do we really want to maintain this feature?
4125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4126 ac_sed_extra="$ac_vpsub
4127 $extrasub
4128 _ACEOF
4129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4130 :t
4131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4132 s|@configure_input@|$ac_sed_conf_input|;t t
4133 s&@top_builddir@&$ac_top_builddir_sub&;t t
4134 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4135 s&@srcdir@&$ac_srcdir&;t t
4136 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4137 s&@top_srcdir@&$ac_top_srcdir&;t t
4138 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4139 s&@builddir@&$ac_builddir&;t t
4140 s&@abs_builddir@&$ac_abs_builddir&;t t
4141 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4142 s&@INSTALL@&$ac_INSTALL&;t t
4143 $ac_datarootdir_hack
4144 "
4145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4147
4148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4151 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4153 which seems to be undefined. Please make sure it is defined" >&5
4154 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4155 which seems to be undefined. Please make sure it is defined" >&2;}
4156
4157 rm -f "$ac_tmp/stdin"
4158 case $ac_file in
4159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4161 esac \
4162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4163 ;;
4164
4165
4166 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4167 $as_echo "$as_me: executing $ac_file commands" >&6;}
4168 ;;
4169 esac
4170
4171
4172 case $ac_file$ac_mode in
4173 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
4174 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4175 rm -f Makesim1.tmp Makesim2.tmp Makefile
4176 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4177 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4178 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4179 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4180 <Makefile.sim >Makefile
4181 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4182 ;;
4183 "stamp-h":C) echo > stamp-h ;;
4184
4185 esac
4186 done # for ac_tag
4187
4188
4189 as_fn_exit 0
4190 _ACEOF
4191 ac_clean_files=$ac_clean_files_save
4192
4193 test $ac_write_fail = 0 ||
4194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4195
4196
4197 # configure is writing to config.log, and then calls config.status.
4198 # config.status does its own redirection, appending to config.log.
4199 # Unfortunately, on DOS this fails, as config.log is still kept open
4200 # by configure, so config.status won't be able to write to it; its
4201 # output is simply discarded. So we exec the FD to /dev/null,
4202 # effectively closing config.log, so it can be properly (re)opened and
4203 # appended to by config.status. When coming back to configure, we
4204 # need to make the FD available again.
4205 if test "$no_create" != yes; then
4206 ac_cs_success=:
4207 ac_config_status_args=
4208 test "$silent" = yes &&
4209 ac_config_status_args="$ac_config_status_args --quiet"
4210 exec 5>/dev/null
4211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4212 exec 5>>config.log
4213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4214 # would make configure fail if this is the last instruction.
4215 $ac_cs_success || as_fn_exit 1
4216 fi
4217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4220 fi
4221
4222
This page took 0.381762 seconds and 4 git commands to generate.