Daily bump.
[official-gcc.git] / fixincludes / configure
blobab97983f327d487bb87e0e4130706dd54c4fc769
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for fixincludes .
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 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='fixincludes'
548 PACKAGE_TARNAME='fixincludes'
549 PACKAGE_VERSION=' '
550 PACKAGE_STRING='fixincludes '
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL=''
554 ac_unique_file="inclhack.def"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 get_gcc_base_ver
594 MAINT
595 TARGET
596 target_noncanonical
597 WERROR
598 WARN_PEDANTIC
599 WARN_CFLAGS
601 EGREP
602 GREP
604 OBJEXT
605 EXEEXT
606 ac_ct_CC
607 CPPFLAGS
608 LDFLAGS
609 CFLAGS
611 target_os
612 target_vendor
613 target_cpu
614 target
615 host_os
616 host_vendor
617 host_cpu
618 host
619 build_os
620 build_vendor
621 build_cpu
622 build
623 target_alias
624 host_alias
625 build_alias
626 LIBS
627 ECHO_T
628 ECHO_N
629 ECHO_C
630 DEFS
631 mandir
632 localedir
633 libdir
634 psdir
635 pdfdir
636 dvidir
637 htmldir
638 infodir
639 docdir
640 oldincludedir
641 includedir
642 localstatedir
643 sharedstatedir
644 sysconfdir
645 datadir
646 datarootdir
647 libexecdir
648 sbindir
649 bindir
650 program_transform_name
651 prefix
652 exec_prefix
653 PACKAGE_URL
654 PACKAGE_BUGREPORT
655 PACKAGE_STRING
656 PACKAGE_VERSION
657 PACKAGE_TARNAME
658 PACKAGE_NAME
659 PATH_SEPARATOR
660 SHELL'
661 ac_subst_files=''
662 ac_user_opts='
663 enable_option_checking
664 enable_werror_always
665 with_local_prefix
666 enable_twoprocess
667 enable_maintainer_mode
668 with_gcc_major_version_only
670 ac_precious_vars='build_alias
671 host_alias
672 target_alias
674 CFLAGS
675 LDFLAGS
676 LIBS
677 CPPFLAGS
678 CPP'
681 # Initialize some variables set by options.
682 ac_init_help=
683 ac_init_version=false
684 ac_unrecognized_opts=
685 ac_unrecognized_sep=
686 # The variables have the same names as the options, with
687 # dashes changed to underlines.
688 cache_file=/dev/null
689 exec_prefix=NONE
690 no_create=
691 no_recursion=
692 prefix=NONE
693 program_prefix=NONE
694 program_suffix=NONE
695 program_transform_name=s,x,x,
696 silent=
697 site=
698 srcdir=
699 verbose=
700 x_includes=NONE
701 x_libraries=NONE
703 # Installation directory options.
704 # These are left unexpanded so users can "make install exec_prefix=/foo"
705 # and all the variables that are supposed to be based on exec_prefix
706 # by default will actually change.
707 # Use braces instead of parens because sh, perl, etc. also accept them.
708 # (The list follows the same order as the GNU Coding Standards.)
709 bindir='${exec_prefix}/bin'
710 sbindir='${exec_prefix}/sbin'
711 libexecdir='${exec_prefix}/libexec'
712 datarootdir='${prefix}/share'
713 datadir='${datarootdir}'
714 sysconfdir='${prefix}/etc'
715 sharedstatedir='${prefix}/com'
716 localstatedir='${prefix}/var'
717 includedir='${prefix}/include'
718 oldincludedir='/usr/include'
719 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
720 infodir='${datarootdir}/info'
721 htmldir='${docdir}'
722 dvidir='${docdir}'
723 pdfdir='${docdir}'
724 psdir='${docdir}'
725 libdir='${exec_prefix}/lib'
726 localedir='${datarootdir}/locale'
727 mandir='${datarootdir}/man'
729 ac_prev=
730 ac_dashdash=
731 for ac_option
733 # If the previous option needs an argument, assign it.
734 if test -n "$ac_prev"; then
735 eval $ac_prev=\$ac_option
736 ac_prev=
737 continue
740 case $ac_option in
741 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
742 *) ac_optarg=yes ;;
743 esac
745 # Accept the important Cygnus configure options, so we can diagnose typos.
747 case $ac_dashdash$ac_option in
749 ac_dashdash=yes ;;
751 -bindir | --bindir | --bindi | --bind | --bin | --bi)
752 ac_prev=bindir ;;
753 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
754 bindir=$ac_optarg ;;
756 -build | --build | --buil | --bui | --bu)
757 ac_prev=build_alias ;;
758 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
759 build_alias=$ac_optarg ;;
761 -cache-file | --cache-file | --cache-fil | --cache-fi \
762 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
763 ac_prev=cache_file ;;
764 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
765 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
766 cache_file=$ac_optarg ;;
768 --config-cache | -C)
769 cache_file=config.cache ;;
771 -datadir | --datadir | --datadi | --datad)
772 ac_prev=datadir ;;
773 -datadir=* | --datadir=* | --datadi=* | --datad=*)
774 datadir=$ac_optarg ;;
776 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
777 | --dataroo | --dataro | --datar)
778 ac_prev=datarootdir ;;
779 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
780 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
781 datarootdir=$ac_optarg ;;
783 -disable-* | --disable-*)
784 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
787 as_fn_error "invalid feature name: $ac_useropt"
788 ac_useropt_orig=$ac_useropt
789 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
790 case $ac_user_opts in
792 "enable_$ac_useropt"
793 "*) ;;
794 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
795 ac_unrecognized_sep=', ';;
796 esac
797 eval enable_$ac_useropt=no ;;
799 -docdir | --docdir | --docdi | --doc | --do)
800 ac_prev=docdir ;;
801 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
802 docdir=$ac_optarg ;;
804 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
805 ac_prev=dvidir ;;
806 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
807 dvidir=$ac_optarg ;;
809 -enable-* | --enable-*)
810 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
811 # Reject names that are not valid shell variable names.
812 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
813 as_fn_error "invalid feature name: $ac_useropt"
814 ac_useropt_orig=$ac_useropt
815 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
816 case $ac_user_opts in
818 "enable_$ac_useropt"
819 "*) ;;
820 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
821 ac_unrecognized_sep=', ';;
822 esac
823 eval enable_$ac_useropt=\$ac_optarg ;;
825 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
826 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
827 | --exec | --exe | --ex)
828 ac_prev=exec_prefix ;;
829 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
830 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
831 | --exec=* | --exe=* | --ex=*)
832 exec_prefix=$ac_optarg ;;
834 -gas | --gas | --ga | --g)
835 # Obsolete; use --with-gas.
836 with_gas=yes ;;
838 -help | --help | --hel | --he | -h)
839 ac_init_help=long ;;
840 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
841 ac_init_help=recursive ;;
842 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
843 ac_init_help=short ;;
845 -host | --host | --hos | --ho)
846 ac_prev=host_alias ;;
847 -host=* | --host=* | --hos=* | --ho=*)
848 host_alias=$ac_optarg ;;
850 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851 ac_prev=htmldir ;;
852 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853 | --ht=*)
854 htmldir=$ac_optarg ;;
856 -includedir | --includedir | --includedi | --included | --include \
857 | --includ | --inclu | --incl | --inc)
858 ac_prev=includedir ;;
859 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
860 | --includ=* | --inclu=* | --incl=* | --inc=*)
861 includedir=$ac_optarg ;;
863 -infodir | --infodir | --infodi | --infod | --info | --inf)
864 ac_prev=infodir ;;
865 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
866 infodir=$ac_optarg ;;
868 -libdir | --libdir | --libdi | --libd)
869 ac_prev=libdir ;;
870 -libdir=* | --libdir=* | --libdi=* | --libd=*)
871 libdir=$ac_optarg ;;
873 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
874 | --libexe | --libex | --libe)
875 ac_prev=libexecdir ;;
876 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
877 | --libexe=* | --libex=* | --libe=*)
878 libexecdir=$ac_optarg ;;
880 -localedir | --localedir | --localedi | --localed | --locale)
881 ac_prev=localedir ;;
882 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
883 localedir=$ac_optarg ;;
885 -localstatedir | --localstatedir | --localstatedi | --localstated \
886 | --localstate | --localstat | --localsta | --localst | --locals)
887 ac_prev=localstatedir ;;
888 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
889 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
890 localstatedir=$ac_optarg ;;
892 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893 ac_prev=mandir ;;
894 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
895 mandir=$ac_optarg ;;
897 -nfp | --nfp | --nf)
898 # Obsolete; use --without-fp.
899 with_fp=no ;;
901 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
902 | --no-cr | --no-c | -n)
903 no_create=yes ;;
905 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
906 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
907 no_recursion=yes ;;
909 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
910 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
911 | --oldin | --oldi | --old | --ol | --o)
912 ac_prev=oldincludedir ;;
913 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
914 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
915 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
916 oldincludedir=$ac_optarg ;;
918 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919 ac_prev=prefix ;;
920 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
921 prefix=$ac_optarg ;;
923 -program-prefix | --program-prefix | --program-prefi | --program-pref \
924 | --program-pre | --program-pr | --program-p)
925 ac_prev=program_prefix ;;
926 -program-prefix=* | --program-prefix=* | --program-prefi=* \
927 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
928 program_prefix=$ac_optarg ;;
930 -program-suffix | --program-suffix | --program-suffi | --program-suff \
931 | --program-suf | --program-su | --program-s)
932 ac_prev=program_suffix ;;
933 -program-suffix=* | --program-suffix=* | --program-suffi=* \
934 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
935 program_suffix=$ac_optarg ;;
937 -program-transform-name | --program-transform-name \
938 | --program-transform-nam | --program-transform-na \
939 | --program-transform-n | --program-transform- \
940 | --program-transform | --program-transfor \
941 | --program-transfo | --program-transf \
942 | --program-trans | --program-tran \
943 | --progr-tra | --program-tr | --program-t)
944 ac_prev=program_transform_name ;;
945 -program-transform-name=* | --program-transform-name=* \
946 | --program-transform-nam=* | --program-transform-na=* \
947 | --program-transform-n=* | --program-transform-=* \
948 | --program-transform=* | --program-transfor=* \
949 | --program-transfo=* | --program-transf=* \
950 | --program-trans=* | --program-tran=* \
951 | --progr-tra=* | --program-tr=* | --program-t=*)
952 program_transform_name=$ac_optarg ;;
954 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955 ac_prev=pdfdir ;;
956 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
957 pdfdir=$ac_optarg ;;
959 -psdir | --psdir | --psdi | --psd | --ps)
960 ac_prev=psdir ;;
961 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
962 psdir=$ac_optarg ;;
964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
965 | -silent | --silent | --silen | --sile | --sil)
966 silent=yes ;;
968 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969 ac_prev=sbindir ;;
970 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971 | --sbi=* | --sb=*)
972 sbindir=$ac_optarg ;;
974 -sharedstatedir | --sharedstatedir | --sharedstatedi \
975 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
976 | --sharedst | --shareds | --shared | --share | --shar \
977 | --sha | --sh)
978 ac_prev=sharedstatedir ;;
979 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
980 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
981 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982 | --sha=* | --sh=*)
983 sharedstatedir=$ac_optarg ;;
985 -site | --site | --sit)
986 ac_prev=site ;;
987 -site=* | --site=* | --sit=*)
988 site=$ac_optarg ;;
990 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991 ac_prev=srcdir ;;
992 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
993 srcdir=$ac_optarg ;;
995 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
996 | --syscon | --sysco | --sysc | --sys | --sy)
997 ac_prev=sysconfdir ;;
998 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
999 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1000 sysconfdir=$ac_optarg ;;
1002 -target | --target | --targe | --targ | --tar | --ta | --t)
1003 ac_prev=target_alias ;;
1004 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1005 target_alias=$ac_optarg ;;
1007 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1008 verbose=yes ;;
1010 -version | --version | --versio | --versi | --vers | -V)
1011 ac_init_version=: ;;
1013 -with-* | --with-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error "invalid package name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "with_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval with_$ac_useropt=\$ac_optarg ;;
1029 -without-* | --without-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error "invalid package name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "with_$ac_useropt"
1039 "*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval with_$ac_useropt=no ;;
1045 --x)
1046 # Obsolete; use --with-x.
1047 with_x=yes ;;
1049 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1050 | --x-incl | --x-inc | --x-in | --x-i)
1051 ac_prev=x_includes ;;
1052 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1053 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1054 x_includes=$ac_optarg ;;
1056 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1057 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1058 ac_prev=x_libraries ;;
1059 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1060 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1061 x_libraries=$ac_optarg ;;
1063 -*) as_fn_error "unrecognized option: \`$ac_option'
1064 Try \`$0 --help' for more information."
1067 *=*)
1068 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1069 # Reject names that are not valid shell variable names.
1070 case $ac_envvar in #(
1071 '' | [0-9]* | *[!_$as_cr_alnum]* )
1072 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1073 esac
1074 eval $ac_envvar=\$ac_optarg
1075 export $ac_envvar ;;
1078 # FIXME: should be removed in autoconf 3.0.
1079 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1080 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1082 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085 esac
1086 done
1088 if test -n "$ac_prev"; then
1089 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1090 as_fn_error "missing argument to $ac_option"
1093 if test -n "$ac_unrecognized_opts"; then
1094 case $enable_option_checking in
1095 no) ;;
1096 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1097 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1098 esac
1101 # Check all directory arguments for consistency.
1102 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
1107 eval ac_val=\$$ac_var
1108 # Remove trailing slashes.
1109 case $ac_val in
1110 */ )
1111 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1112 eval $ac_var=\$ac_val;;
1113 esac
1114 # Be sure to have absolute directory names.
1115 case $ac_val in
1116 [\\/$]* | ?:[\\/]* ) continue;;
1117 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1118 esac
1119 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1120 done
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1125 build=$build_alias
1126 host=$host_alias
1127 target=$target_alias
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x; then
1131 if test "x$build_alias" = x; then
1132 cross_compiling=maybe
1133 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1136 cross_compiling=yes
1140 ac_tool_prefix=
1141 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143 test "$silent" = yes && exec 6>/dev/null
1146 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di=`ls -di .` &&
1148 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149 as_fn_error "working directory cannot be determined"
1150 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1151 as_fn_error "pwd does not report name of working directory"
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156 ac_srcdir_defaulted=yes
1157 # Try the directory containing this script, then the parent directory.
1158 ac_confdir=`$as_dirname -- "$as_myself" ||
1159 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160 X"$as_myself" : 'X\(//\)[^/]' \| \
1161 X"$as_myself" : 'X\(//\)$' \| \
1162 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1163 $as_echo X"$as_myself" |
1164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165 s//\1/
1168 /^X\(\/\/\)[^/].*/{
1169 s//\1/
1172 /^X\(\/\/\)$/{
1173 s//\1/
1176 /^X\(\/\).*/{
1177 s//\1/
1180 s/.*/./; q'`
1181 srcdir=$ac_confdir
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 srcdir=..
1185 else
1186 ac_srcdir_defaulted=no
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1192 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 ac_abs_confdir=`(
1194 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures fixincludes to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/fixincludes]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1275 cat <<\_ACEOF
1277 System types:
1278 --build=BUILD configure for building on BUILD [guessed]
1279 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1280 --target=TARGET configure for building compilers for TARGET [HOST]
1281 _ACEOF
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of fixincludes :";;
1287 esac
1288 cat <<\_ACEOF
1290 Optional Features:
1291 --disable-option-checking ignore unrecognized --enable/--with options
1292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1294 --enable-werror-always enable -Werror despite compiler version
1295 --enable-twoprocess Use a separate process to apply the fixes
1296 --enable-maintainer-mode enable make rules and dependencies not useful
1297 (and sometimes confusing) to the casual installer
1299 Optional Packages:
1300 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1301 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1302 --with-local-prefix=DIR specifies directory to put local include
1303 --with-gcc-major-version-only
1304 use only GCC major number in filesystem paths
1306 Some influential environment variables:
1307 CC C compiler command
1308 CFLAGS C compiler flags
1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1310 nonstandard directory <lib dir>
1311 LIBS libraries to pass to the linker, e.g. -l<library>
1312 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1313 you have headers in a nonstandard directory <include dir>
1314 CPP C preprocessor
1316 Use these variables to override the choices made by `configure' or to help
1317 it to find libraries and programs with nonstandard names/locations.
1319 Report bugs to the package provider.
1320 _ACEOF
1321 ac_status=$?
1324 if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327 test -d "$ac_dir" ||
1328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1329 continue
1330 ac_builddir=.
1332 case "$ac_dir" in
1333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1336 # A ".." for each directory in $ac_dir_suffix.
1337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1338 case $ac_top_builddir_sub in
1339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341 esac ;;
1342 esac
1343 ac_abs_top_builddir=$ac_pwd
1344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345 # for backward compatibility:
1346 ac_top_builddir=$ac_top_build_prefix
1348 case $srcdir in
1349 .) # We are building in place.
1350 ac_srcdir=.
1351 ac_top_srcdir=$ac_top_builddir_sub
1352 ac_abs_top_srcdir=$ac_pwd ;;
1353 [\\/]* | ?:[\\/]* ) # Absolute name.
1354 ac_srcdir=$srcdir$ac_dir_suffix;
1355 ac_top_srcdir=$srcdir
1356 ac_abs_top_srcdir=$srcdir ;;
1357 *) # Relative name.
1358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359 ac_top_srcdir=$ac_top_build_prefix$srcdir
1360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 esac
1362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1364 cd "$ac_dir" || { ac_status=$?; continue; }
1365 # Check for guested configure.
1366 if test -f "$ac_srcdir/configure.gnu"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369 elif test -f "$ac_srcdir/configure"; then
1370 echo &&
1371 $SHELL "$ac_srcdir/configure" --help=recursive
1372 else
1373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 fi || ac_status=$?
1375 cd "$ac_pwd" || { ac_status=$?; break; }
1376 done
1379 test -n "$ac_init_help" && exit $ac_status
1380 if $ac_init_version; then
1381 cat <<\_ACEOF
1382 fixincludes configure
1383 generated by GNU Autoconf 2.64
1385 Copyright (C) 2009 Free Software Foundation, Inc.
1386 This configure script is free software; the Free Software Foundation
1387 gives unlimited permission to copy, distribute and modify it.
1388 _ACEOF
1389 exit
1392 ## ------------------------ ##
1393 ## Autoconf initialization. ##
1394 ## ------------------------ ##
1396 # ac_fn_c_try_compile LINENO
1397 # --------------------------
1398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1399 ac_fn_c_try_compile ()
1401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1402 rm -f conftest.$ac_objext
1403 if { { ac_try="$ac_compile"
1404 case "(($ac_try" in
1405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1406 *) ac_try_echo=$ac_try;;
1407 esac
1408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1409 $as_echo "$ac_try_echo"; } >&5
1410 (eval "$ac_compile") 2>conftest.err
1411 ac_status=$?
1412 if test -s conftest.err; then
1413 grep -v '^ *+' conftest.err >conftest.er1
1414 cat conftest.er1 >&5
1415 mv -f conftest.er1 conftest.err
1417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1418 test $ac_status = 0; } && {
1419 test -z "$ac_c_werror_flag" ||
1420 test ! -s conftest.err
1421 } && test -s conftest.$ac_objext; then :
1422 ac_retval=0
1423 else
1424 $as_echo "$as_me: failed program was:" >&5
1425 sed 's/^/| /' conftest.$ac_ext >&5
1427 ac_retval=1
1429 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1430 return $ac_retval
1432 } # ac_fn_c_try_compile
1434 # ac_fn_c_try_cpp LINENO
1435 # ----------------------
1436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1437 ac_fn_c_try_cpp ()
1439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440 if { { ac_try="$ac_cpp conftest.$ac_ext"
1441 case "(($ac_try" in
1442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443 *) ac_try_echo=$ac_try;;
1444 esac
1445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446 $as_echo "$ac_try_echo"; } >&5
1447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1448 ac_status=$?
1449 if test -s conftest.err; then
1450 grep -v '^ *+' conftest.err >conftest.er1
1451 cat conftest.er1 >&5
1452 mv -f conftest.er1 conftest.err
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; } >/dev/null && {
1456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1457 test ! -s conftest.err
1458 }; then :
1459 ac_retval=0
1460 else
1461 $as_echo "$as_me: failed program was:" >&5
1462 sed 's/^/| /' conftest.$ac_ext >&5
1464 ac_retval=1
1466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1467 return $ac_retval
1469 } # ac_fn_c_try_cpp
1471 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1472 # -------------------------------------------------------
1473 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1474 # the include files in INCLUDES and setting the cache variable VAR
1475 # accordingly.
1476 ac_fn_c_check_header_mongrel ()
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1481 $as_echo_n "checking for $2... " >&6; }
1482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1483 $as_echo_n "(cached) " >&6
1485 eval ac_res=\$$3
1486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1487 $as_echo "$ac_res" >&6; }
1488 else
1489 # Is the header compilable?
1490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1491 $as_echo_n "checking $2 usability... " >&6; }
1492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1493 /* end confdefs.h. */
1495 #include <$2>
1496 _ACEOF
1497 if ac_fn_c_try_compile "$LINENO"; then :
1498 ac_header_compiler=yes
1499 else
1500 ac_header_compiler=no
1502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1504 $as_echo "$ac_header_compiler" >&6; }
1506 # Is the header present?
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1508 $as_echo_n "checking $2 presence... " >&6; }
1509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510 /* end confdefs.h. */
1511 #include <$2>
1512 _ACEOF
1513 if ac_fn_c_try_cpp "$LINENO"; then :
1514 ac_header_preproc=yes
1515 else
1516 ac_header_preproc=no
1518 rm -f conftest.err conftest.$ac_ext
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1520 $as_echo "$ac_header_preproc" >&6; }
1522 # So? What about this header?
1523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1524 yes:no: )
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1526 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1530 no:yes:* )
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1532 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1534 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1536 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1538 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1542 esac
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1544 $as_echo_n "checking for $2... " >&6; }
1545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1546 $as_echo_n "(cached) " >&6
1547 else
1548 eval "$3=\$ac_header_compiler"
1550 eval ac_res=\$$3
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1552 $as_echo "$ac_res" >&6; }
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 } # ac_fn_c_check_header_mongrel
1558 # ac_fn_c_try_run LINENO
1559 # ----------------------
1560 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1561 # that executables *can* be run.
1562 ac_fn_c_try_run ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_link"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>&5
1573 ac_status=$?
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1576 { { case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_try") 2>&5
1583 ac_status=$?
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; }; }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: program exited with status $ac_status" >&5
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1592 ac_retval=$ac_status
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
1598 } # ac_fn_c_try_run
1600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists and can be compiled using the include files in
1603 # INCLUDES, setting the cache variable VAR accordingly.
1604 ac_fn_c_check_header_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 $as_echo_n "(cached) " >&6
1611 else
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"; then :
1618 eval "$3=yes"
1619 else
1620 eval "$3=no"
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 } # ac_fn_c_check_header_compile
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_link ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 $as_test_x conftest$ac_exeext
1659 }; then :
1660 ac_retval=0
1661 else
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=1
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 return $ac_retval
1675 } # ac_fn_c_try_link
1677 # ac_fn_c_check_func LINENO FUNC VAR
1678 # ----------------------------------
1679 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1680 ac_fn_c_check_func ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1692 #define $2 innocuous_$2
1694 /* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char $2 (); below.
1696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697 <limits.h> exists even on freestanding compilers. */
1699 #ifdef __STDC__
1700 # include <limits.h>
1701 #else
1702 # include <assert.h>
1703 #endif
1705 #undef $2
1707 /* Override any GCC internal prototype to avoid an error.
1708 Use char because int might match the return type of a GCC
1709 builtin and then its argument prototype would still apply. */
1710 #ifdef __cplusplus
1711 extern "C"
1712 #endif
1713 char $2 ();
1714 /* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717 #if defined __stub_$2 || defined __stub___$2
1718 choke me
1719 #endif
1722 main ()
1724 return $2 ();
1726 return 0;
1728 _ACEOF
1729 if ac_fn_c_try_link "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1734 rm -f core conftest.err conftest.$ac_objext \
1735 conftest$ac_exeext conftest.$ac_ext
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 } # ac_fn_c_check_func
1744 # ac_fn_c_check_decl LINENO SYMBOL VAR
1745 # ------------------------------------
1746 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1747 ac_fn_c_check_decl ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 as_decl_name=`echo $2|sed 's/ *(.*//'`
1751 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1753 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1761 main ()
1763 #ifndef $as_decl_name
1764 #ifdef __cplusplus
1765 (void) $as_decl_use;
1766 #else
1767 (void) $as_decl_name;
1768 #endif
1769 #endif
1772 return 0;
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 } # ac_fn_c_check_decl
1788 cat >config.log <<_ACEOF
1789 This file contains any messages produced by compilers while
1790 running configure, to aid debugging if configure makes a mistake.
1792 It was created by fixincludes $as_me , which was
1793 generated by GNU Autoconf 2.64. Invocation command line was
1795 $ $0 $@
1797 _ACEOF
1798 exec 5>>config.log
1800 cat <<_ASUNAME
1801 ## --------- ##
1802 ## Platform. ##
1803 ## --------- ##
1805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1814 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1822 _ASUNAME
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 $as_echo "PATH: $as_dir"
1830 done
1831 IFS=$as_save_IFS
1833 } >&5
1835 cat >&5 <<_ACEOF
1838 ## ----------- ##
1839 ## Core tests. ##
1840 ## ----------- ##
1842 _ACEOF
1845 # Keep a trace of the command line.
1846 # Strip out --no-create and --no-recursion so they do not pile up.
1847 # Strip out --silent because we don't want to record it for future runs.
1848 # Also quote any args containing shell meta-characters.
1849 # Make two passes to allow for proper duplicate-argument suppression.
1850 ac_configure_args=
1851 ac_configure_args0=
1852 ac_configure_args1=
1853 ac_must_keep_next=false
1854 for ac_pass in 1 2
1856 for ac_arg
1858 case $ac_arg in
1859 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861 | -silent | --silent | --silen | --sile | --sil)
1862 continue ;;
1863 *\'*)
1864 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 esac
1866 case $ac_pass in
1867 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1869 as_fn_append ac_configure_args1 " '$ac_arg'"
1870 if test $ac_must_keep_next = true; then
1871 ac_must_keep_next=false # Got value, back to normal.
1872 else
1873 case $ac_arg in
1874 *=* | --config-cache | -C | -disable-* | --disable-* \
1875 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877 | -with-* | --with-* | -without-* | --without-* | --x)
1878 case "$ac_configure_args0 " in
1879 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880 esac
1882 -* ) ac_must_keep_next=true ;;
1883 esac
1885 as_fn_append ac_configure_args " '$ac_arg'"
1887 esac
1888 done
1889 done
1890 { ac_configure_args0=; unset ac_configure_args0;}
1891 { ac_configure_args1=; unset ac_configure_args1;}
1893 # When interrupted or exit'd, cleanup temporary files, and complete
1894 # config.log. We remove comments because anyway the quotes in there
1895 # would cause problems or look ugly.
1896 # WARNING: Use '\'' to represent an apostrophe within the trap.
1897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898 trap 'exit_status=$?
1899 # Save into config.log some information that might help in debugging.
1901 echo
1903 cat <<\_ASBOX
1904 ## ---------------- ##
1905 ## Cache variables. ##
1906 ## ---------------- ##
1907 _ASBOX
1908 echo
1909 # The following way of writing the cache mishandles newlines in values,
1911 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1912 eval ac_val=\$$ac_var
1913 case $ac_val in #(
1914 *${as_nl}*)
1915 case $ac_var in #(
1916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1918 esac
1919 case $ac_var in #(
1920 _ | IFS | as_nl) ;; #(
1921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1922 *) { eval $ac_var=; unset $ac_var;} ;;
1923 esac ;;
1924 esac
1925 done
1926 (set) 2>&1 |
1927 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928 *${as_nl}ac_space=\ *)
1929 sed -n \
1930 "s/'\''/'\''\\\\'\'''\''/g;
1931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932 ;; #(
1934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936 esac |
1937 sort
1939 echo
1941 cat <<\_ASBOX
1942 ## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##
1945 _ASBOX
1946 echo
1947 for ac_var in $ac_subst_vars
1949 eval ac_val=\$$ac_var
1950 case $ac_val in
1951 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 esac
1953 $as_echo "$ac_var='\''$ac_val'\''"
1954 done | sort
1955 echo
1957 if test -n "$ac_subst_files"; then
1958 cat <<\_ASBOX
1959 ## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##
1962 _ASBOX
1963 echo
1964 for ac_var in $ac_subst_files
1966 eval ac_val=\$$ac_var
1967 case $ac_val in
1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969 esac
1970 $as_echo "$ac_var='\''$ac_val'\''"
1971 done | sort
1972 echo
1975 if test -s confdefs.h; then
1976 cat <<\_ASBOX
1977 ## ----------- ##
1978 ## confdefs.h. ##
1979 ## ----------- ##
1980 _ASBOX
1981 echo
1982 cat confdefs.h
1983 echo
1985 test "$ac_signal" != 0 &&
1986 $as_echo "$as_me: caught signal $ac_signal"
1987 $as_echo "$as_me: exit $exit_status"
1988 } >&5
1989 rm -f core *.core core.conftest.* &&
1990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991 exit $exit_status
1993 for ac_signal in 1 2 13 15; do
1994 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1995 done
1996 ac_signal=0
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2001 $as_echo "/* confdefs.h */" > confdefs.h
2003 # Predefined preprocessor variables.
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_NAME "$PACKAGE_NAME"
2007 _ACEOF
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2011 _ACEOF
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 _ACEOF
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_STRING "$PACKAGE_STRING"
2019 _ACEOF
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2023 _ACEOF
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_URL "$PACKAGE_URL"
2027 _ACEOF
2030 # Let the site file select an alternate cache file if it wants to.
2031 # Prefer an explicitly selected file to automatically selected ones.
2032 ac_site_file1=NONE
2033 ac_site_file2=NONE
2034 if test -n "$CONFIG_SITE"; then
2035 ac_site_file1=$CONFIG_SITE
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_file1=$prefix/share/config.site
2038 ac_site_file2=$prefix/etc/config.site
2039 else
2040 ac_site_file1=$ac_default_prefix/share/config.site
2041 ac_site_file2=$ac_default_prefix/etc/config.site
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 test "x$ac_site_file" = xNONE && continue
2046 if test -r "$ac_site_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049 sed 's/^/| /' "$ac_site_file" >&5
2050 . "$ac_site_file"
2052 done
2054 if test -r "$cache_file"; then
2055 # Some versions of bash will fail to source /dev/null (special
2056 # files actually), so we avoid doing that.
2057 if test -f "$cache_file"; then
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2059 $as_echo "$as_me: loading cache $cache_file" >&6;}
2060 case $cache_file in
2061 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2062 *) . "./$cache_file";;
2063 esac
2065 else
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2067 $as_echo "$as_me: creating cache $cache_file" >&6;}
2068 >$cache_file
2071 # Check that the precious variables saved in the cache have kept the same
2072 # value.
2073 ac_cache_corrupted=false
2074 for ac_var in $ac_precious_vars; do
2075 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2076 eval ac_new_set=\$ac_env_${ac_var}_set
2077 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2078 eval ac_new_val=\$ac_env_${ac_var}_value
2079 case $ac_old_set,$ac_new_set in
2080 set,)
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2082 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2083 ac_cache_corrupted=: ;;
2084 ,set)
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2087 ac_cache_corrupted=: ;;
2088 ,);;
2090 if test "x$ac_old_val" != "x$ac_new_val"; then
2091 # differences in whitespace do not lead to failure.
2092 ac_old_val_w=`echo x $ac_old_val`
2093 ac_new_val_w=`echo x $ac_new_val`
2094 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2096 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2097 ac_cache_corrupted=:
2098 else
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2100 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2101 eval $ac_var=\$ac_old_val
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2104 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2106 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2107 fi;;
2108 esac
2109 # Pass precious variables to config.status.
2110 if test "$ac_new_set" = set; then
2111 case $ac_new_val in
2112 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2113 *) ac_arg=$ac_var=$ac_new_val ;;
2114 esac
2115 case " $ac_configure_args " in
2116 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2117 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2118 esac
2120 done
2121 if $ac_cache_corrupted; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2125 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2126 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2128 ## -------------------- ##
2129 ## Main body of script. ##
2130 ## -------------------- ##
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 ac_aux_dir=
2144 for ac_dir in .. "$srcdir"/..; do
2145 for ac_t in install-sh install.sh shtool; do
2146 if test -f "$ac_dir/$ac_t"; then
2147 ac_aux_dir=$ac_dir
2148 ac_install_sh="$ac_aux_dir/$ac_t -c"
2149 break 2
2151 done
2152 done
2153 if test -z "$ac_aux_dir"; then
2154 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2157 # These three variables are undocumented and unsupported,
2158 # and are intended to be withdrawn in a future Autoconf release.
2159 # They can cause serious problems if a builder's source tree is in a directory
2160 # whose full name contains unusual characters.
2161 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2166 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2168 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2169 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2170 # Written by Gordon Matzigkeit, 1996
2172 # This file is free software; the Free Software Foundation gives
2173 # unlimited permission to copy and/or distribute it, with or without
2174 # modifications, as long as this notice is preserved.
2178 # serial 56 LT_INIT
2181 # LT_PREREQ(VERSION)
2182 # ------------------
2183 # Complain and exit if this libtool version is less that VERSION.
2187 # _LT_CHECK_BUILDDIR
2188 # ------------------
2189 # Complain if the absolute build directory name contains unusual characters
2193 # LT_INIT([OPTIONS])
2194 # ------------------
2195 # LT_INIT
2197 # Old names:
2198 # This is what autoupdate's m4 run will expand. It fires
2199 # the warning (with _au_warn_XXX), outputs it into the
2200 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2201 # the replacement expansion.
2204 # This is an auxiliary macro that is also run when
2205 # autoupdate runs m4. It simply calls m4_warning, but
2206 # we need a wrapper so that each warning is emitted only
2207 # once. We break the quoting in m4_warning's argument in
2208 # order to expand this macro's arguments, not AU_DEFUN's.
2211 # Finally, this is the expansion that is picked up by
2212 # autoconf. It tells the user to run autoupdate, and
2213 # then outputs the replacement expansion. We do not care
2214 # about autoupdate's warning because that contains
2215 # information on what to do *after* running autoupdate.
2217 # This is what autoupdate's m4 run will expand. It fires
2218 # the warning (with _au_warn_XXX), outputs it into the
2219 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2220 # the replacement expansion.
2223 # This is an auxiliary macro that is also run when
2224 # autoupdate runs m4. It simply calls m4_warning, but
2225 # we need a wrapper so that each warning is emitted only
2226 # once. We break the quoting in m4_warning's argument in
2227 # order to expand this macro's arguments, not AU_DEFUN's.
2230 # Finally, this is the expansion that is picked up by
2231 # autoconf. It tells the user to run autoupdate, and
2232 # then outputs the replacement expansion. We do not care
2233 # about autoupdate's warning because that contains
2234 # information on what to do *after* running autoupdate.
2238 # _LT_CC_BASENAME(CC)
2239 # -------------------
2240 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2244 # _LT_FILEUTILS_DEFAULTS
2245 # ----------------------
2246 # It is okay to use these file commands and assume they have been set
2247 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2248 # _LT_FILEUTILS_DEFAULTS
2251 # _LT_SETUP
2252 # ---------
2253 # _LT_SETUP
2256 # _LT_PREPARE_SED_QUOTE_VARS
2257 # --------------------------
2258 # Define a few sed substitution that help us do robust quoting.
2261 # _LT_PROG_LTMAIN
2262 # ---------------
2263 # Note that this code is called both from `configure', and `config.status'
2264 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2265 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2266 # so we pass a copy along to make sure it has a sensible value anyway.
2267 # _LT_PROG_LTMAIN
2270 ## ------------------------------------- ##
2271 ## Accumulate code for creating libtool. ##
2272 ## ------------------------------------- ##
2274 # So that we can recreate a full libtool script including additional
2275 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2276 # in macros and then make a single call at the end using the `libtool'
2277 # label.
2280 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2281 # ----------------------------------------
2282 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2285 # Initialize.
2289 # _LT_CONFIG_LIBTOOL([COMMANDS])
2290 # ------------------------------
2291 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2294 # Initialize.
2298 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2299 # -----------------------------------------------------
2303 # _LT_FORMAT_COMMENT([COMMENT])
2304 # -----------------------------
2305 # Add leading comment marks to the start of each line, and a trailing
2306 # full-stop to the whole comment if one is not present already.
2311 ## ------------------------ ##
2312 ## FIXME: Eliminate VARNAME ##
2313 ## ------------------------ ##
2316 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2317 # -------------------------------------------------------------------
2318 # CONFIGNAME is the name given to the value in the libtool script.
2319 # VARNAME is the (base) name used in the configure script.
2320 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2321 # VARNAME. Any other value will be used directly.
2325 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2326 # --------------------------------------------------------
2330 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2331 # ------------------------------------------------
2335 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2336 # ---------------------------------------------------------
2340 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2341 # --------------------------------------------------
2345 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2346 # ---------------------------------------------------
2350 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2351 # ---------------------------------------------------
2356 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2357 # ------------------------------------------------
2362 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2363 # ------------------------------------
2364 # Quote a variable value, and forward it to `config.status' so that its
2365 # declaration there will have the same value as in `configure'. VARNAME
2366 # must have a single quote delimited value for this to work.
2370 # _LT_CONFIG_STATUS_DECLARATIONS
2371 # ------------------------------
2372 # We delimit libtool config variables with single quotes, so when
2373 # we write them to config.status, we have to be sure to quote all
2374 # embedded single quotes properly. In configure, this macro expands
2375 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2377 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2381 # _LT_LIBTOOL_TAGS
2382 # ----------------
2383 # Output comment and list of tags supported by the script
2387 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2388 # -----------------------------------
2389 # Extract the dictionary values for VARNAME (optionally with TAG) and
2390 # expand to a commented shell variable setting:
2392 # # Some comment about what VAR is for.
2393 # visible_name=$lt_internal_name
2397 # _LT_LIBTOOL_CONFIG_VARS
2398 # -----------------------
2399 # Produce commented declarations of non-tagged libtool config variables
2400 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2401 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2402 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2406 # _LT_LIBTOOL_TAG_VARS(TAG)
2407 # -------------------------
2411 # _LT_TAGVAR(VARNAME, [TAGNAME])
2412 # ------------------------------
2416 # _LT_CONFIG_COMMANDS
2417 # -------------------
2418 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2419 # variables for single and double quote escaping we saved from calls
2420 # to _LT_DECL, we can put quote escaped variables declarations
2421 # into `config.status', and then the shell code to quote escape them in
2422 # for loops in `config.status'. Finally, any additional code accumulated
2423 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2424 #_LT_CONFIG_COMMANDS
2427 # Initialize.
2430 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2431 # ------------------------------------
2432 # Generate a child script FILE with all initialization necessary to
2433 # reuse the environment learned by the parent script, and make the
2434 # file executable. If COMMENT is supplied, it is inserted after the
2435 # `#!' sequence but before initialization text begins. After this
2436 # macro, additional text can be appended to FILE to form the body of
2437 # the child script. The macro ends with non-zero status if the
2438 # file could not be fully written (such as if the disk is full).
2439 # _LT_GENERATED_FILE_INIT
2441 # LT_OUTPUT
2442 # ---------
2443 # This macro allows early generation of the libtool script (before
2444 # AC_OUTPUT is called), incase it is used in configure for compilation
2445 # tests.
2446 # LT_OUTPUT
2449 # _LT_CONFIG(TAG)
2450 # ---------------
2451 # If TAG is the built-in tag, create an initial libtool script with a
2452 # default configuration from the untagged config vars. Otherwise add code
2453 # to config.status for appending the configuration named by TAG from the
2454 # matching tagged config vars.
2455 # _LT_CONFIG
2458 # LT_SUPPORTED_TAG(TAG)
2459 # ---------------------
2460 # Trace this macro to discover what tags are supported by the libtool
2461 # --tag option, using:
2462 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2466 # C support is built-in for now
2471 # LT_LANG(LANG)
2472 # -------------
2473 # Enable libtool support for the given language if not already enabled.
2474 # LT_LANG
2477 # _LT_LANG(LANGNAME)
2478 # ------------------
2479 # _LT_LANG
2482 # _LT_LANG_DEFAULT_CONFIG
2483 # -----------------------
2484 # _LT_LANG_DEFAULT_CONFIG
2486 # Obsolete macros:
2487 # This is what autoupdate's m4 run will expand. It fires
2488 # the warning (with _au_warn_XXX), outputs it into the
2489 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2490 # the replacement expansion.
2493 # This is an auxiliary macro that is also run when
2494 # autoupdate runs m4. It simply calls m4_warning, but
2495 # we need a wrapper so that each warning is emitted only
2496 # once. We break the quoting in m4_warning's argument in
2497 # order to expand this macro's arguments, not AU_DEFUN's.
2500 # Finally, this is the expansion that is picked up by
2501 # autoconf. It tells the user to run autoupdate, and
2502 # then outputs the replacement expansion. We do not care
2503 # about autoupdate's warning because that contains
2504 # information on what to do *after* running autoupdate.
2506 # This is what autoupdate's m4 run will expand. It fires
2507 # the warning (with _au_warn_XXX), outputs it into the
2508 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2509 # the replacement expansion.
2512 # This is an auxiliary macro that is also run when
2513 # autoupdate runs m4. It simply calls m4_warning, but
2514 # we need a wrapper so that each warning is emitted only
2515 # once. We break the quoting in m4_warning's argument in
2516 # order to expand this macro's arguments, not AU_DEFUN's.
2519 # Finally, this is the expansion that is picked up by
2520 # autoconf. It tells the user to run autoupdate, and
2521 # then outputs the replacement expansion. We do not care
2522 # about autoupdate's warning because that contains
2523 # information on what to do *after* running autoupdate.
2525 # This is what autoupdate's m4 run will expand. It fires
2526 # the warning (with _au_warn_XXX), outputs it into the
2527 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2528 # the replacement expansion.
2531 # This is an auxiliary macro that is also run when
2532 # autoupdate runs m4. It simply calls m4_warning, but
2533 # we need a wrapper so that each warning is emitted only
2534 # once. We break the quoting in m4_warning's argument in
2535 # order to expand this macro's arguments, not AU_DEFUN's.
2538 # Finally, this is the expansion that is picked up by
2539 # autoconf. It tells the user to run autoupdate, and
2540 # then outputs the replacement expansion. We do not care
2541 # about autoupdate's warning because that contains
2542 # information on what to do *after* running autoupdate.
2544 # This is what autoupdate's m4 run will expand. It fires
2545 # the warning (with _au_warn_XXX), outputs it into the
2546 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2547 # the replacement expansion.
2550 # This is an auxiliary macro that is also run when
2551 # autoupdate runs m4. It simply calls m4_warning, but
2552 # we need a wrapper so that each warning is emitted only
2553 # once. We break the quoting in m4_warning's argument in
2554 # order to expand this macro's arguments, not AU_DEFUN's.
2557 # Finally, this is the expansion that is picked up by
2558 # autoconf. It tells the user to run autoupdate, and
2559 # then outputs the replacement expansion. We do not care
2560 # about autoupdate's warning because that contains
2561 # information on what to do *after* running autoupdate.
2563 # This is what autoupdate's m4 run will expand. It fires
2564 # the warning (with _au_warn_XXX), outputs it into the
2565 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2566 # the replacement expansion.
2569 # This is an auxiliary macro that is also run when
2570 # autoupdate runs m4. It simply calls m4_warning, but
2571 # we need a wrapper so that each warning is emitted only
2572 # once. We break the quoting in m4_warning's argument in
2573 # order to expand this macro's arguments, not AU_DEFUN's.
2576 # Finally, this is the expansion that is picked up by
2577 # autoconf. It tells the user to run autoupdate, and
2578 # then outputs the replacement expansion. We do not care
2579 # about autoupdate's warning because that contains
2580 # information on what to do *after* running autoupdate.
2584 # _LT_TAG_COMPILER
2585 # ----------------
2586 # _LT_TAG_COMPILER
2589 # _LT_COMPILER_BOILERPLATE
2590 # ------------------------
2591 # Check for compiler boilerplate output or warnings with
2592 # the simple compiler test code.
2593 # _LT_COMPILER_BOILERPLATE
2596 # _LT_LINKER_BOILERPLATE
2597 # ----------------------
2598 # Check for linker boilerplate output or warnings with
2599 # the simple link test code.
2600 # _LT_LINKER_BOILERPLATE
2602 # _LT_REQUIRED_DARWIN_CHECKS
2603 # -------------------------
2607 # _LT_DARWIN_LINKER_FEATURES
2608 # --------------------------
2609 # Checks for linker and compiler features on darwin
2612 # _LT_SYS_MODULE_PATH_AIX
2613 # -----------------------
2614 # Links a minimal program and checks the executable
2615 # for the system default hardcoded library path. In most cases,
2616 # this is /usr/lib:/lib, but when the MPI compilers are used
2617 # the location of the communication and MPI libs are included too.
2618 # If we don't find anything, use the default library path according
2619 # to the aix ld manual.
2620 # _LT_SYS_MODULE_PATH_AIX
2623 # _LT_SHELL_INIT(ARG)
2624 # -------------------
2625 # _LT_SHELL_INIT
2629 # _LT_PROG_ECHO_BACKSLASH
2630 # -----------------------
2631 # Find how we can fake an echo command that does not interpret backslash.
2632 # In particular, with Autoconf 2.60 or later we add some code to the start
2633 # of the generated configure script which will find a shell with a builtin
2634 # printf (which we can use as an echo command).
2635 # _LT_PROG_ECHO_BACKSLASH
2638 # _LT_ENABLE_LOCK
2639 # ---------------
2640 # _LT_ENABLE_LOCK
2643 # _LT_CMD_OLD_ARCHIVE
2644 # -------------------
2645 # _LT_CMD_OLD_ARCHIVE
2648 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2649 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2650 # ----------------------------------------------------------------
2651 # Check whether the given compiler option works
2652 # _LT_COMPILER_OPTION
2654 # Old name:
2655 # This is what autoupdate's m4 run will expand. It fires
2656 # the warning (with _au_warn_XXX), outputs it into the
2657 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2658 # the replacement expansion.
2661 # This is an auxiliary macro that is also run when
2662 # autoupdate runs m4. It simply calls m4_warning, but
2663 # we need a wrapper so that each warning is emitted only
2664 # once. We break the quoting in m4_warning's argument in
2665 # order to expand this macro's arguments, not AU_DEFUN's.
2668 # Finally, this is the expansion that is picked up by
2669 # autoconf. It tells the user to run autoupdate, and
2670 # then outputs the replacement expansion. We do not care
2671 # about autoupdate's warning because that contains
2672 # information on what to do *after* running autoupdate.
2676 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2677 # [ACTION-SUCCESS], [ACTION-FAILURE])
2678 # ----------------------------------------------------
2679 # Check whether the given linker option works
2680 # _LT_LINKER_OPTION
2682 # Old name:
2683 # This is what autoupdate's m4 run will expand. It fires
2684 # the warning (with _au_warn_XXX), outputs it into the
2685 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2686 # the replacement expansion.
2689 # This is an auxiliary macro that is also run when
2690 # autoupdate runs m4. It simply calls m4_warning, but
2691 # we need a wrapper so that each warning is emitted only
2692 # once. We break the quoting in m4_warning's argument in
2693 # order to expand this macro's arguments, not AU_DEFUN's.
2696 # Finally, this is the expansion that is picked up by
2697 # autoconf. It tells the user to run autoupdate, and
2698 # then outputs the replacement expansion. We do not care
2699 # about autoupdate's warning because that contains
2700 # information on what to do *after* running autoupdate.
2704 # LT_CMD_MAX_LEN
2705 #---------------
2706 # LT_CMD_MAX_LEN
2708 # Old name:
2709 # This is what autoupdate's m4 run will expand. It fires
2710 # the warning (with _au_warn_XXX), outputs it into the
2711 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2712 # the replacement expansion.
2715 # This is an auxiliary macro that is also run when
2716 # autoupdate runs m4. It simply calls m4_warning, but
2717 # we need a wrapper so that each warning is emitted only
2718 # once. We break the quoting in m4_warning's argument in
2719 # order to expand this macro's arguments, not AU_DEFUN's.
2722 # Finally, this is the expansion that is picked up by
2723 # autoconf. It tells the user to run autoupdate, and
2724 # then outputs the replacement expansion. We do not care
2725 # about autoupdate's warning because that contains
2726 # information on what to do *after* running autoupdate.
2730 # _LT_HEADER_DLFCN
2731 # ----------------
2732 # _LT_HEADER_DLFCN
2735 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2736 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2737 # ----------------------------------------------------------------
2738 # _LT_TRY_DLOPEN_SELF
2741 # LT_SYS_DLOPEN_SELF
2742 # ------------------
2743 # LT_SYS_DLOPEN_SELF
2745 # Old name:
2746 # This is what autoupdate's m4 run will expand. It fires
2747 # the warning (with _au_warn_XXX), outputs it into the
2748 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2749 # the replacement expansion.
2752 # This is an auxiliary macro that is also run when
2753 # autoupdate runs m4. It simply calls m4_warning, but
2754 # we need a wrapper so that each warning is emitted only
2755 # once. We break the quoting in m4_warning's argument in
2756 # order to expand this macro's arguments, not AU_DEFUN's.
2759 # Finally, this is the expansion that is picked up by
2760 # autoconf. It tells the user to run autoupdate, and
2761 # then outputs the replacement expansion. We do not care
2762 # about autoupdate's warning because that contains
2763 # information on what to do *after* running autoupdate.
2767 # _LT_COMPILER_C_O([TAGNAME])
2768 # ---------------------------
2769 # Check to see if options -c and -o are simultaneously supported by compiler.
2770 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2771 # _LT_COMPILER_C_O
2774 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2775 # ----------------------------------
2776 # Check to see if we can do hard links to lock some files if needed
2777 # _LT_COMPILER_FILE_LOCKS
2780 # _LT_CHECK_OBJDIR
2781 # ----------------
2782 # _LT_CHECK_OBJDIR
2785 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2786 # --------------------------------------
2787 # Check hardcoding attributes.
2788 # _LT_LINKER_HARDCODE_LIBPATH
2791 # _LT_CMD_STRIPLIB
2792 # ----------------
2793 # _LT_CMD_STRIPLIB
2796 # _LT_SYS_DYNAMIC_LINKER([TAG])
2797 # -----------------------------
2798 # PORTME Fill in your ld.so characteristics
2799 # _LT_SYS_DYNAMIC_LINKER
2802 # _LT_PATH_TOOL_PREFIX(TOOL)
2803 # --------------------------
2804 # find a file program which can recognize shared library
2805 # _LT_PATH_TOOL_PREFIX
2807 # Old name:
2808 # This is what autoupdate's m4 run will expand. It fires
2809 # the warning (with _au_warn_XXX), outputs it into the
2810 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2811 # the replacement expansion.
2814 # This is an auxiliary macro that is also run when
2815 # autoupdate runs m4. It simply calls m4_warning, but
2816 # we need a wrapper so that each warning is emitted only
2817 # once. We break the quoting in m4_warning's argument in
2818 # order to expand this macro's arguments, not AU_DEFUN's.
2821 # Finally, this is the expansion that is picked up by
2822 # autoconf. It tells the user to run autoupdate, and
2823 # then outputs the replacement expansion. We do not care
2824 # about autoupdate's warning because that contains
2825 # information on what to do *after* running autoupdate.
2829 # _LT_PATH_MAGIC
2830 # --------------
2831 # find a file program which can recognize a shared library
2832 # _LT_PATH_MAGIC
2835 # LT_PATH_LD
2836 # ----------
2837 # find the pathname to the GNU or non-GNU linker
2838 # LT_PATH_LD
2840 # Old names:
2841 # This is what autoupdate's m4 run will expand. It fires
2842 # the warning (with _au_warn_XXX), outputs it into the
2843 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2844 # the replacement expansion.
2847 # This is an auxiliary macro that is also run when
2848 # autoupdate runs m4. It simply calls m4_warning, but
2849 # we need a wrapper so that each warning is emitted only
2850 # once. We break the quoting in m4_warning's argument in
2851 # order to expand this macro's arguments, not AU_DEFUN's.
2854 # Finally, this is the expansion that is picked up by
2855 # autoconf. It tells the user to run autoupdate, and
2856 # then outputs the replacement expansion. We do not care
2857 # about autoupdate's warning because that contains
2858 # information on what to do *after* running autoupdate.
2860 # This is what autoupdate's m4 run will expand. It fires
2861 # the warning (with _au_warn_XXX), outputs it into the
2862 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2863 # the replacement expansion.
2866 # This is an auxiliary macro that is also run when
2867 # autoupdate runs m4. It simply calls m4_warning, but
2868 # we need a wrapper so that each warning is emitted only
2869 # once. We break the quoting in m4_warning's argument in
2870 # order to expand this macro's arguments, not AU_DEFUN's.
2873 # Finally, this is the expansion that is picked up by
2874 # autoconf. It tells the user to run autoupdate, and
2875 # then outputs the replacement expansion. We do not care
2876 # about autoupdate's warning because that contains
2877 # information on what to do *after* running autoupdate.
2881 # _LT_PATH_LD_GNU
2882 #- --------------
2883 # _LT_PATH_LD_GNU
2886 # _LT_CMD_RELOAD
2887 # --------------
2888 # find reload flag for linker
2889 # -- PORTME Some linkers may need a different reload flag.
2890 # _LT_CMD_RELOAD
2893 # _LT_CHECK_MAGIC_METHOD
2894 # ----------------------
2895 # how to check for library dependencies
2896 # -- PORTME fill in with the dynamic library characteristics
2897 # _LT_CHECK_MAGIC_METHOD
2900 # LT_PATH_NM
2901 # ----------
2902 # find the pathname to a BSD- or MS-compatible name lister
2903 # LT_PATH_NM
2905 # Old names:
2906 # This is what autoupdate's m4 run will expand. It fires
2907 # the warning (with _au_warn_XXX), outputs it into the
2908 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2909 # the replacement expansion.
2912 # This is an auxiliary macro that is also run when
2913 # autoupdate runs m4. It simply calls m4_warning, but
2914 # we need a wrapper so that each warning is emitted only
2915 # once. We break the quoting in m4_warning's argument in
2916 # order to expand this macro's arguments, not AU_DEFUN's.
2919 # Finally, this is the expansion that is picked up by
2920 # autoconf. It tells the user to run autoupdate, and
2921 # then outputs the replacement expansion. We do not care
2922 # about autoupdate's warning because that contains
2923 # information on what to do *after* running autoupdate.
2925 # This is what autoupdate's m4 run will expand. It fires
2926 # the warning (with _au_warn_XXX), outputs it into the
2927 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2928 # the replacement expansion.
2931 # This is an auxiliary macro that is also run when
2932 # autoupdate runs m4. It simply calls m4_warning, but
2933 # we need a wrapper so that each warning is emitted only
2934 # once. We break the quoting in m4_warning's argument in
2935 # order to expand this macro's arguments, not AU_DEFUN's.
2938 # Finally, this is the expansion that is picked up by
2939 # autoconf. It tells the user to run autoupdate, and
2940 # then outputs the replacement expansion. We do not care
2941 # about autoupdate's warning because that contains
2942 # information on what to do *after* running autoupdate.
2946 # LT_LIB_M
2947 # --------
2948 # check for math library
2949 # LT_LIB_M
2951 # Old name:
2952 # This is what autoupdate's m4 run will expand. It fires
2953 # the warning (with _au_warn_XXX), outputs it into the
2954 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2955 # the replacement expansion.
2958 # This is an auxiliary macro that is also run when
2959 # autoupdate runs m4. It simply calls m4_warning, but
2960 # we need a wrapper so that each warning is emitted only
2961 # once. We break the quoting in m4_warning's argument in
2962 # order to expand this macro's arguments, not AU_DEFUN's.
2965 # Finally, this is the expansion that is picked up by
2966 # autoconf. It tells the user to run autoupdate, and
2967 # then outputs the replacement expansion. We do not care
2968 # about autoupdate's warning because that contains
2969 # information on what to do *after* running autoupdate.
2973 # _LT_COMPILER_NO_RTTI([TAGNAME])
2974 # -------------------------------
2975 # _LT_COMPILER_NO_RTTI
2978 # _LT_CMD_GLOBAL_SYMBOLS
2979 # ----------------------
2980 # _LT_CMD_GLOBAL_SYMBOLS
2983 # _LT_COMPILER_PIC([TAGNAME])
2984 # ---------------------------
2985 # _LT_COMPILER_PIC
2988 # _LT_LINKER_SHLIBS([TAGNAME])
2989 # ----------------------------
2990 # See if the linker supports building shared libraries.
2991 # _LT_LINKER_SHLIBS
2994 # _LT_LANG_C_CONFIG([TAG])
2995 # ------------------------
2996 # Ensure that the configuration variables for a C compiler are suitably
2997 # defined. These variables are subsequently used by _LT_CONFIG to write
2998 # the compiler configuration to `libtool'.
2999 # _LT_LANG_C_CONFIG
3002 # _LT_LANG_CXX_CONFIG([TAG])
3003 # --------------------------
3004 # Ensure that the configuration variables for a C++ compiler are suitably
3005 # defined. These variables are subsequently used by _LT_CONFIG to write
3006 # the compiler configuration to `libtool'.
3007 # _LT_LANG_CXX_CONFIG
3010 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3011 # ---------------------------------
3012 # Figure out "hidden" library dependencies from verbose
3013 # compiler output when linking a shared library.
3014 # Parse the compiler output and extract the necessary
3015 # objects, libraries and library flags.
3016 # _LT_SYS_HIDDEN_LIBDEPS
3019 # _LT_LANG_F77_CONFIG([TAG])
3020 # --------------------------
3021 # Ensure that the configuration variables for a Fortran 77 compiler are
3022 # suitably defined. These variables are subsequently used by _LT_CONFIG
3023 # to write the compiler configuration to `libtool'.
3024 # _LT_LANG_F77_CONFIG
3027 # _LT_LANG_FC_CONFIG([TAG])
3028 # -------------------------
3029 # Ensure that the configuration variables for a Fortran compiler are
3030 # suitably defined. These variables are subsequently used by _LT_CONFIG
3031 # to write the compiler configuration to `libtool'.
3032 # _LT_LANG_FC_CONFIG
3035 # _LT_LANG_GCJ_CONFIG([TAG])
3036 # --------------------------
3037 # Ensure that the configuration variables for the GNU Java Compiler compiler
3038 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3039 # to write the compiler configuration to `libtool'.
3040 # _LT_LANG_GCJ_CONFIG
3043 # _LT_LANG_RC_CONFIG([TAG])
3044 # -------------------------
3045 # Ensure that the configuration variables for the Windows resource compiler
3046 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3047 # to write the compiler configuration to `libtool'.
3048 # _LT_LANG_RC_CONFIG
3051 # LT_PROG_GCJ
3052 # -----------
3055 # Old name:
3056 # This is what autoupdate's m4 run will expand. It fires
3057 # the warning (with _au_warn_XXX), outputs it into the
3058 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3059 # the replacement expansion.
3062 # This is an auxiliary macro that is also run when
3063 # autoupdate runs m4. It simply calls m4_warning, but
3064 # we need a wrapper so that each warning is emitted only
3065 # once. We break the quoting in m4_warning's argument in
3066 # order to expand this macro's arguments, not AU_DEFUN's.
3069 # Finally, this is the expansion that is picked up by
3070 # autoconf. It tells the user to run autoupdate, and
3071 # then outputs the replacement expansion. We do not care
3072 # about autoupdate's warning because that contains
3073 # information on what to do *after* running autoupdate.
3077 # LT_PROG_RC
3078 # ----------
3081 # Old name:
3082 # This is what autoupdate's m4 run will expand. It fires
3083 # the warning (with _au_warn_XXX), outputs it into the
3084 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3085 # the replacement expansion.
3088 # This is an auxiliary macro that is also run when
3089 # autoupdate runs m4. It simply calls m4_warning, but
3090 # we need a wrapper so that each warning is emitted only
3091 # once. We break the quoting in m4_warning's argument in
3092 # order to expand this macro's arguments, not AU_DEFUN's.
3095 # Finally, this is the expansion that is picked up by
3096 # autoconf. It tells the user to run autoupdate, and
3097 # then outputs the replacement expansion. We do not care
3098 # about autoupdate's warning because that contains
3099 # information on what to do *after* running autoupdate.
3103 # _LT_DECL_EGREP
3104 # --------------
3105 # If we don't have a new enough Autoconf to choose the best grep
3106 # available, choose the one first in the user's PATH.
3110 # _LT_DECL_OBJDUMP
3111 # --------------
3112 # If we don't have a new enough Autoconf to choose the best objdump
3113 # available, choose the one first in the user's PATH.
3117 # _LT_DECL_SED
3118 # ------------
3119 # Check for a fully-functional sed program, that truncates
3120 # as few characters as possible. Prefer GNU sed if found.
3121 # _LT_DECL_SED
3123 #m4_ifndef
3125 # Old name:
3126 # This is what autoupdate's m4 run will expand. It fires
3127 # the warning (with _au_warn_XXX), outputs it into the
3128 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3129 # the replacement expansion.
3132 # This is an auxiliary macro that is also run when
3133 # autoupdate runs m4. It simply calls m4_warning, but
3134 # we need a wrapper so that each warning is emitted only
3135 # once. We break the quoting in m4_warning's argument in
3136 # order to expand this macro's arguments, not AU_DEFUN's.
3139 # Finally, this is the expansion that is picked up by
3140 # autoconf. It tells the user to run autoupdate, and
3141 # then outputs the replacement expansion. We do not care
3142 # about autoupdate's warning because that contains
3143 # information on what to do *after* running autoupdate.
3147 # _LT_CHECK_SHELL_FEATURES
3148 # ------------------------
3149 # Find out whether the shell is Bourne or XSI compatible,
3150 # or has some other useful features.
3151 # _LT_CHECK_SHELL_FEATURES
3154 # _LT_PROG_XSI_SHELLFNS
3155 # ---------------------
3156 # Bourne and XSI compatible variants of some useful shell functions.
3159 # Make sure we can run config.sub.
3160 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3161 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3164 $as_echo_n "checking build system type... " >&6; }
3165 if test "${ac_cv_build+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 ac_build_alias=$build_alias
3169 test "x$ac_build_alias" = x &&
3170 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3171 test "x$ac_build_alias" = x &&
3172 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3173 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3174 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3178 $as_echo "$ac_cv_build" >&6; }
3179 case $ac_cv_build in
3180 *-*-*) ;;
3181 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3182 esac
3183 build=$ac_cv_build
3184 ac_save_IFS=$IFS; IFS='-'
3185 set x $ac_cv_build
3186 shift
3187 build_cpu=$1
3188 build_vendor=$2
3189 shift; shift
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3192 build_os=$*
3193 IFS=$ac_save_IFS
3194 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3198 $as_echo_n "checking host system type... " >&6; }
3199 if test "${ac_cv_host+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test "x$host_alias" = x; then
3203 ac_cv_host=$ac_cv_build
3204 else
3205 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3206 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3211 $as_echo "$ac_cv_host" >&6; }
3212 case $ac_cv_host in
3213 *-*-*) ;;
3214 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3215 esac
3216 host=$ac_cv_host
3217 ac_save_IFS=$IFS; IFS='-'
3218 set x $ac_cv_host
3219 shift
3220 host_cpu=$1
3221 host_vendor=$2
3222 shift; shift
3223 # Remember, the first character of IFS is used to create $*,
3224 # except with old shells:
3225 host_os=$*
3226 IFS=$ac_save_IFS
3227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3231 $as_echo_n "checking target system type... " >&6; }
3232 if test "${ac_cv_target+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test "x$target_alias" = x; then
3236 ac_cv_target=$ac_cv_host
3237 else
3238 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3239 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3244 $as_echo "$ac_cv_target" >&6; }
3245 case $ac_cv_target in
3246 *-*-*) ;;
3247 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3248 esac
3249 target=$ac_cv_target
3250 ac_save_IFS=$IFS; IFS='-'
3251 set x $ac_cv_target
3252 shift
3253 target_cpu=$1
3254 target_vendor=$2
3255 shift; shift
3256 # Remember, the first character of IFS is used to create $*,
3257 # except with old shells:
3258 target_os=$*
3259 IFS=$ac_save_IFS
3260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3263 # The aliases save the names the user supplied, while $host etc.
3264 # will get canonicalized.
3265 test -n "$target_alias" &&
3266 test "$program_prefix$program_suffix$program_transform_name" = \
3267 NONENONEs,x,x, &&
3268 program_prefix=${target_alias}-
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3314 if test -z "$ac_cv_prog_CC"; then
3315 ac_ct_CC=$CC
3316 # Extract the first word of "gcc", so it can be a program name with args.
3317 set dummy gcc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$ac_ct_CC"; then
3324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_ac_ct_CC="gcc"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344 if test -n "$ac_ct_CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346 $as_echo "$ac_ct_CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3352 if test "x$ac_ct_CC" = x; then
3353 CC=""
3354 else
3355 case $cross_compiling:$ac_tool_warned in
3356 yes:)
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359 ac_tool_warned=yes ;;
3360 esac
3361 CC=$ac_ct_CC
3363 else
3364 CC="$ac_cv_prog_CC"
3367 if test -z "$CC"; then
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}cc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_CC+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_CC="${ac_tool_prefix}cc"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3390 done
3391 done
3392 IFS=$as_save_IFS
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3408 if test -z "$CC"; then
3409 # Extract the first word of "cc", so it can be a program name with args.
3410 set dummy cc; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if test "${ac_cv_prog_CC+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 else
3419 ac_prog_rejected=no
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3428 ac_prog_rejected=yes
3429 continue
3431 ac_cv_prog_CC="cc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3439 if test $ac_prog_rejected = yes; then
3440 # We found a bogon in the path, so make sure we never use it.
3441 set dummy $ac_cv_prog_CC
3442 shift
3443 if test $# != 0; then
3444 # We chose a different compiler from the bogus one.
3445 # However, it has the same basename, so the bogon will be chosen
3446 # first if we set CC to just the basename; use the full file name.
3447 shift
3448 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3464 if test -z "$CC"; then
3465 if test -n "$ac_tool_prefix"; then
3466 for ac_prog in cl.exe
3468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3489 done
3490 done
3491 IFS=$as_save_IFS
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3505 test -n "$CC" && break
3506 done
3508 if test -z "$CC"; then
3509 ac_ct_CC=$CC
3510 for ac_prog in cl.exe
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_ac_ct_CC="$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3540 if test -n "$ac_ct_CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542 $as_echo "$ac_ct_CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$ac_ct_CC" && break
3550 done
3552 if test "x$ac_ct_CC" = x; then
3553 CC=""
3554 else
3555 case $cross_compiling:$ac_tool_warned in
3556 yes:)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559 ac_tool_warned=yes ;;
3560 esac
3561 CC=$ac_ct_CC
3568 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error "no acceptable C compiler found in \$PATH
3571 See \`config.log' for more details." "$LINENO" 5; }
3573 # Provide some information about the compiler.
3574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3575 set X $ac_compile
3576 ac_compiler=$2
3577 for ac_option in --version -v -V -qversion; do
3578 { { ac_try="$ac_compiler $ac_option >&5"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3586 ac_status=$?
3587 if test -s conftest.err; then
3588 sed '10a\
3589 ... rest of stderr output deleted ...
3590 10q' conftest.err >conftest.er1
3591 cat conftest.er1 >&5
3592 rm -f conftest.er1 conftest.err
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }
3596 done
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3602 main ()
3606 return 0;
3608 _ACEOF
3609 ac_clean_files_save=$ac_clean_files
3610 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3611 # Try to create an executable without -o first, disregard a.out.
3612 # It will help us diagnose broken compilers, and finding out an intuition
3613 # of exeext.
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3615 $as_echo_n "checking for C compiler default output file name... " >&6; }
3616 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3618 # The possible output files:
3619 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3621 ac_rmfiles=
3622 for ac_file in $ac_files
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3627 esac
3628 done
3629 rm -f $ac_rmfiles
3631 if { { ac_try="$ac_link_default"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_link_default") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3645 # so that the user can short-circuit this test for compilers unknown to
3646 # Autoconf.
3647 for ac_file in $ac_files ''
3649 test -f "$ac_file" || continue
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3653 [ab].out )
3654 # We found the default executable, but exeext='' is most
3655 # certainly right.
3656 break;;
3657 *.* )
3658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3659 then :; else
3660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 # We set ac_cv_exeext here because the later test for it is not
3663 # safe: cross compilers may not add the suffix if given an `-o'
3664 # argument, so we may need to know it at that point already.
3665 # Even if this section looks crufty: it has the advantage of
3666 # actually working.
3667 break;;
3669 break;;
3670 esac
3671 done
3672 test "$ac_cv_exeext" = no && ac_cv_exeext=
3674 else
3675 ac_file=''
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3678 $as_echo "$ac_file" >&6; }
3679 if test -z "$ac_file"; then :
3680 $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 { as_fn_set_status 77
3686 as_fn_error "C compiler cannot create executables
3687 See \`config.log' for more details." "$LINENO" 5; }; }
3689 ac_exeext=$ac_cv_exeext
3691 # Check that the compiler produces executables we can run. If not, either
3692 # the compiler is broken, or we cross compile.
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3694 $as_echo_n "checking whether the C compiler works... " >&6; }
3695 # If not cross compiling, check that we can run a simple program.
3696 if test "$cross_compiling" != yes; then
3697 if { ac_try='./$ac_file'
3698 { { case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_try") 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }; }; then
3708 cross_compiling=no
3709 else
3710 if test "$cross_compiling" = maybe; then
3711 cross_compiling=yes
3712 else
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error "cannot run C compiled programs.
3716 If you meant to cross compile, use \`--host'.
3717 See \`config.log' for more details." "$LINENO" 5; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3725 ac_clean_files=$ac_clean_files_save
3726 # Check that the compiler produces executables we can run. If not, either
3727 # the compiler is broken, or we cross compile.
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3729 $as_echo_n "checking whether we are cross compiling... " >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3731 $as_echo "$cross_compiling" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3734 $as_echo_n "checking for suffix of executables... " >&6; }
3735 if { { ac_try="$ac_link"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link") 2>&5
3743 ac_status=$?
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; then :
3746 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3747 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3748 # work properly (i.e., refer to `conftest.exe'), while it won't with
3749 # `rm'.
3750 for ac_file in conftest.exe conftest conftest.*; do
3751 test -f "$ac_file" || continue
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3754 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755 break;;
3756 * ) break;;
3757 esac
3758 done
3759 else
3760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error "cannot compute suffix of executables: cannot compile and link
3763 See \`config.log' for more details." "$LINENO" 5; }
3765 rm -f conftest$ac_cv_exeext
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3767 $as_echo "$ac_cv_exeext" >&6; }
3769 rm -f conftest.$ac_ext
3770 EXEEXT=$ac_cv_exeext
3771 ac_exeext=$EXEEXT
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3773 $as_echo_n "checking for suffix of object files... " >&6; }
3774 if test "${ac_cv_objext+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3781 main ()
3785 return 0;
3787 _ACEOF
3788 rm -f conftest.o conftest.obj
3789 if { { ac_try="$ac_compile"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_compile") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }; then :
3800 for ac_file in conftest.o conftest.obj conftest.*; do
3801 test -f "$ac_file" || continue;
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3805 break;;
3806 esac
3807 done
3808 else
3809 $as_echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error "cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details." "$LINENO" 5; }
3817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3820 $as_echo "$ac_cv_objext" >&6; }
3821 OBJEXT=$ac_cv_objext
3822 ac_objext=$OBJEXT
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3825 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3839 return 0;
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_compiler_gnu=yes
3844 else
3845 ac_compiler_gnu=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3852 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854 GCC=yes
3855 else
3856 GCC=
3858 ac_test_CFLAGS=${CFLAGS+set}
3859 ac_save_CFLAGS=$CFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3861 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3862 if test "${ac_cv_prog_cc_g+set}" = set; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_save_c_werror_flag=$ac_c_werror_flag
3866 ac_c_werror_flag=yes
3867 ac_cv_prog_cc_g=no
3868 CFLAGS="-g"
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_g=yes
3882 else
3883 CFLAGS=""
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3897 else
3898 ac_c_werror_flag=$ac_save_c_werror_flag
3899 CFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_g=yes
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3922 $as_echo "$ac_cv_prog_cc_g" >&6; }
3923 if test "$ac_test_CFLAGS" = set; then
3924 CFLAGS=$ac_save_CFLAGS
3925 elif test $ac_cv_prog_cc_g = yes; then
3926 if test "$GCC" = yes; then
3927 CFLAGS="-g -O2"
3928 else
3929 CFLAGS="-g"
3931 else
3932 if test "$GCC" = yes; then
3933 CFLAGS="-O2"
3934 else
3935 CFLAGS=
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3939 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3940 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 ac_cv_prog_cc_c89=no
3944 ac_save_CC=$CC
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #include <stdarg.h>
3948 #include <stdio.h>
3949 #include <sys/types.h>
3950 #include <sys/stat.h>
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3955 char **p;
3956 int i;
3958 return p[i];
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std. */
3977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3980 inside strings and character constants. */
3981 #define FOO(x) 'x'
3982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3984 int test (int i, double x);
3985 struct s1 {int (*f) (int a);};
3986 struct s2 {int (*f) (double a);};
3987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3988 int argc;
3989 char **argv;
3991 main ()
3993 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3995 return 0;
3997 _ACEOF
3998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3999 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001 CC="$ac_save_CC $ac_arg"
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003 ac_cv_prog_cc_c89=$ac_arg
4005 rm -f core conftest.err conftest.$ac_objext
4006 test "x$ac_cv_prog_cc_c89" != "xno" && break
4007 done
4008 rm -f conftest.$ac_ext
4009 CC=$ac_save_CC
4012 # AC_CACHE_VAL
4013 case "x$ac_cv_prog_cc_c89" in
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4016 $as_echo "none needed" >&6; } ;;
4017 xno)
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4019 $as_echo "unsupported" >&6; } ;;
4021 CC="$CC $ac_cv_prog_cc_c89"
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4023 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4024 esac
4025 if test "x$ac_cv_prog_cc_c89" != xno; then :
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4043 # On Suns, sometimes $CPP names a directory.
4044 if test -n "$CPP" && test -d "$CPP"; then
4045 CPP=
4047 if test -z "$CPP"; then
4048 if test "${ac_cv_prog_CPP+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 # Double quotes because CPP needs to be expanded
4052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4054 ac_preproc_ok=false
4055 for ac_c_preproc_warn_flag in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #ifdef __STDC__
4066 # include <limits.h>
4067 #else
4068 # include <assert.h>
4069 #endif
4070 Syntax error
4071 _ACEOF
4072 if ac_fn_c_try_cpp "$LINENO"; then :
4074 else
4075 # Broken: fails on valid input.
4076 continue
4078 rm -f conftest.err conftest.$ac_ext
4080 # OK, works on sane cases. Now check whether nonexistent headers
4081 # can be detected and how.
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <ac_nonexistent.h>
4085 _ACEOF
4086 if ac_fn_c_try_cpp "$LINENO"; then :
4087 # Broken: success on invalid input.
4088 continue
4089 else
4090 # Passes both tests.
4091 ac_preproc_ok=:
4092 break
4094 rm -f conftest.err conftest.$ac_ext
4096 done
4097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098 rm -f conftest.err conftest.$ac_ext
4099 if $ac_preproc_ok; then :
4100 break
4103 done
4104 ac_cv_prog_CPP=$CPP
4107 CPP=$ac_cv_prog_CPP
4108 else
4109 ac_cv_prog_CPP=$CPP
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4112 $as_echo "$CPP" >&6; }
4113 ac_preproc_ok=false
4114 for ac_c_preproc_warn_flag in '' yes
4116 # Use a header file that comes with gcc, so configuring glibc
4117 # with a fresh cross-compiler works.
4118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 # <limits.h> exists even on freestanding compilers.
4120 # On the NeXT, cc -E runs the code through the compiler's parser,
4121 # not just through cpp. "Syntax error" is here to catch this case.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #ifdef __STDC__
4125 # include <limits.h>
4126 #else
4127 # include <assert.h>
4128 #endif
4129 Syntax error
4130 _ACEOF
4131 if ac_fn_c_try_cpp "$LINENO"; then :
4133 else
4134 # Broken: fails on valid input.
4135 continue
4137 rm -f conftest.err conftest.$ac_ext
4139 # OK, works on sane cases. Now check whether nonexistent headers
4140 # can be detected and how.
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4146 # Broken: success on invalid input.
4147 continue
4148 else
4149 # Passes both tests.
4150 ac_preproc_ok=:
4151 break
4153 rm -f conftest.err conftest.$ac_ext
4155 done
4156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4157 rm -f conftest.err conftest.$ac_ext
4158 if $ac_preproc_ok; then :
4160 else
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4164 See \`config.log' for more details." "$LINENO" 5; }
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4175 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4176 if test "${ac_cv_path_GREP+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -z "$GREP"; then
4180 ac_path_GREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in grep ggrep; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4191 # Check for GNU ac_path_GREP and select it if it is found.
4192 # Check for GNU $ac_path_GREP
4193 case `"$ac_path_GREP" --version 2>&1` in
4194 *GNU*)
4195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4197 ac_count=0
4198 $as_echo_n 0123456789 >"conftest.in"
4199 while :
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 $as_echo 'GREP' >> "conftest.nl"
4205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 as_fn_arith $ac_count + 1 && ac_count=$as_val
4208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_GREP="$ac_path_GREP"
4211 ac_path_GREP_max=$ac_count
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4215 done
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 esac
4219 $ac_path_GREP_found && break 3
4220 done
4221 done
4222 done
4223 IFS=$as_save_IFS
4224 if test -z "$ac_cv_path_GREP"; then
4225 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227 else
4228 ac_cv_path_GREP=$GREP
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4233 $as_echo "$ac_cv_path_GREP" >&6; }
4234 GREP="$ac_cv_path_GREP"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4238 $as_echo_n "checking for egrep... " >&6; }
4239 if test "${ac_cv_path_EGREP+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4243 then ac_cv_path_EGREP="$GREP -E"
4244 else
4245 if test -z "$EGREP"; then
4246 ac_path_EGREP_found=false
4247 # Loop through the user's path and test for each of PROGNAME-LIST
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_prog in egrep; do
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4257 # Check for GNU ac_path_EGREP and select it if it is found.
4258 # Check for GNU $ac_path_EGREP
4259 case `"$ac_path_EGREP" --version 2>&1` in
4260 *GNU*)
4261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4263 ac_count=0
4264 $as_echo_n 0123456789 >"conftest.in"
4265 while :
4267 cat "conftest.in" "conftest.in" >"conftest.tmp"
4268 mv "conftest.tmp" "conftest.in"
4269 cp "conftest.in" "conftest.nl"
4270 $as_echo 'EGREP' >> "conftest.nl"
4271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4273 as_fn_arith $ac_count + 1 && ac_count=$as_val
4274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4275 # Best one so far, save it but keep looking for a better one
4276 ac_cv_path_EGREP="$ac_path_EGREP"
4277 ac_path_EGREP_max=$ac_count
4279 # 10*(2^10) chars as input seems more than enough
4280 test $ac_count -gt 10 && break
4281 done
4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283 esac
4285 $ac_path_EGREP_found && break 3
4286 done
4287 done
4288 done
4289 IFS=$as_save_IFS
4290 if test -z "$ac_cv_path_EGREP"; then
4291 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293 else
4294 ac_cv_path_EGREP=$EGREP
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4300 $as_echo "$ac_cv_path_EGREP" >&6; }
4301 EGREP="$ac_cv_path_EGREP"
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4305 $as_echo_n "checking for ANSI C header files... " >&6; }
4306 if test "${ac_cv_header_stdc+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <stdlib.h>
4312 #include <stdarg.h>
4313 #include <string.h>
4314 #include <float.h>
4317 main ()
4321 return 0;
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_header_stdc=yes
4326 else
4327 ac_cv_header_stdc=no
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 if test $ac_cv_header_stdc = yes; then
4332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #include <string.h>
4337 _ACEOF
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "memchr" >/dev/null 2>&1; then :
4341 else
4342 ac_cv_header_stdc=no
4344 rm -f conftest*
4348 if test $ac_cv_header_stdc = yes; then
4349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <stdlib.h>
4354 _ACEOF
4355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4356 $EGREP "free" >/dev/null 2>&1; then :
4358 else
4359 ac_cv_header_stdc=no
4361 rm -f conftest*
4365 if test $ac_cv_header_stdc = yes; then
4366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4367 if test "$cross_compiling" = yes; then :
4369 else
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <ctype.h>
4373 #include <stdlib.h>
4374 #if ((' ' & 0x0FF) == 0x020)
4375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4377 #else
4378 # define ISLOWER(c) \
4379 (('a' <= (c) && (c) <= 'i') \
4380 || ('j' <= (c) && (c) <= 'r') \
4381 || ('s' <= (c) && (c) <= 'z'))
4382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383 #endif
4385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 main ()
4389 int i;
4390 for (i = 0; i < 256; i++)
4391 if (XOR (islower (i), ISLOWER (i))
4392 || toupper (i) != TOUPPER (i))
4393 return 2;
4394 return 0;
4396 _ACEOF
4397 if ac_fn_c_try_run "$LINENO"; then :
4399 else
4400 ac_cv_header_stdc=no
4402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4403 conftest.$ac_objext conftest.beam conftest.$ac_ext
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4409 $as_echo "$ac_cv_header_stdc" >&6; }
4410 if test $ac_cv_header_stdc = yes; then
4412 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4418 inttypes.h stdint.h unistd.h
4419 do :
4420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4423 eval as_val=\$$as_ac_Header
4424 if test "x$as_val" = x""yes; then :
4425 cat >>confdefs.h <<_ACEOF
4426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4427 _ACEOF
4431 done
4435 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4436 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4437 MINIX=yes
4438 else
4439 MINIX=
4443 if test "$MINIX" = yes; then
4445 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4448 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4451 $as_echo "#define _MINIX 1" >>confdefs.h
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4457 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4458 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4464 # define __EXTENSIONS__ 1
4465 $ac_includes_default
4467 main ()
4471 return 0;
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_safe_to_define___extensions__=yes
4476 else
4477 ac_cv_safe_to_define___extensions__=no
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4482 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4483 test $ac_cv_safe_to_define___extensions__ = yes &&
4484 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4486 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4488 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4490 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4492 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497 if test "${ac_cv_path_SED+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501 for ac_i in 1 2 3 4 5 6 7; do
4502 ac_script="$ac_script$as_nl$ac_script"
4503 done
4504 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505 { ac_script=; unset ac_script;}
4506 if test -z "$SED"; then
4507 ac_path_SED_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in sed gsed; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4518 # Check for GNU ac_path_SED and select it if it is found.
4519 # Check for GNU $ac_path_SED
4520 case `"$ac_path_SED" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo '' >> "conftest.nl"
4532 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_SED_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_SED="$ac_path_SED"
4538 ac_path_SED_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4546 $ac_path_SED_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_SED"; then
4552 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4554 else
4555 ac_cv_path_SED=$SED
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560 $as_echo "$ac_cv_path_SED" >&6; }
4561 SED="$ac_cv_path_SED"
4562 rm -f conftest.sed
4565 # Figure out what compiler warnings we can enable.
4566 # See config/warnings.m4 for details.
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 WARN_CFLAGS=
4575 save_CFLAGS="$CFLAGS"
4576 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
4577 -Wmissing-prototypes -Wold-style-definition \
4578 -Wmissing-format-attribute -Wno-overlength-strings; do
4579 # Do the check with the no- prefix removed since gcc silently
4580 # accepts any -Wno-* option on purpose
4581 case $real_option in
4582 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4583 *) option=$real_option ;;
4584 esac
4585 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4588 $as_echo_n "checking whether $CC supports $option... " >&6; }
4589 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 CFLAGS="$option"
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4597 main ()
4601 return 0;
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 eval "$as_acx_Woption=yes"
4606 else
4607 eval "$as_acx_Woption=no"
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 eval ac_res=\$$as_acx_Woption
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4614 $as_echo "$ac_res" >&6; }
4615 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4616 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
4618 done
4619 CFLAGS="$save_CFLAGS"
4620 ac_ext=c
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633 WARN_PEDANTIC=
4634 # Do the check with the no- prefix removed from the warning options
4635 # since gcc silently accepts any -Wno-* option on purpose
4636 if test "$GCC" = yes; then :
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4638 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4639 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 save_CFLAGS="$CFLAGS"
4643 CFLAGS="-pedantic -Wlong-long"
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4648 main ()
4652 return 0;
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 acx_cv_prog_cc_pedantic__Wlong_long=yes
4657 else
4658 acx_cv_prog_cc_pedantic__Wlong_long=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 CFLAGS="$save_CFLAGS"
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4664 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4665 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4666 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678 # Only enable with --enable-werror-always until existing warnings are
4679 # corrected.
4680 ac_ext=c
4681 ac_cpp='$CPP $CPPFLAGS'
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686 WERROR=
4687 # Check whether --enable-werror-always was given.
4688 if test "${enable_werror_always+set}" = set; then :
4689 enableval=$enable_werror_always;
4690 else
4691 enable_werror_always=no
4694 if test $enable_werror_always = yes; then :
4695 WERROR="$WERROR${WERROR:+ }-Werror"
4698 ac_ext=c
4699 ac_cpp='$CPP $CPPFLAGS'
4700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706 # Determine the noncanonical target name, for directory use.
4707 case ${build_alias} in
4708 "") build_noncanonical=${build} ;;
4709 *) build_noncanonical=${build_alias} ;;
4710 esac
4712 case ${host_alias} in
4713 "") host_noncanonical=${build_noncanonical} ;;
4714 *) host_noncanonical=${host_alias} ;;
4715 esac
4717 case ${target_alias} in
4718 "") target_noncanonical=${host_noncanonical} ;;
4719 *) target_noncanonical=${target_alias} ;;
4720 esac
4725 # Specify the local prefix
4726 local_prefix=
4728 # Check whether --with-local-prefix was given.
4729 if test "${with_local_prefix+set}" = set; then :
4730 withval=$with_local_prefix; case "${withval}" in
4731 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
4732 no) ;;
4733 *) local_prefix=$with_local_prefix ;;
4734 esac
4738 # Default local prefix if it is empty
4739 if test x$local_prefix = x; then
4740 local_prefix=/usr/local
4743 # Choose one or two-process fix methodology. Systems that cannot handle
4744 # bi-directional pipes must use the two process method.
4746 # Check whether --enable-twoprocess was given.
4747 if test "${enable_twoprocess+set}" = set; then :
4748 enableval=$enable_twoprocess; if test "x$enable_twoprocess" = xyes; then
4749 TARGET=twoprocess
4750 else
4751 TARGET=oneprocess
4753 else
4754 case $host in
4755 i?86-*-msdosdjgpp* | \
4756 i?86-*-mingw32* | \
4757 x86_64-*-mingw32* | \
4758 *-*-beos* | \
4759 *-*-*vms*)
4760 TARGET=twoprocess
4764 TARGET=oneprocess
4766 esac
4771 if test $TARGET = twoprocess; then
4773 $as_echo "#define SEPARATE_FIX_PROC 1" >>confdefs.h
4777 case $host in
4778 vax-dec-bsd* )
4780 $as_echo "#define exit xexit" >>confdefs.h
4783 $as_echo "#define atexit xatexit" >>confdefs.h
4786 esac
4789 cat >>confdefs.h <<_ACEOF
4790 #define EXE_EXT "$ac_exeext"
4791 _ACEOF
4794 # Checks for header files.
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4796 $as_echo_n "checking for ANSI C header files... " >&6; }
4797 if test "${ac_cv_header_stdc+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <stdlib.h>
4803 #include <stdarg.h>
4804 #include <string.h>
4805 #include <float.h>
4808 main ()
4812 return 0;
4814 _ACEOF
4815 if ac_fn_c_try_compile "$LINENO"; then :
4816 ac_cv_header_stdc=yes
4817 else
4818 ac_cv_header_stdc=no
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 if test $ac_cv_header_stdc = yes; then
4823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <string.h>
4828 _ACEOF
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev/null 2>&1; then :
4832 else
4833 ac_cv_header_stdc=no
4835 rm -f conftest*
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <stdlib.h>
4845 _ACEOF
4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847 $EGREP "free" >/dev/null 2>&1; then :
4849 else
4850 ac_cv_header_stdc=no
4852 rm -f conftest*
4856 if test $ac_cv_header_stdc = yes; then
4857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4858 if test "$cross_compiling" = yes; then :
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <ctype.h>
4864 #include <stdlib.h>
4865 #if ((' ' & 0x0FF) == 0x020)
4866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4868 #else
4869 # define ISLOWER(c) \
4870 (('a' <= (c) && (c) <= 'i') \
4871 || ('j' <= (c) && (c) <= 'r') \
4872 || ('s' <= (c) && (c) <= 'z'))
4873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4874 #endif
4876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4878 main ()
4880 int i;
4881 for (i = 0; i < 256; i++)
4882 if (XOR (islower (i), ISLOWER (i))
4883 || toupper (i) != TOUPPER (i))
4884 return 2;
4885 return 0;
4887 _ACEOF
4888 if ac_fn_c_try_run "$LINENO"; then :
4890 else
4891 ac_cv_header_stdc=no
4893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4894 conftest.$ac_objext conftest.beam conftest.$ac_ext
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4900 $as_echo "$ac_cv_header_stdc" >&6; }
4901 if test $ac_cv_header_stdc = yes; then
4903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4907 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
4908 sys/stat.h
4909 do :
4910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4911 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4912 eval as_val=\$$as_ac_Header
4913 if test "x$as_val" = x""yes; then :
4914 cat >>confdefs.h <<_ACEOF
4915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4916 _ACEOF
4920 done
4923 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
4924 do :
4925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4927 eval as_val=\$$as_ac_var
4928 if test "x$as_val" = x""yes; then :
4929 cat >>confdefs.h <<_ACEOF
4930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4931 _ACEOF
4934 done
4936 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
4937 if test "x$ac_cv_have_decl_abort" = x""yes; then :
4938 ac_have_decl=1
4939 else
4940 ac_have_decl=0
4943 cat >>confdefs.h <<_ACEOF
4944 #define HAVE_DECL_ABORT $ac_have_decl
4945 _ACEOF
4946 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
4947 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
4948 ac_have_decl=1
4949 else
4950 ac_have_decl=0
4953 cat >>confdefs.h <<_ACEOF
4954 #define HAVE_DECL_ASPRINTF $ac_have_decl
4955 _ACEOF
4956 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
4957 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
4958 ac_have_decl=1
4959 else
4960 ac_have_decl=0
4963 cat >>confdefs.h <<_ACEOF
4964 #define HAVE_DECL_BASENAME $ac_have_decl
4965 _ACEOF
4966 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
4967 if test "x$ac_cv_have_decl_errno" = x""yes; then :
4968 ac_have_decl=1
4969 else
4970 ac_have_decl=0
4973 cat >>confdefs.h <<_ACEOF
4974 #define HAVE_DECL_ERRNO $ac_have_decl
4975 _ACEOF
4976 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
4977 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
4978 ac_have_decl=1
4979 else
4980 ac_have_decl=0
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_DECL_VASPRINTF $ac_have_decl
4985 _ACEOF
4987 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
4988 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
4989 ac_have_decl=1
4990 else
4991 ac_have_decl=0
4994 cat >>confdefs.h <<_ACEOF
4995 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
4996 _ACEOF
4997 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
4998 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
4999 ac_have_decl=1
5000 else
5001 ac_have_decl=0
5004 cat >>confdefs.h <<_ACEOF
5005 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5006 _ACEOF
5007 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5008 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5009 ac_have_decl=1
5010 else
5011 ac_have_decl=0
5014 cat >>confdefs.h <<_ACEOF
5015 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5016 _ACEOF
5017 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5018 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5019 ac_have_decl=1
5020 else
5021 ac_have_decl=0
5024 cat >>confdefs.h <<_ACEOF
5025 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5026 _ACEOF
5027 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5028 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5029 ac_have_decl=1
5030 else
5031 ac_have_decl=0
5034 cat >>confdefs.h <<_ACEOF
5035 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5036 _ACEOF
5037 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5038 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5039 ac_have_decl=1
5040 else
5041 ac_have_decl=0
5044 cat >>confdefs.h <<_ACEOF
5045 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5046 _ACEOF
5047 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5048 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5049 ac_have_decl=1
5050 else
5051 ac_have_decl=0
5054 cat >>confdefs.h <<_ACEOF
5055 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5056 _ACEOF
5057 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5058 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5059 ac_have_decl=1
5060 else
5061 ac_have_decl=0
5064 cat >>confdefs.h <<_ACEOF
5065 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5066 _ACEOF
5067 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5068 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5069 ac_have_decl=1
5070 else
5071 ac_have_decl=0
5074 cat >>confdefs.h <<_ACEOF
5075 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5076 _ACEOF
5077 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5078 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5079 ac_have_decl=1
5080 else
5081 ac_have_decl=0
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5086 _ACEOF
5087 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5088 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5089 ac_have_decl=1
5090 else
5091 ac_have_decl=0
5094 cat >>confdefs.h <<_ACEOF
5095 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5096 _ACEOF
5097 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5098 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5099 ac_have_decl=1
5100 else
5101 ac_have_decl=0
5104 cat >>confdefs.h <<_ACEOF
5105 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5106 _ACEOF
5107 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5108 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5109 ac_have_decl=1
5110 else
5111 ac_have_decl=0
5114 cat >>confdefs.h <<_ACEOF
5115 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5116 _ACEOF
5117 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5118 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5119 ac_have_decl=1
5120 else
5121 ac_have_decl=0
5124 cat >>confdefs.h <<_ACEOF
5125 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5126 _ACEOF
5127 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5128 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5129 ac_have_decl=1
5130 else
5131 ac_have_decl=0
5134 cat >>confdefs.h <<_ACEOF
5135 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5136 _ACEOF
5137 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5138 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5139 ac_have_decl=1
5140 else
5141 ac_have_decl=0
5144 cat >>confdefs.h <<_ACEOF
5145 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5146 _ACEOF
5149 # Checks for typedefs, structures, and compiler characteristics.
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5151 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5152 if test "${ac_cv_c_const+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5159 main ()
5161 /* FIXME: Include the comments suggested by Paul. */
5162 #ifndef __cplusplus
5163 /* Ultrix mips cc rejects this. */
5164 typedef int charset[2];
5165 const charset cs;
5166 /* SunOS 4.1.1 cc rejects this. */
5167 char const *const *pcpcc;
5168 char **ppc;
5169 /* NEC SVR4.0.2 mips cc rejects this. */
5170 struct point {int x, y;};
5171 static struct point const zero = {0,0};
5172 /* AIX XL C 1.02.0.0 rejects this.
5173 It does not let you subtract one const X* pointer from another in
5174 an arm of an if-expression whose if-part is not a constant
5175 expression */
5176 const char *g = "string";
5177 pcpcc = &g + (g ? g-g : 0);
5178 /* HPUX 7.0 cc rejects these. */
5179 ++pcpcc;
5180 ppc = (char**) pcpcc;
5181 pcpcc = (char const *const *) ppc;
5182 { /* SCO 3.2v4 cc rejects this. */
5183 char *t;
5184 char const *s = 0 ? (char *) 0 : (char const *) 0;
5186 *t++ = 0;
5187 if (s) return 0;
5189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5190 int x[] = {25, 17};
5191 const int *foo = &x[0];
5192 ++foo;
5194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5195 typedef const int *iptr;
5196 iptr p = 0;
5197 ++p;
5199 { /* AIX XL C 1.02.0.0 rejects this saying
5200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5201 struct s { int j; const int *ap[3]; };
5202 struct s *b; b->j = 5;
5204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5205 const int foo = 10;
5206 if (!foo) return 0;
5208 return !cs[0] && !zero.x;
5209 #endif
5212 return 0;
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_cv_c_const=yes
5217 else
5218 ac_cv_c_const=no
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5223 $as_echo "$ac_cv_c_const" >&6; }
5224 if test $ac_cv_c_const = no; then
5226 $as_echo "#define const /**/" >>confdefs.h
5231 # Checks for library functions.
5233 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
5234 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
5235 gcc_header_sys_mman_h=yes
5236 else
5237 gcc_header_sys_mman_h=no
5241 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5242 if test "x$ac_cv_func_mmap" = x""yes; then :
5243 gcc_func_mmap=yes
5244 else
5245 gcc_func_mmap=no
5248 if test "$gcc_header_sys_mman_h" != yes \
5249 || test "$gcc_func_mmap" != yes; then
5250 gcc_cv_func_mmap_file=no
5251 gcc_cv_func_mmap_dev_zero=no
5252 gcc_cv_func_mmap_anon=no
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
5255 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
5256 if test "${gcc_cv_func_mmap_file+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 # Add a system to this blacklist if
5260 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5261 # memory area containing the same data that you'd get if you applied
5262 # read() to the same fd. The only system known to have a problem here
5263 # is VMS, where text files have record structure.
5264 case "$host_os" in
5265 *vms* | ultrix*)
5266 gcc_cv_func_mmap_file=no ;;
5268 gcc_cv_func_mmap_file=yes;;
5269 esac
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
5272 $as_echo "$gcc_cv_func_mmap_file" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
5274 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
5275 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 # Add a system to this blacklist if it has mmap() but /dev/zero
5279 # does not exist, or if mmapping /dev/zero does not give anonymous
5280 # zeroed pages with both the following properties:
5281 # 1. If you map N consecutive pages in with one call, and then
5282 # unmap any subset of those pages, the pages that were not
5283 # explicitly unmapped remain accessible.
5284 # 2. If you map two adjacent blocks of memory and then unmap them
5285 # both at once, they must both go away.
5286 # Systems known to be in this category are Windows (all variants),
5287 # VMS, and Darwin.
5288 case "$host_os" in
5289 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5290 gcc_cv_func_mmap_dev_zero=no ;;
5292 gcc_cv_func_mmap_dev_zero=yes;;
5293 esac
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
5296 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
5298 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
5300 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
5301 if test "${gcc_cv_decl_map_anon+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <sys/types.h>
5307 #include <sys/mman.h>
5308 #include <unistd.h>
5310 #ifndef MAP_ANONYMOUS
5311 #define MAP_ANONYMOUS MAP_ANON
5312 #endif
5315 main ()
5317 int n = MAP_ANONYMOUS;
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 gcc_cv_decl_map_anon=yes
5324 else
5325 gcc_cv_decl_map_anon=no
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
5330 $as_echo "$gcc_cv_decl_map_anon" >&6; }
5332 if test $gcc_cv_decl_map_anon = no; then
5333 gcc_cv_func_mmap_anon=no
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5336 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
5337 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5342 # doesn't give anonymous zeroed pages with the same properties listed
5343 # above for use of /dev/zero.
5344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5345 case "$host_os" in
5346 *vms* | cygwin* | pe | mingw* | sco* | udk* )
5347 gcc_cv_func_mmap_anon=no ;;
5349 gcc_cv_func_mmap_anon=yes;;
5350 esac
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
5353 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
5357 if test $gcc_cv_func_mmap_file = yes; then
5359 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
5362 if test $gcc_cv_func_mmap_dev_zero = yes; then
5364 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
5367 if test $gcc_cv_func_mmap_anon = yes; then
5369 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5375 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5376 # Check whether --enable-maintainer-mode was given.
5377 if test "${enable_maintainer_mode+set}" = set; then :
5378 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5379 else
5380 USE_MAINTAINER_MODE=no
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5384 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5385 if test "$USE_MAINTAINER_MODE" = yes; then
5386 MAINT=
5387 else
5388 MAINT='#'
5392 cat >>confdefs.h <<_ACEOF
5393 #define SED_PROGRAM "${SED}"
5394 _ACEOF
5397 # Determine what GCC version number to use in filesystem paths.
5399 get_gcc_base_ver="cat"
5401 # Check whether --with-gcc-major-version-only was given.
5402 if test "${with_gcc_major_version_only+set}" = set; then :
5403 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5404 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
5412 ac_config_headers="$ac_config_headers config.h"
5414 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
5416 cat >confcache <<\_ACEOF
5417 # This file is a shell script that caches the results of configure
5418 # tests run on this system so they can be shared between configure
5419 # scripts and configure runs, see configure's option --config-cache.
5420 # It is not useful on other systems. If it contains results you don't
5421 # want to keep, you may remove or edit it.
5423 # config.status only pays attention to the cache file if you give it
5424 # the --recheck option to rerun configure.
5426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5428 # following values.
5430 _ACEOF
5432 # The following way of writing the cache mishandles newlines in values,
5433 # but we know of no workaround that is simple, portable, and efficient.
5434 # So, we kill variables containing newlines.
5435 # Ultrix sh set writes to stderr and can't be redirected directly,
5436 # and sets the high bit in the cache file unless we assign to the vars.
5438 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5439 eval ac_val=\$$ac_var
5440 case $ac_val in #(
5441 *${as_nl}*)
5442 case $ac_var in #(
5443 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5444 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5445 esac
5446 case $ac_var in #(
5447 _ | IFS | as_nl) ;; #(
5448 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5449 *) { eval $ac_var=; unset $ac_var;} ;;
5450 esac ;;
5451 esac
5452 done
5454 (set) 2>&1 |
5455 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5456 *${as_nl}ac_space=\ *)
5457 # `set' does not quote correctly, so add quotes: double-quote
5458 # substitution turns \\\\ into \\, and sed turns \\ into \.
5459 sed -n \
5460 "s/'/'\\\\''/g;
5461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5462 ;; #(
5464 # `set' quotes correctly as required by POSIX, so do not add quotes.
5465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5467 esac |
5468 sort
5470 sed '
5471 /^ac_cv_env_/b end
5472 t clear
5473 :clear
5474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5475 t end
5476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5477 :end' >>confcache
5478 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5479 if test -w "$cache_file"; then
5480 test "x$cache_file" != "x/dev/null" &&
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5482 $as_echo "$as_me: updating cache $cache_file" >&6;}
5483 cat confcache >$cache_file
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5486 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5489 rm -f confcache
5491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5492 # Let make expand exec_prefix.
5493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5495 DEFS=-DHAVE_CONFIG_H
5497 ac_libobjs=
5498 ac_ltlibobjs=
5499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5500 # 1. Remove the extension, and $U if already installed.
5501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5504 # will be set to the directory where LIBOBJS objects are built.
5505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5507 done
5508 LIBOBJS=$ac_libobjs
5510 LTLIBOBJS=$ac_ltlibobjs
5514 : ${CONFIG_STATUS=./config.status}
5515 ac_write_fail=0
5516 ac_clean_files_save=$ac_clean_files
5517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5519 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5520 as_write_fail=0
5521 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5522 #! $SHELL
5523 # Generated by $as_me.
5524 # Run this file to recreate the current configuration.
5525 # Compiler output produced by configure, useful for debugging
5526 # configure, is in config.log if it exists.
5528 debug=false
5529 ac_cs_recheck=false
5530 ac_cs_silent=false
5532 SHELL=\${CONFIG_SHELL-$SHELL}
5533 export SHELL
5534 _ASEOF
5535 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5536 ## -------------------- ##
5537 ## M4sh Initialization. ##
5538 ## -------------------- ##
5540 # Be more Bourne compatible
5541 DUALCASE=1; export DUALCASE # for MKS sh
5542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5543 emulate sh
5544 NULLCMD=:
5545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5546 # is contrary to our usage. Disable this feature.
5547 alias -g '${1+"$@"}'='"$@"'
5548 setopt NO_GLOB_SUBST
5549 else
5550 case `(set -o) 2>/dev/null` in #(
5551 *posix*) :
5552 set -o posix ;; #(
5553 *) :
5555 esac
5559 as_nl='
5561 export as_nl
5562 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5563 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5566 # Prefer a ksh shell builtin over an external printf program on Solaris,
5567 # but without wasting forks for bash or zsh.
5568 if test -z "$BASH_VERSION$ZSH_VERSION" \
5569 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5570 as_echo='print -r --'
5571 as_echo_n='print -rn --'
5572 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5573 as_echo='printf %s\n'
5574 as_echo_n='printf %s'
5575 else
5576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5578 as_echo_n='/usr/ucb/echo -n'
5579 else
5580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5581 as_echo_n_body='eval
5582 arg=$1;
5583 case $arg in #(
5584 *"$as_nl"*)
5585 expr "X$arg" : "X\\(.*\\)$as_nl";
5586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5587 esac;
5588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5590 export as_echo_n_body
5591 as_echo_n='sh -c $as_echo_n_body as_echo'
5593 export as_echo_body
5594 as_echo='sh -c $as_echo_body as_echo'
5597 # The user is always right.
5598 if test "${PATH_SEPARATOR+set}" != set; then
5599 PATH_SEPARATOR=:
5600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5602 PATH_SEPARATOR=';'
5607 # IFS
5608 # We need space, tab and new line, in precisely that order. Quoting is
5609 # there to prevent editors from complaining about space-tab.
5610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5611 # splitting by setting IFS to empty value.)
5612 IFS=" "" $as_nl"
5614 # Find who we are. Look in the path if we contain no directory separator.
5615 case $0 in #((
5616 *[\\/]* ) as_myself=$0 ;;
5617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5623 done
5624 IFS=$as_save_IFS
5627 esac
5628 # We did not find ourselves, most probably we were run as `sh COMMAND'
5629 # in which case we are not to be found in the path.
5630 if test "x$as_myself" = x; then
5631 as_myself=$0
5633 if test ! -f "$as_myself"; then
5634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5635 exit 1
5638 # Unset variables that we do not need and which cause bugs (e.g. in
5639 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5640 # suppresses any "Segmentation fault" message there. '((' could
5641 # trigger a bug in pdksh 5.2.14.
5642 for as_var in BASH_ENV ENV MAIL MAILPATH
5643 do eval test x\${$as_var+set} = xset \
5644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5645 done
5646 PS1='$ '
5647 PS2='> '
5648 PS4='+ '
5650 # NLS nuisances.
5651 LC_ALL=C
5652 export LC_ALL
5653 LANGUAGE=C
5654 export LANGUAGE
5656 # CDPATH.
5657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5660 # as_fn_error ERROR [LINENO LOG_FD]
5661 # ---------------------------------
5662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5664 # script with status $?, using 1 if that was 0.
5665 as_fn_error ()
5667 as_status=$?; test $as_status -eq 0 && as_status=1
5668 if test "$3"; then
5669 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5672 $as_echo "$as_me: error: $1" >&2
5673 as_fn_exit $as_status
5674 } # as_fn_error
5677 # as_fn_set_status STATUS
5678 # -----------------------
5679 # Set $? to STATUS, without forking.
5680 as_fn_set_status ()
5682 return $1
5683 } # as_fn_set_status
5685 # as_fn_exit STATUS
5686 # -----------------
5687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5688 as_fn_exit ()
5690 set +e
5691 as_fn_set_status $1
5692 exit $1
5693 } # as_fn_exit
5695 # as_fn_unset VAR
5696 # ---------------
5697 # Portably unset VAR.
5698 as_fn_unset ()
5700 { eval $1=; unset $1;}
5702 as_unset=as_fn_unset
5703 # as_fn_append VAR VALUE
5704 # ----------------------
5705 # Append the text in VALUE to the end of the definition contained in VAR. Take
5706 # advantage of any shell optimizations that allow amortized linear growth over
5707 # repeated appends, instead of the typical quadratic growth present in naive
5708 # implementations.
5709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5710 eval 'as_fn_append ()
5712 eval $1+=\$2
5714 else
5715 as_fn_append ()
5717 eval $1=\$$1\$2
5719 fi # as_fn_append
5721 # as_fn_arith ARG...
5722 # ------------------
5723 # Perform arithmetic evaluation on the ARGs, and store the result in the
5724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5725 # must be portable across $(()) and expr.
5726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5727 eval 'as_fn_arith ()
5729 as_val=$(( $* ))
5731 else
5732 as_fn_arith ()
5734 as_val=`expr "$@" || test $? -eq 1`
5736 fi # as_fn_arith
5739 if expr a : '\(a\)' >/dev/null 2>&1 &&
5740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5741 as_expr=expr
5742 else
5743 as_expr=false
5746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5747 as_basename=basename
5748 else
5749 as_basename=false
5752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5753 as_dirname=dirname
5754 else
5755 as_dirname=false
5758 as_me=`$as_basename -- "$0" ||
5759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5760 X"$0" : 'X\(//\)$' \| \
5761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5762 $as_echo X/"$0" |
5763 sed '/^.*\/\([^/][^/]*\)\/*$/{
5764 s//\1/
5767 /^X\/\(\/\/\)$/{
5768 s//\1/
5771 /^X\/\(\/\).*/{
5772 s//\1/
5775 s/.*/./; q'`
5777 # Avoid depending upon Character Ranges.
5778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5781 as_cr_digits='0123456789'
5782 as_cr_alnum=$as_cr_Letters$as_cr_digits
5784 ECHO_C= ECHO_N= ECHO_T=
5785 case `echo -n x` in #(((((
5786 -n*)
5787 case `echo 'xy\c'` in
5788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5789 xy) ECHO_C='\c';;
5790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5791 ECHO_T=' ';;
5792 esac;;
5794 ECHO_N='-n';;
5795 esac
5797 rm -f conf$$ conf$$.exe conf$$.file
5798 if test -d conf$$.dir; then
5799 rm -f conf$$.dir/conf$$.file
5800 else
5801 rm -f conf$$.dir
5802 mkdir conf$$.dir 2>/dev/null
5804 if (echo >conf$$.file) 2>/dev/null; then
5805 if ln -s conf$$.file conf$$ 2>/dev/null; then
5806 as_ln_s='ln -s'
5807 # ... but there are two gotchas:
5808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5810 # In both cases, we have to default to `cp -p'.
5811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5812 as_ln_s='cp -p'
5813 elif ln conf$$.file conf$$ 2>/dev/null; then
5814 as_ln_s=ln
5815 else
5816 as_ln_s='cp -p'
5818 else
5819 as_ln_s='cp -p'
5821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5822 rmdir conf$$.dir 2>/dev/null
5825 # as_fn_mkdir_p
5826 # -------------
5827 # Create "$as_dir" as a directory, including parents if necessary.
5828 as_fn_mkdir_p ()
5831 case $as_dir in #(
5832 -*) as_dir=./$as_dir;;
5833 esac
5834 test -d "$as_dir" || eval $as_mkdir_p || {
5835 as_dirs=
5836 while :; do
5837 case $as_dir in #(
5838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5839 *) as_qdir=$as_dir;;
5840 esac
5841 as_dirs="'$as_qdir' $as_dirs"
5842 as_dir=`$as_dirname -- "$as_dir" ||
5843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5844 X"$as_dir" : 'X\(//\)[^/]' \| \
5845 X"$as_dir" : 'X\(//\)$' \| \
5846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5847 $as_echo X"$as_dir" |
5848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5849 s//\1/
5852 /^X\(\/\/\)[^/].*/{
5853 s//\1/
5856 /^X\(\/\/\)$/{
5857 s//\1/
5860 /^X\(\/\).*/{
5861 s//\1/
5864 s/.*/./; q'`
5865 test -d "$as_dir" && break
5866 done
5867 test -z "$as_dirs" || eval "mkdir $as_dirs"
5868 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5871 } # as_fn_mkdir_p
5872 if mkdir -p . 2>/dev/null; then
5873 as_mkdir_p='mkdir -p "$as_dir"'
5874 else
5875 test -d ./-p && rmdir ./-p
5876 as_mkdir_p=false
5879 if test -x / >/dev/null 2>&1; then
5880 as_test_x='test -x'
5881 else
5882 if ls -dL / >/dev/null 2>&1; then
5883 as_ls_L_option=L
5884 else
5885 as_ls_L_option=
5887 as_test_x='
5888 eval sh -c '\''
5889 if test -d "$1"; then
5890 test -d "$1/.";
5891 else
5892 case $1 in #(
5893 -*)set "./$1";;
5894 esac;
5895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5896 ???[sx]*):;;*)false;;esac;fi
5897 '\'' sh
5900 as_executable_p=$as_test_x
5902 # Sed expression to map a string onto a valid CPP name.
5903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5905 # Sed expression to map a string onto a valid variable name.
5906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5909 exec 6>&1
5910 ## ----------------------------------- ##
5911 ## Main body of $CONFIG_STATUS script. ##
5912 ## ----------------------------------- ##
5913 _ASEOF
5914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5917 # Save the log message, to keep $0 and so on meaningful, and to
5918 # report actual input values of CONFIG_FILES etc. instead of their
5919 # values after options handling.
5920 ac_log="
5921 This file was extended by fixincludes $as_me , which was
5922 generated by GNU Autoconf 2.64. Invocation command line was
5924 CONFIG_FILES = $CONFIG_FILES
5925 CONFIG_HEADERS = $CONFIG_HEADERS
5926 CONFIG_LINKS = $CONFIG_LINKS
5927 CONFIG_COMMANDS = $CONFIG_COMMANDS
5928 $ $0 $@
5930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5933 _ACEOF
5935 case $ac_config_files in *"
5936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5937 esac
5939 case $ac_config_headers in *"
5940 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5941 esac
5944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5945 # Files that config.status was made for.
5946 config_files="$ac_config_files"
5947 config_headers="$ac_config_headers"
5949 _ACEOF
5951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5952 ac_cs_usage="\
5953 \`$as_me' instantiates files and other configuration actions
5954 from templates according to the current configuration. Unless the files
5955 and actions are specified as TAGs, all are instantiated by default.
5957 Usage: $0 [OPTION]... [TAG]...
5959 -h, --help print this help, then exit
5960 -V, --version print version number and configuration settings, then exit
5961 -q, --quiet, --silent
5962 do not print progress messages
5963 -d, --debug don't remove temporary files
5964 --recheck update $as_me by reconfiguring in the same conditions
5965 --file=FILE[:TEMPLATE]
5966 instantiate the configuration file FILE
5967 --header=FILE[:TEMPLATE]
5968 instantiate the configuration header FILE
5970 Configuration files:
5971 $config_files
5973 Configuration headers:
5974 $config_headers
5976 Report bugs to the package provider."
5978 _ACEOF
5979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5980 ac_cs_version="\\
5981 fixincludes config.status
5982 configured by $0, generated by GNU Autoconf 2.64,
5983 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5985 Copyright (C) 2009 Free Software Foundation, Inc.
5986 This config.status script is free software; the Free Software Foundation
5987 gives unlimited permission to copy, distribute and modify it."
5989 ac_pwd='$ac_pwd'
5990 srcdir='$srcdir'
5991 test -n "\$AWK" || AWK=awk
5992 _ACEOF
5994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5995 # The default lists apply if the user does not specify any file.
5996 ac_need_defaults=:
5997 while test $# != 0
5999 case $1 in
6000 --*=*)
6001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6003 ac_shift=:
6006 ac_option=$1
6007 ac_optarg=$2
6008 ac_shift=shift
6010 esac
6012 case $ac_option in
6013 # Handling of the options.
6014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6015 ac_cs_recheck=: ;;
6016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6017 $as_echo "$ac_cs_version"; exit ;;
6018 --debug | --debu | --deb | --de | --d | -d )
6019 debug=: ;;
6020 --file | --fil | --fi | --f )
6021 $ac_shift
6022 case $ac_optarg in
6023 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6024 esac
6025 as_fn_append CONFIG_FILES " '$ac_optarg'"
6026 ac_need_defaults=false;;
6027 --header | --heade | --head | --hea )
6028 $ac_shift
6029 case $ac_optarg in
6030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6031 esac
6032 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6033 ac_need_defaults=false;;
6034 --he | --h)
6035 # Conflict between --help and --header
6036 as_fn_error "ambiguous option: \`$1'
6037 Try \`$0 --help' for more information.";;
6038 --help | --hel | -h )
6039 $as_echo "$ac_cs_usage"; exit ;;
6040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6041 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6042 ac_cs_silent=: ;;
6044 # This is an error.
6045 -*) as_fn_error "unrecognized option: \`$1'
6046 Try \`$0 --help' for more information." ;;
6048 *) as_fn_append ac_config_targets " $1"
6049 ac_need_defaults=false ;;
6051 esac
6052 shift
6053 done
6055 ac_configure_extra_args=
6057 if $ac_cs_silent; then
6058 exec 6>/dev/null
6059 ac_configure_extra_args="$ac_configure_extra_args --silent"
6062 _ACEOF
6063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6064 if \$ac_cs_recheck; then
6065 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6066 shift
6067 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6068 CONFIG_SHELL='$SHELL'
6069 export CONFIG_SHELL
6070 exec "\$@"
6073 _ACEOF
6074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6075 exec 5>>config.log
6077 echo
6078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6079 ## Running $as_me. ##
6080 _ASBOX
6081 $as_echo "$ac_log"
6082 } >&5
6084 _ACEOF
6085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6086 _ACEOF
6088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6090 # Handling of arguments.
6091 for ac_config_target in $ac_config_targets
6093 case $ac_config_target in
6094 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6096 "mkheaders.almost") CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
6098 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6099 esac
6100 done
6103 # If the user did not use the arguments to specify the items to instantiate,
6104 # then the envvar interface is used. Set only those that are not.
6105 # We use the long form for the default assignment because of an extremely
6106 # bizarre bug on SunOS 4.1.3.
6107 if $ac_need_defaults; then
6108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6112 # Have a temporary directory for convenience. Make it in the build tree
6113 # simply because there is no reason against having it here, and in addition,
6114 # creating and moving files from /tmp can sometimes cause problems.
6115 # Hook for its removal unless debugging.
6116 # Note that there is a small window in which the directory will not be cleaned:
6117 # after its creation but before its name has been assigned to `$tmp'.
6118 $debug ||
6120 tmp=
6121 trap 'exit_status=$?
6122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6124 trap 'as_fn_exit 1' 1 2 13 15
6126 # Create a (secure) tmp directory for tmp files.
6129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6130 test -n "$tmp" && test -d "$tmp"
6131 } ||
6133 tmp=./conf$$-$RANDOM
6134 (umask 077 && mkdir "$tmp")
6135 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6137 # Set up the scripts for CONFIG_FILES section.
6138 # No need to generate them if there are no CONFIG_FILES.
6139 # This happens for instance with `./config.status config.h'.
6140 if test -n "$CONFIG_FILES"; then
6143 ac_cr=`echo X | tr X '\015'`
6144 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6145 # But we know of no other shell where ac_cr would be empty at this
6146 # point, so we can use a bashism as a fallback.
6147 if test "x$ac_cr" = x; then
6148 eval ac_cr=\$\'\\r\'
6150 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6151 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6152 ac_cs_awk_cr='\r'
6153 else
6154 ac_cs_awk_cr=$ac_cr
6157 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6158 _ACEOF
6162 echo "cat >conf$$subs.awk <<_ACEOF" &&
6163 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6164 echo "_ACEOF"
6165 } >conf$$subs.sh ||
6166 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6167 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6168 ac_delim='%!_!# '
6169 for ac_last_try in false false false false false :; do
6170 . ./conf$$subs.sh ||
6171 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6173 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6174 if test $ac_delim_n = $ac_delim_num; then
6175 break
6176 elif $ac_last_try; then
6177 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6178 else
6179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6181 done
6182 rm -f conf$$subs.sh
6184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6185 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6186 _ACEOF
6187 sed -n '
6189 s/^/S["/; s/!.*/"]=/
6192 s/^[^!]*!//
6193 :repl
6194 t repl
6195 s/'"$ac_delim"'$//
6196 t delim
6199 s/\(.\{148\}\).*/\1/
6200 t more1
6201 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6204 b repl
6205 :more1
6206 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6209 s/.\{148\}//
6210 t nl
6211 :delim
6213 s/\(.\{148\}\).*/\1/
6214 t more2
6215 s/["\\]/\\&/g; s/^/"/; s/$/"/
6218 :more2
6219 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6222 s/.\{148\}//
6223 t delim
6224 ' <conf$$subs.awk | sed '
6225 /^[^""]/{
6227 s/\n//
6229 ' >>$CONFIG_STATUS || ac_write_fail=1
6230 rm -f conf$$subs.awk
6231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6232 _ACAWK
6233 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6234 for (key in S) S_is_set[key] = 1
6235 FS = "\a"
6239 line = $ 0
6240 nfields = split(line, field, "@")
6241 substed = 0
6242 len = length(field[1])
6243 for (i = 2; i < nfields; i++) {
6244 key = field[i]
6245 keylen = length(key)
6246 if (S_is_set[key]) {
6247 value = S[key]
6248 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6249 len += length(value) + length(field[++i])
6250 substed = 1
6251 } else
6252 len += 1 + keylen
6255 print line
6258 _ACAWK
6259 _ACEOF
6260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6261 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6263 else
6265 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6266 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6267 _ACEOF
6269 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6271 # trailing colons and then remove the whole line if VPATH becomes empty
6272 # (actually we leave an empty line to preserve line numbers).
6273 if test "x$srcdir" = x.; then
6274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6275 s/:*\$(srcdir):*/:/
6276 s/:*\${srcdir}:*/:/
6277 s/:*@srcdir@:*/:/
6278 s/^\([^=]*=[ ]*\):*/\1/
6279 s/:*$//
6280 s/^[^=]*=[ ]*$//
6284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6285 fi # test -n "$CONFIG_FILES"
6287 # Set up the scripts for CONFIG_HEADERS section.
6288 # No need to generate them if there are no CONFIG_HEADERS.
6289 # This happens for instance with `./config.status Makefile'.
6290 if test -n "$CONFIG_HEADERS"; then
6291 cat >"$tmp/defines.awk" <<\_ACAWK ||
6292 BEGIN {
6293 _ACEOF
6295 # Transform confdefs.h into an awk script `defines.awk', embedded as
6296 # here-document in config.status, that substitutes the proper values into
6297 # config.h.in to produce config.h.
6299 # Create a delimiter string that does not exist in confdefs.h, to ease
6300 # handling of long lines.
6301 ac_delim='%!_!# '
6302 for ac_last_try in false false :; do
6303 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6304 if test -z "$ac_t"; then
6305 break
6306 elif $ac_last_try; then
6307 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6308 else
6309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6311 done
6313 # For the awk script, D is an array of macro values keyed by name,
6314 # likewise P contains macro parameters if any. Preserve backslash
6315 # newline sequences.
6317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6318 sed -n '
6319 s/.\{148\}/&'"$ac_delim"'/g
6320 t rset
6321 :rset
6322 s/^[ ]*#[ ]*define[ ][ ]*/ /
6323 t def
6325 :def
6326 s/\\$//
6327 t bsnl
6328 s/["\\]/\\&/g
6329 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6330 D["\1"]=" \3"/p
6331 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6333 :bsnl
6334 s/["\\]/\\&/g
6335 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6336 D["\1"]=" \3\\\\\\n"\\/p
6337 t cont
6338 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6339 t cont
6341 :cont
6343 s/.\{148\}/&'"$ac_delim"'/g
6344 t clear
6345 :clear
6346 s/\\$//
6347 t bsnlc
6348 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6350 :bsnlc
6351 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6352 b cont
6353 ' <confdefs.h | sed '
6354 s/'"$ac_delim"'/"\\\
6355 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6358 for (key in D) D_is_set[key] = 1
6359 FS = "\a"
6361 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6362 line = \$ 0
6363 split(line, arg, " ")
6364 if (arg[1] == "#") {
6365 defundef = arg[2]
6366 mac1 = arg[3]
6367 } else {
6368 defundef = substr(arg[1], 2)
6369 mac1 = arg[2]
6371 split(mac1, mac2, "(") #)
6372 macro = mac2[1]
6373 prefix = substr(line, 1, index(line, defundef) - 1)
6374 if (D_is_set[macro]) {
6375 # Preserve the white space surrounding the "#".
6376 print prefix "define", macro P[macro] D[macro]
6377 next
6378 } else {
6379 # Replace #undef with comments. This is necessary, for example,
6380 # in the case of _POSIX_SOURCE, which is predefined and required
6381 # on some systems where configure will not decide to define it.
6382 if (defundef == "undef") {
6383 print "/*", prefix defundef, macro, "*/"
6384 next
6388 { print }
6389 _ACAWK
6390 _ACEOF
6391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6392 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6393 fi # test -n "$CONFIG_HEADERS"
6396 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6397 shift
6398 for ac_tag
6400 case $ac_tag in
6401 :[FHLC]) ac_mode=$ac_tag; continue;;
6402 esac
6403 case $ac_mode$ac_tag in
6404 :[FHL]*:*);;
6405 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6406 :[FH]-) ac_tag=-:-;;
6407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6408 esac
6409 ac_save_IFS=$IFS
6410 IFS=:
6411 set x $ac_tag
6412 IFS=$ac_save_IFS
6413 shift
6414 ac_file=$1
6415 shift
6417 case $ac_mode in
6418 :L) ac_source=$1;;
6419 :[FH])
6420 ac_file_inputs=
6421 for ac_f
6423 case $ac_f in
6424 -) ac_f="$tmp/stdin";;
6425 *) # Look for the file first in the build tree, then in the source tree
6426 # (if the path is not absolute). The absolute path cannot be DOS-style,
6427 # because $ac_f cannot contain `:'.
6428 test -f "$ac_f" ||
6429 case $ac_f in
6430 [\\/$]*) false;;
6431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6432 esac ||
6433 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6434 esac
6435 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6436 as_fn_append ac_file_inputs " '$ac_f'"
6437 done
6439 # Let's still pretend it is `configure' which instantiates (i.e., don't
6440 # use $as_me), people would be surprised to read:
6441 # /* config.h. Generated by config.status. */
6442 configure_input='Generated from '`
6443 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6444 `' by configure.'
6445 if test x"$ac_file" != x-; then
6446 configure_input="$ac_file. $configure_input"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6448 $as_echo "$as_me: creating $ac_file" >&6;}
6450 # Neutralize special characters interpreted by sed in replacement strings.
6451 case $configure_input in #(
6452 *\&* | *\|* | *\\* )
6453 ac_sed_conf_input=`$as_echo "$configure_input" |
6454 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6455 *) ac_sed_conf_input=$configure_input;;
6456 esac
6458 case $ac_tag in
6459 *:-:* | *:-) cat >"$tmp/stdin" \
6460 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6461 esac
6463 esac
6465 ac_dir=`$as_dirname -- "$ac_file" ||
6466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6467 X"$ac_file" : 'X\(//\)[^/]' \| \
6468 X"$ac_file" : 'X\(//\)$' \| \
6469 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6470 $as_echo X"$ac_file" |
6471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6472 s//\1/
6475 /^X\(\/\/\)[^/].*/{
6476 s//\1/
6479 /^X\(\/\/\)$/{
6480 s//\1/
6483 /^X\(\/\).*/{
6484 s//\1/
6487 s/.*/./; q'`
6488 as_dir="$ac_dir"; as_fn_mkdir_p
6489 ac_builddir=.
6491 case "$ac_dir" in
6492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6495 # A ".." for each directory in $ac_dir_suffix.
6496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6497 case $ac_top_builddir_sub in
6498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6500 esac ;;
6501 esac
6502 ac_abs_top_builddir=$ac_pwd
6503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6504 # for backward compatibility:
6505 ac_top_builddir=$ac_top_build_prefix
6507 case $srcdir in
6508 .) # We are building in place.
6509 ac_srcdir=.
6510 ac_top_srcdir=$ac_top_builddir_sub
6511 ac_abs_top_srcdir=$ac_pwd ;;
6512 [\\/]* | ?:[\\/]* ) # Absolute name.
6513 ac_srcdir=$srcdir$ac_dir_suffix;
6514 ac_top_srcdir=$srcdir
6515 ac_abs_top_srcdir=$srcdir ;;
6516 *) # Relative name.
6517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6518 ac_top_srcdir=$ac_top_build_prefix$srcdir
6519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6520 esac
6521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6524 case $ac_mode in
6527 # CONFIG_FILE
6530 _ACEOF
6532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6533 # If the template does not know about datarootdir, expand it.
6534 # FIXME: This hack should be removed a few years after 2.60.
6535 ac_datarootdir_hack=; ac_datarootdir_seen=
6536 ac_sed_dataroot='
6537 /datarootdir/ {
6541 /@datadir@/p
6542 /@docdir@/p
6543 /@infodir@/p
6544 /@localedir@/p
6545 /@mandir@/p'
6546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6547 *datarootdir*) ac_datarootdir_seen=yes;;
6548 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6551 _ACEOF
6552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6553 ac_datarootdir_hack='
6554 s&@datadir@&$datadir&g
6555 s&@docdir@&$docdir&g
6556 s&@infodir@&$infodir&g
6557 s&@localedir@&$localedir&g
6558 s&@mandir@&$mandir&g
6559 s&\\\${datarootdir}&$datarootdir&g' ;;
6560 esac
6561 _ACEOF
6563 # Neutralize VPATH when `$srcdir' = `.'.
6564 # Shell code in configure.ac might set extrasub.
6565 # FIXME: do we really want to maintain this feature?
6566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6567 ac_sed_extra="$ac_vpsub
6568 $extrasub
6569 _ACEOF
6570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6573 s|@configure_input@|$ac_sed_conf_input|;t t
6574 s&@top_builddir@&$ac_top_builddir_sub&;t t
6575 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6576 s&@srcdir@&$ac_srcdir&;t t
6577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6578 s&@top_srcdir@&$ac_top_srcdir&;t t
6579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6580 s&@builddir@&$ac_builddir&;t t
6581 s&@abs_builddir@&$ac_abs_builddir&;t t
6582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6583 $ac_datarootdir_hack
6585 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6586 || as_fn_error "could not create $ac_file" "$LINENO" 5
6588 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6589 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6590 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6592 which seems to be undefined. Please make sure it is defined." >&5
6593 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6594 which seems to be undefined. Please make sure it is defined." >&2;}
6596 rm -f "$tmp/stdin"
6597 case $ac_file in
6598 -) cat "$tmp/out" && rm -f "$tmp/out";;
6599 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6600 esac \
6601 || as_fn_error "could not create $ac_file" "$LINENO" 5
6605 # CONFIG_HEADER
6607 if test x"$ac_file" != x-; then
6609 $as_echo "/* $configure_input */" \
6610 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6611 } >"$tmp/config.h" \
6612 || as_fn_error "could not create $ac_file" "$LINENO" 5
6613 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6615 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6616 else
6617 rm -f "$ac_file"
6618 mv "$tmp/config.h" "$ac_file" \
6619 || as_fn_error "could not create $ac_file" "$LINENO" 5
6621 else
6622 $as_echo "/* $configure_input */" \
6623 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6624 || as_fn_error "could not create -" "$LINENO" 5
6629 esac
6632 case $ac_file$ac_mode in
6633 "config.h":H) echo timestamp > stamp-h ;;
6635 esac
6636 done # for ac_tag
6639 as_fn_exit 0
6640 _ACEOF
6641 ac_clean_files=$ac_clean_files_save
6643 test $ac_write_fail = 0 ||
6644 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6647 # configure is writing to config.log, and then calls config.status.
6648 # config.status does its own redirection, appending to config.log.
6649 # Unfortunately, on DOS this fails, as config.log is still kept open
6650 # by configure, so config.status won't be able to write to it; its
6651 # output is simply discarded. So we exec the FD to /dev/null,
6652 # effectively closing config.log, so it can be properly (re)opened and
6653 # appended to by config.status. When coming back to configure, we
6654 # need to make the FD available again.
6655 if test "$no_create" != yes; then
6656 ac_cs_success=:
6657 ac_config_status_args=
6658 test "$silent" = yes &&
6659 ac_config_status_args="$ac_config_status_args --quiet"
6660 exec 5>/dev/null
6661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6662 exec 5>>config.log
6663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6664 # would make configure fail if this is the last instruction.
6665 $ac_cs_success || as_fn_exit $?
6667 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6669 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}