2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libada / configure
blob5ab0e211aa0e515f16c88cba55a6dc84ae5a910f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
172 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes
174 else
175 as_have_required=no
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179 else
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181 as_found=false
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 IFS=$as_save_IFS
185 test -z "$as_dir" && as_dir=.
186 as_found=:
187 case $as_dir in #(
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 break 2
199 done;;
200 esac
201 as_found=false
202 done
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
206 fi; }
207 IFS=$as_save_IFS
210 if test "x$CONFIG_SHELL" != x; then :
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 BASH_ENV=/dev/null
215 ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system."
224 if test x${ZSH_VERSION+set} = xset ; then
225 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
227 else
228 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229 $0: including any error possibly output before this
230 $0: message. Then install a modern shell, or manually run
231 $0: the script under such a shell if you do have one."
233 exit 1
237 SHELL=${CONFIG_SHELL-/bin/sh}
238 export SHELL
239 # Unset more variables known to interfere with behavior of common tools.
240 CLICOLOR_FORCE= GREP_OPTIONS=
241 unset CLICOLOR_FORCE GREP_OPTIONS
243 ## --------------------- ##
244 ## M4sh Shell Functions. ##
245 ## --------------------- ##
246 # as_fn_unset VAR
247 # ---------------
248 # Portably unset VAR.
249 as_fn_unset ()
251 { eval $1=; unset $1;}
253 as_unset=as_fn_unset
255 # as_fn_set_status STATUS
256 # -----------------------
257 # Set $? to STATUS, without forking.
258 as_fn_set_status ()
260 return $1
261 } # as_fn_set_status
263 # as_fn_exit STATUS
264 # -----------------
265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266 as_fn_exit ()
268 set +e
269 as_fn_set_status $1
270 exit $1
271 } # as_fn_exit
273 # as_fn_mkdir_p
274 # -------------
275 # Create "$as_dir" as a directory, including parents if necessary.
276 as_fn_mkdir_p ()
279 case $as_dir in #(
280 -*) as_dir=./$as_dir;;
281 esac
282 test -d "$as_dir" || eval $as_mkdir_p || {
283 as_dirs=
284 while :; do
285 case $as_dir in #(
286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287 *) as_qdir=$as_dir;;
288 esac
289 as_dirs="'$as_qdir' $as_dirs"
290 as_dir=`$as_dirname -- "$as_dir" ||
291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292 X"$as_dir" : 'X\(//\)[^/]' \| \
293 X"$as_dir" : 'X\(//\)$' \| \
294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295 $as_echo X"$as_dir" |
296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297 s//\1/
300 /^X\(\/\/\)[^/].*/{
301 s//\1/
304 /^X\(\/\/\)$/{
305 s//\1/
308 /^X\(\/\).*/{
309 s//\1/
312 s/.*/./; q'`
313 test -d "$as_dir" && break
314 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319 } # as_fn_mkdir_p
320 # as_fn_append VAR VALUE
321 # ----------------------
322 # Append the text in VALUE to the end of the definition contained in VAR. Take
323 # advantage of any shell optimizations that allow amortized linear growth over
324 # repeated appends, instead of the typical quadratic growth present in naive
325 # implementations.
326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327 eval 'as_fn_append ()
329 eval $1+=\$2
331 else
332 as_fn_append ()
334 eval $1=\$$1\$2
336 fi # as_fn_append
338 # as_fn_arith ARG...
339 # ------------------
340 # Perform arithmetic evaluation on the ARGs, and store the result in the
341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
342 # must be portable across $(()) and expr.
343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344 eval 'as_fn_arith ()
346 as_val=$(( $* ))
348 else
349 as_fn_arith ()
351 as_val=`expr "$@" || test $? -eq 1`
353 fi # as_fn_arith
356 # as_fn_error ERROR [LINENO LOG_FD]
357 # ---------------------------------
358 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360 # script with status $?, using 1 if that was 0.
361 as_fn_error ()
363 as_status=$?; test $as_status -eq 0 && as_status=1
364 if test "$3"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 $as_echo "$as_me: error: $1" >&2
369 as_fn_exit $as_status
370 } # as_fn_error
372 if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
374 as_expr=expr
375 else
376 as_expr=false
379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
380 as_basename=basename
381 else
382 as_basename=false
385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386 as_dirname=dirname
387 else
388 as_dirname=false
391 as_me=`$as_basename -- "$0" ||
392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395 $as_echo X/"$0" |
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
397 s//\1/
400 /^X\/\(\/\/\)$/{
401 s//\1/
404 /^X\/\(\/\).*/{
405 s//\1/
408 s/.*/./; q'`
410 # Avoid depending upon Character Ranges.
411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414 as_cr_digits='0123456789'
415 as_cr_alnum=$as_cr_Letters$as_cr_digits
418 as_lineno_1=$LINENO as_lineno_1a=$LINENO
419 as_lineno_2=$LINENO as_lineno_2a=$LINENO
420 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
423 sed -n '
425 /[$]LINENO/=
426 ' <$as_myself |
427 sed '
428 s/[$]LINENO.*/&-/
429 t lineno
431 :lineno
433 :loop
434 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
435 t loop
436 s/-\n.*//
437 ' >$as_me.lineno &&
438 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the
443 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno"
445 # Exit status is that of the last command.
446 exit
449 ECHO_C= ECHO_N= ECHO_T=
450 case `echo -n x` in #(((((
451 -n*)
452 case `echo 'xy\c'` in
453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
454 xy) ECHO_C='\c';;
455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
456 ECHO_T=' ';;
457 esac;;
459 ECHO_N='-n';;
460 esac
462 rm -f conf$$ conf$$.exe conf$$.file
463 if test -d conf$$.dir; then
464 rm -f conf$$.dir/conf$$.file
465 else
466 rm -f conf$$.dir
467 mkdir conf$$.dir 2>/dev/null
469 if (echo >conf$$.file) 2>/dev/null; then
470 if ln -s conf$$.file conf$$ 2>/dev/null; then
471 as_ln_s='ln -s'
472 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p'
478 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln
480 else
481 as_ln_s='cp -p'
483 else
484 as_ln_s='cp -p'
486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487 rmdir conf$$.dir 2>/dev/null
489 if mkdir -p . 2>/dev/null; then
490 as_mkdir_p='mkdir -p "$as_dir"'
491 else
492 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false
496 if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x'
498 else
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
517 as_executable_p=$as_test_x
519 # Sed expression to map a string onto a valid CPP name.
520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522 # Sed expression to map a string onto a valid variable name.
523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526 exec 7<&0 </dev/null 6>&1
528 # Name of the host.
529 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530 # so uname gets run too.
531 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
534 # Initializations.
536 ac_default_prefix=/usr/local
537 ac_clean_files=
538 ac_config_libobj_dir=.
539 LIBOBJS=
540 cross_compiling=no
541 subdirs=
542 MFLAGS=
543 MAKEFLAGS=
545 # Identity of this package.
546 PACKAGE_NAME=
547 PACKAGE_TARNAME=
548 PACKAGE_VERSION=
549 PACKAGE_STRING=
550 PACKAGE_BUGREPORT=
551 PACKAGE_URL=
553 ac_unique_file="Makefile.in"
554 ac_subst_vars='LTLIBOBJS
555 LIBOBJS
556 get_gcc_base_ver
557 have_getipinfo
558 default_gnatlib_target
559 LN_S
561 PICFLAG
562 enable_shared
563 OBJEXT
564 EXEEXT
565 ac_ct_CC
566 CPPFLAGS
567 LDFLAGS
568 CFLAGS
570 toolexeclibdir
571 toolexecdir
572 multi_basedir
573 MAINT
574 target_subdir
575 host_subdir
576 build_subdir
577 build_libsubdir
578 target_noncanonical
579 target_os
580 target_vendor
581 target_cpu
582 target
583 host_os
584 host_vendor
585 host_cpu
586 host
587 build_os
588 build_vendor
589 build_cpu
590 build
591 target_alias
592 host_alias
593 build_alias
594 LIBS
595 ECHO_T
596 ECHO_N
597 ECHO_C
598 DEFS
599 mandir
600 localedir
601 libdir
602 psdir
603 pdfdir
604 dvidir
605 htmldir
606 infodir
607 docdir
608 oldincludedir
609 includedir
610 localstatedir
611 sharedstatedir
612 sysconfdir
613 datadir
614 datarootdir
615 libexecdir
616 sbindir
617 bindir
618 program_transform_name
619 prefix
620 exec_prefix
621 PACKAGE_URL
622 PACKAGE_BUGREPORT
623 PACKAGE_STRING
624 PACKAGE_VERSION
625 PACKAGE_TARNAME
626 PACKAGE_NAME
627 PATH_SEPARATOR
628 SHELL'
629 ac_subst_files=''
630 ac_user_opts='
631 enable_option_checking
632 with_build_libsubdir
633 enable_maintainer_mode
634 enable_multilib
635 enable_shared
636 with_system_libunwind
637 with_gcc_major_version_only
639 ac_precious_vars='build_alias
640 host_alias
641 target_alias'
644 # Initialize some variables set by options.
645 ac_init_help=
646 ac_init_version=false
647 ac_unrecognized_opts=
648 ac_unrecognized_sep=
649 # The variables have the same names as the options, with
650 # dashes changed to underlines.
651 cache_file=/dev/null
652 exec_prefix=NONE
653 no_create=
654 no_recursion=
655 prefix=NONE
656 program_prefix=NONE
657 program_suffix=NONE
658 program_transform_name=s,x,x,
659 silent=
660 site=
661 srcdir=
662 verbose=
663 x_includes=NONE
664 x_libraries=NONE
666 # Installation directory options.
667 # These are left unexpanded so users can "make install exec_prefix=/foo"
668 # and all the variables that are supposed to be based on exec_prefix
669 # by default will actually change.
670 # Use braces instead of parens because sh, perl, etc. also accept them.
671 # (The list follows the same order as the GNU Coding Standards.)
672 bindir='${exec_prefix}/bin'
673 sbindir='${exec_prefix}/sbin'
674 libexecdir='${exec_prefix}/libexec'
675 datarootdir='${prefix}/share'
676 datadir='${datarootdir}'
677 sysconfdir='${prefix}/etc'
678 sharedstatedir='${prefix}/com'
679 localstatedir='${prefix}/var'
680 includedir='${prefix}/include'
681 oldincludedir='/usr/include'
682 docdir='${datarootdir}/doc/${PACKAGE}'
683 infodir='${datarootdir}/info'
684 htmldir='${docdir}'
685 dvidir='${docdir}'
686 pdfdir='${docdir}'
687 psdir='${docdir}'
688 libdir='${exec_prefix}/lib'
689 localedir='${datarootdir}/locale'
690 mandir='${datarootdir}/man'
692 ac_prev=
693 ac_dashdash=
694 for ac_option
696 # If the previous option needs an argument, assign it.
697 if test -n "$ac_prev"; then
698 eval $ac_prev=\$ac_option
699 ac_prev=
700 continue
703 case $ac_option in
704 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
705 *) ac_optarg=yes ;;
706 esac
708 # Accept the important Cygnus configure options, so we can diagnose typos.
710 case $ac_dashdash$ac_option in
712 ac_dashdash=yes ;;
714 -bindir | --bindir | --bindi | --bind | --bin | --bi)
715 ac_prev=bindir ;;
716 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
717 bindir=$ac_optarg ;;
719 -build | --build | --buil | --bui | --bu)
720 ac_prev=build_alias ;;
721 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
722 build_alias=$ac_optarg ;;
724 -cache-file | --cache-file | --cache-fil | --cache-fi \
725 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
726 ac_prev=cache_file ;;
727 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
728 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
729 cache_file=$ac_optarg ;;
731 --config-cache | -C)
732 cache_file=config.cache ;;
734 -datadir | --datadir | --datadi | --datad)
735 ac_prev=datadir ;;
736 -datadir=* | --datadir=* | --datadi=* | --datad=*)
737 datadir=$ac_optarg ;;
739 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
740 | --dataroo | --dataro | --datar)
741 ac_prev=datarootdir ;;
742 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
743 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
744 datarootdir=$ac_optarg ;;
746 -disable-* | --disable-*)
747 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
748 # Reject names that are not valid shell variable names.
749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
750 as_fn_error "invalid feature name: $ac_useropt"
751 ac_useropt_orig=$ac_useropt
752 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
753 case $ac_user_opts in
755 "enable_$ac_useropt"
756 "*) ;;
757 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
758 ac_unrecognized_sep=', ';;
759 esac
760 eval enable_$ac_useropt=no ;;
762 -docdir | --docdir | --docdi | --doc | --do)
763 ac_prev=docdir ;;
764 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
765 docdir=$ac_optarg ;;
767 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
768 ac_prev=dvidir ;;
769 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
770 dvidir=$ac_optarg ;;
772 -enable-* | --enable-*)
773 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
774 # Reject names that are not valid shell variable names.
775 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
776 as_fn_error "invalid feature name: $ac_useropt"
777 ac_useropt_orig=$ac_useropt
778 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
779 case $ac_user_opts in
781 "enable_$ac_useropt"
782 "*) ;;
783 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
784 ac_unrecognized_sep=', ';;
785 esac
786 eval enable_$ac_useropt=\$ac_optarg ;;
788 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
789 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
790 | --exec | --exe | --ex)
791 ac_prev=exec_prefix ;;
792 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
793 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
794 | --exec=* | --exe=* | --ex=*)
795 exec_prefix=$ac_optarg ;;
797 -gas | --gas | --ga | --g)
798 # Obsolete; use --with-gas.
799 with_gas=yes ;;
801 -help | --help | --hel | --he | -h)
802 ac_init_help=long ;;
803 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
804 ac_init_help=recursive ;;
805 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
806 ac_init_help=short ;;
808 -host | --host | --hos | --ho)
809 ac_prev=host_alias ;;
810 -host=* | --host=* | --hos=* | --ho=*)
811 host_alias=$ac_optarg ;;
813 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
814 ac_prev=htmldir ;;
815 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
816 | --ht=*)
817 htmldir=$ac_optarg ;;
819 -includedir | --includedir | --includedi | --included | --include \
820 | --includ | --inclu | --incl | --inc)
821 ac_prev=includedir ;;
822 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
823 | --includ=* | --inclu=* | --incl=* | --inc=*)
824 includedir=$ac_optarg ;;
826 -infodir | --infodir | --infodi | --infod | --info | --inf)
827 ac_prev=infodir ;;
828 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
829 infodir=$ac_optarg ;;
831 -libdir | --libdir | --libdi | --libd)
832 ac_prev=libdir ;;
833 -libdir=* | --libdir=* | --libdi=* | --libd=*)
834 libdir=$ac_optarg ;;
836 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
837 | --libexe | --libex | --libe)
838 ac_prev=libexecdir ;;
839 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
840 | --libexe=* | --libex=* | --libe=*)
841 libexecdir=$ac_optarg ;;
843 -localedir | --localedir | --localedi | --localed | --locale)
844 ac_prev=localedir ;;
845 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
846 localedir=$ac_optarg ;;
848 -localstatedir | --localstatedir | --localstatedi | --localstated \
849 | --localstate | --localstat | --localsta | --localst | --locals)
850 ac_prev=localstatedir ;;
851 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
852 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
853 localstatedir=$ac_optarg ;;
855 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
856 ac_prev=mandir ;;
857 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
858 mandir=$ac_optarg ;;
860 -nfp | --nfp | --nf)
861 # Obsolete; use --without-fp.
862 with_fp=no ;;
864 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
865 | --no-cr | --no-c | -n)
866 no_create=yes ;;
868 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
869 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
870 no_recursion=yes ;;
872 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
873 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
874 | --oldin | --oldi | --old | --ol | --o)
875 ac_prev=oldincludedir ;;
876 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
877 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
878 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
879 oldincludedir=$ac_optarg ;;
881 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
882 ac_prev=prefix ;;
883 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
884 prefix=$ac_optarg ;;
886 -program-prefix | --program-prefix | --program-prefi | --program-pref \
887 | --program-pre | --program-pr | --program-p)
888 ac_prev=program_prefix ;;
889 -program-prefix=* | --program-prefix=* | --program-prefi=* \
890 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
891 program_prefix=$ac_optarg ;;
893 -program-suffix | --program-suffix | --program-suffi | --program-suff \
894 | --program-suf | --program-su | --program-s)
895 ac_prev=program_suffix ;;
896 -program-suffix=* | --program-suffix=* | --program-suffi=* \
897 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
898 program_suffix=$ac_optarg ;;
900 -program-transform-name | --program-transform-name \
901 | --program-transform-nam | --program-transform-na \
902 | --program-transform-n | --program-transform- \
903 | --program-transform | --program-transfor \
904 | --program-transfo | --program-transf \
905 | --program-trans | --program-tran \
906 | --progr-tra | --program-tr | --program-t)
907 ac_prev=program_transform_name ;;
908 -program-transform-name=* | --program-transform-name=* \
909 | --program-transform-nam=* | --program-transform-na=* \
910 | --program-transform-n=* | --program-transform-=* \
911 | --program-transform=* | --program-transfor=* \
912 | --program-transfo=* | --program-transf=* \
913 | --program-trans=* | --program-tran=* \
914 | --progr-tra=* | --program-tr=* | --program-t=*)
915 program_transform_name=$ac_optarg ;;
917 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
918 ac_prev=pdfdir ;;
919 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
920 pdfdir=$ac_optarg ;;
922 -psdir | --psdir | --psdi | --psd | --ps)
923 ac_prev=psdir ;;
924 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
925 psdir=$ac_optarg ;;
927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
928 | -silent | --silent | --silen | --sile | --sil)
929 silent=yes ;;
931 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
932 ac_prev=sbindir ;;
933 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
934 | --sbi=* | --sb=*)
935 sbindir=$ac_optarg ;;
937 -sharedstatedir | --sharedstatedir | --sharedstatedi \
938 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
939 | --sharedst | --shareds | --shared | --share | --shar \
940 | --sha | --sh)
941 ac_prev=sharedstatedir ;;
942 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
943 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
944 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
945 | --sha=* | --sh=*)
946 sharedstatedir=$ac_optarg ;;
948 -site | --site | --sit)
949 ac_prev=site ;;
950 -site=* | --site=* | --sit=*)
951 site=$ac_optarg ;;
953 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
954 ac_prev=srcdir ;;
955 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
956 srcdir=$ac_optarg ;;
958 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
959 | --syscon | --sysco | --sysc | --sys | --sy)
960 ac_prev=sysconfdir ;;
961 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
962 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
963 sysconfdir=$ac_optarg ;;
965 -target | --target | --targe | --targ | --tar | --ta | --t)
966 ac_prev=target_alias ;;
967 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
968 target_alias=$ac_optarg ;;
970 -v | -verbose | --verbose | --verbos | --verbo | --verb)
971 verbose=yes ;;
973 -version | --version | --versio | --versi | --vers | -V)
974 ac_init_version=: ;;
976 -with-* | --with-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid package name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "with_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval with_$ac_useropt=\$ac_optarg ;;
992 -without-* | --without-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error "invalid package name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "with_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval with_$ac_useropt=no ;;
1008 --x)
1009 # Obsolete; use --with-x.
1010 with_x=yes ;;
1012 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1013 | --x-incl | --x-inc | --x-in | --x-i)
1014 ac_prev=x_includes ;;
1015 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1016 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1017 x_includes=$ac_optarg ;;
1019 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1020 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1021 ac_prev=x_libraries ;;
1022 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1023 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1024 x_libraries=$ac_optarg ;;
1026 -*) as_fn_error "unrecognized option: \`$ac_option'
1027 Try \`$0 --help' for more information."
1030 *=*)
1031 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1032 # Reject names that are not valid shell variable names.
1033 case $ac_envvar in #(
1034 '' | [0-9]* | *[!_$as_cr_alnum]* )
1035 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1036 esac
1037 eval $ac_envvar=\$ac_optarg
1038 export $ac_envvar ;;
1041 # FIXME: should be removed in autoconf 3.0.
1042 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1043 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1045 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1048 esac
1049 done
1051 if test -n "$ac_prev"; then
1052 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1053 as_fn_error "missing argument to $ac_option"
1056 if test -n "$ac_unrecognized_opts"; then
1057 case $enable_option_checking in
1058 no) ;;
1059 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1060 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1061 esac
1064 # Check all directory arguments for consistency.
1065 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1066 datadir sysconfdir sharedstatedir localstatedir includedir \
1067 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1068 libdir localedir mandir
1070 eval ac_val=\$$ac_var
1071 # Remove trailing slashes.
1072 case $ac_val in
1073 */ )
1074 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1075 eval $ac_var=\$ac_val;;
1076 esac
1077 # Be sure to have absolute directory names.
1078 case $ac_val in
1079 [\\/$]* | ?:[\\/]* ) continue;;
1080 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1081 esac
1082 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1083 done
1085 # There might be people who depend on the old broken behavior: `$host'
1086 # used to hold the argument of --host etc.
1087 # FIXME: To remove some day.
1088 build=$build_alias
1089 host=$host_alias
1090 target=$target_alias
1092 # FIXME: To remove some day.
1093 if test "x$host_alias" != x; then
1094 if test "x$build_alias" = x; then
1095 cross_compiling=maybe
1096 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1097 If a cross compiler is detected then cross compile mode will be used." >&2
1098 elif test "x$build_alias" != "x$host_alias"; then
1099 cross_compiling=yes
1103 ac_tool_prefix=
1104 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1106 test "$silent" = yes && exec 6>/dev/null
1109 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1110 ac_ls_di=`ls -di .` &&
1111 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1112 as_fn_error "working directory cannot be determined"
1113 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1114 as_fn_error "pwd does not report name of working directory"
1117 # Find the source files, if location was not specified.
1118 if test -z "$srcdir"; then
1119 ac_srcdir_defaulted=yes
1120 # Try the directory containing this script, then the parent directory.
1121 ac_confdir=`$as_dirname -- "$as_myself" ||
1122 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1123 X"$as_myself" : 'X\(//\)[^/]' \| \
1124 X"$as_myself" : 'X\(//\)$' \| \
1125 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1126 $as_echo X"$as_myself" |
1127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1128 s//\1/
1131 /^X\(\/\/\)[^/].*/{
1132 s//\1/
1135 /^X\(\/\/\)$/{
1136 s//\1/
1139 /^X\(\/\).*/{
1140 s//\1/
1143 s/.*/./; q'`
1144 srcdir=$ac_confdir
1145 if test ! -r "$srcdir/$ac_unique_file"; then
1146 srcdir=..
1148 else
1149 ac_srcdir_defaulted=no
1151 if test ! -r "$srcdir/$ac_unique_file"; then
1152 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1153 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1155 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1156 ac_abs_confdir=`(
1157 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1158 pwd)`
1159 # When building in place, set srcdir=.
1160 if test "$ac_abs_confdir" = "$ac_pwd"; then
1161 srcdir=.
1163 # Remove unnecessary trailing slashes from srcdir.
1164 # Double slashes in file names in object file debugging info
1165 # mess up M-x gdb in Emacs.
1166 case $srcdir in
1167 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1168 esac
1169 for ac_var in $ac_precious_vars; do
1170 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1171 eval ac_env_${ac_var}_value=\$${ac_var}
1172 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1173 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1174 done
1177 # Report the --help message.
1179 if test "$ac_init_help" = "long"; then
1180 # Omit some internal or obsolete options to make the list less imposing.
1181 # This message is too long to be a string in the A/UX 3.1 sh.
1182 cat <<_ACEOF
1183 \`configure' configures this package to adapt to many kinds of systems.
1185 Usage: $0 [OPTION]... [VAR=VALUE]...
1187 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1188 VAR=VALUE. See below for descriptions of some of the useful variables.
1190 Defaults for the options are specified in brackets.
1192 Configuration:
1193 -h, --help display this help and exit
1194 --help=short display options specific to this package
1195 --help=recursive display the short help of all the included packages
1196 -V, --version display version information and exit
1197 -q, --quiet, --silent do not print \`checking...' messages
1198 --cache-file=FILE cache test results in FILE [disabled]
1199 -C, --config-cache alias for \`--cache-file=config.cache'
1200 -n, --no-create do not create output files
1201 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1203 Installation directories:
1204 --prefix=PREFIX install architecture-independent files in PREFIX
1205 [$ac_default_prefix]
1206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1207 [PREFIX]
1209 By default, \`make install' will install all the files in
1210 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1211 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1212 for instance \`--prefix=\$HOME'.
1214 For better control, use the options below.
1216 Fine tuning of the installation directories:
1217 --bindir=DIR user executables [EPREFIX/bin]
1218 --sbindir=DIR system admin executables [EPREFIX/sbin]
1219 --libexecdir=DIR program executables [EPREFIX/libexec]
1220 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1221 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1222 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1223 --libdir=DIR object code libraries [EPREFIX/lib]
1224 --includedir=DIR C header files [PREFIX/include]
1225 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1226 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1227 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1228 --infodir=DIR info documentation [DATAROOTDIR/info]
1229 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1230 --mandir=DIR man documentation [DATAROOTDIR/man]
1231 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1232 --htmldir=DIR html documentation [DOCDIR]
1233 --dvidir=DIR dvi documentation [DOCDIR]
1234 --pdfdir=DIR pdf documentation [DOCDIR]
1235 --psdir=DIR ps documentation [DOCDIR]
1236 _ACEOF
1238 cat <<\_ACEOF
1240 System types:
1241 --build=BUILD configure for building on BUILD [guessed]
1242 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1243 --target=TARGET configure for building compilers for TARGET [HOST]
1244 _ACEOF
1247 if test -n "$ac_init_help"; then
1249 cat <<\_ACEOF
1251 Optional Features:
1252 --disable-option-checking ignore unrecognized --enable/--with options
1253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1255 --enable-maintainer-mode
1256 enable make rules and dependencies not useful (and
1257 sometimes confusing) to the casual installer
1258 --enable-multilib build many library versions (default)
1259 --disable-shared don't provide a shared libgnat
1261 Optional Packages:
1262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1264 --with-build-libsubdir=DIR Directory where to find libraries for build system
1265 --with-system-libunwind use installed libunwind
1266 --with-gcc-major-version-only
1267 use only GCC major number in filesystem paths
1269 Some influential environment variables:
1270 CC C compiler command
1271 CFLAGS C compiler flags
1272 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1273 nonstandard directory <lib dir>
1274 LIBS libraries to pass to the linker, e.g. -l<library>
1275 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1276 you have headers in a nonstandard directory <include dir>
1278 Use these variables to override the choices made by `configure' or to help
1279 it to find libraries and programs with nonstandard names/locations.
1281 Report bugs to the package provider.
1282 _ACEOF
1283 ac_status=$?
1286 if test "$ac_init_help" = "recursive"; then
1287 # If there are subdirs, report their specific --help.
1288 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1289 test -d "$ac_dir" ||
1290 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1291 continue
1292 ac_builddir=.
1294 case "$ac_dir" in
1295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1298 # A ".." for each directory in $ac_dir_suffix.
1299 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1300 case $ac_top_builddir_sub in
1301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1303 esac ;;
1304 esac
1305 ac_abs_top_builddir=$ac_pwd
1306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1307 # for backward compatibility:
1308 ac_top_builddir=$ac_top_build_prefix
1310 case $srcdir in
1311 .) # We are building in place.
1312 ac_srcdir=.
1313 ac_top_srcdir=$ac_top_builddir_sub
1314 ac_abs_top_srcdir=$ac_pwd ;;
1315 [\\/]* | ?:[\\/]* ) # Absolute name.
1316 ac_srcdir=$srcdir$ac_dir_suffix;
1317 ac_top_srcdir=$srcdir
1318 ac_abs_top_srcdir=$srcdir ;;
1319 *) # Relative name.
1320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1321 ac_top_srcdir=$ac_top_build_prefix$srcdir
1322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1323 esac
1324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1326 cd "$ac_dir" || { ac_status=$?; continue; }
1327 # Check for guested configure.
1328 if test -f "$ac_srcdir/configure.gnu"; then
1329 echo &&
1330 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1331 elif test -f "$ac_srcdir/configure"; then
1332 echo &&
1333 $SHELL "$ac_srcdir/configure" --help=recursive
1334 else
1335 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1336 fi || ac_status=$?
1337 cd "$ac_pwd" || { ac_status=$?; break; }
1338 done
1341 test -n "$ac_init_help" && exit $ac_status
1342 if $ac_init_version; then
1343 cat <<\_ACEOF
1344 configure
1345 generated by GNU Autoconf 2.64
1347 Copyright (C) 2009 Free Software Foundation, Inc.
1348 This configure script is free software; the Free Software Foundation
1349 gives unlimited permission to copy, distribute and modify it.
1350 _ACEOF
1351 exit
1354 ## ------------------------ ##
1355 ## Autoconf initialization. ##
1356 ## ------------------------ ##
1358 # ac_fn_c_try_compile LINENO
1359 # --------------------------
1360 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1361 ac_fn_c_try_compile ()
1363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1364 rm -f conftest.$ac_objext
1365 if { { ac_try="$ac_compile"
1366 case "(($ac_try" in
1367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1368 *) ac_try_echo=$ac_try;;
1369 esac
1370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1371 $as_echo "$ac_try_echo"; } >&5
1372 (eval "$ac_compile") 2>conftest.err
1373 ac_status=$?
1374 if test -s conftest.err; then
1375 grep -v '^ *+' conftest.err >conftest.er1
1376 cat conftest.er1 >&5
1377 mv -f conftest.er1 conftest.err
1379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1380 test $ac_status = 0; } && {
1381 test -z "$ac_c_werror_flag" ||
1382 test ! -s conftest.err
1383 } && test -s conftest.$ac_objext; then :
1384 ac_retval=0
1385 else
1386 $as_echo "$as_me: failed program was:" >&5
1387 sed 's/^/| /' conftest.$ac_ext >&5
1389 ac_retval=1
1391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1392 return $ac_retval
1394 } # ac_fn_c_try_compile
1395 cat >config.log <<_ACEOF
1396 This file contains any messages produced by compilers while
1397 running configure, to aid debugging if configure makes a mistake.
1399 It was created by $as_me, which was
1400 generated by GNU Autoconf 2.64. Invocation command line was
1402 $ $0 $@
1404 _ACEOF
1405 exec 5>>config.log
1407 cat <<_ASUNAME
1408 ## --------- ##
1409 ## Platform. ##
1410 ## --------- ##
1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429 _ASUNAME
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1434 IFS=$as_save_IFS
1435 test -z "$as_dir" && as_dir=.
1436 $as_echo "PATH: $as_dir"
1437 done
1438 IFS=$as_save_IFS
1440 } >&5
1442 cat >&5 <<_ACEOF
1445 ## ----------- ##
1446 ## Core tests. ##
1447 ## ----------- ##
1449 _ACEOF
1452 # Keep a trace of the command line.
1453 # Strip out --no-create and --no-recursion so they do not pile up.
1454 # Strip out --silent because we don't want to record it for future runs.
1455 # Also quote any args containing shell meta-characters.
1456 # Make two passes to allow for proper duplicate-argument suppression.
1457 ac_configure_args=
1458 ac_configure_args0=
1459 ac_configure_args1=
1460 ac_must_keep_next=false
1461 for ac_pass in 1 2
1463 for ac_arg
1465 case $ac_arg in
1466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1469 continue ;;
1470 *\'*)
1471 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 esac
1473 case $ac_pass in
1474 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1476 as_fn_append ac_configure_args1 " '$ac_arg'"
1477 if test $ac_must_keep_next = true; then
1478 ac_must_keep_next=false # Got value, back to normal.
1479 else
1480 case $ac_arg in
1481 *=* | --config-cache | -C | -disable-* | --disable-* \
1482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1484 | -with-* | --with-* | -without-* | --without-* | --x)
1485 case "$ac_configure_args0 " in
1486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1487 esac
1489 -* ) ac_must_keep_next=true ;;
1490 esac
1492 as_fn_append ac_configure_args " '$ac_arg'"
1494 esac
1495 done
1496 done
1497 { ac_configure_args0=; unset ac_configure_args0;}
1498 { ac_configure_args1=; unset ac_configure_args1;}
1500 # When interrupted or exit'd, cleanup temporary files, and complete
1501 # config.log. We remove comments because anyway the quotes in there
1502 # would cause problems or look ugly.
1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1505 trap 'exit_status=$?
1506 # Save into config.log some information that might help in debugging.
1508 echo
1510 cat <<\_ASBOX
1511 ## ---------------- ##
1512 ## Cache variables. ##
1513 ## ---------------- ##
1514 _ASBOX
1515 echo
1516 # The following way of writing the cache mishandles newlines in values,
1518 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1519 eval ac_val=\$$ac_var
1520 case $ac_val in #(
1521 *${as_nl}*)
1522 case $ac_var in #(
1523 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1524 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1525 esac
1526 case $ac_var in #(
1527 _ | IFS | as_nl) ;; #(
1528 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1529 *) { eval $ac_var=; unset $ac_var;} ;;
1530 esac ;;
1531 esac
1532 done
1533 (set) 2>&1 |
1534 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1535 *${as_nl}ac_space=\ *)
1536 sed -n \
1537 "s/'\''/'\''\\\\'\'''\''/g;
1538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1539 ;; #(
1541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1543 esac |
1544 sort
1546 echo
1548 cat <<\_ASBOX
1549 ## ----------------- ##
1550 ## Output variables. ##
1551 ## ----------------- ##
1552 _ASBOX
1553 echo
1554 for ac_var in $ac_subst_vars
1556 eval ac_val=\$$ac_var
1557 case $ac_val in
1558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 esac
1560 $as_echo "$ac_var='\''$ac_val'\''"
1561 done | sort
1562 echo
1564 if test -n "$ac_subst_files"; then
1565 cat <<\_ASBOX
1566 ## ------------------- ##
1567 ## File substitutions. ##
1568 ## ------------------- ##
1569 _ASBOX
1570 echo
1571 for ac_var in $ac_subst_files
1573 eval ac_val=\$$ac_var
1574 case $ac_val in
1575 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 esac
1577 $as_echo "$ac_var='\''$ac_val'\''"
1578 done | sort
1579 echo
1582 if test -s confdefs.h; then
1583 cat <<\_ASBOX
1584 ## ----------- ##
1585 ## confdefs.h. ##
1586 ## ----------- ##
1587 _ASBOX
1588 echo
1589 cat confdefs.h
1590 echo
1592 test "$ac_signal" != 0 &&
1593 $as_echo "$as_me: caught signal $ac_signal"
1594 $as_echo "$as_me: exit $exit_status"
1595 } >&5
1596 rm -f core *.core core.conftest.* &&
1597 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1598 exit $exit_status
1600 for ac_signal in 1 2 13 15; do
1601 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1602 done
1603 ac_signal=0
1605 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1606 rm -f -r conftest* confdefs.h
1608 $as_echo "/* confdefs.h */" > confdefs.h
1610 # Predefined preprocessor variables.
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_NAME "$PACKAGE_NAME"
1614 _ACEOF
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 _ACEOF
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1622 _ACEOF
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_STRING "$PACKAGE_STRING"
1626 _ACEOF
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 _ACEOF
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_URL "$PACKAGE_URL"
1634 _ACEOF
1637 # Let the site file select an alternate cache file if it wants to.
1638 # Prefer an explicitly selected file to automatically selected ones.
1639 ac_site_file1=NONE
1640 ac_site_file2=NONE
1641 if test -n "$CONFIG_SITE"; then
1642 ac_site_file1=$CONFIG_SITE
1643 elif test "x$prefix" != xNONE; then
1644 ac_site_file1=$prefix/share/config.site
1645 ac_site_file2=$prefix/etc/config.site
1646 else
1647 ac_site_file1=$ac_default_prefix/share/config.site
1648 ac_site_file2=$ac_default_prefix/etc/config.site
1650 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1652 test "x$ac_site_file" = xNONE && continue
1653 if test -r "$ac_site_file"; then
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1655 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1656 sed 's/^/| /' "$ac_site_file" >&5
1657 . "$ac_site_file"
1659 done
1661 if test -r "$cache_file"; then
1662 # Some versions of bash will fail to source /dev/null (special
1663 # files actually), so we avoid doing that.
1664 if test -f "$cache_file"; then
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1666 $as_echo "$as_me: loading cache $cache_file" >&6;}
1667 case $cache_file in
1668 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1669 *) . "./$cache_file";;
1670 esac
1672 else
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1674 $as_echo "$as_me: creating cache $cache_file" >&6;}
1675 >$cache_file
1678 # Check that the precious variables saved in the cache have kept the same
1679 # value.
1680 ac_cache_corrupted=false
1681 for ac_var in $ac_precious_vars; do
1682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1683 eval ac_new_set=\$ac_env_${ac_var}_set
1684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1685 eval ac_new_val=\$ac_env_${ac_var}_value
1686 case $ac_old_set,$ac_new_set in
1687 set,)
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1689 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1691 ,set)
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1693 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1694 ac_cache_corrupted=: ;;
1695 ,);;
1697 if test "x$ac_old_val" != "x$ac_new_val"; then
1698 # differences in whitespace do not lead to failure.
1699 ac_old_val_w=`echo x $ac_old_val`
1700 ac_new_val_w=`echo x $ac_new_val`
1701 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1703 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1704 ac_cache_corrupted=:
1705 else
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1707 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1708 eval $ac_var=\$ac_old_val
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1711 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1713 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1714 fi;;
1715 esac
1716 # Pass precious variables to config.status.
1717 if test "$ac_new_set" = set; then
1718 case $ac_new_val in
1719 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 *) ac_arg=$ac_var=$ac_new_val ;;
1721 esac
1722 case " $ac_configure_args " in
1723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1724 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1725 esac
1727 done
1728 if $ac_cache_corrupted; then
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1732 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1735 ## -------------------- ##
1736 ## Main body of script. ##
1737 ## -------------------- ##
1739 ac_ext=c
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1753 # Determine the host, build, and target systems
1754 ac_aux_dir=
1755 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1756 for ac_t in install-sh install.sh shtool; do
1757 if test -f "$ac_dir/$ac_t"; then
1758 ac_aux_dir=$ac_dir
1759 ac_install_sh="$ac_aux_dir/$ac_t -c"
1760 break 2
1762 done
1763 done
1764 if test -z "$ac_aux_dir"; then
1765 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1768 # These three variables are undocumented and unsupported,
1769 # and are intended to be withdrawn in a future Autoconf release.
1770 # They can cause serious problems if a builder's source tree is in a directory
1771 # whose full name contains unusual characters.
1772 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1773 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1774 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1777 # Make sure we can run config.sub.
1778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1779 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1782 $as_echo_n "checking build system type... " >&6; }
1783 if test "${ac_cv_build+set}" = set; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 ac_build_alias=$build_alias
1787 test "x$ac_build_alias" = x &&
1788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1789 test "x$ac_build_alias" = x &&
1790 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1792 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1796 $as_echo "$ac_cv_build" >&6; }
1797 case $ac_cv_build in
1798 *-*-*) ;;
1799 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1800 esac
1801 build=$ac_cv_build
1802 ac_save_IFS=$IFS; IFS='-'
1803 set x $ac_cv_build
1804 shift
1805 build_cpu=$1
1806 build_vendor=$2
1807 shift; shift
1808 # Remember, the first character of IFS is used to create $*,
1809 # except with old shells:
1810 build_os=$*
1811 IFS=$ac_save_IFS
1812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1816 $as_echo_n "checking host system type... " >&6; }
1817 if test "${ac_cv_host+set}" = set; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 if test "x$host_alias" = x; then
1821 ac_cv_host=$ac_cv_build
1822 else
1823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1824 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1829 $as_echo "$ac_cv_host" >&6; }
1830 case $ac_cv_host in
1831 *-*-*) ;;
1832 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
1833 esac
1834 host=$ac_cv_host
1835 ac_save_IFS=$IFS; IFS='-'
1836 set x $ac_cv_host
1837 shift
1838 host_cpu=$1
1839 host_vendor=$2
1840 shift; shift
1841 # Remember, the first character of IFS is used to create $*,
1842 # except with old shells:
1843 host_os=$*
1844 IFS=$ac_save_IFS
1845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
1849 $as_echo_n "checking target system type... " >&6; }
1850 if test "${ac_cv_target+set}" = set; then :
1851 $as_echo_n "(cached) " >&6
1852 else
1853 if test "x$target_alias" = x; then
1854 ac_cv_target=$ac_cv_host
1855 else
1856 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1857 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
1862 $as_echo "$ac_cv_target" >&6; }
1863 case $ac_cv_target in
1864 *-*-*) ;;
1865 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
1866 esac
1867 target=$ac_cv_target
1868 ac_save_IFS=$IFS; IFS='-'
1869 set x $ac_cv_target
1870 shift
1871 target_cpu=$1
1872 target_vendor=$2
1873 shift; shift
1874 # Remember, the first character of IFS is used to create $*,
1875 # except with old shells:
1876 target_os=$*
1877 IFS=$ac_save_IFS
1878 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1881 # The aliases save the names the user supplied, while $host etc.
1882 # will get canonicalized.
1883 test -n "$target_alias" &&
1884 test "$program_prefix$program_suffix$program_transform_name" = \
1885 NONENONEs,x,x, &&
1886 program_prefix=${target_alias}-
1887 target_alias=${target_alias-$host_alias}
1889 # Determine the noncanonical target name, for directory use.
1890 case ${build_alias} in
1891 "") build_noncanonical=${build} ;;
1892 *) build_noncanonical=${build_alias} ;;
1893 esac
1895 case ${host_alias} in
1896 "") host_noncanonical=${build_noncanonical} ;;
1897 *) host_noncanonical=${host_alias} ;;
1898 esac
1900 case ${target_alias} in
1901 "") target_noncanonical=${host_noncanonical} ;;
1902 *) target_noncanonical=${target_alias} ;;
1903 esac
1908 # Determine the target- and build-specific subdirectories
1910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1911 # have matching libraries, they should use host libraries: Makefile.tpl
1912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1913 # However, they still use the build modules, because the corresponding
1914 # host modules (e.g. bison) are only built for the host when bootstrap
1915 # finishes. So:
1916 # - build_subdir is where we find build modules, and never changes.
1917 # - build_libsubdir is where we find build libraries, and can be overridden.
1919 # Prefix 'build-' so this never conflicts with target_subdir.
1920 build_subdir="build-${build_noncanonical}"
1922 # Check whether --with-build-libsubdir was given.
1923 if test "${with_build_libsubdir+set}" = set; then :
1924 withval=$with_build_libsubdir; build_libsubdir="$withval"
1925 else
1926 build_libsubdir="$build_subdir"
1929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1930 if ( test $srcdir = . && test -d gcc ) \
1931 || test -d $srcdir/../host-${host_noncanonical}; then
1932 host_subdir="host-${host_noncanonical}"
1933 else
1934 host_subdir=.
1936 # No prefix.
1937 target_subdir=${target_noncanonical}
1940 # Command-line options.
1941 # Very limited version of AC_MAINTAINER_MODE.
1942 # Check whether --enable-maintainer-mode was given.
1943 if test "${enable_maintainer_mode+set}" = set; then :
1944 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
1945 yes) MAINT='' ;;
1946 no) MAINT='#' ;;
1947 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
1948 esac
1949 maintainer_mode=${enableval}
1950 else
1951 MAINT='#'
1955 # Default to --enable-multilib
1956 # Check whether --enable-multilib was given.
1957 if test "${enable_multilib+set}" = set; then :
1958 enableval=$enable_multilib; case "$enableval" in
1959 yes) multilib=yes ;;
1960 no) multilib=no ;;
1961 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
1962 esac
1963 else
1964 multilib=yes
1968 # We may get other options which we leave undocumented:
1969 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1970 # See config-ml.in if you want the gory details.
1972 if test "$srcdir" = "."; then
1973 if test "$with_target_subdir" != "."; then
1974 multi_basedir="$srcdir/$with_multisrctop../.."
1975 else
1976 multi_basedir="$srcdir/$with_multisrctop.."
1978 else
1979 multi_basedir="$srcdir/.."
1983 # Even if the default multilib is not a cross compilation,
1984 # it may be that some of the other multilibs are.
1985 if test $cross_compiling = no && test $multilib = yes \
1986 && test "x${with_multisubdir}" != x ; then
1987 cross_compiling=maybe
1990 ac_config_commands="$ac_config_commands default-1"
1992 # Calculate toolexeclibdir
1993 # Also toolexecdir, though it's only used in toolexeclibdir
1994 case ${enable_version_specific_runtime_libs} in
1995 yes)
1996 # Need the gcc compiler version to know where to install libraries
1997 # and header files if --enable-version-specific-runtime-libs option
1998 # is selected.
1999 toolexecdir='$(libdir)/gcc/$(target_alias)'
2000 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2003 if test -n "$with_cross_host" &&
2004 test x"$with_cross_host" != x"no"; then
2005 # Install a library built with a cross compiler in tooldir, not libdir.
2006 toolexecdir='$(exec_prefix)/$(target_alias)'
2007 toolexeclibdir='$(toolexecdir)/lib'
2008 else
2009 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2010 toolexeclibdir='$(libdir)'
2012 multi_os_directory=`$CC -print-multi-os-directory`
2013 case $multi_os_directory in
2014 .) ;; # Avoid trailing /.
2015 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2016 esac
2018 esac
2021 #TODO: toolexeclibdir is currently disregarded
2023 # Check the compiler.
2024 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2025 # We must force CC to /not/ be precious variables; otherwise
2026 # the wrong, non-multilib-adjusted value will be used in multilibs.
2027 # As a side effect, we have to subst CFLAGS ourselves.
2031 ac_ext=c
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2040 $as_echo_n "checking for $ac_word... " >&6; }
2041 if test "${ac_cv_prog_CC+set}" = set; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2058 done
2059 done
2060 IFS=$as_save_IFS
2064 CC=$ac_cv_prog_CC
2065 if test -n "$CC"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2067 $as_echo "$CC" >&6; }
2068 else
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2070 $as_echo "no" >&6; }
2075 if test -z "$ac_cv_prog_CC"; then
2076 ac_ct_CC=$CC
2077 # Extract the first word of "gcc", so it can be a program name with args.
2078 set dummy gcc; ac_word=$2
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2080 $as_echo_n "checking for $ac_word... " >&6; }
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2094 ac_cv_prog_ac_ct_CC="gcc"
2095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2100 IFS=$as_save_IFS
2104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105 if test -n "$ac_ct_CC"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2107 $as_echo "$ac_ct_CC" >&6; }
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2110 $as_echo "no" >&6; }
2113 if test "x$ac_ct_CC" = x; then
2114 CC=""
2115 else
2116 case $cross_compiling:$ac_tool_warned in
2117 yes:)
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2120 ac_tool_warned=yes ;;
2121 esac
2122 CC=$ac_ct_CC
2124 else
2125 CC="$ac_cv_prog_CC"
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2133 $as_echo_n "checking for $ac_word... " >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2151 done
2152 done
2153 IFS=$as_save_IFS
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2160 $as_echo "$CC" >&6; }
2161 else
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2163 $as_echo "no" >&6; }
2169 if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2173 $as_echo_n "checking for $ac_word... " >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then :
2175 $as_echo_n "(cached) " >&6
2176 else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180 ac_prog_rejected=no
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2190 continue
2192 ac_cv_prog_CC="cc"
2193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2196 done
2197 done
2198 IFS=$as_save_IFS
2200 if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2203 shift
2204 if test $# != 0; then
2205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2208 shift
2209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2214 CC=$ac_cv_prog_CC
2215 if test -n "$CC"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2217 $as_echo "$CC" >&6; }
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2220 $as_echo "no" >&6; }
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 for ac_prog in cl.exe
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2250 done
2251 done
2252 IFS=$as_save_IFS
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2259 $as_echo "$CC" >&6; }
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262 $as_echo "no" >&6; }
2266 test -n "$CC" && break
2267 done
2269 if test -z "$CC"; then
2270 ac_ct_CC=$CC
2271 for ac_prog in cl.exe
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276 $as_echo_n "checking for $ac_word... " >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_CC="$ac_prog"
2291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2294 done
2295 done
2296 IFS=$as_save_IFS
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2303 $as_echo "$ac_ct_CC" >&6; }
2304 else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2306 $as_echo "no" >&6; }
2310 test -n "$ac_ct_CC" && break
2311 done
2313 if test "x$ac_ct_CC" = x; then
2314 CC=""
2315 else
2316 case $cross_compiling:$ac_tool_warned in
2317 yes:)
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322 CC=$ac_ct_CC
2329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331 as_fn_error "no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." "$LINENO" 5; }
2334 # Provide some information about the compiler.
2335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2336 set X $ac_compile
2337 ac_compiler=$2
2338 for ac_option in --version -v -V -qversion; do
2339 { { ac_try="$ac_compiler $ac_option >&5"
2340 case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343 esac
2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345 $as_echo "$ac_try_echo"; } >&5
2346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2347 ac_status=$?
2348 if test -s conftest.err; then
2349 sed '10a\
2350 ... rest of stderr output deleted ...
2351 10q' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 rm -f conftest.er1 conftest.err
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; }
2357 done
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 ac_clean_files_save=$ac_clean_files
2371 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2372 # Try to create an executable without -o first, disregard a.out.
2373 # It will help us diagnose broken compilers, and finding out an intuition
2374 # of exeext.
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2376 $as_echo_n "checking for C compiler default output file name... " >&6; }
2377 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2379 # The possible output files:
2380 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2382 ac_rmfiles=
2383 for ac_file in $ac_files
2385 case $ac_file in
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2387 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2388 esac
2389 done
2390 rm -f $ac_rmfiles
2392 if { { ac_try="$ac_link_default"
2393 case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396 esac
2397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2398 $as_echo "$ac_try_echo"; } >&5
2399 (eval "$ac_link_default") 2>&5
2400 ac_status=$?
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; }; then :
2403 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2406 # so that the user can short-circuit this test for compilers unknown to
2407 # Autoconf.
2408 for ac_file in $ac_files ''
2410 test -f "$ac_file" || continue
2411 case $ac_file in
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2414 [ab].out )
2415 # We found the default executable, but exeext='' is most
2416 # certainly right.
2417 break;;
2418 *.* )
2419 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420 then :; else
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 # We set ac_cv_exeext here because the later test for it is not
2424 # safe: cross compilers may not add the suffix if given an `-o'
2425 # argument, so we may need to know it at that point already.
2426 # Even if this section looks crufty: it has the advantage of
2427 # actually working.
2428 break;;
2430 break;;
2431 esac
2432 done
2433 test "$ac_cv_exeext" = no && ac_cv_exeext=
2435 else
2436 ac_file=''
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2439 $as_echo "$ac_file" >&6; }
2440 if test -z "$ac_file"; then :
2441 $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446 { as_fn_set_status 77
2447 as_fn_error "C compiler cannot create executables
2448 See \`config.log' for more details." "$LINENO" 5; }; }
2450 ac_exeext=$ac_cv_exeext
2452 # Check that the compiler produces executables we can run. If not, either
2453 # the compiler is broken, or we cross compile.
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2455 $as_echo_n "checking whether the C compiler works... " >&6; }
2456 # If not cross compiling, check that we can run a simple program.
2457 if test "$cross_compiling" != yes; then
2458 if { ac_try='./$ac_file'
2459 { { case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2464 $as_echo "$ac_try_echo"; } >&5
2465 (eval "$ac_try") 2>&5
2466 ac_status=$?
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; }; }; then
2469 cross_compiling=no
2470 else
2471 if test "$cross_compiling" = maybe; then
2472 cross_compiling=yes
2473 else
2474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 as_fn_error "cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." "$LINENO" 5; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2483 $as_echo "yes" >&6; }
2485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2490 $as_echo_n "checking whether we are cross compiling... " >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2492 $as_echo "$cross_compiling" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2495 $as_echo_n "checking for suffix of executables... " >&6; }
2496 if { { ac_try="$ac_link"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_link") 2>&5
2504 ac_status=$?
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; }; then :
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2510 # `rm'.
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 break;;
2517 * ) break;;
2518 esac
2519 done
2520 else
2521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 as_fn_error "cannot compute suffix of executables: cannot compile and link
2524 See \`config.log' for more details." "$LINENO" 5; }
2526 rm -f conftest$ac_cv_exeext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2528 $as_echo "$ac_cv_exeext" >&6; }
2530 rm -f conftest.$ac_ext
2531 EXEEXT=$ac_cv_exeext
2532 ac_exeext=$EXEEXT
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2534 $as_echo_n "checking for suffix of object files... " >&6; }
2535 if test "${ac_cv_objext+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 main ()
2546 return 0;
2548 _ACEOF
2549 rm -f conftest.o conftest.obj
2550 if { { ac_try="$ac_compile"
2551 case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554 esac
2555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_compile") 2>&5
2558 ac_status=$?
2559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560 test $ac_status = 0; }; then :
2561 for ac_file in conftest.o conftest.obj conftest.*; do
2562 test -f "$ac_file" || continue;
2563 case $ac_file in
2564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2565 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2566 break;;
2567 esac
2568 done
2569 else
2570 $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error "cannot compute suffix of object files: cannot compile
2576 See \`config.log' for more details." "$LINENO" 5; }
2578 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2581 $as_echo "$ac_cv_objext" >&6; }
2582 OBJEXT=$ac_cv_objext
2583 ac_objext=$OBJEXT
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2585 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2586 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 main ()
2595 #ifndef __GNUC__
2596 choke me
2597 #endif
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 ac_compiler_gnu=yes
2605 else
2606 ac_compiler_gnu=no
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2613 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2614 if test $ac_compiler_gnu = yes; then
2615 GCC=yes
2616 else
2617 GCC=
2619 ac_test_CFLAGS=${CFLAGS+set}
2620 ac_save_CFLAGS=$CFLAGS
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2622 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2623 if test "${ac_cv_prog_cc_g+set}" = set; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 ac_save_c_werror_flag=$ac_c_werror_flag
2627 ac_c_werror_flag=yes
2628 ac_cv_prog_cc_g=no
2629 CFLAGS="-g"
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642 ac_cv_prog_cc_g=yes
2643 else
2644 CFLAGS=""
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2649 main ()
2653 return 0;
2655 _ACEOF
2656 if ac_fn_c_try_compile "$LINENO"; then :
2658 else
2659 ac_c_werror_flag=$ac_save_c_werror_flag
2660 CFLAGS="-g"
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 main ()
2669 return 0;
2671 _ACEOF
2672 if ac_fn_c_try_compile "$LINENO"; then :
2673 ac_cv_prog_cc_g=yes
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 ac_c_werror_flag=$ac_save_c_werror_flag
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2683 $as_echo "$ac_cv_prog_cc_g" >&6; }
2684 if test "$ac_test_CFLAGS" = set; then
2685 CFLAGS=$ac_save_CFLAGS
2686 elif test $ac_cv_prog_cc_g = yes; then
2687 if test "$GCC" = yes; then
2688 CFLAGS="-g -O2"
2689 else
2690 CFLAGS="-g"
2692 else
2693 if test "$GCC" = yes; then
2694 CFLAGS="-O2"
2695 else
2696 CFLAGS=
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2701 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 ac_cv_prog_cc_c89=no
2705 ac_save_CC=$CC
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 #include <stdarg.h>
2709 #include <stdio.h>
2710 #include <sys/types.h>
2711 #include <sys/stat.h>
2712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2713 struct buf { int x; };
2714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2715 static char *e (p, i)
2716 char **p;
2717 int i;
2719 return p[i];
2721 static char *f (char * (*g) (char **, int), char **p, ...)
2723 char *s;
2724 va_list v;
2725 va_start (v,p);
2726 s = g (p, va_arg (v,int));
2727 va_end (v);
2728 return s;
2731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2732 function prototypes and stuff, but not '\xHH' hex character constants.
2733 These don't provoke an error unfortunately, instead are silently treated
2734 as 'x'. The following induces an error, until -std is added to get
2735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2736 array size at least. It's necessary to write '\x00'==0 to get something
2737 that's true only with -std. */
2738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2741 inside strings and character constants. */
2742 #define FOO(x) 'x'
2743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2745 int test (int i, double x);
2746 struct s1 {int (*f) (int a);};
2747 struct s2 {int (*f) (double a);};
2748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2749 int argc;
2750 char **argv;
2752 main ()
2754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2756 return 0;
2758 _ACEOF
2759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2762 CC="$ac_save_CC $ac_arg"
2763 if ac_fn_c_try_compile "$LINENO"; then :
2764 ac_cv_prog_cc_c89=$ac_arg
2766 rm -f core conftest.err conftest.$ac_objext
2767 test "x$ac_cv_prog_cc_c89" != "xno" && break
2768 done
2769 rm -f conftest.$ac_ext
2770 CC=$ac_save_CC
2773 # AC_CACHE_VAL
2774 case "x$ac_cv_prog_cc_c89" in
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2777 $as_echo "none needed" >&6; } ;;
2778 xno)
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2780 $as_echo "unsupported" >&6; } ;;
2782 CC="$CC $ac_cv_prog_cc_c89"
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2785 esac
2786 if test "x$ac_cv_prog_cc_c89" != xno; then :
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 # Check whether --enable-shared was given.
2801 if test "${enable_shared+set}" = set; then :
2802 enableval=$enable_shared;
2803 case $enable_shared in
2804 yes | no) ;;
2806 enable_shared=no
2807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2808 for pkg in $enableval; do
2809 case $pkg in
2810 ada | libada)
2811 enable_shared=yes ;;
2812 esac
2813 done
2814 IFS="$ac_save_ifs"
2816 esac
2818 else
2819 enable_shared=yes
2828 case "${host}" in
2829 # PIC is the default on some targets or must not be used.
2830 *-*-darwin*)
2831 # For darwin, common symbols are not allowed in MH_DYLIB files
2832 case "${CFLAGS}" in
2833 # If we are using a compiler supporting mdynamic-no-pic
2834 # and the option has been tested as safe to add, then cancel
2835 # it here, since the code generated is incompatible with shared
2836 # libs.
2837 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2838 *) PICFLAG=-fno-common ;;
2839 esac
2841 alpha*-dec-osf5*)
2842 # PIC is the default.
2844 hppa*64*-*-hpux*)
2845 # PIC is the default for 64-bit PA HP-UX.
2847 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2849 i[34567]86-*-mingw* | x86_64-*-mingw*)
2851 i[34567]86-*-interix[3-9]*)
2852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2853 # Instead, we relocate shared libraries at runtime.
2855 i[34567]86-*-nto-qnx*)
2856 # QNX uses GNU C++, but need to define -shared option too, otherwise
2857 # it will coredump.
2858 PICFLAG='-fPIC -shared'
2860 i[34567]86-pc-msdosdjgpp*)
2861 # DJGPP does not support shared libraries at all.
2863 ia64*-*-hpux*)
2864 # On IA64 HP-UX, PIC is the default but the pic flag
2865 # sets the default TLS model and affects inlining.
2866 PICFLAG=-fPIC
2868 mips-sgi-irix6*)
2869 # PIC is the default.
2871 rs6000-ibm-aix* | powerpc-ibm-aix*)
2872 # All AIX code is PIC.
2875 # Some targets support both -fPIC and -fpic, but prefer the latter.
2876 # FIXME: Why?
2877 i[34567]86-*-* | x86_64-*-*)
2878 PICFLAG=-fpic
2880 # FIXME: Override -fPIC default in libgcc only?
2881 sh-*-linux* | sh[2346lbe]*-*-linux*)
2882 PICFLAG=-fpic
2884 # FIXME: Simplify to sh*-*-netbsd*?
2885 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2886 sh64-*-netbsd* | sh64l*-*-netbsd*)
2887 PICFLAG=-fpic
2889 # Default to -fPIC unless specified otherwise.
2891 PICFLAG=-fPIC
2893 esac
2895 # If the user explicitly uses -fpic/-fPIC, keep that.
2896 case "${CFLAGS}" in
2897 *-fpic*)
2898 PICFLAG=-fpic
2900 *-fPIC*)
2901 PICFLAG=-fPIC
2903 esac
2907 # These must be passed down, or are needed by gcc/libgcc.mvars
2908 for ac_prog in gawk mawk nawk awk
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_AWK+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_AWK="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2933 IFS=$as_save_IFS
2937 AWK=$ac_cv_prog_AWK
2938 if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940 $as_echo "$AWK" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$AWK" && break
2948 done
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2951 $as_echo_n "checking whether ln -s works... " >&6; }
2952 LN_S=$as_ln_s
2953 if test "$LN_S" = "ln -s"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2958 $as_echo "no, using $LN_S" >&6; }
2962 # Determine what to build for 'gnatlib'
2963 if test $build = $target \
2964 && test ${enable_shared} = yes ; then
2965 # Note that build=target is almost certainly the wrong test; FIXME
2966 default_gnatlib_target="gnatlib-shared"
2967 else
2968 default_gnatlib_target="gnatlib-plain"
2972 # Check for _Unwind_GetIPInfo
2975 # Check whether --with-system-libunwind was given.
2976 if test "${with_system_libunwind+set}" = set; then :
2977 withval=$with_system_libunwind;
2980 # If system-libunwind was not specifically set, pick a default setting.
2981 if test x$with_system_libunwind = x; then
2982 case ${target} in
2983 ia64-*-hpux*) with_system_libunwind=yes ;;
2984 *) with_system_libunwind=no ;;
2985 esac
2987 # Based on system-libunwind and target, do we have ipinfo?
2988 if test x$with_system_libunwind = xyes; then
2989 case ${target} in
2990 ia64-*-*) have_unwind_getipinfo=no ;;
2991 *) have_unwind_getipinfo=yes ;;
2992 esac
2993 else
2994 # Darwin before version 9 does not have _Unwind_GetIPInfo.
2996 case ${target} in
2997 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
2998 *) have_unwind_getipinfo=yes ;;
2999 esac
3003 if test x$have_unwind_getipinfo = xyes; then
3005 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
3009 have_getipinfo=
3010 if test x$have_unwind_getipinfo = xyes; then
3011 have_getipinfo=-DHAVE_GETIPINFO
3015 # Determine what GCC version number to use in filesystem paths.
3017 get_gcc_base_ver="cat"
3019 # Check whether --with-gcc-major-version-only was given.
3020 if test "${with_gcc_major_version_only+set}" = set; then :
3021 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
3022 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
3030 # Output: create a Makefile.
3031 ac_config_files="$ac_config_files Makefile"
3034 cat >confcache <<\_ACEOF
3035 # This file is a shell script that caches the results of configure
3036 # tests run on this system so they can be shared between configure
3037 # scripts and configure runs, see configure's option --config-cache.
3038 # It is not useful on other systems. If it contains results you don't
3039 # want to keep, you may remove or edit it.
3041 # config.status only pays attention to the cache file if you give it
3042 # the --recheck option to rerun configure.
3044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3046 # following values.
3048 _ACEOF
3050 # The following way of writing the cache mishandles newlines in values,
3051 # but we know of no workaround that is simple, portable, and efficient.
3052 # So, we kill variables containing newlines.
3053 # Ultrix sh set writes to stderr and can't be redirected directly,
3054 # and sets the high bit in the cache file unless we assign to the vars.
3056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in #(
3059 *${as_nl}*)
3060 case $ac_var in #(
3061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3063 esac
3064 case $ac_var in #(
3065 _ | IFS | as_nl) ;; #(
3066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3067 *) { eval $ac_var=; unset $ac_var;} ;;
3068 esac ;;
3069 esac
3070 done
3072 (set) 2>&1 |
3073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3074 *${as_nl}ac_space=\ *)
3075 # `set' does not quote correctly, so add quotes: double-quote
3076 # substitution turns \\\\ into \\, and sed turns \\ into \.
3077 sed -n \
3078 "s/'/'\\\\''/g;
3079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3080 ;; #(
3082 # `set' quotes correctly as required by POSIX, so do not add quotes.
3083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3085 esac |
3086 sort
3088 sed '
3089 /^ac_cv_env_/b end
3090 t clear
3091 :clear
3092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3093 t end
3094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3095 :end' >>confcache
3096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3097 if test -w "$cache_file"; then
3098 test "x$cache_file" != "x/dev/null" &&
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3100 $as_echo "$as_me: updating cache $cache_file" >&6;}
3101 cat confcache >$cache_file
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3104 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3107 rm -f confcache
3109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3110 # Let make expand exec_prefix.
3111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3113 # Transform confdefs.h into DEFS.
3114 # Protect against shell expansion while executing Makefile rules.
3115 # Protect against Makefile macro expansion.
3117 # If the first sed substitution is executed (which looks for macros that
3118 # take arguments), then branch to the quote section. Otherwise,
3119 # look for a macro that doesn't take arguments.
3120 ac_script='
3121 :mline
3122 /\\$/{
3124 s,\\\n,,
3125 b mline
3127 t clear
3128 :clear
3129 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3130 t quote
3131 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3132 t quote
3133 b any
3134 :quote
3135 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3136 s/\[/\\&/g
3137 s/\]/\\&/g
3138 s/\$/$$/g
3140 :any
3143 s/^\n//
3144 s/\n/ /g
3148 DEFS=`sed -n "$ac_script" confdefs.h`
3151 ac_libobjs=
3152 ac_ltlibobjs=
3153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3154 # 1. Remove the extension, and $U if already installed.
3155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3156 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3158 # will be set to the directory where LIBOBJS objects are built.
3159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3161 done
3162 LIBOBJS=$ac_libobjs
3164 LTLIBOBJS=$ac_ltlibobjs
3168 : ${CONFIG_STATUS=./config.status}
3169 ac_write_fail=0
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3174 as_write_fail=0
3175 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3176 #! $SHELL
3177 # Generated by $as_me.
3178 # Run this file to recreate the current configuration.
3179 # Compiler output produced by configure, useful for debugging
3180 # configure, is in config.log if it exists.
3182 debug=false
3183 ac_cs_recheck=false
3184 ac_cs_silent=false
3186 SHELL=\${CONFIG_SHELL-$SHELL}
3187 export SHELL
3188 _ASEOF
3189 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3190 ## -------------------- ##
3191 ## M4sh Initialization. ##
3192 ## -------------------- ##
3194 # Be more Bourne compatible
3195 DUALCASE=1; export DUALCASE # for MKS sh
3196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3197 emulate sh
3198 NULLCMD=:
3199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3200 # is contrary to our usage. Disable this feature.
3201 alias -g '${1+"$@"}'='"$@"'
3202 setopt NO_GLOB_SUBST
3203 else
3204 case `(set -o) 2>/dev/null` in #(
3205 *posix*) :
3206 set -o posix ;; #(
3207 *) :
3209 esac
3213 as_nl='
3215 export as_nl
3216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3220 # Prefer a ksh shell builtin over an external printf program on Solaris,
3221 # but without wasting forks for bash or zsh.
3222 if test -z "$BASH_VERSION$ZSH_VERSION" \
3223 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3224 as_echo='print -r --'
3225 as_echo_n='print -rn --'
3226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3227 as_echo='printf %s\n'
3228 as_echo_n='printf %s'
3229 else
3230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3232 as_echo_n='/usr/ucb/echo -n'
3233 else
3234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3235 as_echo_n_body='eval
3236 arg=$1;
3237 case $arg in #(
3238 *"$as_nl"*)
3239 expr "X$arg" : "X\\(.*\\)$as_nl";
3240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3241 esac;
3242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3244 export as_echo_n_body
3245 as_echo_n='sh -c $as_echo_n_body as_echo'
3247 export as_echo_body
3248 as_echo='sh -c $as_echo_body as_echo'
3251 # The user is always right.
3252 if test "${PATH_SEPARATOR+set}" != set; then
3253 PATH_SEPARATOR=:
3254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3256 PATH_SEPARATOR=';'
3261 # IFS
3262 # We need space, tab and new line, in precisely that order. Quoting is
3263 # there to prevent editors from complaining about space-tab.
3264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3265 # splitting by setting IFS to empty value.)
3266 IFS=" "" $as_nl"
3268 # Find who we are. Look in the path if we contain no directory separator.
3269 case $0 in #((
3270 *[\\/]* ) as_myself=$0 ;;
3271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3277 done
3278 IFS=$as_save_IFS
3281 esac
3282 # We did not find ourselves, most probably we were run as `sh COMMAND'
3283 # in which case we are not to be found in the path.
3284 if test "x$as_myself" = x; then
3285 as_myself=$0
3287 if test ! -f "$as_myself"; then
3288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3289 exit 1
3292 # Unset variables that we do not need and which cause bugs (e.g. in
3293 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3294 # suppresses any "Segmentation fault" message there. '((' could
3295 # trigger a bug in pdksh 5.2.14.
3296 for as_var in BASH_ENV ENV MAIL MAILPATH
3297 do eval test x\${$as_var+set} = xset \
3298 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3299 done
3300 PS1='$ '
3301 PS2='> '
3302 PS4='+ '
3304 # NLS nuisances.
3305 LC_ALL=C
3306 export LC_ALL
3307 LANGUAGE=C
3308 export LANGUAGE
3310 # CDPATH.
3311 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3314 # as_fn_error ERROR [LINENO LOG_FD]
3315 # ---------------------------------
3316 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3317 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3318 # script with status $?, using 1 if that was 0.
3319 as_fn_error ()
3321 as_status=$?; test $as_status -eq 0 && as_status=1
3322 if test "$3"; then
3323 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3324 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3326 $as_echo "$as_me: error: $1" >&2
3327 as_fn_exit $as_status
3328 } # as_fn_error
3331 # as_fn_set_status STATUS
3332 # -----------------------
3333 # Set $? to STATUS, without forking.
3334 as_fn_set_status ()
3336 return $1
3337 } # as_fn_set_status
3339 # as_fn_exit STATUS
3340 # -----------------
3341 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3342 as_fn_exit ()
3344 set +e
3345 as_fn_set_status $1
3346 exit $1
3347 } # as_fn_exit
3349 # as_fn_unset VAR
3350 # ---------------
3351 # Portably unset VAR.
3352 as_fn_unset ()
3354 { eval $1=; unset $1;}
3356 as_unset=as_fn_unset
3357 # as_fn_append VAR VALUE
3358 # ----------------------
3359 # Append the text in VALUE to the end of the definition contained in VAR. Take
3360 # advantage of any shell optimizations that allow amortized linear growth over
3361 # repeated appends, instead of the typical quadratic growth present in naive
3362 # implementations.
3363 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3364 eval 'as_fn_append ()
3366 eval $1+=\$2
3368 else
3369 as_fn_append ()
3371 eval $1=\$$1\$2
3373 fi # as_fn_append
3375 # as_fn_arith ARG...
3376 # ------------------
3377 # Perform arithmetic evaluation on the ARGs, and store the result in the
3378 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3379 # must be portable across $(()) and expr.
3380 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3381 eval 'as_fn_arith ()
3383 as_val=$(( $* ))
3385 else
3386 as_fn_arith ()
3388 as_val=`expr "$@" || test $? -eq 1`
3390 fi # as_fn_arith
3393 if expr a : '\(a\)' >/dev/null 2>&1 &&
3394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3395 as_expr=expr
3396 else
3397 as_expr=false
3400 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3401 as_basename=basename
3402 else
3403 as_basename=false
3406 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3407 as_dirname=dirname
3408 else
3409 as_dirname=false
3412 as_me=`$as_basename -- "$0" ||
3413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3414 X"$0" : 'X\(//\)$' \| \
3415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3416 $as_echo X/"$0" |
3417 sed '/^.*\/\([^/][^/]*\)\/*$/{
3418 s//\1/
3421 /^X\/\(\/\/\)$/{
3422 s//\1/
3425 /^X\/\(\/\).*/{
3426 s//\1/
3429 s/.*/./; q'`
3431 # Avoid depending upon Character Ranges.
3432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3435 as_cr_digits='0123456789'
3436 as_cr_alnum=$as_cr_Letters$as_cr_digits
3438 ECHO_C= ECHO_N= ECHO_T=
3439 case `echo -n x` in #(((((
3440 -n*)
3441 case `echo 'xy\c'` in
3442 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3443 xy) ECHO_C='\c';;
3444 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3445 ECHO_T=' ';;
3446 esac;;
3448 ECHO_N='-n';;
3449 esac
3451 rm -f conf$$ conf$$.exe conf$$.file
3452 if test -d conf$$.dir; then
3453 rm -f conf$$.dir/conf$$.file
3454 else
3455 rm -f conf$$.dir
3456 mkdir conf$$.dir 2>/dev/null
3458 if (echo >conf$$.file) 2>/dev/null; then
3459 if ln -s conf$$.file conf$$ 2>/dev/null; then
3460 as_ln_s='ln -s'
3461 # ... but there are two gotchas:
3462 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3463 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3464 # In both cases, we have to default to `cp -p'.
3465 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3466 as_ln_s='cp -p'
3467 elif ln conf$$.file conf$$ 2>/dev/null; then
3468 as_ln_s=ln
3469 else
3470 as_ln_s='cp -p'
3472 else
3473 as_ln_s='cp -p'
3475 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3476 rmdir conf$$.dir 2>/dev/null
3479 # as_fn_mkdir_p
3480 # -------------
3481 # Create "$as_dir" as a directory, including parents if necessary.
3482 as_fn_mkdir_p ()
3485 case $as_dir in #(
3486 -*) as_dir=./$as_dir;;
3487 esac
3488 test -d "$as_dir" || eval $as_mkdir_p || {
3489 as_dirs=
3490 while :; do
3491 case $as_dir in #(
3492 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3493 *) as_qdir=$as_dir;;
3494 esac
3495 as_dirs="'$as_qdir' $as_dirs"
3496 as_dir=`$as_dirname -- "$as_dir" ||
3497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3498 X"$as_dir" : 'X\(//\)[^/]' \| \
3499 X"$as_dir" : 'X\(//\)$' \| \
3500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3501 $as_echo X"$as_dir" |
3502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3503 s//\1/
3506 /^X\(\/\/\)[^/].*/{
3507 s//\1/
3510 /^X\(\/\/\)$/{
3511 s//\1/
3514 /^X\(\/\).*/{
3515 s//\1/
3518 s/.*/./; q'`
3519 test -d "$as_dir" && break
3520 done
3521 test -z "$as_dirs" || eval "mkdir $as_dirs"
3522 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3525 } # as_fn_mkdir_p
3526 if mkdir -p . 2>/dev/null; then
3527 as_mkdir_p='mkdir -p "$as_dir"'
3528 else
3529 test -d ./-p && rmdir ./-p
3530 as_mkdir_p=false
3533 if test -x / >/dev/null 2>&1; then
3534 as_test_x='test -x'
3535 else
3536 if ls -dL / >/dev/null 2>&1; then
3537 as_ls_L_option=L
3538 else
3539 as_ls_L_option=
3541 as_test_x='
3542 eval sh -c '\''
3543 if test -d "$1"; then
3544 test -d "$1/.";
3545 else
3546 case $1 in #(
3547 -*)set "./$1";;
3548 esac;
3549 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3550 ???[sx]*):;;*)false;;esac;fi
3551 '\'' sh
3554 as_executable_p=$as_test_x
3556 # Sed expression to map a string onto a valid CPP name.
3557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3559 # Sed expression to map a string onto a valid variable name.
3560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3563 exec 6>&1
3564 ## ----------------------------------- ##
3565 ## Main body of $CONFIG_STATUS script. ##
3566 ## ----------------------------------- ##
3567 _ASEOF
3568 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3571 # Save the log message, to keep $0 and so on meaningful, and to
3572 # report actual input values of CONFIG_FILES etc. instead of their
3573 # values after options handling.
3574 ac_log="
3575 This file was extended by $as_me, which was
3576 generated by GNU Autoconf 2.64. Invocation command line was
3578 CONFIG_FILES = $CONFIG_FILES
3579 CONFIG_HEADERS = $CONFIG_HEADERS
3580 CONFIG_LINKS = $CONFIG_LINKS
3581 CONFIG_COMMANDS = $CONFIG_COMMANDS
3582 $ $0 $@
3584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3587 _ACEOF
3589 case $ac_config_files in *"
3590 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3591 esac
3595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3596 # Files that config.status was made for.
3597 config_files="$ac_config_files"
3598 config_commands="$ac_config_commands"
3600 _ACEOF
3602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3603 ac_cs_usage="\
3604 \`$as_me' instantiates files and other configuration actions
3605 from templates according to the current configuration. Unless the files
3606 and actions are specified as TAGs, all are instantiated by default.
3608 Usage: $0 [OPTION]... [TAG]...
3610 -h, --help print this help, then exit
3611 -V, --version print version number and configuration settings, then exit
3612 -q, --quiet, --silent
3613 do not print progress messages
3614 -d, --debug don't remove temporary files
3615 --recheck update $as_me by reconfiguring in the same conditions
3616 --file=FILE[:TEMPLATE]
3617 instantiate the configuration file FILE
3619 Configuration files:
3620 $config_files
3622 Configuration commands:
3623 $config_commands
3625 Report bugs to the package provider."
3627 _ACEOF
3628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3629 ac_cs_version="\\
3630 config.status
3631 configured by $0, generated by GNU Autoconf 2.64,
3632 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3634 Copyright (C) 2009 Free Software Foundation, Inc.
3635 This config.status script is free software; the Free Software Foundation
3636 gives unlimited permission to copy, distribute and modify it."
3638 ac_pwd='$ac_pwd'
3639 srcdir='$srcdir'
3640 AWK='$AWK'
3641 test -n "\$AWK" || AWK=awk
3642 _ACEOF
3644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3645 # The default lists apply if the user does not specify any file.
3646 ac_need_defaults=:
3647 while test $# != 0
3649 case $1 in
3650 --*=*)
3651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3652 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3653 ac_shift=:
3656 ac_option=$1
3657 ac_optarg=$2
3658 ac_shift=shift
3660 esac
3662 case $ac_option in
3663 # Handling of the options.
3664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3665 ac_cs_recheck=: ;;
3666 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3667 $as_echo "$ac_cs_version"; exit ;;
3668 --debug | --debu | --deb | --de | --d | -d )
3669 debug=: ;;
3670 --file | --fil | --fi | --f )
3671 $ac_shift
3672 case $ac_optarg in
3673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3674 esac
3675 as_fn_append CONFIG_FILES " '$ac_optarg'"
3676 ac_need_defaults=false;;
3677 --he | --h | --help | --hel | -h )
3678 $as_echo "$ac_cs_usage"; exit ;;
3679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3681 ac_cs_silent=: ;;
3683 # This is an error.
3684 -*) as_fn_error "unrecognized option: \`$1'
3685 Try \`$0 --help' for more information." ;;
3687 *) as_fn_append ac_config_targets " $1"
3688 ac_need_defaults=false ;;
3690 esac
3691 shift
3692 done
3694 ac_configure_extra_args=
3696 if $ac_cs_silent; then
3697 exec 6>/dev/null
3698 ac_configure_extra_args="$ac_configure_extra_args --silent"
3701 _ACEOF
3702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3703 if \$ac_cs_recheck; then
3704 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3705 shift
3706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3707 CONFIG_SHELL='$SHELL'
3708 export CONFIG_SHELL
3709 exec "\$@"
3712 _ACEOF
3713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3714 exec 5>>config.log
3716 echo
3717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3718 ## Running $as_me. ##
3719 _ASBOX
3720 $as_echo "$ac_log"
3721 } >&5
3723 _ACEOF
3724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3726 # INIT-COMMANDS
3729 srcdir="$srcdir"
3730 host="$host"
3731 target="$target"
3732 with_multisubdir="$with_multisubdir"
3733 with_multisrctop="$with_multisrctop"
3734 with_target_subdir="$with_target_subdir"
3735 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3736 multi_basedir="$multi_basedir"
3737 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3738 CC="$CC"
3739 CXX="$CXX"
3740 GFORTRAN="$GFORTRAN"
3742 _ACEOF
3744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3746 # Handling of arguments.
3747 for ac_config_target in $ac_config_targets
3749 case $ac_config_target in
3750 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3753 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3754 esac
3755 done
3758 # If the user did not use the arguments to specify the items to instantiate,
3759 # then the envvar interface is used. Set only those that are not.
3760 # We use the long form for the default assignment because of an extremely
3761 # bizarre bug on SunOS 4.1.3.
3762 if $ac_need_defaults; then
3763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3767 # Have a temporary directory for convenience. Make it in the build tree
3768 # simply because there is no reason against having it here, and in addition,
3769 # creating and moving files from /tmp can sometimes cause problems.
3770 # Hook for its removal unless debugging.
3771 # Note that there is a small window in which the directory will not be cleaned:
3772 # after its creation but before its name has been assigned to `$tmp'.
3773 $debug ||
3775 tmp=
3776 trap 'exit_status=$?
3777 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3779 trap 'as_fn_exit 1' 1 2 13 15
3781 # Create a (secure) tmp directory for tmp files.
3784 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3785 test -n "$tmp" && test -d "$tmp"
3786 } ||
3788 tmp=./conf$$-$RANDOM
3789 (umask 077 && mkdir "$tmp")
3790 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
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
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\'
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
3812 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3813 _ACEOF
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
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!! "
3836 done
3837 rm -f conf$$subs.sh
3839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3840 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3841 _ACEOF
3842 sed -n '
3844 s/^/S["/; s/!.*/"]=/
3847 s/^[^!]*!//
3848 :repl
3849 t repl
3850 s/'"$ac_delim"'$//
3851 t delim
3854 s/\(.\{148\}\).*/\1/
3855 t more1
3856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3859 b repl
3860 :more1
3861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3864 s/.\{148\}//
3865 t nl
3866 :delim
3868 s/\(.\{148\}\).*/\1/
3869 t more2
3870 s/["\\]/\\&/g; s/^/"/; s/$/"/
3873 :more2
3874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3877 s/.\{148\}//
3878 t delim
3879 ' <conf$$subs.awk | sed '
3880 /^[^""]/{
3882 s/\n//
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 >>"\$tmp/subs1.awk" <<_ACAWK &&
3889 for (key in S) S_is_set[key] = 1
3890 FS = "\a"
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
3910 print line
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
3920 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3921 || as_fn_error "could not setup config files machinery" "$LINENO" 5
3922 _ACEOF
3924 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3925 # ${srcdir} and @srcdir@ 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 s/:*\$(srcdir):*/:/
3931 s/:*\${srcdir}:*/:/
3932 s/:*@srcdir@:*/:/
3933 s/^\([^=]*=[ ]*\):*/\1/
3934 s/:*$//
3935 s/^[^=]*=[ ]*$//
3939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3940 fi # test -n "$CONFIG_FILES"
3943 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
3944 shift
3945 for ac_tag
3947 case $ac_tag in
3948 :[FHLC]) ac_mode=$ac_tag; continue;;
3949 esac
3950 case $ac_mode$ac_tag in
3951 :[FHL]*:*);;
3952 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3953 :[FH]-) ac_tag=-:-;;
3954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3955 esac
3956 ac_save_IFS=$IFS
3957 IFS=:
3958 set x $ac_tag
3959 IFS=$ac_save_IFS
3960 shift
3961 ac_file=$1
3962 shift
3964 case $ac_mode in
3965 :L) ac_source=$1;;
3966 :[FH])
3967 ac_file_inputs=
3968 for ac_f
3970 case $ac_f in
3971 -) ac_f="$tmp/stdin";;
3972 *) # Look for the file first in the build tree, then in the source tree
3973 # (if the path is not absolute). The absolute path cannot be DOS-style,
3974 # because $ac_f cannot contain `:'.
3975 test -f "$ac_f" ||
3976 case $ac_f in
3977 [\\/$]*) false;;
3978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3979 esac ||
3980 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3981 esac
3982 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3983 as_fn_append ac_file_inputs " '$ac_f'"
3984 done
3986 # Let's still pretend it is `configure' which instantiates (i.e., don't
3987 # use $as_me), people would be surprised to read:
3988 # /* config.h. Generated by config.status. */
3989 configure_input='Generated from '`
3990 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3991 `' by configure.'
3992 if test x"$ac_file" != x-; then
3993 configure_input="$ac_file. $configure_input"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3995 $as_echo "$as_me: creating $ac_file" >&6;}
3997 # Neutralize special characters interpreted by sed in replacement strings.
3998 case $configure_input in #(
3999 *\&* | *\|* | *\\* )
4000 ac_sed_conf_input=`$as_echo "$configure_input" |
4001 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4002 *) ac_sed_conf_input=$configure_input;;
4003 esac
4005 case $ac_tag in
4006 *:-:* | *:-) cat >"$tmp/stdin" \
4007 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4008 esac
4010 esac
4012 ac_dir=`$as_dirname -- "$ac_file" ||
4013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4014 X"$ac_file" : 'X\(//\)[^/]' \| \
4015 X"$ac_file" : 'X\(//\)$' \| \
4016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4017 $as_echo X"$ac_file" |
4018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4019 s//\1/
4022 /^X\(\/\/\)[^/].*/{
4023 s//\1/
4026 /^X\(\/\/\)$/{
4027 s//\1/
4030 /^X\(\/\).*/{
4031 s//\1/
4034 s/.*/./; q'`
4035 as_dir="$ac_dir"; as_fn_mkdir_p
4036 ac_builddir=.
4038 case "$ac_dir" in
4039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4042 # A ".." for each directory in $ac_dir_suffix.
4043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4044 case $ac_top_builddir_sub in
4045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4047 esac ;;
4048 esac
4049 ac_abs_top_builddir=$ac_pwd
4050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4051 # for backward compatibility:
4052 ac_top_builddir=$ac_top_build_prefix
4054 case $srcdir in
4055 .) # We are building in place.
4056 ac_srcdir=.
4057 ac_top_srcdir=$ac_top_builddir_sub
4058 ac_abs_top_srcdir=$ac_pwd ;;
4059 [\\/]* | ?:[\\/]* ) # Absolute name.
4060 ac_srcdir=$srcdir$ac_dir_suffix;
4061 ac_top_srcdir=$srcdir
4062 ac_abs_top_srcdir=$srcdir ;;
4063 *) # Relative name.
4064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4065 ac_top_srcdir=$ac_top_build_prefix$srcdir
4066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4067 esac
4068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4071 case $ac_mode in
4074 # CONFIG_FILE
4077 _ACEOF
4079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4080 # If the template does not know about datarootdir, expand it.
4081 # FIXME: This hack should be removed a few years after 2.60.
4082 ac_datarootdir_hack=; ac_datarootdir_seen=
4083 ac_sed_dataroot='
4084 /datarootdir/ {
4088 /@datadir@/p
4089 /@docdir@/p
4090 /@infodir@/p
4091 /@localedir@/p
4092 /@mandir@/p'
4093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4094 *datarootdir*) ac_datarootdir_seen=yes;;
4095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4097 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4098 _ACEOF
4099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4100 ac_datarootdir_hack='
4101 s&@datadir@&$datadir&g
4102 s&@docdir@&$docdir&g
4103 s&@infodir@&$infodir&g
4104 s&@localedir@&$localedir&g
4105 s&@mandir@&$mandir&g
4106 s&\\\${datarootdir}&$datarootdir&g' ;;
4107 esac
4108 _ACEOF
4110 # Neutralize VPATH when `$srcdir' = `.'.
4111 # Shell code in configure.ac might set extrasub.
4112 # FIXME: do we really want to maintain this feature?
4113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4114 ac_sed_extra="$ac_vpsub
4115 $extrasub
4116 _ACEOF
4117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4120 s|@configure_input@|$ac_sed_conf_input|;t t
4121 s&@top_builddir@&$ac_top_builddir_sub&;t t
4122 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4123 s&@srcdir@&$ac_srcdir&;t t
4124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4125 s&@top_srcdir@&$ac_top_srcdir&;t t
4126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4127 s&@builddir@&$ac_builddir&;t t
4128 s&@abs_builddir@&$ac_abs_builddir&;t t
4129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4130 $ac_datarootdir_hack
4132 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4133 || as_fn_error "could not create $ac_file" "$LINENO" 5
4135 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4136 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4139 which seems to be undefined. Please make sure it is defined." >&5
4140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4141 which seems to be undefined. Please make sure it is defined." >&2;}
4143 rm -f "$tmp/stdin"
4144 case $ac_file in
4145 -) cat "$tmp/out" && rm -f "$tmp/out";;
4146 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4147 esac \
4148 || as_fn_error "could not create $ac_file" "$LINENO" 5
4152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4153 $as_echo "$as_me: executing $ac_file commands" >&6;}
4155 esac
4158 case $ac_file$ac_mode in
4159 "default-1":C)
4160 # Only add multilib support code if we just rebuilt the top-level
4161 # Makefile.
4162 case " $CONFIG_FILES " in
4163 *" Makefile "*)
4164 ac_file=Makefile . ${multi_basedir}/config-ml.in
4166 esac ;;
4168 esac
4169 done # for ac_tag
4172 as_fn_exit 0
4173 _ACEOF
4174 ac_clean_files=$ac_clean_files_save
4176 test $ac_write_fail = 0 ||
4177 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4180 # configure is writing to config.log, and then calls config.status.
4181 # config.status does its own redirection, appending to config.log.
4182 # Unfortunately, on DOS this fails, as config.log is still kept open
4183 # by configure, so config.status won't be able to write to it; its
4184 # output is simply discarded. So we exec the FD to /dev/null,
4185 # effectively closing config.log, so it can be properly (re)opened and
4186 # appended to by config.status. When coming back to configure, we
4187 # need to make the FD available again.
4188 if test "$no_create" != yes; then
4189 ac_cs_success=:
4190 ac_config_status_args=
4191 test "$silent" = yes &&
4192 ac_config_status_args="$ac_config_status_args --quiet"
4193 exec 5>/dev/null
4194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4195 exec 5>>config.log
4196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4197 # would make configure fail if this is the last instruction.
4198 $ac_cs_success || as_fn_exit $?
4200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}