2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
83 # So, first we look for a working echo in the user's PATH.
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
135 # maybe with a smaller string...
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
151 # Oops. We lost completely, so just stick with echo.
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
169 if expr a : '\(a\)' >/dev/null 2>&1; then
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
284 case $CONFIG_SHELL in
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
294 if ("$as_dir/$as_base" -c '
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326 s,^['$as_cr_digits']*\n,,
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
336 # Exit status is that of the last command.
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
348 if expr a : '\(a\)' >/dev/null 2>&1; then
354 rm -f conf$$ conf$$.exe conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
365 elif ln conf$$.file conf$$ 2>/dev/null; then
370 rm -f conf$$ conf$$.exe conf$$.file
372 as_executable_p="test -f"
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
382 # We need space, tab and new line, in precisely that order.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 ac_default_prefix=/usr/local
406 SHELL=${CONFIG_SHELL-/bin/sh}
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
413 # Identity of this package.
420 ac_unique_file="src/file.c"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
425 # include <sys/types.h>
428 # include <sys/stat.h>
439 # if !STDC_HEADERS && HAVE_MEMORY_H
445 # include <strings.h>
448 # include <inttypes.h>
459 # Initialize some variables set by options.
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
471 program_transform_name=s,x,x,
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509 # Accept the important Cygnus configure options, so we can diagnose typos.
513 -bindir | --bindir | --bindi | --bind | --bin | --bi)
515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
518 -build | --build | --buil | --bui | --bu)
519 ac_prev=build_alias ;;
520 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521 build_alias=$ac_optarg ;;
523 -cache-file | --cache-file | --cache-fil | --cache-fi \
524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525 ac_prev=cache_file ;;
526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528 cache_file=$ac_optarg ;;
531 cache_file=config.cache ;;
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 datadir=$ac_optarg ;;
539 -disable-* | --disable-*)
540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541 # Reject names that are not valid shell variable names.
542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544 { (exit 1); exit 1; }; }
545 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546 eval "enable_$ac_feature=no" ;;
548 -enable-* | --enable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 eval "enable_$ac_feature='$ac_optarg'" ;;
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix=$ac_optarg ;;
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
574 -help | --help | --hel | --he | -h)
576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577 ac_init_help=recursive ;;
578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579 ac_init_help=short ;;
581 -host | --host | --hos | --ho)
582 ac_prev=host_alias ;;
583 -host=* | --host=* | --hos=* | --ho=*)
584 host_alias=$ac_optarg ;;
586 -includedir | --includedir | --includedi | --included | --include \
587 | --includ | --inclu | --incl | --inc)
588 ac_prev=includedir ;;
589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590 | --includ=* | --inclu=* | --incl=* | --inc=*)
591 includedir=$ac_optarg ;;
593 -infodir | --infodir | --infodi | --infod | --info | --inf)
595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596 infodir=$ac_optarg ;;
598 -libdir | --libdir | --libdi | --libd)
600 -libdir=* | --libdir=* | --libdi=* | --libd=*)
603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604 | --libexe | --libex | --libe)
605 ac_prev=libexecdir ;;
606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607 | --libexe=* | --libex=* | --libe=*)
608 libexecdir=$ac_optarg ;;
610 -localstatedir | --localstatedir | --localstatedi | --localstated \
611 | --localstate | --localstat | --localsta | --localst \
612 | --locals | --local | --loca | --loc | --lo)
613 ac_prev=localstatedir ;;
614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617 localstatedir=$ac_optarg ;;
619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
625 # Obsolete; use --without-fp.
628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629 | --no-cr | --no-c | -n)
632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638 | --oldin | --oldi | --old | --ol | --o)
639 ac_prev=oldincludedir ;;
640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643 oldincludedir=$ac_optarg ;;
645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
650 -program-prefix | --program-prefix | --program-prefi | --program-pref \
651 | --program-pre | --program-pr | --program-p)
652 ac_prev=program_prefix ;;
653 -program-prefix=* | --program-prefix=* | --program-prefi=* \
654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655 program_prefix=$ac_optarg ;;
657 -program-suffix | --program-suffix | --program-suffi | --program-suff \
658 | --program-suf | --program-su | --program-s)
659 ac_prev=program_suffix ;;
660 -program-suffix=* | --program-suffix=* | --program-suffi=* \
661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662 program_suffix=$ac_optarg ;;
664 -program-transform-name | --program-transform-name \
665 | --program-transform-nam | --program-transform-na \
666 | --program-transform-n | --program-transform- \
667 | --program-transform | --program-transfor \
668 | --program-transfo | --program-transf \
669 | --program-trans | --program-tran \
670 | --progr-tra | --program-tr | --program-t)
671 ac_prev=program_transform_name ;;
672 -program-transform-name=* | --program-transform-name=* \
673 | --program-transform-nam=* | --program-transform-na=* \
674 | --program-transform-n=* | --program-transform-=* \
675 | --program-transform=* | --program-transfor=* \
676 | --program-transfo=* | --program-transf=* \
677 | --program-trans=* | --program-tran=* \
678 | --progr-tra=* | --program-tr=* | --program-t=*)
679 program_transform_name=$ac_optarg ;;
681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682 | -silent | --silent | --silen | --sile | --sil)
685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689 sbindir=$ac_optarg ;;
691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693 | --sharedst | --shareds | --shared | --share | --shar \
695 ac_prev=sharedstatedir ;;
696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700 sharedstatedir=$ac_optarg ;;
702 -site | --site | --sit)
704 -site=* | --site=* | --sit=*)
707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713 | --syscon | --sysco | --sysc | --sys | --sy)
714 ac_prev=sysconfdir ;;
715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717 sysconfdir=$ac_optarg ;;
719 -target | --target | --targe | --targ | --tar | --ta | --t)
720 ac_prev=target_alias ;;
721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722 target_alias=$ac_optarg ;;
724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
727 -version | --version | --versio | --versi | --vers | -V)
731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732 # Reject names that are not valid shell variable names.
733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 { echo "$as_me: error: invalid package name: $ac_package" >&2
735 { (exit 1); exit 1; }; }
736 ac_package=`echo $ac_package| sed 's/-/_/g'`
738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
741 eval "with_$ac_package='$ac_optarg'" ;;
743 -without-* | --without-*)
744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package | sed 's/-/_/g'`
750 eval "with_$ac_package=no" ;;
753 # Obsolete; use --with-x.
756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757 | --x-incl | --x-inc | --x-in | --x-i)
758 ac_prev=x_includes ;;
759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761 x_includes=$ac_optarg ;;
763 -x-libraries | --x-libraries | --x-librarie | --x-librari \
764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765 ac_prev=x_libraries ;;
766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768 x_libraries=$ac_optarg ;;
770 -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772 { (exit 1); exit 1; }; }
776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780 { (exit 1); exit 1; }; }
781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782 eval "$ac_envvar='$ac_optarg'"
786 # FIXME: should be removed in autoconf 3.0.
787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 if test -n "$ac_prev"; then
797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798 { echo "$as_me: error: missing argument to $ac_option" >&2
799 { (exit 1); exit 1; }; }
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
805 eval ac_val=$`echo $ac_var`
807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809 { (exit 1); exit 1; }; };;
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815 localstatedir libdir includedir oldincludedir infodir mandir
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834 if test "x$build_alias" = x; then
835 cross_compiling=maybe
836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837 If a cross compiler is detected then cross compile mode will be used." >&2
838 elif test "x$build_alias" != "x$host_alias"; then
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846 test "$silent" = yes && exec 6>/dev/null
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855 X"$0" : 'X\(//\)[^/]' \| \
856 X"$0" : 'X\(//\)$' \| \
857 X"$0" : 'X\(/\)' \| \
858 . : '\(.\)' 2>/dev/null ||
860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862 /^X\(\/\/\)$/{ s//\1/; q; }
863 /^X\(\/\).*/{ s//\1/; q; }
866 if test ! -r $srcdir/$ac_unique_file; then
870 ac_srcdir_defaulted=no
872 if test ! -r $srcdir/$ac_unique_file; then
873 if test "$ac_srcdir_defaulted" = yes; then
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875 { (exit 1); exit 1; }; }
877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878 { (exit 1); exit 1; }; }
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
916 # Report the --help message.
918 if test "$ac_init_help" = "long"; then
919 # Omit some internal or obsolete options to make the list less imposing.
920 # This message is too long to be a string in the A/UX 3.1 sh.
922 \`configure' configures this package to adapt to many kinds of systems.
924 Usage: $0 [OPTION]... [VAR=VALUE]...
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE. See below for descriptions of some of the useful variables.
929 Defaults for the options are specified in brackets.
932 -h, --help display this help and exit
933 --help=short display options specific to this package
934 --help=recursive display the short help of all the included packages
935 -V, --version display version information and exit
936 -q, --quiet, --silent do not print \`checking...' messages
937 --cache-file=FILE cache test results in FILE [disabled]
938 -C, --config-cache alias for \`--cache-file=config.cache'
939 -n, --no-create do not create output files
940 --srcdir=DIR find the sources in DIR [configure dir or \`..']
945 Installation directories:
946 --prefix=PREFIX install architecture-independent files in PREFIX
948 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
956 For better control, use the options below.
958 Fine tuning of the installation directories:
959 --bindir=DIR user executables [EPREFIX/bin]
960 --sbindir=DIR system admin executables [EPREFIX/sbin]
961 --libexecdir=DIR program executables [EPREFIX/libexec]
962 --datadir=DIR read-only architecture-independent data [PREFIX/share]
963 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
964 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
965 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
966 --libdir=DIR object code libraries [EPREFIX/lib]
967 --includedir=DIR C header files [PREFIX/include]
968 --oldincludedir=DIR C header files for non-gcc [/usr/include]
969 --infodir=DIR info documentation [PREFIX/info]
970 --mandir=DIR man documentation [PREFIX/man]
976 --program-prefix=PREFIX prepend PREFIX to installed program names
977 --program-suffix=SUFFIX append SUFFIX to installed program names
978 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
981 --build=BUILD configure for building on BUILD [guessed]
982 --host=HOST cross-compile to build programs to run on HOST [BUILD]
986 if test -n "$ac_init_help"; then
991 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
992 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
993 --disable-elf disable builtin ELF support
994 --disable-elf-core disable ELF core file support
995 --enable-fsect-man5 enable file formats in man section 5
996 --disable-dependency-tracking Speeds up one-time builds
997 --enable-dependency-tracking Do not reject slow dependency extractors
998 --enable-shared=PKGS build shared libraries default=yes
999 --enable-static=PKGS build static libraries default=yes
1000 --enable-fast-install=PKGS optimize for fast installation default=yes
1001 --disable-libtool-lock avoid locking (might break parallel builds)
1002 --disable-largefile omit support for large files
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-gnu-ld assume the C compiler uses GNU ld default=no
1008 --with-pic try to use only PIC/non-PIC objects default=use both
1010 Some influential environment variables:
1011 CC C compiler command
1012 CFLAGS C compiler flags
1013 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1014 nonstandard directory <lib dir>
1015 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1016 headers in a nonstandard directory <include dir>
1019 Use these variables to override the choices made by `configure' or to help
1020 it to find libraries and programs with nonstandard names/locations.
1025 if test "$ac_init_help" = "recursive"; then
1026 # If there are subdirs, report their specific --help.
1028 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1029 test -d $ac_dir || continue
1032 if test "$ac_dir" != .; then
1033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1034 # A "../" for each directory in $ac_dir_suffix.
1035 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1037 ac_dir_suffix= ac_top_builddir=
1041 .) # No --srcdir option. We are building in place.
1043 if test -z "$ac_top_builddir"; then
1046 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1048 [\\/]* | ?:[\\/]* ) # Absolute path.
1049 ac_srcdir=$srcdir$ac_dir_suffix;
1050 ac_top_srcdir=$srcdir ;;
1052 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1053 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1055 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1057 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1058 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1059 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1060 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1063 # Check for guested configure; otherwise get Cygnus style configure.
1064 if test -f $ac_srcdir/configure.gnu; then
1066 $SHELL $ac_srcdir/configure.gnu --help=recursive
1067 elif test -f $ac_srcdir/configure; then
1069 $SHELL $ac_srcdir/configure --help=recursive
1070 elif test -f $ac_srcdir/configure.ac ||
1071 test -f $ac_srcdir/configure.in; then
1073 $ac_configure --help
1075 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1081 test -n "$ac_init_help" && exit 0
1082 if $ac_init_version; then
1085 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1086 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1097 It was created by $as_me, which was
1098 generated by GNU Autoconf 2.53. Invocation command line was
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1132 test -z "$as_dir" && as_dir=.
1133 echo "PATH: $as_dir"
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Also quote any args containing shell meta-characters.
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n ) continue ;;
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1162 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1164 case " $ac_configure_args " in
1165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1166 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169 # Get rid of the leading space.
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log. We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178 # Save into config.log some information that might help in debugging.
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1187 # The following way of writing the cache mishandles newlines in values,
1190 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1193 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1203 if test -s confdefs.h; then
1210 sed "/^$/d" confdefs.h
1213 test "$ac_signal" != 0 &&
1214 echo "$as_me: caught signal $ac_signal"
1215 echo "$as_me: exit $exit_status"
1217 rm -f core core.* *.core &&
1218 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1221 for ac_signal in 1 2 13 15; do
1222 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1227 rm -rf conftest* confdefs.h
1228 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1231 # Predefined preprocessor variables.
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_NAME "$PACKAGE_NAME"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_STRING "$PACKAGE_STRING"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1258 # Let the site file select an alternate cache file if it wants to.
1259 # Prefer explicitly selected file to automatically selected ones.
1260 if test -z "$CONFIG_SITE"; then
1261 if test "x$prefix" != xNONE; then
1262 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1264 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1267 for ac_site_file in $CONFIG_SITE; do
1268 if test -r "$ac_site_file"; then
1269 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1270 echo "$as_me: loading site script $ac_site_file" >&6;}
1271 sed 's/^/| /' "$ac_site_file" >&5
1276 if test -r "$cache_file"; then
1277 # Some versions of bash will fail to source /dev/null (special
1278 # files actually), so we avoid doing that.
1279 if test -f "$cache_file"; then
1280 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1281 echo "$as_me: loading cache $cache_file" >&6;}
1283 [\\/]* | ?:[\\/]* ) . $cache_file;;
1284 *) . ./$cache_file;;
1288 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1289 echo "$as_me: creating cache $cache_file" >&6;}
1293 # Check that the precious variables saved in the cache have kept the same
1295 ac_cache_corrupted=false
1296 for ac_var in `(set) 2>&1 |
1297 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1299 eval ac_new_set=\$ac_env_${ac_var}_set
1300 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1301 eval ac_new_val="\$ac_env_${ac_var}_value"
1302 case $ac_old_set,$ac_new_set in
1304 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1305 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1306 ac_cache_corrupted=: ;;
1308 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1313 if test "x$ac_old_val" != "x$ac_new_val"; then
1314 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1315 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1316 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1317 echo "$as_me: former value: $ac_old_val" >&2;}
1318 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1319 echo "$as_me: current value: $ac_new_val" >&2;}
1320 ac_cache_corrupted=:
1323 # Pass precious variables to config.status.
1324 if test "$ac_new_set" = set; then
1326 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1327 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1328 *) ac_arg=$ac_var=$ac_new_val ;;
1330 case " $ac_configure_args " in
1331 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1332 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1336 if $ac_cache_corrupted; then
1337 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1338 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1339 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1340 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1341 { (exit 1); exit 1; }; }
1345 ac_cpp='$CPP $CPPFLAGS'
1346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 am__api_version="1.6"
1370 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1371 if test -f $ac_dir/install-sh; then
1373 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 elif test -f $ac_dir/install.sh; then
1377 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 elif test -f $ac_dir/shtool; then
1381 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 if test -z "$ac_aux_dir"; then
1386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1387 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1388 { (exit 1); exit 1; }; }
1390 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1391 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1392 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394 # Find a good install program. We prefer a C program (faster),
1395 # so one script is as good as another. But avoid the broken or
1396 # incompatible versions:
1397 # SysV /etc/install, /usr/sbin/install
1398 # SunOS /usr/etc/install
1399 # IRIX /sbin/install
1401 # AmigaOS /C/install, which installs bootblocks on floppy discs
1402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1405 # ./install, which can be erroneously created by make from ./install.sh.
1406 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1408 if test -z "$INSTALL"; then
1409 if test "${ac_cv_path_install+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 test -z "$as_dir" && as_dir=.
1417 # Account for people who put trailing slashes in PATH elements.
1419 ./ | .// | /cC/* | \
1420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1423 # OSF1 and SCO ODT 3.0 have their own names for install.
1424 # Don't use installbsd from OSF since it installs stuff as root
1426 for ac_prog in ginstall scoinst install; do
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1429 if test $ac_prog = install &&
1430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1431 # AIX install. It has an incompatible calling convention.
1433 elif test $ac_prog = install &&
1434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1435 # program-specific install script used by HP pwplus--don't use.
1438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1450 if test "${ac_cv_path_install+set}" = set; then
1451 INSTALL=$ac_cv_path_install
1453 # As a last resort, use the slow shell script. We don't cache a
1454 # path for INSTALL within a source directory, because that will
1455 # break other packages using the cache if that directory is
1456 # removed, or if the path is relative.
1457 INSTALL=$ac_install_sh
1460 echo "$as_me:$LINENO: result: $INSTALL" >&5
1461 echo "${ECHO_T}$INSTALL" >&6
1463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1464 # It thinks the first close brace ends the variable substitution.
1465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1471 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1472 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1475 echo timestamp > conftest.file
1476 # Do `set' in a subshell so we don't clobber the current shell's
1477 # arguments. Must try -L first in case configure is actually a
1478 # symlink; some systems play weird games with the mod time of symlinks
1479 # (eg FreeBSD returns the mod time of the symlink's containing
1482 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1483 if test "$*" = "X"; then
1485 set X `ls -t $srcdir/configure conftest.file`
1488 if test "$*" != "X $srcdir/configure conftest.file" \
1489 && test "$*" != "X conftest.file $srcdir/configure"; then
1491 # If neither matched, then we have a broken ls. This can happen
1492 # if, for instance, CONFIG_SHELL is bash and it inherits a
1493 # broken ls alias from the environment. This has actually
1494 # happened. Such a system could not be considered "sane".
1495 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1496 alias in your environment" >&5
1497 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1498 alias in your environment" >&2;}
1499 { (exit 1); exit 1; }; }
1502 test "$2" = conftest.file
1508 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1509 Check your system clock" >&5
1510 echo "$as_me: error: newly created file is older than distributed files!
1511 Check your system clock" >&2;}
1512 { (exit 1); exit 1; }; }
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 test "$program_prefix" != NONE &&
1517 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1518 # Use a double $ so make ignores it.
1519 test "$program_suffix" != NONE &&
1520 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1521 # Double any \ or $. echo might interpret backslashes.
1522 # By default was `s,x,x', remove it if useless.
1523 cat <<\_ACEOF >conftest.sed
1524 s/[\\$]/&&/g;s/;s,x,x,$//
1526 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1530 # expand $ac_aux_dir to an absolute path
1531 am_aux_dir=`cd $ac_aux_dir && pwd`
1533 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1534 # Use eval to expand $SHELL
1535 if eval "$MISSING --run true"; then
1536 am_missing_run="$MISSING --run "
1539 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1540 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1543 for ac_prog in gawk mawk nawk awk
1545 # Extract the first word of "$ac_prog", so it can be a program name with args.
1546 set dummy $ac_prog; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_AWK+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$AWK"; then
1553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_AWK="$ac_prog"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 if test -n "$AWK"; then
1573 echo "$as_me:$LINENO: result: $AWK" >&5
1574 echo "${ECHO_T}$AWK" >&6
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1580 test -n "$AWK" && break
1583 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1584 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1585 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1586 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 cat >conftest.make <<\_ACEOF
1591 @echo 'ac_maketemp="${MAKE}"'
1593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1594 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1595 if test -n "$ac_maketemp"; then
1596 eval ac_cv_prog_make_${ac_make}_set=yes
1598 eval ac_cv_prog_make_${ac_make}_set=no
1602 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1603 echo "$as_me:$LINENO: result: yes" >&5
1604 echo "${ECHO_T}yes" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 SET_MAKE="MAKE=${MAKE-make}"
1612 # test to see if srcdir already configured
1613 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1614 test -f $srcdir/config.status; then
1615 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1616 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1617 { (exit 1); exit 1; }; }
1620 # Define the identity of the package.
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE "$PACKAGE"
1630 cat >>confdefs.h <<_ACEOF
1631 #define VERSION "$VERSION"
1634 # Some tools Automake needs.
1636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1651 AMTAR=${AMTAR-"${am_missing_run}tar"}
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'. However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$STRIP"; then
1669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689 echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1697 if test -z "$ac_cv_prog_STRIP"; then
1699 # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$ac_ct_STRIP"; then
1707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_STRIP="strip"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1737 STRIP="$ac_cv_prog_STRIP"
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1743 # We need awk for the "check" target. The system "awk" is bad on
1748 # Add the stamp file to the list of files AC keeps track of,
1749 # along with our hook.
1750 ac_config_headers="$ac_config_headers config.h"
1755 echo "$as_me:$LINENO: checking for builtin ELF support" >&5
1756 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
1757 # Check whether --enable-elf or --disable-elf was given.
1758 if test "${enable_elf+set}" = set; then
1759 enableval="$enable_elf"
1760 if test "${enableval}" = yes; then
1761 echo "$as_me:$LINENO: result: yes" >&5
1762 echo "${ECHO_T}yes" >&6
1763 cat >>confdefs.h <<\_ACEOF
1764 #define BUILTIN_ELF 1
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1774 echo "$as_me:$LINENO: result: yes" >&5
1775 echo "${ECHO_T}yes" >&6
1776 cat >>confdefs.h <<\_ACEOF
1777 #define BUILTIN_ELF 1
1783 echo "$as_me:$LINENO: checking for ELF core file support" >&5
1784 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
1785 # Check whether --enable-elf-core or --disable-elf-core was given.
1786 if test "${enable_elf_core+set}" = set; then
1787 enableval="$enable_elf_core"
1788 if test "${enableval}" = yes; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 cat >>confdefs.h <<\_ACEOF
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1802 echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1804 cat >>confdefs.h <<\_ACEOF
1811 echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
1812 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
1813 # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
1814 if test "${enable_fsect_man5+set}" = set; then
1815 enableval="$enable_fsect_man5"
1816 if test "${enableval}" = yes; then
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1827 # disable by default
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1836 if test x$fsect = x5; then
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 if test -n "$ac_tool_prefix"; then
1851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 if test -n "$CC"; then
1879 echo "$as_me:$LINENO: result: $CC" >&5
1880 echo "${ECHO_T}$CC" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1887 if test -z "$ac_cv_prog_CC"; then
1889 # Extract the first word of "gcc", so it can be a program name with args.
1890 set dummy gcc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 if test -n "$ac_ct_CC"; then
1897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_ac_ct_CC="gcc"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1916 if test -n "$ac_ct_CC"; then
1917 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1918 echo "${ECHO_T}$ac_ct_CC" >&6
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1929 if test -z "$CC"; then
1930 if test -n "$ac_tool_prefix"; then
1931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1932 set dummy ${ac_tool_prefix}cc; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 if test -n "$CC"; then
1939 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_CC="${ac_tool_prefix}cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test -n "$CC"; then
1959 echo "$as_me:$LINENO: result: $CC" >&5
1960 echo "${ECHO_T}$CC" >&6
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1967 if test -z "$ac_cv_prog_CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$ac_ct_CC"; then
1977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_ac_ct_CC="cc"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996 if test -n "$ac_ct_CC"; then
1997 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998 echo "${ECHO_T}$ac_ct_CC" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2010 if test -z "$CC"; then
2011 # Extract the first word of "cc", so it can be a program name with args.
2012 set dummy cc; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2030 ac_prog_rejected=yes
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test $ac_prog_rejected = yes; then
2041 # We found a bogon in the path, so make sure we never use it.
2042 set dummy $ac_cv_prog_CC
2044 if test $# != 0; then
2045 # We chose a different compiler from the bogus one.
2046 # However, it has the same basename, so the bogon will be chosen
2047 # first if we set CC to just the basename; use the full file name.
2049 set dummy "$as_dir/$ac_word" ${1+"$@"}
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 if test -z "$CC"; then
2067 if test -n "$ac_tool_prefix"; then
2070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 if test -n "$CC"; then
2098 echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6
2101 echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2105 test -n "$CC" && break
2108 if test -z "$CC"; then
2112 # Extract the first word of "$ac_prog", so it can be a program name with args.
2113 set dummy $ac_prog; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$ac_ct_CC"; then
2120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_ac_ct_CC="$ac_prog"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6
2143 echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2147 test -n "$ac_ct_CC" && break
2156 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2157 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2158 { (exit 1); exit 1; }; }
2160 # Provide some information about the compiler.
2161 echo "$as_me:$LINENO:" \
2162 "checking for C compiler version" >&5
2163 ac_compiler=`set X $ac_compile; echo $2`
2164 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2165 (eval $ac_compiler --version </dev/null >&5) 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }
2169 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2170 (eval $ac_compiler -v </dev/null >&5) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }
2174 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2175 (eval $ac_compiler -V </dev/null >&5) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line $LINENO "configure"
2182 #include "confdefs.h"
2184 #ifdef F77_DUMMY_MAIN
2188 int F77_DUMMY_MAIN() { return 1; }
2198 ac_clean_files_save=$ac_clean_files
2199 ac_clean_files="$ac_clean_files a.out a.exe"
2200 # Try to create an executable without -o first, disregard a.out.
2201 # It will help us diagnose broken compilers, and finding out an intuition
2203 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2204 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2205 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2207 (eval $ac_link_default) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # Find the output, starting from the most likely. This scheme is
2212 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2215 # Be careful to initialize this variable, since it used to be cached.
2216 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2218 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2219 ls a.out conftest 2>/dev/null;
2220 ls a.* conftest.* 2>/dev/null`; do
2222 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2223 a.out ) # We found the default executable, but exeext='' is most
2226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2234 echo "$as_me: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2237 echo "$as_me: error: C compiler cannot create executables" >&2;}
2238 { (exit 77); exit 77; }; }
2241 ac_exeext=$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_file" >&5
2243 echo "${ECHO_T}$ac_file" >&6
2245 # Check the compiler produces executables we can run. If not, either
2246 # the compiler is broken, or we cross compile.
2247 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2248 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2249 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2250 # If not cross compiling, check that we can run a simple program.
2251 if test "$cross_compiling" != yes; then
2252 if { ac_try='./$ac_file'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2260 if test "$cross_compiling" = maybe; then
2263 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2264 If you meant to cross compile, use \`--host'." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'." >&2;}
2267 { (exit 1); exit 1; }; }
2271 echo "$as_me:$LINENO: result: yes" >&5
2272 echo "${ECHO_T}yes" >&6
2274 rm -f a.out a.exe conftest$ac_cv_exeext
2275 ac_clean_files=$ac_clean_files_save
2276 # Check the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2280 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2281 echo "${ECHO_T}$cross_compiling" >&6
2283 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2286 (eval $ac_link) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; then
2290 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2291 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2292 # work properly (i.e., refer to `conftest.exe'), while it won't with
2294 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2296 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2323 #include "confdefs.h"
2325 #ifdef F77_DUMMY_MAIN
2329 int F77_DUMMY_MAIN() { return 1; }
2339 rm -f conftest.o conftest.obj
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
2345 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2353 echo "$as_me: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2356 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2357 { (exit 1); exit 1; }; }
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 cat >conftest.$ac_ext <<_ACEOF
2372 #line $LINENO "configure"
2373 #include "confdefs.h"
2375 #ifdef F77_DUMMY_MAIN
2379 int F77_DUMMY_MAIN() { return 1; }
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2410 rm -f conftest.$ac_objext conftest.$ac_ext
2411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416 GCC=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CFLAGS=${CFLAGS+set}
2418 ac_save_CFLAGS=$CFLAGS
2420 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cat >conftest.$ac_ext <<_ACEOF
2426 #line $LINENO "configure"
2427 #include "confdefs.h"
2429 #ifdef F77_DUMMY_MAIN
2433 int F77_DUMMY_MAIN() { return 1; }
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2457 echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2461 rm -f conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2474 if test "$GCC" = yes; then
2480 # Some people use a C++ compiler to compile C. Since we use `exit',
2481 # in C++ we need to declare it. In case someone uses the same compiler
2482 # for both compiling C and C++ we need to have the C++ compiler decide
2483 # the declaration of exit, since it's the most demanding environment.
2484 cat >conftest.$ac_ext <<_ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 for ac_declaration in \
2503 '#include <stdlib.h>' \
2504 'extern "C" void std::exit (int) throw (); using std::exit;' \
2505 'extern "C" void std::exit (int); using std::exit;' \
2506 'extern "C" void exit (int) throw ();' \
2507 'extern "C" void exit (int);' \
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 #include "confdefs.h"
2515 #ifdef F77_DUMMY_MAIN
2519 int F77_DUMMY_MAIN() { return 1; }
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2543 echo "$as_me: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2547 rm -f conftest.$ac_objext conftest.$ac_ext
2548 cat >conftest.$ac_ext <<_ACEOF
2549 #line $LINENO "configure"
2550 #include "confdefs.h"
2552 #ifdef F77_DUMMY_MAIN
2556 int F77_DUMMY_MAIN() { return 1; }
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2586 if test -n "$ac_declaration"; then
2587 echo '#ifdef __cplusplus' >>confdefs.h
2588 echo $ac_declaration >>confdefs.h
2589 echo '#endif' >>confdefs.h
2593 echo "$as_me: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 rm -f .deps 2>/dev/null
2603 mkdir .deps 2>/dev/null
2604 if test -d .deps; then
2607 # MS-DOS does not allow filenames that begin with a dot.
2610 rmdir .deps 2>/dev/null
2613 ac_config_commands="$ac_config_commands depfiles"
2616 am_make=${MAKE-make}
2617 cat > confinc << 'END'
2621 # If we don't find an include directive, just comment out the code.
2622 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2623 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2627 # First try GNU make style include.
2628 echo "include confinc" > confmf
2629 # We grep out `Entering directory' and `Leaving directory'
2630 # messages which can occur if `w' ends up in MAKEFLAGS.
2631 # In particular we don't look at `^make:' because GNU make might
2632 # be invoked under some other name (usually "gmake"), in which
2633 # case it prints its new name instead of `make'.
2634 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2639 # Now try BSD make style include.
2640 if test "$am__include" = "#"; then
2641 echo '.include "confinc"' > confmf
2642 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2643 am__include=.include
2650 echo "$as_me:$LINENO: result: $_am_result" >&5
2651 echo "${ECHO_T}$_am_result" >&6
2652 rm -f confinc confmf
2654 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2655 if test "${enable_dependency_tracking+set}" = set; then
2656 enableval="$enable_dependency_tracking"
2659 if test "x$enable_dependency_tracking" != xno; then
2660 am_depcomp="$ac_aux_dir/depcomp"
2665 if test "x$enable_dependency_tracking" != xno; then
2676 depcc="$CC" am_compiler_list=
2678 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2680 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2684 # We make a subdir and do the tests there. Otherwise we can end up
2685 # making bogus files that we don't know about and never remove. For
2686 # instance it was reported that on HP-UX the gcc test will end up
2687 # making a dummy file named `D' -- because `-MD' means `put the output
2690 # Copy depcomp to subdir because otherwise we won't find it if we're
2691 # using a relative directory.
2692 cp "$am_depcomp" conftest.dir
2695 am_cv_CC_dependencies_compiler_type=none
2696 if test "$am_compiler_list" = ""; then
2697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2699 for depmode in $am_compiler_list; do
2700 # We need to recreate these files for each test, as the compiler may
2701 # overwrite some of them when testing with obscure command lines.
2702 # This happens at least with the AIX C compiler.
2703 echo '#include "conftest.h"' > conftest.c
2704 echo 'int i;' > conftest.h
2705 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2709 # after this tag, mechanisms are not by side-effect, so they'll
2710 # only be used when explicitly requested
2711 if test "x$enable_dependency_tracking" = xyes; then
2719 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2720 # mode. It turns out that the SunPro C++ compiler does not properly
2721 # handle `-M -o', and we need to detect this.
2722 if depmode=$depmode \
2723 source=conftest.c object=conftest.o \
2724 depfile=conftest.Po tmpdepfile=conftest.TPo \
2725 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2726 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2728 am_cv_CC_dependencies_compiler_type=$depmode
2736 am_cv_CC_dependencies_compiler_type=none
2740 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2741 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2745 # Find a good install program. We prefer a C program (faster),
2746 # so one script is as good as another. But avoid the broken or
2747 # incompatible versions:
2748 # SysV /etc/install, /usr/sbin/install
2749 # SunOS /usr/etc/install
2750 # IRIX /sbin/install
2752 # AmigaOS /C/install, which installs bootblocks on floppy discs
2753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2756 # ./install, which can be erroneously created by make from ./install.sh.
2757 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2758 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2759 if test -z "$INSTALL"; then
2760 if test "${ac_cv_path_install+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 # Account for people who put trailing slashes in PATH elements.
2770 ./ | .// | /cC/* | \
2771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2774 # OSF1 and SCO ODT 3.0 have their own names for install.
2775 # Don't use installbsd from OSF since it installs stuff as root
2777 for ac_prog in ginstall scoinst install; do
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2780 if test $ac_prog = install &&
2781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # AIX install. It has an incompatible calling convention.
2784 elif test $ac_prog = install &&
2785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786 # program-specific install script used by HP pwplus--don't use.
2789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2801 if test "${ac_cv_path_install+set}" = set; then
2802 INSTALL=$ac_cv_path_install
2804 # As a last resort, use the slow shell script. We don't cache a
2805 # path for INSTALL within a source directory, because that will
2806 # break other packages using the cache if that directory is
2807 # removed, or if the path is relative.
2808 INSTALL=$ac_install_sh
2811 echo "$as_me:$LINENO: result: $INSTALL" >&5
2812 echo "${ECHO_T}$INSTALL" >&6
2814 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2815 # It thinks the first close brace ends the variable substitution.
2816 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2818 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2820 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2822 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2823 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2825 if test "$LN_S" = "ln -s"; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827 echo "${ECHO_T}yes" >&6
2829 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2830 echo "${ECHO_T}no, using $LN_S" >&6
2833 # Check whether --enable-shared or --disable-shared was given.
2834 if test "${enable_shared+set}" = set; then
2835 enableval="$enable_shared"
2836 p=${PACKAGE-default}
2838 yes) enable_shared=yes ;;
2839 no) enable_shared=no ;;
2842 # Look at the argument we got. We use all the common list separators.
2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2844 for pkg in $enableval; do
2845 if test "X$pkg" = "X$p"; then
2855 # Check whether --enable-static or --disable-static was given.
2856 if test "${enable_static+set}" = set; then
2857 enableval="$enable_static"
2858 p=${PACKAGE-default}
2860 yes) enable_static=yes ;;
2861 no) enable_static=no ;;
2864 # Look at the argument we got. We use all the common list separators.
2865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2866 for pkg in $enableval; do
2867 if test "X$pkg" = "X$p"; then
2877 # Check whether --enable-fast-install or --disable-fast-install was given.
2878 if test "${enable_fast_install+set}" = set; then
2879 enableval="$enable_fast_install"
2880 p=${PACKAGE-default}
2882 yes) enable_fast_install=yes ;;
2883 no) enable_fast_install=no ;;
2885 enable_fast_install=no
2886 # Look at the argument we got. We use all the common list separators.
2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2888 for pkg in $enableval; do
2889 if test "X$pkg" = "X$p"; then
2890 enable_fast_install=yes
2897 enable_fast_install=yes
2899 # Make sure we can run config.sub.
2900 $ac_config_sub sun4 >/dev/null 2>&1 ||
2901 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2902 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2903 { (exit 1); exit 1; }; }
2905 echo "$as_me:$LINENO: checking build system type" >&5
2906 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2907 if test "${ac_cv_build+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 ac_cv_build_alias=$build_alias
2911 test -z "$ac_cv_build_alias" &&
2912 ac_cv_build_alias=`$ac_config_guess`
2913 test -z "$ac_cv_build_alias" &&
2914 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2915 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2916 { (exit 1); exit 1; }; }
2917 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2918 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2919 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2920 { (exit 1); exit 1; }; }
2923 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2924 echo "${ECHO_T}$ac_cv_build" >&6
2926 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2927 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2928 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2931 echo "$as_me:$LINENO: checking host system type" >&5
2932 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2933 if test "${ac_cv_host+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 ac_cv_host_alias=$host_alias
2937 test -z "$ac_cv_host_alias" &&
2938 ac_cv_host_alias=$ac_cv_build_alias
2939 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2940 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2941 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2942 { (exit 1); exit 1; }; }
2945 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2946 echo "${ECHO_T}$ac_cv_host" >&6
2948 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2949 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2950 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2953 # Find the correct PATH separator. Usually this is `:', but
2954 # DJGPP uses `;' like DOS.
2955 if test "X${PATH_SEPARATOR+set}" != Xset; then
2956 UNAME=${UNAME-`uname 2>/dev/null`}
2958 *-DOS) lt_cv_sys_path_separator=';' ;;
2959 *) lt_cv_sys_path_separator=':' ;;
2961 PATH_SEPARATOR=$lt_cv_sys_path_separator
2965 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2966 if test "${with_gnu_ld+set}" = set; then
2967 withval="$with_gnu_ld"
2968 test "$withval" = no || with_gnu_ld=yes
2973 if test "$GCC" = yes; then
2974 # Check if gcc -print-prog-name=ld gives a path.
2975 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2976 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2979 # gcc leaves a trailing carriage return which upsets mingw
2980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2985 # Accept absolute paths.
2986 [\\/]* | [A-Za-z]:[\\/]*)
2987 re_direlt='/[^/][^/]*/\.\./'
2988 # Canonicalize the path of ld
2989 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2991 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2993 test -z "$LD" && LD="$ac_prog"
2996 # If it fails, then pretend we aren't using GCC.
3000 # If it is relative, then search for the first ld in PATH.
3004 elif test "$with_gnu_ld" = yes; then
3005 echo "$as_me:$LINENO: checking for GNU ld" >&5
3006 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3008 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3009 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3011 if test "${lt_cv_path_LD+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 if test -z "$LD"; then
3015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3016 for ac_dir in $PATH; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3019 lt_cv_path_LD="$ac_dir/$ac_prog"
3020 # Check to see if the program is GNU ld. I'd rather use --version,
3021 # but apparently some GNU ld's only accept -v.
3022 # Break only if it was the GNU/non-GNU ld that we prefer.
3023 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3024 test "$with_gnu_ld" != no && break
3026 test "$with_gnu_ld" != yes && break
3032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3037 if test -n "$LD"; then
3038 echo "$as_me:$LINENO: result: $LD" >&5
3039 echo "${ECHO_T}$LD" >&6
3041 echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3044 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3045 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3046 { (exit 1); exit 1; }; }
3047 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3048 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3053 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3054 lt_cv_prog_gnu_ld=yes
3056 lt_cv_prog_gnu_ld=no
3059 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3060 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3061 with_gnu_ld=$lt_cv_prog_gnu_ld
3064 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3065 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3066 if test "${lt_cv_ld_reload_flag+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 lt_cv_ld_reload_flag='-r'
3071 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3072 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3073 reload_flag=$lt_cv_ld_reload_flag
3074 test -n "$reload_flag" && reload_flag=" $reload_flag"
3076 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3077 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3078 if test "${lt_cv_path_NM+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$NM"; then
3082 # Let the user override the test.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3086 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3087 test -z "$ac_dir" && ac_dir=.
3088 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3089 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3090 # Check to see if the nm accepts a BSD-compat flag.
3091 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3092 # nm: unknown option "B" ignored
3093 # Tru64's nm complains that /dev/null is an invalid object file
3094 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3095 lt_cv_path_NM="$tmp_nm -B"
3097 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3098 lt_cv_path_NM="$tmp_nm -p"
3101 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3102 continue # so that we can try to find one that supports BSD flags
3107 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3112 echo "$as_me:$LINENO: result: $NM" >&5
3113 echo "${ECHO_T}$NM" >&6
3115 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3116 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3117 if test "${lt_cv_deplibs_check_method+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 lt_cv_file_magic_cmd='$MAGIC_CMD'
3121 lt_cv_file_magic_test_file=
3122 lt_cv_deplibs_check_method='unknown'
3123 # Need to set the preceding variable on all platforms that support
3124 # interlibrary dependencies.
3125 # 'none' -- dependencies not supported.
3126 # `unknown' -- same as none, but documents that we really don't know.
3127 # 'pass_all' -- all dependencies passed with no checks.
3128 # 'test_compile' -- check by making test program.
3129 # 'file_magic [[regex]]' -- check by looking for files in library path
3130 # which responds to the $file_magic_cmd with a given egrep regex.
3131 # If you have `file' or equivalent on your system and you're not sure
3132 # whether `pass_all' will *always* work, you probably want this one.
3136 lt_cv_deplibs_check_method=pass_all
3140 lt_cv_deplibs_check_method=pass_all
3144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3145 lt_cv_file_magic_cmd='/usr/bin/file -L'
3146 lt_cv_file_magic_test_file=/shlib/libc.so
3149 cygwin* | mingw* | pw32*)
3150 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3151 lt_cv_file_magic_cmd='$OBJDUMP -f'
3154 darwin* | rhapsody*)
3155 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3156 lt_cv_file_magic_cmd='/usr/bin/file -L'
3158 rhapsody* | darwin1.[012])
3159 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3162 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3168 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3171 # Not sure whether the presence of OpenBSD here was a mistake.
3172 # Let's accept both of them until this is cleared up.
3173 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3174 lt_cv_file_magic_cmd=/usr/bin/file
3175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3179 lt_cv_deplibs_check_method=pass_all
3184 lt_cv_deplibs_check_method=pass_all
3188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3189 lt_cv_file_magic_cmd=/usr/bin/file
3190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3196 # this will be overridden with pass_all, but let us keep it just in case
3197 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3201 *-32|*"-32 ") libmagic=32-bit;;
3202 *-n32|*"-n32 ") libmagic=N32;;
3203 *-64|*"-64 ") libmagic=64-bit;;
3204 *) libmagic=never-match;;
3206 # this will be overridden with pass_all, but let us keep it just in case
3207 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3210 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3211 lt_cv_deplibs_check_method=pass_all
3214 # This must be Linux ELF.
3217 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3218 lt_cv_deplibs_check_method=pass_all ;;
3220 # glibc up to 2.1.1 does not perform some relocations on ARM
3221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3223 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3228 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3230 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3236 lt_cv_file_magic_cmd=/usr/bin/file
3237 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3241 lt_cv_file_magic_cmd=/usr/bin/file
3242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3246 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3250 osf3* | osf4* | osf5*)
3251 # this will be overridden with pass_all, but let us keep it just in case
3252 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3253 lt_cv_file_magic_test_file=/shlib/libc.so
3254 lt_cv_deplibs_check_method=pass_all
3258 lt_cv_deplibs_check_method=pass_all
3262 lt_cv_deplibs_check_method=pass_all
3263 lt_cv_file_magic_test_file=/lib/libc.so
3266 sysv5uw[78]* | sysv4*uw2*)
3267 lt_cv_deplibs_check_method=pass_all
3270 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3271 case $host_vendor in
3273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3277 lt_cv_deplibs_check_method=pass_all
3280 lt_cv_file_magic_cmd='/bin/file'
3281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3284 lt_cv_file_magic_cmd='/bin/file'
3285 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3286 lt_cv_file_magic_test_file=/lib/libc.so
3293 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3294 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3295 file_magic_cmd=$lt_cv_file_magic_cmd
3296 deplibs_check_method=$lt_cv_deplibs_check_method
3305 # Check for command to grab the raw symbol name followed by C symbol from nm.
3306 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3307 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3308 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 # These are sane defaults that work on at least a few old systems.
3313 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3315 # Character class describing NM global symbol codes.
3316 symcode='[BCDEGRST]'
3318 # Regexp to match symbols that can be accessed directly from C.
3319 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3321 # Transform the above into a raw symbol and a C symbol.
3322 symxfrm='\1 \2\3 \3'
3324 # Transform an extracted symbol line into a proper C declaration
3325 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3327 # Transform an extracted symbol line into symbol name and symbol address
3328 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3330 # Define system-specific variables.
3335 cygwin* | mingw* | pw32*)
3336 symcode='[ABCDGISTW]'
3338 hpux*) # Its linker distinguishes data from code symbols
3339 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3340 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3343 symcode='[BCDEGRST]'
3353 # Handle CRLF in mingw tool chain
3357 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3361 # If we're using GNU nm, then use its standard symbol codes.
3362 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3363 symcode='[ABCDGISTW]'
3366 # Try without a prefix undercore, then with it.
3367 for ac_symprfx in "" "_"; do
3369 # Write the raw and C identifiers.
3370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3372 # Check to see that the pipe works correctly.
3375 cat > conftest.$ac_ext <<EOF
3380 void nm_test_func(){}
3384 int main(){nm_test_var='a';nm_test_func();return(0);}
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; then
3392 # Now try to grab the symbols.
3394 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3395 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && test -s "$nlist"; then
3399 # Try sorting and uniquifying the output.
3400 if sort "$nlist" | uniq > "$nlist"T; then
3401 mv -f "$nlist"T "$nlist"
3406 # Make sure that we snagged all the symbols we need.
3407 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3408 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3409 cat <<EOF > conftest.$ac_ext
3415 # Now generate the symbol file.
3416 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3418 cat <<EOF >> conftest.$ac_ext
3419 #if defined (__STDC__) && __STDC__
3420 # define lt_ptr void *
3422 # define lt_ptr char *
3426 /* The mapping between symbol names and symbols. */
3431 lt_preloaded_symbols[] =
3434 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3435 cat <<\EOF >> conftest.$ac_ext
3443 # Now try linking the two files.
3444 mv conftest.$ac_objext conftstm.$ac_objext
3446 save_CFLAGS="$CFLAGS"
3447 LIBS="conftstm.$ac_objext"
3448 CFLAGS="$CFLAGS$no_builtin_flag"
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450 (eval $ac_link) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && test -s conftest; then
3457 CFLAGS="$save_CFLAGS"
3459 echo "cannot find nm_test_func in $nlist" >&5
3462 echo "cannot find nm_test_var in $nlist" >&5
3465 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3468 echo "$progname: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 rm -f conftest* conftst*
3473 # Do not use the global_symbol_pipe unless it works.
3474 if test "$pipe_works" = yes; then
3477 lt_cv_sys_global_symbol_pipe=
3483 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3484 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3485 global_symbol_to_cdecl=
3486 global_symbol_to_c_name_address=
3488 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3489 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3491 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3493 echo "$as_me:$LINENO: result: failed" >&5
3494 echo "${ECHO_T}failed" >&6
3496 echo "$as_me:$LINENO: result: ok" >&5
3497 echo "${ECHO_T}ok" >&6
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3506 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3507 # On Suns, sometimes $CPP names a directory.
3508 if test -n "$CPP" && test -d "$CPP"; then
3511 if test -z "$CPP"; then
3512 if test "${ac_cv_prog_CPP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 # Double quotes because CPP needs to be expanded
3516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3519 for ac_c_preproc_warn_flag in '' yes
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # On the NeXT, cc -E runs the code through the compiler's parser,
3524 # not just through cpp. "Syntax error" is here to catch this case.
3525 cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 #include "confdefs.h"
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534 egrep -v '^ *\+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null; then
3539 if test -s conftest.err; then
3540 ac_cpp_err=$ac_c_preproc_warn_flag
3547 if test -z "$ac_cpp_err"; then
3550 echo "$as_me: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3552 # Broken: fails on valid input.
3555 rm -f conftest.err conftest.$ac_ext
3557 # OK, works on sane cases. Now check whether non-existent headers
3558 # can be detected and how.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 #line $LINENO "configure"
3561 #include "confdefs.h"
3562 #include <ac_nonexistent.h>
3564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567 egrep -v '^ *\+' conftest.er1 >conftest.err
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } >/dev/null; then
3572 if test -s conftest.err; then
3573 ac_cpp_err=$ac_c_preproc_warn_flag
3580 if test -z "$ac_cpp_err"; then
3581 # Broken: success on invalid input.
3584 echo "$as_me: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 # Passes both tests.
3590 rm -f conftest.err conftest.$ac_ext
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3607 echo "$as_me:$LINENO: result: $CPP" >&5
3608 echo "${ECHO_T}$CPP" >&6
3610 for ac_c_preproc_warn_flag in '' yes
3612 # Use a header file that comes with gcc, so configuring glibc
3613 # with a fresh cross-compiler works.
3614 # On the NeXT, cc -E runs the code through the compiler's parser,
3615 # not just through cpp. "Syntax error" is here to catch this case.
3616 cat >conftest.$ac_ext <<_ACEOF
3617 #line $LINENO "configure"
3618 #include "confdefs.h"
3622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3625 egrep -v '^ *\+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } >/dev/null; then
3630 if test -s conftest.err; then
3631 ac_cpp_err=$ac_c_preproc_warn_flag
3638 if test -z "$ac_cpp_err"; then
3641 echo "$as_me: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3643 # Broken: fails on valid input.
3646 rm -f conftest.err conftest.$ac_ext
3648 # OK, works on sane cases. Now check whether non-existent headers
3649 # can be detected and how.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 #include "confdefs.h"
3653 #include <ac_nonexistent.h>
3655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3658 egrep -v '^ *\+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null; then
3663 if test -s conftest.err; then
3664 ac_cpp_err=$ac_c_preproc_warn_flag
3671 if test -z "$ac_cpp_err"; then
3672 # Broken: success on invalid input.
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 # Passes both tests.
3681 rm -f conftest.err conftest.$ac_ext
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then
3689 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3691 { (exit 1); exit 1; }; }
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3702 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3703 if test "${ac_cv_header_stdc+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 cat >conftest.$ac_ext <<_ACEOF
3707 #line $LINENO "configure"
3708 #include "confdefs.h"
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 egrep -v '^ *\+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null; then
3723 if test -s conftest.err; then
3724 ac_cpp_err=$ac_c_preproc_warn_flag
3731 if test -z "$ac_cpp_err"; then
3732 ac_cv_header_stdc=yes
3734 echo "$as_me: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 ac_cv_header_stdc=no
3738 rm -f conftest.err conftest.$ac_ext
3740 if test $ac_cv_header_stdc = yes; then
3741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3742 cat >conftest.$ac_ext <<_ACEOF
3743 #line $LINENO "configure"
3744 #include "confdefs.h"
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749 egrep "memchr" >/dev/null 2>&1; then
3752 ac_cv_header_stdc=no
3758 if test $ac_cv_header_stdc = yes; then
3759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3760 cat >conftest.$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 #include "confdefs.h"
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 egrep "free" >/dev/null 2>&1; then
3770 ac_cv_header_stdc=no
3776 if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778 if test "$cross_compiling" = yes; then
3781 cat >conftest.$ac_ext <<_ACEOF
3782 #line $LINENO "configure"
3783 #include "confdefs.h"
3785 #if ((' ' & 0x0FF) == 0x020)
3786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3790 || ('j' <= (c) && (c) <= 'r') \
3791 || ('s' <= (c) && (c) <= 'z'))
3792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3800 for (i = 0; i < 256; i++)
3801 if (XOR (islower (i), ISLOWER (i))
3802 || toupper (i) != TOUPPER (i))
3807 rm -f conftest$ac_exeext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3809 (eval $ac_link) 2>&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3820 echo "$as_me: program exited with status $ac_status" >&5
3821 echo "$as_me: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 ac_cv_header_stdc=no
3826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3831 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3832 if test $ac_cv_header_stdc = yes; then
3834 cat >>confdefs.h <<\_ACEOF
3835 #define STDC_HEADERS 1
3840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3851 inttypes.h stdint.h unistd.h
3853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3854 echo "$as_me:$LINENO: checking for $ac_header" >&5
3855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cat >conftest.$ac_ext <<_ACEOF
3860 #line $LINENO "configure"
3861 #include "confdefs.h"
3862 $ac_includes_default
3864 #include <$ac_header>
3866 rm -f conftest.$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 eval "$as_ac_Header=yes"
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 eval "$as_ac_Header=no"
3884 rm -f conftest.$ac_objext conftest.$ac_ext
3886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3889 cat >>confdefs.h <<_ACEOF
3890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3899 for ac_header in dlfcn.h
3901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3903 echo "$as_me:$LINENO: checking for $ac_header" >&5
3904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3911 # Is the header compilable?
3912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 #include "confdefs.h"
3917 $ac_includes_default
3918 #include <$ac_header>
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_header_compiler=yes
3934 echo "$as_me: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 ac_header_compiler=no
3938 rm -f conftest.$ac_objext conftest.$ac_ext
3939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940 echo "${ECHO_T}$ac_header_compiler" >&6
3942 # Is the header present?
3943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line $LINENO "configure"
3947 #include "confdefs.h"
3948 #include <$ac_header>
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953 egrep -v '^ *\+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3966 if test -z "$ac_cpp_err"; then
3967 ac_header_preproc=yes
3969 echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 ac_header_preproc=no
3973 rm -f conftest.err conftest.$ac_ext
3974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3975 echo "${ECHO_T}$ac_header_preproc" >&6
3977 # So? What about this header?
3978 case $ac_header_compiler:$ac_header_preproc in
3980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3992 echo "$as_me:$LINENO: checking for $ac_header" >&5
3993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 eval "$as_ac_Header=$ac_header_preproc"
3999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4004 cat >>confdefs.h <<_ACEOF
4005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4016 # Only perform the check for file, if the check method requires it
4017 case $deplibs_check_method in
4019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4033 ac_save_MAGIC_CMD="$MAGIC_CMD"
4034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4035 ac_dummy="/usr/bin:$PATH"
4036 for ac_dir in $ac_dummy; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f $ac_dir/${ac_tool_prefix}file; then
4039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4040 if test -n "$file_magic_test_file"; then
4041 case $deplibs_check_method in
4043 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4046 egrep "$file_magic_regex" > /dev/null; then
4051 *** Warning: the command libtool uses to detect shared libraries,
4052 *** $file_magic_cmd, produces output that libtool cannot recognize.
4053 *** The result is that libtool may fail to recognize shared libraries
4054 *** as such. This will affect the creation of libtool libraries that
4055 *** depend on shared libraries, but programs linked with such libtool
4056 *** libraries will work regardless of this problem. Nevertheless, you
4057 *** may want to report the problem to your system manager and/or to
4058 *** bug-libtool@gnu.org
4068 MAGIC_CMD="$ac_save_MAGIC_CMD"
4073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4074 if test -n "$MAGIC_CMD"; then
4075 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4076 echo "${ECHO_T}$MAGIC_CMD" >&6
4078 echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6
4082 if test -z "$lt_cv_path_MAGIC_CMD"; then
4083 if test -n "$ac_tool_prefix"; then
4084 echo "$as_me:$LINENO: checking for file" >&5
4085 echo $ECHO_N "checking for file... $ECHO_C" >&6
4086 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4097 ac_save_MAGIC_CMD="$MAGIC_CMD"
4098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4099 ac_dummy="/usr/bin:$PATH"
4100 for ac_dir in $ac_dummy; do
4101 test -z "$ac_dir" && ac_dir=.
4102 if test -f $ac_dir/file; then
4103 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4104 if test -n "$file_magic_test_file"; then
4105 case $deplibs_check_method in
4107 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4110 egrep "$file_magic_regex" > /dev/null; then
4115 *** Warning: the command libtool uses to detect shared libraries,
4116 *** $file_magic_cmd, produces output that libtool cannot recognize.
4117 *** The result is that libtool may fail to recognize shared libraries
4118 *** as such. This will affect the creation of libtool libraries that
4119 *** depend on shared libraries, but programs linked with such libtool
4120 *** libraries will work regardless of this problem. Nevertheless, you
4121 *** may want to report the problem to your system manager and/or to
4122 *** bug-libtool@gnu.org
4132 MAGIC_CMD="$ac_save_MAGIC_CMD"
4137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4138 if test -n "$MAGIC_CMD"; then
4139 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4140 echo "${ECHO_T}$MAGIC_CMD" >&6
4142 echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4155 if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_RANLIB+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 RANLIB=$ac_cv_prog_RANLIB
4183 if test -n "$RANLIB"; then
4184 echo "$as_me:$LINENO: result: $RANLIB" >&5
4185 echo "${ECHO_T}$RANLIB" >&6
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4192 if test -z "$ac_cv_prog_RANLIB"; then
4193 ac_ct_RANLIB=$RANLIB
4194 # Extract the first word of "ranlib", so it can be a program name with args.
4195 set dummy ranlib; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -n "$ac_ct_RANLIB"; then
4202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_RANLIB="ranlib"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4222 if test -n "$ac_ct_RANLIB"; then
4223 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4224 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4226 echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4230 RANLIB=$ac_ct_RANLIB
4232 RANLIB="$ac_cv_prog_RANLIB"
4235 if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}strip; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_STRIP+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$STRIP"; then
4244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 STRIP=$ac_cv_prog_STRIP
4263 if test -n "$STRIP"; then
4264 echo "$as_me:$LINENO: result: $STRIP" >&5
4265 echo "${ECHO_T}$STRIP" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4272 if test -z "$ac_cv_prog_STRIP"; then
4274 # Extract the first word of "strip", so it can be a program name with args.
4275 set dummy strip; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 if test -n "$ac_ct_STRIP"; then
4282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_ac_ct_STRIP="strip"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4302 if test -n "$ac_ct_STRIP"; then
4303 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4304 echo "${ECHO_T}$ac_ct_STRIP" >&6
4306 echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6
4312 STRIP="$ac_cv_prog_STRIP"
4319 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4320 if test "${enable_libtool_lock+set}" = set; then
4321 enableval="$enable_libtool_lock"
4324 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4326 # Some flags need to be propagated to the compiler or linker for good
4330 # Find out which ABI we are using.
4331 echo '#line 4331 "configure"' > conftest.$ac_ext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; then
4337 case `/usr/bin/file conftest.$ac_objext` in
4353 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4354 SAVE_CFLAGS="$CFLAGS"
4355 CFLAGS="$CFLAGS -belf"
4356 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4357 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4358 if test "${lt_cv_cc_needs_belf+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 #include "confdefs.h"
4373 #ifdef F77_DUMMY_MAIN
4377 int F77_DUMMY_MAIN() { return 1; }
4387 rm -f conftest.$ac_objext conftest$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 lt_cv_cc_needs_belf=yes
4401 echo "$as_me: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 lt_cv_cc_needs_belf=no
4405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4407 ac_cpp='$CPP $CPPFLAGS'
4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4414 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4415 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4416 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4417 CFLAGS="$SAVE_CFLAGS"
4424 # Sed substitution that helps us do robust quoting. It backslashifies
4425 # metacharacters that are still active within double-quoted strings.
4426 Xsed='sed -e s/^X//'
4427 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4429 # Same as above, but do not quote variable references.
4430 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4432 # Sed substitution to delay expansion of an escaped shell variable in a
4433 # double_quote_subst'ed string.
4434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4440 default_ofile=libtool
4441 can_build_shared=yes
4443 # All known linkers require a `.a' archive for static linking (except M$VC,
4444 # which needs '.lib').
4446 ltmain="$ac_aux_dir/ltmain.sh"
4447 ofile="$default_ofile"
4448 with_gnu_ld="$lt_cv_prog_gnu_ld"
4449 need_locks="$enable_libtool_lock"
4452 old_CFLAGS="$CFLAGS"
4454 # Set sane defaults for various variables
4455 test -z "$AR" && AR=ar
4456 test -z "$AR_FLAGS" && AR_FLAGS=cru
4457 test -z "$AS" && AS=as
4458 test -z "$CC" && CC=cc
4459 test -z "$DLLTOOL" && DLLTOOL=dlltool
4460 test -z "$LD" && LD=ld
4461 test -z "$LN_S" && LN_S="ln -s"
4462 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4463 test -z "$NM" && NM=nm
4464 test -z "$OBJDUMP" && OBJDUMP=objdump
4465 test -z "$RANLIB" && RANLIB=:
4466 test -z "$STRIP" && STRIP=:
4467 test -z "$ac_objext" && ac_objext=o
4469 if test x"$host" != x"$build"; then
4470 ac_tool_prefix=${host_alias}-
4475 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4478 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4483 # AIX sometimes has problems with the GCC collect2 program. For some
4484 # reason, if we set the COLLECT_NAMES environment variable, the problems
4485 # vanish in a puff of smoke.
4486 if test "X${COLLECT_NAMES+set}" != Xset; then
4488 export COLLECT_NAMES
4493 # Determine commands to create old-style static archives.
4494 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4495 old_postinstall_cmds='chmod 644 $oldlib'
4496 old_postuninstall_cmds=
4498 if test -n "$RANLIB"; then
4501 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4504 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4507 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4510 # Allow CC to be a program name with arguments.
4514 echo "$as_me:$LINENO: checking for objdir" >&5
4515 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4516 rm -f .libs 2>/dev/null
4517 mkdir .libs 2>/dev/null
4518 if test -d .libs; then
4521 # MS-DOS does not allow filenames that begin with a dot.
4524 rmdir .libs 2>/dev/null
4525 echo "$as_me:$LINENO: result: $objdir" >&5
4526 echo "${ECHO_T}$objdir" >&6
4530 # Check whether --with-pic or --without-pic was given.
4531 if test "${with_pic+set}" = set; then
4537 test -z "$pic_mode" && pic_mode=default
4539 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4540 # in isolation, and that seeing it set (from the cache) indicates that
4541 # the associated values are set (in the cache) correctly too.
4542 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4543 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4544 if test "${lt_cv_prog_cc_pic+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 lt_cv_prog_cc_shlib=
4550 lt_cv_prog_cc_static=
4551 lt_cv_prog_cc_no_builtin=
4552 lt_cv_prog_cc_can_build_shared=$can_build_shared
4554 if test "$GCC" = yes; then
4555 lt_cv_prog_cc_wl='-Wl,'
4556 lt_cv_prog_cc_static='-static'
4560 # Below there is a dirty hack to force normal static linking with -ldl
4561 # The problem is because libdl dynamically linked with both libc and
4562 # libC (AIX C++ library), which obviously doesn't included in libraries
4563 # list by gcc. This cause undefined symbols with -static flags.
4564 # This hack allows C programs to be linked with "-static -ldl", but
4565 # not sure about C++ programs.
4566 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4569 # FIXME: we need at least 68020 code to build shared libraries, but
4570 # adding the `-m68020' flag to GCC prevents building anything better,
4572 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4574 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4575 # PIC is the default for these OSes.
4577 darwin* | rhapsody*)
4578 # PIC is the default on this platform
4579 # Common symbols not allowed in MH_DYLIB files
4580 lt_cv_prog_cc_pic='-fno-common'
4582 cygwin* | mingw* | pw32* | os2*)
4583 # This hack is so that the source file can tell whether it is being
4584 # built for inclusion in a dll (and should export symbols for example).
4585 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4588 if test -d /usr/nec; then
4589 lt_cv_prog_cc_pic=-Kconform_pic
4593 lt_cv_prog_cc_pic='-fPIC'
4597 # PORTME Check for PIC flags for the system compiler.
4599 aix3* | aix4* | aix5*)
4600 lt_cv_prog_cc_wl='-Wl,'
4601 # All AIX code is PIC.
4602 if test "$host_cpu" = ia64; then
4603 # AIX 5 now supports IA64 processor
4604 lt_cv_prog_cc_static='-Bstatic'
4606 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4610 hpux9* | hpux10* | hpux11*)
4611 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4612 lt_cv_prog_cc_wl='-Wl,'
4613 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4614 lt_cv_prog_cc_pic='+Z'
4618 lt_cv_prog_cc_wl='-Wl,'
4619 lt_cv_prog_cc_static='-non_shared'
4620 # PIC (with -KPIC) is the default.
4623 cygwin* | mingw* | pw32* | os2*)
4624 # This hack is so that the source file can tell whether it is being
4625 # built for inclusion in a dll (and should export symbols for example).
4626 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4630 lt_cv_prog_cc_pic='-KPIC'
4631 lt_cv_prog_cc_static='-Bstatic'
4634 osf3* | osf4* | osf5*)
4635 # All OSF/1 code is PIC.
4636 lt_cv_prog_cc_wl='-Wl,'
4637 lt_cv_prog_cc_static='-non_shared'
4641 lt_cv_prog_cc_pic='-Kpic'
4642 lt_cv_prog_cc_static='-dn'
4643 lt_cv_prog_cc_shlib='-belf'
4647 lt_cv_prog_cc_pic='-KPIC'
4648 lt_cv_prog_cc_static='-Bstatic'
4649 lt_cv_prog_cc_wl='-Wl,'
4653 lt_cv_prog_cc_pic='-PIC'
4654 lt_cv_prog_cc_static='-Bstatic'
4655 lt_cv_prog_cc_wl='-Qoption ld '
4658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4659 lt_cv_prog_cc_pic='-KPIC'
4660 lt_cv_prog_cc_static='-Bstatic'
4661 if test "x$host_vendor" = xsni; then
4662 lt_cv_prog_cc_wl='-LD'
4664 lt_cv_prog_cc_wl='-Wl,'
4669 lt_cv_prog_cc_pic='-pic'
4670 lt_cv_prog_cc_static='-Bstatic'
4674 if test -d /usr/nec ;then
4675 lt_cv_prog_cc_pic='-Kconform_pic'
4676 lt_cv_prog_cc_static='-Bstatic'
4681 lt_cv_prog_cc_can_build_shared=no
4688 if test -z "$lt_cv_prog_cc_pic"; then
4689 echo "$as_me:$LINENO: result: none" >&5
4690 echo "${ECHO_T}none" >&6
4692 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4693 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4695 # Check to make sure the pic_flag actually works.
4696 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4697 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4698 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 save_CFLAGS="$CFLAGS"
4702 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 #include "confdefs.h"
4707 #ifdef F77_DUMMY_MAIN
4711 int F77_DUMMY_MAIN() { return 1; }
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4734 hpux9* | hpux10* | hpux11*)
4735 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4736 # they create non-PIC objects. So, if there were any warnings, we
4737 # assume that PIC is not supported.
4738 if test -s conftest.err; then
4739 lt_cv_prog_cc_pic_works=no
4741 lt_cv_prog_cc_pic_works=yes
4745 lt_cv_prog_cc_pic_works=yes
4750 echo "$as_me: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4752 lt_cv_prog_cc_pic_works=no
4755 rm -f conftest.$ac_objext conftest.$ac_ext
4756 CFLAGS="$save_CFLAGS"
4761 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4763 lt_cv_prog_cc_can_build_shared=no
4765 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4768 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4769 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4772 # Check for any special shared library compilation flags.
4773 if test -n "$lt_cv_prog_cc_shlib"; then
4774 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4775 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4776 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4778 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4779 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4780 lt_cv_prog_cc_can_build_shared=no
4784 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4785 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4786 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 lt_cv_prog_cc_static_works=no
4790 save_LDFLAGS="$LDFLAGS"
4791 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4792 cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 #include "confdefs.h"
4796 #ifdef F77_DUMMY_MAIN
4800 int F77_DUMMY_MAIN() { return 1; }
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4812 (eval $ac_link) 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 lt_cv_prog_cc_static_works=yes
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 LDFLAGS="$save_LDFLAGS"
4833 # Belt *and* braces to stop my trousers falling down:
4834 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4835 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4836 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4838 pic_flag="$lt_cv_prog_cc_pic"
4839 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4840 wl="$lt_cv_prog_cc_wl"
4841 link_static_flag="$lt_cv_prog_cc_static"
4842 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4843 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4846 # Check to see if options -o and -c are simultaneously supported by compiler
4847 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4849 if test "${lt_cv_compiler_c_o+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 $rm -r conftest 2>/dev/null
4856 echo "int some_variable = 0;" > conftest.$ac_ext
4858 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4859 # that will create temporary files in the current directory regardless of
4860 # the output directory. Thus, making CWD read-only will cause this test
4861 # to fail, enabling locking or at least warning the user not to do parallel
4864 save_CFLAGS="$CFLAGS"
4865 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4867 if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4868 # The compiler can only warn and ignore the option if not recognized
4869 # So say no if there are warnings
4870 if test -s out/conftest.err; then
4871 lt_cv_compiler_c_o=no
4873 lt_cv_compiler_c_o=yes
4876 # Append any errors to the config.log.
4877 cat out/conftest.err 1>&5
4878 lt_cv_compiler_c_o=no
4880 CFLAGS="$save_CFLAGS"
4886 $rm -r conftest 2>/dev/null
4890 compiler_c_o=$lt_cv_compiler_c_o
4891 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4892 echo "${ECHO_T}$compiler_c_o" >&6
4894 if test x"$compiler_c_o" = x"yes"; then
4895 # Check to see if we can write to a .lo
4896 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4897 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4898 if test "${lt_cv_compiler_o_lo+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 lt_cv_compiler_o_lo=no
4903 save_CFLAGS="$CFLAGS"
4904 CFLAGS="$CFLAGS -c -o conftest.lo"
4905 save_objext="$ac_objext"
4907 cat >conftest.$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4909 #include "confdefs.h"
4911 #ifdef F77_DUMMY_MAIN
4915 int F77_DUMMY_MAIN() { return 1; }
4920 int some_variable = 0;
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 # The compiler can only warn and ignore the option if not recognized
4938 # So say no if there are warnings
4939 if test -s conftest.err; then
4940 lt_cv_compiler_o_lo=no
4942 lt_cv_compiler_o_lo=yes
4946 echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4949 rm -f conftest.$ac_objext conftest.$ac_ext
4950 ac_objext="$save_objext"
4951 CFLAGS="$save_CFLAGS"
4955 compiler_o_lo=$lt_cv_compiler_o_lo
4956 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4957 echo "${ECHO_T}$compiler_o_lo" >&6
4962 # Check to see if we can do hard links to lock some files if needed
4963 hard_links="nottested"
4964 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4965 # do not overwrite the value of need_locks provided by the user
4966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4972 ln conftest.a conftest.b 2>&5 || hard_links=no
4973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4974 echo "$as_me:$LINENO: result: $hard_links" >&5
4975 echo "${ECHO_T}$hard_links" >&6
4976 if test "$hard_links" = no; then
4977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4985 if test "$GCC" = yes; then
4986 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4987 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4989 echo "int some_variable = 0;" > conftest.$ac_ext
4990 save_CFLAGS="$CFLAGS"
4991 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4992 compiler_rtti_exceptions=no
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 #include "confdefs.h"
4997 #ifdef F77_DUMMY_MAIN
5001 int F77_DUMMY_MAIN() { return 1; }
5006 int some_variable = 0;
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 # The compiler can only warn and ignore the option if not recognized
5024 # So say no if there are warnings
5025 if test -s conftest.err; then
5026 compiler_rtti_exceptions=no
5028 compiler_rtti_exceptions=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5035 rm -f conftest.$ac_objext conftest.$ac_ext
5036 CFLAGS="$save_CFLAGS"
5037 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5038 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5040 if test "$compiler_rtti_exceptions" = "yes"; then
5041 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5043 no_builtin_flag=' -fno-builtin'
5047 # See if the linker supports building shared libraries.
5048 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5049 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5051 allow_undefined_flag=
5053 need_lib_prefix=unknown
5054 need_version=unknown
5055 # when you set need_version to no, make sure it does not cause -set_version
5056 # flags to be left without arguments
5058 archive_expsym_cmds=
5059 old_archive_from_new_cmds=
5060 old_archive_from_expsyms_cmds=
5061 export_dynamic_flag_spec=
5062 whole_archive_flag_spec=
5063 thread_safe_flag_spec=
5064 hardcode_into_libs=no
5065 hardcode_libdir_flag_spec=
5066 hardcode_libdir_separator=
5069 hardcode_shlibpath_var=unsupported
5071 link_all_deplibs=unknown
5072 always_export_symbols=no
5073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5074 # include_expsyms should be a list of space-separated symbols to be *always*
5075 # included in the symbol list
5077 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5080 # as well as any symbol that contains `d'.
5081 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5083 # platforms (ab)use it in PIC code, but their linkers get confused if
5084 # the symbol is explicitly referenced. Since portable code cannot
5085 # rely on this symbol name, it's probably fine to never include it in
5086 # preloaded symbol tables.
5087 extract_expsyms_cmds=
5090 cygwin* | mingw* | pw32*)
5091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5092 # When not using gcc, we currently assume that we are using
5093 # Microsoft Visual C++.
5094 if test "$GCC" != yes; then
5104 if test "$with_gnu_ld" = yes; then
5105 # If archive_cmds runs LD, not CC, wlarc should be empty
5108 # See if GNU ld supports shared libraries.
5110 aix3* | aix4* | aix5*)
5111 # On AIX, the GNU linker is very broken
5112 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5116 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5117 *** to be unable to reliably create shared libraries on AIX.
5118 *** Therefore, libtool is disabling shared libraries support. If you
5119 *** really care for shared libraries, you may want to modify your PATH
5120 *** so that a non-GNU linker is found, and then restart.
5126 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5127 hardcode_libdir_flag_spec='-L$libdir'
5128 hardcode_minus_L=yes
5130 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5131 # that the semantics of dynamic libraries on AmigaOS, at least up
5132 # to version 4, is to share data among multiple programs linked
5133 # with the same dynamic library. Since this doesn't match the
5134 # behavior of shared libraries on other platforms, we can use
5140 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5141 allow_undefined_flag=unsupported
5142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5143 # support --undefined. This deserves some investigation. FIXME
5144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5150 cygwin* | mingw* | pw32*)
5151 # hardcode_libdir_flag_spec is actually meaningless, as there is
5152 # no search path for DLLs.
5153 hardcode_libdir_flag_spec='-L$libdir'
5154 allow_undefined_flag=unsupported
5155 always_export_symbols=yes
5157 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5158 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5159 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5160 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5161 else $CC -o impgen impgen.c ; fi)~
5162 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5164 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5166 # cygwin and mingw dlls have different entry points and sets of symbols
5168 # FIXME: what about values for MSVC?
5169 dll_entry=__cygwin_dll_entry@12
5170 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5174 dll_entry=_DllMainCRTStartup@12
5175 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5179 # mingw and cygwin differ, and it's simplest to just exclude the union
5180 # of the two symbol sets.
5181 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5183 # recent cygwin and mingw systems supply a stub DllMain which the user
5184 # can override, but on older systems we have to supply one (in ltdll.c)
5185 if test "x$lt_cv_need_dllmain" = "xyes"; then
5186 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5187 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5188 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5194 # Extract the symbol export list from an `--export-all' def file,
5195 # then regenerate the def file from the symbol export list, so that
5196 # the compiled dll only exports the symbol export list.
5197 # Be careful not to strip the DATA tag left be newer dlltools.
5198 export_symbols_cmds="$ltdll_cmds"'
5199 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5200 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5202 # If the export-symbols file already is a .def file (1st line
5203 # is EXPORTS), use it as is.
5204 # If DATA tags from a recent dlltool are present, honour them!
5205 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5206 cp $export_symbols $output_objdir/$soname-def;
5208 echo EXPORTS > $output_objdir/$soname-def;
5210 cat $export_symbols | while read symbol; do
5213 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5214 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5216 _lt_hint=`expr 1 + \$_lt_hint`;
5220 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5221 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5222 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5223 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5224 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5229 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5232 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5233 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5238 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5242 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5243 *** create shared libraries on Solaris systems. Therefore, libtool
5244 *** is disabling shared libraries support. We urge you to upgrade GNU
5245 *** binutils to release 2.9.1 or newer. Another option is to modify
5246 *** your PATH or compiler configuration so that the native linker is
5247 *** used, and then restart.
5250 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5259 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5262 hardcode_shlibpath_var=no
5266 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5275 if test "$ld_shlibs" = yes; then
5276 runpath_var=LD_RUN_PATH
5277 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5278 export_dynamic_flag_spec='${wl}--export-dynamic'
5280 cygwin* | mingw* | pw32*)
5281 # dlltool doesn't understand --whole-archive et. al.
5282 whole_archive_flag_spec=
5285 # ancient GNU ld didn't support --whole-archive et. al.
5286 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5287 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5289 whole_archive_flag_spec=
5295 # PORTME fill in a description of your system's linker (not GNU ld)
5298 allow_undefined_flag=unsupported
5299 always_export_symbols=yes
5300 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5301 # Note: this linker hardcodes the directories in LIBPATH if there
5302 # are no directories specified by -L.
5303 hardcode_minus_L=yes
5304 if test "$GCC" = yes && test -z "$link_static_flag"; then
5305 # Neither direct hardcoding nor static linking is supported with a
5307 hardcode_direct=unsupported
5312 if test "$host_cpu" = ia64; then
5313 # On IA64, the linker does run time linking by default, so we don't
5314 # have to do anything special.
5315 aix_use_runtimelinking=no
5316 exp_sym_flag='-Bexport'
5319 aix_use_runtimelinking=no
5321 # Test if we are trying to use run time linking or normal
5322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5323 # need to do runtime linking.
5324 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5325 for ld_flag in $LDFLAGS; do
5326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5327 aix_use_runtimelinking=yes
5333 exp_sym_flag='-bexport'
5334 no_entry_flag='-bnoentry'
5337 # When large executables or shared objects are built, AIX ld can
5338 # have problems creating the table of contents. If linking a library
5339 # or program results in "error TOC overflow" add -mminimal-toc to
5340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5345 hardcode_libdir_separator=':'
5346 if test "$GCC" = yes; then
5347 case $host_os in aix4.[012]|aix4.[012].*)
5348 collect2name=`${CC} -print-prog-name=collect2`
5349 if test -f "$collect2name" && \
5350 strings "$collect2name" | grep resolve_lib_name >/dev/null
5352 # We have reworked collect2
5355 # We have old collect2
5356 hardcode_direct=unsupported
5357 # It fails to find uninstalled libraries when the uninstalled
5358 # path is not listed in the libpath. Setting hardcode_minus_L
5359 # to unsupported forces relinking
5360 hardcode_minus_L=yes
5361 hardcode_libdir_flag_spec='-L$libdir'
5362 hardcode_libdir_separator=
5366 shared_flag='-shared'
5369 if test "$host_cpu" = ia64; then
5370 shared_flag='${wl}-G'
5372 if test "$aix_use_runtimelinking" = yes; then
5373 shared_flag='${wl}-G'
5375 shared_flag='${wl}-bM:SRE'
5380 # It seems that -bexpall can do strange things, so it is better to
5381 # generate a list of symbols to export.
5382 always_export_symbols=yes
5383 if test "$aix_use_runtimelinking" = yes; then
5384 # Warning - without using the other runtime loading flags (-brtl),
5385 # -berok will link without error, but may produce a broken library.
5386 allow_undefined_flag='-berok'
5387 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5388 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5390 if test "$host_cpu" = ia64; then
5391 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5392 allow_undefined_flag="-z nodefs"
5393 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5395 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5396 # Warning - without using the other run time loading flags,
5397 # -berok will link without error, but may produce a broken library.
5398 allow_undefined_flag='${wl}-berok'
5399 # This is a bit strange, but is similar to how AIX traditionally builds
5400 # it's shared libraries.
5401 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5407 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5408 hardcode_libdir_flag_spec='-L$libdir'
5409 hardcode_minus_L=yes
5410 # see comment about different semantics on the GNU ld section
5414 cygwin* | mingw* | pw32*)
5415 # When not using gcc, we currently assume that we are using
5416 # Microsoft Visual C++.
5417 # hardcode_libdir_flag_spec is actually meaningless, as there is
5418 # no search path for DLLs.
5419 hardcode_libdir_flag_spec=' '
5420 allow_undefined_flag=unsupported
5421 # Tell ltmain to make .lib files, not .a files.
5423 # FIXME: Setting linknames here is a bad hack.
5424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5425 # The linker will automatically build a .lib file if we build a DLL.
5426 old_archive_from_new_cmds='true'
5427 # FIXME: Should let the user specify the lib program.
5428 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5429 fix_srcfile_path='`cygpath -w "$srcfile"`'
5432 darwin* | rhapsody*)
5434 rhapsody* | darwin1.[012])
5435 allow_undefined_flag='-undefined suppress'
5438 allow_undefined_flag='-flat_namespace -undefined suppress'
5441 # FIXME: Relying on posixy $() will cause problems for
5442 # cross-compilation, but unfortunately the echo tests do not
5443 # yet detect zsh echo's removal of \ escapes.
5444 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5445 # We need to add '_' to the symbols in $export_symbols first
5446 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5448 hardcode_shlibpath_var=no
5449 whole_archive_flag_spec='-all_load $convenience'
5456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5457 # support. Future versions do this automatically, but an explicit c++rt0.o
5458 # does not break anything, and helps significantly (at the cost of a little
5461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5462 hardcode_libdir_flag_spec='-R$libdir'
5464 hardcode_shlibpath_var=no
5467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5471 hardcode_minus_L=yes
5472 hardcode_shlibpath_var=no
5475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5477 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5478 hardcode_libdir_flag_spec='-R$libdir'
5480 hardcode_shlibpath_var=no
5483 hpux9* | hpux10* | hpux11*)
5485 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5486 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5489 hardcode_libdir_separator=:
5491 hardcode_minus_L=yes # Not in the search PATH, but as the default
5492 # location of the library.
5493 export_dynamic_flag_spec='${wl}-E'
5497 if test "$GCC" = yes; then
5498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5500 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5503 hardcode_libdir_separator=:
5504 link_all_deplibs=yes
5508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5511 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5513 hardcode_libdir_flag_spec='-R$libdir'
5515 hardcode_shlibpath_var=no
5519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5522 hardcode_libdir_separator=:
5523 hardcode_shlibpath_var=no
5528 hardcode_shlibpath_var=no
5529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5532 export_dynamic_flag_spec='${wl}-E'
5535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5537 hardcode_libdir_flag_spec='-R$libdir'
5540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5548 hardcode_libdir_flag_spec='-L$libdir'
5549 hardcode_minus_L=yes
5550 allow_undefined_flag=unsupported
5551 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5552 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5556 if test "$GCC" = yes; then
5557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5558 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5560 allow_undefined_flag=' -expect_unresolved \*'
5561 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5564 hardcode_libdir_separator=:
5567 osf4* | osf5*) # as osf3* with the addition of -msym flag
5568 if test "$GCC" = yes; then
5569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5570 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5573 allow_undefined_flag=' -expect_unresolved \*'
5574 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5575 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5576 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5578 #Both c and cxx compiler support -rpath directly
5579 hardcode_libdir_flag_spec='-rpath $libdir'
5581 hardcode_libdir_separator=:
5585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5586 hardcode_shlibpath_var=no
5587 runpath_var=LD_RUN_PATH
5588 hardcode_runpath_var=yes
5589 export_dynamic_flag_spec='${wl}-Bexport'
5593 # gcc --version < 3.0 without binutils cannot create self contained
5594 # shared libraries reliably, requiring libgcc.a to resolve some of
5595 # the object symbols generated in some cases. Libraries that use
5596 # assert need libgcc.a to resolve __eprintf, for example. Linking
5597 # a copy of libgcc.a into every shared library to guarantee resolving
5598 # such symbols causes other problems: According to Tim Van Holder
5599 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5600 # (to the application) exception stack for one thing.
5601 no_undefined_flag=' -z defs'
5602 if test "$GCC" = yes; then
5603 case `$CC --version 2>/dev/null` in
5607 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5608 *** create self contained shared libraries on Solaris systems, without
5609 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5610 *** -no-undefined support, which will at least allow you to build shared
5611 *** libraries. However, you may find that when you link such libraries
5612 *** into an application without using GCC, you have to manually add
5613 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5614 *** upgrade to a newer version of GCC. Another option is to rebuild your
5615 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5622 # $CC -shared without GNU ld will not create a library from C++
5623 # object files and a static libstdc++, better avoid it by now
5624 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5625 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5627 hardcode_libdir_flag_spec='-R$libdir'
5628 hardcode_shlibpath_var=no
5630 solaris2.[0-5] | solaris2.[0-5].*) ;;
5631 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5634 link_all_deplibs=yes
5638 if test "x$host_vendor" = xsequent; then
5639 # Use $CC to link under sequent, because it throws in some extra .o
5640 # files that make .init and .fini sections work.
5641 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5643 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5645 hardcode_libdir_flag_spec='-L$libdir'
5647 hardcode_minus_L=yes
5648 hardcode_shlibpath_var=no
5652 if test "x$host_vendor" = xsno; then
5653 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5654 hardcode_direct=yes # is this really true???
5656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5659 runpath_var='LD_RUN_PATH'
5660 hardcode_shlibpath_var=no
5664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5665 hardcode_shlibpath_var=no
5666 export_dynamic_flag_spec='-Bexport'
5670 no_undefined_flag=' -z text'
5671 # $CC -shared without GNU ld will not create a library from C++
5672 # object files and a static libstdc++, better avoid it by now
5673 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5674 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5676 hardcode_libdir_flag_spec=
5677 hardcode_shlibpath_var=no
5678 runpath_var='LD_RUN_PATH'
5682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5683 hardcode_libdir_flag_spec='-L$libdir'
5684 hardcode_shlibpath_var=no
5688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5689 hardcode_libdir_flag_spec='-L$libdir'
5690 hardcode_shlibpath_var=no
5694 if test -d /usr/nec; then
5695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5696 hardcode_shlibpath_var=no
5697 runpath_var=LD_RUN_PATH
5698 hardcode_runpath_var=yes
5704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5707 hardcode_shlibpath_var=no
5708 hardcode_runpath_var=yes
5709 runpath_var=LD_RUN_PATH
5712 sysv5uw7* | unixware7*)
5713 no_undefined_flag='${wl}-z ${wl}text'
5714 if test "$GCC" = yes; then
5715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5717 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5719 runpath_var='LD_RUN_PATH'
5720 hardcode_shlibpath_var=no
5728 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5729 echo "${ECHO_T}$ld_shlibs" >&6
5730 test "$ld_shlibs" = no && can_build_shared=no
5732 # Check hardcoding attributes.
5733 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5734 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5736 if test -n "$hardcode_libdir_flag_spec" || \
5737 test -n "$runpath_var"; then
5739 # We can hardcode non-existant directories.
5740 if test "$hardcode_direct" != no &&
5741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5742 # have to relink, otherwise we might link with an installed library
5743 # when we should be linking with a yet-to-be-installed one
5744 ## test "$hardcode_shlibpath_var" != no &&
5745 test "$hardcode_minus_L" != no; then
5746 # Linking always hardcodes the temporary library directory.
5747 hardcode_action=relink
5749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5750 hardcode_action=immediate
5753 # We cannot hardcode anything, or else we can only hardcode existing
5755 hardcode_action=unsupported
5757 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5758 echo "${ECHO_T}$hardcode_action" >&6
5762 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5763 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5764 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5766 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5767 echo "$as_me:$LINENO: result: yes" >&5
5768 echo "${ECHO_T}yes" >&6
5770 echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5777 # PORTME Fill in your ld.so characteristics
5778 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5781 libname_spec='lib$name'
5788 shlibpath_overrides_runpath=unknown
5790 dynamic_linker="$host_os ld.so"
5791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5797 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5798 shlibpath_var=LIBPATH
5800 # AIX has no versioning support, so we append a major version to the name.
5801 soname_spec='${libname}${release}.so$major'
5806 if test "$host_cpu" = ia64; then
5807 # AIX 5 supports IA64
5808 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5809 shlibpath_var=LD_LIBRARY_PATH
5811 # With GCC up to 2.95.x, collect2 would create an import file
5812 # for dependence libraries. The import file would start with
5813 # the line `#! .'. This would cause the generated library to
5814 # depend on `.', always an invalid library. This was fixed in
5815 # development snapshots of GCC prior to 3.0.
5817 aix4 | aix4.[01] | aix4.[01].*)
5818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5820 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5827 # AIX (on Power*) has no versioning support, so currently we can
5828 # not hardcode correct soname into executable. Probably we can
5829 # add versioning support to collect2, so additional links can
5830 # be useful in future.
5831 if test "$aix_use_runtimelinking" = yes; then
5832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5833 # instead of lib<name>.a to let people know that these are not
5834 # typical AIX shared libraries.
5835 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5837 # We preserve .a as extension for shared libraries through AIX4.2
5838 # and later when we are not doing run time linking.
5839 library_names_spec='${libname}${release}.a $libname.a'
5840 soname_spec='${libname}${release}.so$major'
5842 shlibpath_var=LIBPATH
5847 library_names_spec='$libname.ixlibrary $libname.a'
5848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5849 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5853 library_names_spec='${libname}.so'
5854 dynamic_linker="$host_os ld.so"
5855 shlibpath_var=LIBRARY_PATH
5861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5862 soname_spec='${libname}${release}.so$major'
5863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5864 shlibpath_var=LD_LIBRARY_PATH
5865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5867 export_dynamic_flag_spec=-rdynamic
5868 # the default ld.so.conf also contains /usr/contrib/lib and
5869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5870 # libtool to hard-code these into programs
5873 cygwin* | mingw* | pw32*)
5874 version_type=windows
5877 case $GCC,$host_os in
5879 library_names_spec='$libname.dll.a'
5880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5881 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5882 dldir=$destdir/`dirname \$dlpath`~
5883 test -d \$dldir || mkdir -p \$dldir~
5884 $install_prog .libs/$dlname \$dldir/$dlname'
5885 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5886 dlpath=$dir/\$dldll~
5890 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5894 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5897 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5900 dynamic_linker='Win32 ld.exe'
5901 # FIXME: first we should search . and the directory the executable is in
5905 darwin* | rhapsody*)
5906 dynamic_linker="$host_os dyld"
5910 # FIXME: Relying on posixy $() will cause problems for
5911 # cross-compilation, but unfortunately the echo tests do not
5912 # yet detect zsh echo's removal of \ escapes.
5913 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5914 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5915 shlibpath_overrides_runpath=yes
5916 shlibpath_var=DYLD_LIBRARY_PATH
5924 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5925 version_type=freebsd-$objformat
5926 case $version_type in
5928 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5933 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5937 shlibpath_var=LD_LIBRARY_PATH
5940 shlibpath_overrides_runpath=yes
5943 shlibpath_overrides_runpath=no
5944 hardcode_into_libs=yes
5953 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5954 soname_spec='${libname}${release}.so$major'
5955 shlibpath_var=LD_LIBRARY_PATH
5956 hardcode_into_libs=yes
5959 hpux9* | hpux10* | hpux11*)
5960 # Give a soname corresponding to the major version so that dld.sl refuses to
5961 # link against other versions.
5962 dynamic_linker="$host_os dld.sl"
5966 shlibpath_var=SHLIB_PATH
5967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5968 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5969 soname_spec='${libname}${release}.sl$major'
5970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5971 postinstall_cmds='chmod 555 $lib'
5978 soname_spec='${libname}${release}.so$major'
5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5985 case $LD in # libtool.m4 will add one of these switches to LD
5986 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5987 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5988 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5989 *) libsuff= shlibsuff= libmagic=never-match;;
5993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5994 shlibpath_overrides_runpath=no
5995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5999 # No shared lib support for Linux oldld, aout, or coff.
6000 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6004 # This must be Linux ELF.
6009 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6010 soname_spec='${libname}${release}.so$major'
6011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6012 shlibpath_var=LD_LIBRARY_PATH
6013 shlibpath_overrides_runpath=no
6014 # This implies no fast_install, which is unacceptable.
6015 # Some rework will be needed to allow for fast_install
6016 # before this can be enabled.
6017 hardcode_into_libs=yes
6019 # We used to test for /lib/ld.so.1 and disable shared libraries on
6020 # powerpc, because MkLinux only supported shared libraries with the
6021 # GNU dynamic linker. Since this was broken with cross compilers,
6022 # most powerpc-linux boxes support dynamic linking these days and
6023 # people can always --disable-shared, the test was removed, and we
6024 # assume the GNU/Linux dynamic linker is in use.
6025 dynamic_linker='GNU/Linux ld.so'
6032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6033 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6035 dynamic_linker='NetBSD (a.out) ld.so'
6037 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6038 soname_spec='${libname}${release}.so$major'
6039 dynamic_linker='NetBSD ld.elf_so'
6041 shlibpath_var=LD_LIBRARY_PATH
6042 shlibpath_overrides_runpath=yes
6043 hardcode_into_libs=yes
6048 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6049 shlibpath_var=LD_LIBRARY_PATH
6050 shlibpath_overrides_runpath=yes
6057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6059 openbsd2.[89] | openbsd2.[89].*)
6060 shlibpath_overrides_runpath=no
6063 shlibpath_overrides_runpath=yes
6067 shlibpath_overrides_runpath=yes
6069 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6071 shlibpath_var=LD_LIBRARY_PATH
6075 libname_spec='$name'
6077 library_names_spec='$libname.dll $libname.a'
6078 dynamic_linker='OS/2 ld.exe'
6079 shlibpath_var=LIBPATH
6082 osf3* | osf4* | osf5*)
6085 soname_spec='${libname}${release}.so'
6086 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6087 shlibpath_var=LD_LIBRARY_PATH
6088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6094 soname_spec='${libname}${release}.so$major'
6095 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6096 shlibpath_var=LD_LIBRARY_PATH
6103 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6104 soname_spec='${libname}${release}.so$major'
6105 shlibpath_var=LD_LIBRARY_PATH
6106 shlibpath_overrides_runpath=yes
6107 hardcode_into_libs=yes
6108 # ldd complains unless libraries are executable
6109 postinstall_cmds='chmod +x $lib'
6114 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6116 shlibpath_var=LD_LIBRARY_PATH
6117 shlibpath_overrides_runpath=yes
6118 if test "$with_gnu_ld" = yes; then
6124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6126 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6127 soname_spec='${libname}${release}.so$major'
6128 shlibpath_var=LD_LIBRARY_PATH
6129 case $host_vendor in
6131 shlibpath_overrides_runpath=no
6136 shlibpath_overrides_runpath=no
6137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6145 soname_spec='${libname}${release}.so$major'
6146 shlibpath_var=LD_LIBRARY_PATH
6153 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6154 soname_spec='${libname}${release}.so$major'
6155 shlibpath_var=LD_LIBRARY_PATH
6159 if test -d /usr/nec ;then
6161 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6162 soname_spec='$libname.so.$major'
6163 shlibpath_var=LD_LIBRARY_PATH
6171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6172 echo "${ECHO_T}$dynamic_linker" >&6
6173 test "$dynamic_linker" = no && can_build_shared=no
6175 # Report the final consequences.
6176 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6177 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6178 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6179 echo "${ECHO_T}$can_build_shared" >&6
6181 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6182 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6183 test "$can_build_shared" = "no" && enable_shared=no
6185 # On AIX, shared libraries and static libraries use the same namespace, and
6186 # are all built from PIC.
6189 test "$enable_shared" = yes && enable_static=no
6190 if test -n "$RANLIB"; then
6191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6192 postinstall_cmds='$RANLIB $lib'
6197 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6198 test "$enable_shared" = yes && enable_static=no
6202 echo "$as_me:$LINENO: result: $enable_shared" >&5
6203 echo "${ECHO_T}$enable_shared" >&6
6205 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6206 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6207 # Make sure either enable_shared or enable_static is yes.
6208 test "$enable_shared" = yes || enable_static=yes
6209 echo "$as_me:$LINENO: result: $enable_static" >&5
6210 echo "${ECHO_T}$enable_static" >&6
6212 if test "$hardcode_action" = relink; then
6213 # Fast installation is not supported
6214 enable_fast_install=no
6215 elif test "$shlibpath_overrides_runpath" = yes ||
6216 test "$enable_shared" = no; then
6217 # Fast installation is not necessary
6218 enable_fast_install=needless
6221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6222 if test "$GCC" = yes; then
6223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6226 if test "x$enable_dlopen" != xyes; then
6227 enable_dlopen=unknown
6228 enable_dlopen_self=unknown
6229 enable_dlopen_self_static=unknown
6236 lt_cv_dlopen="load_add_on"
6238 lt_cv_dlopen_self=yes
6241 cygwin* | mingw* | pw32*)
6242 lt_cv_dlopen="LoadLibrary"
6247 echo "$as_me:$LINENO: checking for shl_load" >&5
6248 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6249 if test "${ac_cv_func_shl_load+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 cat >conftest.$ac_ext <<_ACEOF
6253 #line $LINENO "configure"
6254 #include "confdefs.h"
6255 /* System header to define __stub macros and hopefully few prototypes,
6256 which can conflict with char shl_load (); below. */
6258 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6267 #ifdef F77_DUMMY_MAIN
6271 int F77_DUMMY_MAIN() { return 1; }
6276 /* The GNU C library defines this for functions which it implements
6277 to always fail with ENOSYS. Some functions are actually named
6278 something starting with __ and the normal name is an alias. */
6279 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291 (eval $ac_link) 2>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -s conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_func_shl_load=yes
6303 echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6305 ac_cv_func_shl_load=no
6307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6309 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6310 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6311 if test $ac_cv_func_shl_load = yes; then
6312 lt_cv_dlopen="shl_load"
6314 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6315 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6316 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_check_lib_save_LIBS=$LIBS
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6323 #include "confdefs.h"
6325 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6332 #ifdef F77_DUMMY_MAIN
6336 int F77_DUMMY_MAIN() { return 1; }
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_lib_dld_shl_load=yes
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 ac_cv_lib_dld_shl_load=no
6364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6365 LIBS=$ac_check_lib_save_LIBS
6367 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6368 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6369 if test $ac_cv_lib_dld_shl_load = yes; then
6370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6372 echo "$as_me:$LINENO: checking for dlopen" >&5
6373 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6374 if test "${ac_cv_func_dlopen+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char dlopen (); below. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6392 #ifdef F77_DUMMY_MAIN
6396 int F77_DUMMY_MAIN() { return 1; }
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_func_dlopen=yes
6428 echo "$as_me: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6430 ac_cv_func_dlopen=no
6432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6435 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6436 if test $ac_cv_func_dlopen = yes; then
6437 lt_cv_dlopen="dlopen"
6439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 ac_check_lib_save_LIBS=$LIBS
6446 cat >conftest.$ac_ext <<_ACEOF
6447 #line $LINENO "configure"
6448 #include "confdefs.h"
6450 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6457 #ifdef F77_DUMMY_MAIN
6461 int F77_DUMMY_MAIN() { return 1; }
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_lib_dl_dlopen=yes
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 ac_cv_lib_dl_dlopen=no
6489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490 LIBS=$ac_check_lib_save_LIBS
6492 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6493 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6494 if test $ac_cv_lib_dl_dlopen = yes; then
6495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6497 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6498 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6499 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 ac_check_lib_save_LIBS=$LIBS
6504 cat >conftest.$ac_ext <<_ACEOF
6505 #line $LINENO "configure"
6506 #include "confdefs.h"
6508 /* Override any gcc2 internal prototype to avoid an error. */
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6515 #ifdef F77_DUMMY_MAIN
6519 int F77_DUMMY_MAIN() { return 1; }
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_svld_dlopen=yes
6543 echo "$as_me: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 ac_cv_lib_svld_dlopen=no
6547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6548 LIBS=$ac_check_lib_save_LIBS
6550 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6551 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6552 if test $ac_cv_lib_svld_dlopen = yes; then
6553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6555 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6556 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6557 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_check_lib_save_LIBS=$LIBS
6562 cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6566 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6573 #ifdef F77_DUMMY_MAIN
6577 int F77_DUMMY_MAIN() { return 1; }
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -s conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_lib_dld_dld_link=yes
6601 echo "$as_me: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 ac_cv_lib_dld_dld_link=no
6605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6606 LIBS=$ac_check_lib_save_LIBS
6608 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6609 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6610 if test $ac_cv_lib_dld_dld_link = yes; then
6611 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6632 if test "x$lt_cv_dlopen" != xno; then
6638 case $lt_cv_dlopen in
6640 save_CPPFLAGS="$CPPFLAGS"
6641 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6643 save_LDFLAGS="$LDFLAGS"
6644 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6647 LIBS="$lt_cv_dlopen_libs $LIBS"
6649 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6650 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6651 if test "${lt_cv_dlopen_self+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 if test "$cross_compiling" = yes; then :
6655 lt_cv_dlopen_self=cross
6657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6658 lt_status=$lt_dlunknown
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6660 "configure"
6661 #include "confdefs.h"
6670 # define LT_DLGLOBAL RTLD_GLOBAL
6673 # define LT_DLGLOBAL DL_GLOBAL
6675 # define LT_DLGLOBAL 0
6679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6680 find out it does not work in some platform. */
6681 #ifndef LT_DLLAZY_OR_NOW
6683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6686 # define LT_DLLAZY_OR_NOW DL_LAZY
6689 # define LT_DLLAZY_OR_NOW RTLD_NOW
6692 # define LT_DLLAZY_OR_NOW DL_NOW
6694 # define LT_DLLAZY_OR_NOW 0
6702 extern "C" void exit (int);
6705 void fnord() { int i=42;}
6708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6709 int status = $lt_dlunknown;
6713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6715 /* dlclose (self); */
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6726 (./conftest; exit; ) 2>/dev/null
6729 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6730 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6731 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6734 # compilation failed
6735 lt_cv_dlopen_self=no
6742 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6743 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6745 if test "x$lt_cv_dlopen_self" = xyes; then
6746 LDFLAGS="$LDFLAGS $link_static_flag"
6747 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6748 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6749 if test "${lt_cv_dlopen_self_static+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 if test "$cross_compiling" = yes; then :
6753 lt_cv_dlopen_self_static=cross
6755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6756 lt_status=$lt_dlunknown
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6758 "configure"
6759 #include "confdefs.h"
6768 # define LT_DLGLOBAL RTLD_GLOBAL
6771 # define LT_DLGLOBAL DL_GLOBAL
6773 # define LT_DLGLOBAL 0
6777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6778 find out it does not work in some platform. */
6779 #ifndef LT_DLLAZY_OR_NOW
6781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6784 # define LT_DLLAZY_OR_NOW DL_LAZY
6787 # define LT_DLLAZY_OR_NOW RTLD_NOW
6790 # define LT_DLLAZY_OR_NOW DL_NOW
6792 # define LT_DLLAZY_OR_NOW 0
6800 extern "C" void exit (int);
6803 void fnord() { int i=42;}
6806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6807 int status = $lt_dlunknown;
6811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6812 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6813 /* dlclose (self); */
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6824 (./conftest; exit; ) 2>/dev/null
6827 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6828 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6829 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6832 # compilation failed
6833 lt_cv_dlopen_self_static=no
6840 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6841 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6844 CPPFLAGS="$save_CPPFLAGS"
6845 LDFLAGS="$save_LDFLAGS"
6850 case $lt_cv_dlopen_self in
6851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6852 *) enable_dlopen_self=unknown ;;
6855 case $lt_cv_dlopen_self_static in
6856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6857 *) enable_dlopen_self_static=unknown ;;
6862 if test "$enable_shared" = yes && test "$GCC" = yes; then
6863 case $archive_cmds in
6865 # FIXME: we may have to deal with multi-command sequences.
6868 # Test whether the compiler implicitly links with -lc since on some
6869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6870 # to ld, don't add -lc before -lgcc.
6871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6873 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 echo 'static int dummy;' > conftest.$ac_ext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; then
6886 libobjs=conftest.$ac_objext
6888 wl=$lt_cv_prog_cc_wl
6894 save_allow_undefined_flag=$allow_undefined_flag
6895 allow_undefined_flag=
6896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }
6902 lt_cv_archive_cmds_need_lc=no
6904 lt_cv_archive_cmds_need_lc=yes
6906 allow_undefined_flag=$save_allow_undefined_flag
6908 cat conftest.err 1>&5
6912 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6913 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6917 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6919 # The second clause should only fire when bootstrapping the
6920 # libtool distribution, otherwise you forgot to ship ltmain.sh
6921 # with your package, and you will get complaints that there are
6922 # no rules to generate ltmain.sh.
6923 if test -f "$ltmain"; then
6926 # If there is no Makefile yet, we rely on a make rule to execute
6927 # `config.status --recheck' to rerun these tests and create the
6928 # libtool script then.
6929 test -f Makefile && make "$ltmain"
6932 if test -f "$ltmain"; then
6933 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6936 echo creating $ofile
6938 # Now quote all the things that may contain metacharacters while being
6939 # careful not to overquote the AC_SUBSTed values. We take copies of the
6940 # variables and quote the copies for generation of the libtool script.
6941 for var in echo old_CC old_CFLAGS \
6942 AR AR_FLAGS CC LD LN_S NM SHELL \
6943 reload_flag reload_cmds wl \
6944 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6945 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6946 library_names_spec soname_spec \
6947 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6948 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6949 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6950 old_striplib striplib file_magic_cmd export_symbols_cmds \
6951 deplibs_check_method allow_undefined_flag no_undefined_flag \
6952 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6953 global_symbol_to_c_name_address \
6954 hardcode_libdir_flag_spec hardcode_libdir_separator \
6955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6956 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6959 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6960 old_postinstall_cmds | old_postuninstall_cmds | \
6961 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6962 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6963 postinstall_cmds | postuninstall_cmds | \
6964 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6965 # Double-quote double-evaled strings.
6966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6974 cat <<__EOF__ > "${ofile}T"
6977 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6978 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6981 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6982 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6984 # This program is free software; you can redistribute it and/or modify
6985 # it under the terms of the GNU General Public License as published by
6986 # the Free Software Foundation; either version 2 of the License, or
6987 # (at your option) any later version.
6989 # This program is distributed in the hope that it will be useful, but
6990 # WITHOUT ANY WARRANTY; without even the implied warranty of
6991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6992 # General Public License for more details.
6994 # You should have received a copy of the GNU General Public License
6995 # along with this program; if not, write to the Free Software
6996 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6998 # As a special exception to the GNU General Public License, if you
6999 # distribute this file as part of a program that contains a
7000 # configuration script generated by Autoconf, you may include it under
7001 # the same distribution terms that you use for the rest of that program.
7003 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7004 Xsed="sed -e s/^X//"
7006 # The HP-UX ksh and POSIX shell print the target directory to stdout
7008 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7010 # ### BEGIN LIBTOOL CONFIG
7012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7014 # Shell to use when invoking shell scripts.
7017 # Whether or not to build shared libraries.
7018 build_libtool_libs=$enable_shared
7020 # Whether or not to build static libraries.
7021 build_old_libs=$enable_static
7023 # Whether or not to add -lc for building shared libraries.
7024 build_libtool_need_lc=$need_lc
7026 # Whether or not to optimize for fast installation.
7027 fast_install=$enable_fast_install
7030 host_alias=$host_alias
7033 # An echo program that does not interpret backslashes.
7038 AR_FLAGS=$lt_AR_FLAGS
7040 # The default C compiler.
7043 # Is the compiler the GNU C compiler?
7046 # The linker used to build libraries.
7049 # Whether we need hard or soft links.
7052 # A BSD-compatible nm program.
7055 # A symbol stripping program
7058 # Used to examine libraries when file_magic_cmd begins "file"
7059 MAGIC_CMD=$MAGIC_CMD
7061 # Used on cygwin: DLL creation program.
7064 # Used on cygwin: object dumper.
7067 # Used on cygwin: assembler.
7070 # The name of the directory that contains temporary libtool files.
7073 # How to create reloadable object files.
7074 reload_flag=$lt_reload_flag
7075 reload_cmds=$lt_reload_cmds
7077 # How to pass a linker flag through the compiler.
7080 # Object file suffix (normally "o").
7083 # Old archive suffix (normally "a").
7086 # Executable file suffix (normally "").
7089 # Additional compiler flags for building library objects.
7090 pic_flag=$lt_pic_flag
7093 # Does compiler simultaneously support -c and -o options?
7094 compiler_c_o=$lt_compiler_c_o
7096 # Can we write directly to a .lo ?
7097 compiler_o_lo=$lt_compiler_o_lo
7099 # Must we lock files when doing compilation ?
7100 need_locks=$lt_need_locks
7102 # Do we need the lib prefix for modules?
7103 need_lib_prefix=$need_lib_prefix
7105 # Do we need a version for libraries?
7106 need_version=$need_version
7108 # Whether dlopen is supported.
7109 dlopen_support=$enable_dlopen
7111 # Whether dlopen of programs is supported.
7112 dlopen_self=$enable_dlopen_self
7114 # Whether dlopen of statically linked programs is supported.
7115 dlopen_self_static=$enable_dlopen_self_static
7117 # Compiler flag to prevent dynamic linking.
7118 link_static_flag=$lt_link_static_flag
7120 # Compiler flag to turn off builtin functions.
7121 no_builtin_flag=$lt_no_builtin_flag
7123 # Compiler flag to allow reflexive dlopens.
7124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7126 # Compiler flag to generate shared objects directly from archives.
7127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7129 # Compiler flag to generate thread-safe objects.
7130 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7132 # Library versioning type.
7133 version_type=$version_type
7135 # Format of library name prefix.
7136 libname_spec=$lt_libname_spec
7138 # List of archive names. First name is the real one, the rest are links.
7139 # The last name is the one that the linker finds with -lNAME.
7140 library_names_spec=$lt_library_names_spec
7142 # The coded name of the library, if different from the real name.
7143 soname_spec=$lt_soname_spec
7145 # Commands used to build and install an old-style archive.
7147 old_archive_cmds=$lt_old_archive_cmds
7148 old_postinstall_cmds=$lt_old_postinstall_cmds
7149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7151 # Create an old-style archive from a shared archive.
7152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7154 # Create a temporary old-style archive to link instead of a shared archive.
7155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7157 # Commands used to build and install a shared archive.
7158 archive_cmds=$lt_archive_cmds
7159 archive_expsym_cmds=$lt_archive_expsym_cmds
7160 postinstall_cmds=$lt_postinstall_cmds
7161 postuninstall_cmds=$lt_postuninstall_cmds
7163 # Commands to strip libraries.
7164 old_striplib=$lt_old_striplib
7165 striplib=$lt_striplib
7167 # Method to check whether dependent libraries are shared objects.
7168 deplibs_check_method=$lt_deplibs_check_method
7170 # Command to use when deplibs_check_method == file_magic.
7171 file_magic_cmd=$lt_file_magic_cmd
7173 # Flag that allows shared libraries with undefined symbols to be built.
7174 allow_undefined_flag=$lt_allow_undefined_flag
7176 # Flag that forces no undefined symbols.
7177 no_undefined_flag=$lt_no_undefined_flag
7179 # Commands used to finish a libtool library installation in a directory.
7180 finish_cmds=$lt_finish_cmds
7182 # Same as above, but a single script fragment to be evaled but not shown.
7183 finish_eval=$lt_finish_eval
7185 # Take the output of nm and produce a listing of raw symbols and C names.
7186 global_symbol_pipe=$lt_global_symbol_pipe
7188 # Transform the output of nm in a proper C declaration
7189 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7191 # Transform the output of nm in a C name address pair
7192 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7194 # This is the shared library runtime path variable.
7195 runpath_var=$runpath_var
7197 # This is the shared library path variable.
7198 shlibpath_var=$shlibpath_var
7200 # Is shlibpath searched before the hard-coded library search path?
7201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7203 # How to hardcode a shared library path into an executable.
7204 hardcode_action=$hardcode_action
7206 # Whether we should hardcode library paths into libraries.
7207 hardcode_into_libs=$hardcode_into_libs
7209 # Flag to hardcode \$libdir into a binary during linking.
7210 # This must work even if \$libdir does not exist.
7211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7213 # Whether we need a single -rpath flag with a separated argument.
7214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7216 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7218 hardcode_direct=$hardcode_direct
7220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7222 hardcode_minus_L=$hardcode_minus_L
7224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7225 # the resulting binary.
7226 hardcode_shlibpath_var=$hardcode_shlibpath_var
7228 # Variables whose values should be saved in libtool wrapper scripts and
7229 # restored at relink time.
7230 variables_saved_for_relink="$variables_saved_for_relink"
7232 # Whether libtool must link a program against all its dependency libraries.
7233 link_all_deplibs=$link_all_deplibs
7235 # Compile-time system search path for libraries
7236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7238 # Run-time system search path for libraries
7239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7241 # Fix the shell variable \$srcfile for the compiler.
7242 fix_srcfile_path="$fix_srcfile_path"
7244 # Set to yes if exported symbols are required.
7245 always_export_symbols=$always_export_symbols
7247 # The commands to list exported symbols.
7248 export_symbols_cmds=$lt_export_symbols_cmds
7250 # The commands to extract the exported symbol list from a shared archive.
7251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7253 # Symbols that should not be listed in the preloaded symbols.
7254 exclude_expsyms=$lt_exclude_expsyms
7256 # Symbols that must always be exported.
7257 include_expsyms=$lt_include_expsyms
7259 # ### END LIBTOOL CONFIG
7265 cat <<\EOF >> "${ofile}T"
7267 # AIX sometimes has problems with the GCC collect2 program. For some
7268 # reason, if we set the COLLECT_NAMES environment variable, the problems
7269 # vanish in a puff of smoke.
7270 if test "X${COLLECT_NAMES+set}" != Xset; then
7272 export COLLECT_NAMES
7279 cygwin* | mingw* | pw32* | os2*)
7280 cat <<'EOF' >> "${ofile}T"
7281 # This is a source program that is used to create dlls on Windows
7282 # Don't remove nor modify the starting and closing comments
7283 # /* ltdll.c starts here */
7284 # #define WIN32_LEAN_AND_MEAN
7285 # #include <windows.h>
7286 # #undef WIN32_LEAN_AND_MEAN
7287 # #include <stdio.h>
7289 # #ifndef __CYGWIN__
7290 # # ifdef __CYGWIN32__
7291 # # define __CYGWIN__ __CYGWIN32__
7295 # #ifdef __cplusplus
7298 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7299 # #ifdef __cplusplus
7304 # #include <cygwin/cygwin_dll.h>
7305 # DECLARE_CYGWIN_DLL( DllMain );
7307 # HINSTANCE __hDllInstance_base;
7310 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7312 # __hDllInstance_base = hInst;
7315 # /* ltdll.c ends here */
7316 # This is a source program that is used to create import libraries
7317 # on Windows for dlls which lack them. Don't remove nor modify the
7318 # starting and closing comments
7319 # /* impgen.c starts here */
7320 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7322 # This file is part of GNU libtool.
7324 # This program is free software; you can redistribute it and/or modify
7325 # it under the terms of the GNU General Public License as published by
7326 # the Free Software Foundation; either version 2 of the License, or
7327 # (at your option) any later version.
7329 # This program is distributed in the hope that it will be useful,
7330 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7331 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7332 # GNU General Public License for more details.
7334 # You should have received a copy of the GNU General Public License
7335 # along with this program; if not, write to the Free Software
7336 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7339 # #include <stdio.h> /* for printf() */
7340 # #include <unistd.h> /* for open(), lseek(), read() */
7341 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7342 # #include <string.h> /* for strdup() */
7344 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7346 # #define O_BINARY 0
7349 # static unsigned int
7350 # pe_get16 (fd, offset)
7354 # unsigned char b[2];
7355 # lseek (fd, offset, SEEK_SET);
7357 # return b[0] + (b[1]<<8);
7360 # static unsigned int
7361 # pe_get32 (fd, offset)
7365 # unsigned char b[4];
7366 # lseek (fd, offset, SEEK_SET);
7368 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7371 # static unsigned int
7375 # unsigned char *b = ptr;
7376 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7385 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7386 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7387 # unsigned long name_rvas, nexp;
7388 # unsigned char *expdata, *erva;
7389 # char *filename, *dll_name;
7391 # filename = argv[1];
7393 # dll = open(filename, O_RDONLY|O_BINARY);
7397 # dll_name = filename;
7399 # for (i=0; filename[i]; i++)
7400 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7401 # dll_name = filename + i +1;
7403 # pe_header_offset = pe_get32 (dll, 0x3c);
7404 # opthdr_ofs = pe_header_offset + 4 + 20;
7405 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7407 # if (num_entries < 1) /* no exports */
7410 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7411 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7412 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7413 # secptr = (pe_header_offset + 4 + 20 +
7414 # pe_get16 (dll, pe_header_offset + 4 + 16));
7417 # for (i = 0; i < nsections; i++)
7420 # unsigned long secptr1 = secptr + 40 * i;
7421 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7422 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7423 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7424 # lseek(dll, secptr1, SEEK_SET);
7425 # read(dll, sname, 8);
7426 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7428 # expptr = fptr + (export_rva - vaddr);
7429 # if (export_rva + export_size > vaddr + vsize)
7430 # export_size = vsize - (export_rva - vaddr);
7435 # expdata = (unsigned char*)malloc(export_size);
7436 # lseek (dll, expptr, SEEK_SET);
7437 # read (dll, expdata, export_size);
7438 # erva = expdata - export_rva;
7440 # nexp = pe_as32 (expdata+24);
7441 # name_rvas = pe_as32 (expdata+32);
7443 # printf ("EXPORTS\n");
7444 # for (i = 0; i<nexp; i++)
7446 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7447 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7452 # /* impgen.c ends here */
7458 # We use sed instead of cat because bash on DJGPP gets confused if
7459 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7460 # text mode, it properly converts lines to CR/LF. This bash problem
7461 # is reportedly fixed, but why not run on old versions too?
7462 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7464 mv -f "${ofile}T" "$ofile" || \
7465 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7473 # This can be used to rebuild libtool when needed
7474 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7476 # Always use our own libtool.
7477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7479 # Prevent multiple expansion
7512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7514 if test "${ac_cv_header_stdc+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 #include "confdefs.h"
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7529 egrep -v '^ *\+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev/null; then
7534 if test -s conftest.err; then
7535 ac_cpp_err=$ac_c_preproc_warn_flag
7542 if test -z "$ac_cpp_err"; then
7543 ac_cv_header_stdc=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_cv_header_stdc=no
7549 rm -f conftest.err conftest.$ac_ext
7551 if test $ac_cv_header_stdc = yes; then
7552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7553 cat >conftest.$ac_ext <<_ACEOF
7554 #line $LINENO "configure"
7555 #include "confdefs.h"
7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7560 egrep "memchr" >/dev/null 2>&1; then
7563 ac_cv_header_stdc=no
7569 if test $ac_cv_header_stdc = yes; then
7570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7578 egrep "free" >/dev/null 2>&1; then
7581 ac_cv_header_stdc=no
7587 if test $ac_cv_header_stdc = yes; then
7588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7589 if test "$cross_compiling" = yes; then
7592 cat >conftest.$ac_ext <<_ACEOF
7593 #line $LINENO "configure"
7594 #include "confdefs.h"
7596 #if ((' ' & 0x0FF) == 0x020)
7597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7600 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7601 || ('j' <= (c) && (c) <= 'r') \
7602 || ('s' <= (c) && (c) <= 'z'))
7603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7611 for (i = 0; i < 256; i++)
7612 if (XOR (islower (i), ISLOWER (i))
7613 || toupper (i) != TOUPPER (i))
7618 rm -f conftest$ac_exeext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620 (eval $ac_link) 2>&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7631 echo "$as_me: program exited with status $ac_status" >&5
7632 echo "$as_me: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7635 ac_cv_header_stdc=no
7637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7643 if test $ac_cv_header_stdc = yes; then
7645 cat >>confdefs.h <<\_ACEOF
7646 #define STDC_HEADERS 1
7651 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7652 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
7653 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 cat >conftest.$ac_ext <<_ACEOF
7657 #line $LINENO "configure"
7658 #include "confdefs.h"
7659 #include <sys/types.h>
7660 #ifdef F77_DUMMY_MAIN
7664 int F77_DUMMY_MAIN() { return 1; }
7669 return makedev(0, 0);
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try='test -s conftest$ac_exeext'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7686 ac_cv_header_sys_types_h_makedev=yes
7688 echo "$as_me: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 ac_cv_header_sys_types_h_makedev=no
7692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7695 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7696 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
7698 if test $ac_cv_header_sys_types_h_makedev = no; then
7699 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7700 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7701 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
7702 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7706 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
7708 # Is the header compilable?
7709 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7710 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 #include "confdefs.h"
7714 $ac_includes_default
7715 #include <sys/mkdev.h>
7717 rm -f conftest.$ac_objext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719 (eval $ac_compile) 2>&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_header_compiler=yes
7731 echo "$as_me: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 ac_header_compiler=no
7735 rm -f conftest.$ac_objext conftest.$ac_ext
7736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7737 echo "${ECHO_T}$ac_header_compiler" >&6
7739 # Is the header present?
7740 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7741 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
7742 cat >conftest.$ac_ext <<_ACEOF
7743 #line $LINENO "configure"
7744 #include "confdefs.h"
7745 #include <sys/mkdev.h>
7747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7750 egrep -v '^ *\+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } >/dev/null; then
7755 if test -s conftest.err; then
7756 ac_cpp_err=$ac_c_preproc_warn_flag
7763 if test -z "$ac_cpp_err"; then
7764 ac_header_preproc=yes
7766 echo "$as_me: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 ac_header_preproc=no
7770 rm -f conftest.err conftest.$ac_ext
7771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7772 echo "${ECHO_T}$ac_header_preproc" >&6
7774 # So? What about this header?
7775 case $ac_header_compiler:$ac_header_preproc in
7777 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7778 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7780 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
7782 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7783 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7784 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7785 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7786 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7787 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
7789 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7790 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
7791 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 ac_cv_header_sys_mkdev_h=$ac_header_preproc
7796 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7797 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
7800 if test $ac_cv_header_sys_mkdev_h = yes; then
7802 cat >>confdefs.h <<\_ACEOF
7803 #define MAJOR_IN_MKDEV 1
7810 if test $ac_cv_header_sys_mkdev_h = no; then
7811 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7812 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7813 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7814 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7818 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7820 # Is the header compilable?
7821 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7822 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826 $ac_includes_default
7827 #include <sys/sysmacros.h>
7829 rm -f conftest.$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_header_compiler=yes
7843 echo "$as_me: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7845 ac_header_compiler=no
7847 rm -f conftest.$ac_objext conftest.$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7849 echo "${ECHO_T}$ac_header_compiler" >&6
7851 # Is the header present?
7852 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7853 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7857 #include <sys/sysmacros.h>
7859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7862 egrep -v '^ *\+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } >/dev/null; then
7867 if test -s conftest.err; then
7868 ac_cpp_err=$ac_c_preproc_warn_flag
7875 if test -z "$ac_cpp_err"; then
7876 ac_header_preproc=yes
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 ac_header_preproc=no
7882 rm -f conftest.err conftest.$ac_ext
7883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 echo "${ECHO_T}$ac_header_preproc" >&6
7886 # So? What about this header?
7887 case $ac_header_compiler:$ac_header_preproc in
7889 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7890 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7892 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
7894 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7899 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
7901 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7902 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7909 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7912 if test $ac_cv_header_sys_sysmacros_h = yes; then
7914 cat >>confdefs.h <<\_ACEOF
7915 #define MAJOR_IN_SYSMACROS 1
7924 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7925 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7926 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 #include <sys/types.h>
7933 #include <sys/wait.h>
7935 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7938 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7941 #ifdef F77_DUMMY_MAIN
7945 int F77_DUMMY_MAIN() { return 1; }
7952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_header_sys_wait_h=yes
7971 echo "$as_me: failed program was:" >&5
7972 cat conftest.$ac_ext >&5
7973 ac_cv_header_sys_wait_h=no
7975 rm -f conftest.$ac_objext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7978 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7979 if test $ac_cv_header_sys_wait_h = yes; then
7981 cat >>confdefs.h <<\_ACEOF
7982 #define HAVE_SYS_WAIT_H 1
7988 for ac_header in stdint.h
7990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992 echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8000 # Is the header compilable?
8001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line $LINENO "configure"
8005 #include "confdefs.h"
8006 $ac_includes_default
8007 #include <$ac_header>
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -s conftest.$ac_objext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_header_compiler=yes
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 ac_header_compiler=no
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8029 echo "${ECHO_T}$ac_header_compiler" >&6
8031 # Is the header present?
8032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8034 cat >conftest.$ac_ext <<_ACEOF
8035 #line $LINENO "configure"
8036 #include "confdefs.h"
8037 #include <$ac_header>
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 egrep -v '^ *\+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } >/dev/null; then
8047 if test -s conftest.err; then
8048 ac_cpp_err=$ac_c_preproc_warn_flag
8055 if test -z "$ac_cpp_err"; then
8056 ac_header_preproc=yes
8058 echo "$as_me: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8060 ac_header_preproc=no
8062 rm -f conftest.err conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064 echo "${ECHO_T}$ac_header_preproc" >&6
8066 # So? What about this header?
8067 case $ac_header_compiler:$ac_header_preproc in
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 eval "$as_ac_Header=$ac_header_preproc"
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093 cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8103 for ac_header in fcntl.h locale.h
8105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 # Is the header compilable?
8116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 $ac_includes_default
8122 #include <$ac_header>
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_header_compiler=no
8142 rm -f conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 #include <$ac_header>
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 egrep -v '^ *\+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8170 if test -z "$ac_cpp_err"; then
8171 ac_header_preproc=yes
8173 echo "$as_me: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 ac_header_preproc=no
8177 rm -f conftest.err conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6
8181 # So? What about this header?
8182 case $ac_header_compiler:$ac_header_preproc in
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8196 echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 eval "$as_ac_Header=$ac_header_preproc"
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8208 cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8219 for ac_header in sys/mman.h sys/stat.h sys/types.h
8221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8223 echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8231 # Is the header compilable?
8232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237 $ac_includes_default
8238 #include <$ac_header>
8240 rm -f conftest.$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest.$ac_objext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_header_compiler=yes
8254 echo "$as_me: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 ac_header_compiler=no
8258 rm -f conftest.$ac_objext conftest.$ac_ext
8259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8260 echo "${ECHO_T}$ac_header_compiler" >&6
8262 # Is the header present?
8263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 #include "confdefs.h"
8268 #include <$ac_header>
8270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8273 egrep -v '^ *\+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } >/dev/null; then
8278 if test -s conftest.err; then
8279 ac_cpp_err=$ac_c_preproc_warn_flag
8286 if test -z "$ac_cpp_err"; then
8287 ac_header_preproc=yes
8289 echo "$as_me: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8291 ac_header_preproc=no
8293 rm -f conftest.err conftest.$ac_ext
8294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8295 echo "${ECHO_T}$ac_header_preproc" >&6
8297 # So? What about this header?
8298 case $ac_header_compiler:$ac_header_preproc in
8300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8312 echo "$as_me:$LINENO: checking for $ac_header" >&5
8313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 eval "$as_ac_Header=$ac_header_preproc"
8319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 for ac_header in stdint.h inttypes.h
8336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8338 echo "$as_me:$LINENO: checking for $ac_header" >&5
8339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8346 # Is the header compilable?
8347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 #include "confdefs.h"
8352 $ac_includes_default
8353 #include <$ac_header>
8355 rm -f conftest.$ac_objext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8357 (eval $ac_compile) 2>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -s conftest.$ac_objext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_header_compiler=yes
8369 echo "$as_me: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 ac_header_compiler=no
8373 rm -f conftest.$ac_objext conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8375 echo "${ECHO_T}$ac_header_compiler" >&6
8377 # Is the header present?
8378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8380 cat >conftest.$ac_ext <<_ACEOF
8381 #line $LINENO "configure"
8382 #include "confdefs.h"
8383 #include <$ac_header>
8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8388 egrep -v '^ *\+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } >/dev/null; then
8393 if test -s conftest.err; then
8394 ac_cpp_err=$ac_c_preproc_warn_flag
8401 if test -z "$ac_cpp_err"; then
8402 ac_header_preproc=yes
8404 echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 ac_header_preproc=no
8408 rm -f conftest.err conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8410 echo "${ECHO_T}$ac_header_preproc" >&6
8412 # So? What about this header?
8413 case $ac_header_compiler:$ac_header_preproc in
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8427 echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 eval "$as_ac_Header=$ac_header_preproc"
8434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8448 for ac_header in unistd.h
8450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8452 echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8460 # Is the header compilable?
8461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 #include "confdefs.h"
8466 $ac_includes_default
8467 #include <$ac_header>
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471 (eval $ac_compile) 2>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -s conftest.$ac_objext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_header_compiler=yes
8483 echo "$as_me: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8485 ac_header_compiler=no
8487 rm -f conftest.$ac_objext conftest.$ac_ext
8488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8489 echo "${ECHO_T}$ac_header_compiler" >&6
8491 # Is the header present?
8492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8496 #include "confdefs.h"
8497 #include <$ac_header>
8499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8502 egrep -v '^ *\+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } >/dev/null; then
8507 if test -s conftest.err; then
8508 ac_cpp_err=$ac_c_preproc_warn_flag
8515 if test -z "$ac_cpp_err"; then
8516 ac_header_preproc=yes
8518 echo "$as_me: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8520 ac_header_preproc=no
8522 rm -f conftest.err conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8524 echo "${ECHO_T}$ac_header_preproc" >&6
8526 # So? What about this header?
8527 case $ac_header_compiler:$ac_header_preproc in
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 eval "$as_ac_Header=$ac_header_preproc"
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562 for ac_header in getopt.h
8564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574 # Is the header compilable?
8575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 #line $LINENO "configure"
8579 #include "confdefs.h"
8580 $ac_includes_default
8581 #include <$ac_header>
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -s conftest.$ac_objext'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 ac_header_compiler=yes
8597 echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 ac_header_compiler=no
8601 rm -f conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 #line $LINENO "configure"
8610 #include "confdefs.h"
8611 #include <$ac_header>
8613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8616 egrep -v '^ *\+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } >/dev/null; then
8621 if test -s conftest.err; then
8622 ac_cpp_err=$ac_c_preproc_warn_flag
8629 if test -z "$ac_cpp_err"; then
8630 ac_header_preproc=yes
8632 echo "$as_me: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 ac_header_preproc=no
8636 rm -f conftest.err conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8638 echo "${ECHO_T}$ac_header_preproc" >&6
8640 # So? What about this header?
8641 case $ac_header_compiler:$ac_header_preproc in
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8655 echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 eval "$as_ac_Header=$ac_header_preproc"
8662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8667 cat >>confdefs.h <<_ACEOF
8668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676 for ac_header in locale.h
8678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo "$as_me:$LINENO: checking for $ac_header" >&5
8681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8688 # Is the header compilable?
8689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 #include "confdefs.h"
8694 $ac_includes_default
8695 #include <$ac_header>
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699 (eval $ac_compile) 2>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_header_compiler=yes
8711 echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 ac_header_compiler=no
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8717 echo "${ECHO_T}$ac_header_compiler" >&6
8719 # Is the header present?
8720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <$ac_header>
8727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8730 egrep -v '^ *\+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null; then
8735 if test -s conftest.err; then
8736 ac_cpp_err=$ac_c_preproc_warn_flag
8743 if test -z "$ac_cpp_err"; then
8744 ac_header_preproc=yes
8746 echo "$as_me: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 ac_header_preproc=no
8750 rm -f conftest.err conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8752 echo "${ECHO_T}$ac_header_preproc" >&6
8754 # So? What about this header?
8755 case $ac_header_compiler:$ac_header_preproc in
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8769 echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 eval "$as_ac_Header=$ac_header_preproc"
8776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8790 for ac_header in utime.h
8792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794 echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8802 # Is the header compilable?
8803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8808 $ac_includes_default
8809 #include <$ac_header>
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_header_compiler=yes
8825 echo "$as_me: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 ac_header_compiler=no
8829 rm -f conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8831 echo "${ECHO_T}$ac_header_compiler" >&6
8833 # Is the header present?
8834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 #include <$ac_header>
8841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8844 egrep -v '^ *\+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } >/dev/null; then
8849 if test -s conftest.err; then
8850 ac_cpp_err=$ac_c_preproc_warn_flag
8857 if test -z "$ac_cpp_err"; then
8858 ac_header_preproc=yes
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 ac_header_preproc=no
8864 rm -f conftest.err conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6
8868 # So? What about this header?
8869 case $ac_header_compiler:$ac_header_preproc in
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8883 echo "$as_me:$LINENO: checking for $ac_header" >&5
8884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 eval "$as_ac_Header=$ac_header_preproc"
8890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8904 for ac_header in sys/utime.h
8906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908 echo "$as_me:$LINENO: checking for $ac_header" >&5
8909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8916 # Is the header compilable?
8917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 #include "confdefs.h"
8922 $ac_includes_default
8923 #include <$ac_header>
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_header_compiler=yes
8939 echo "$as_me: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8941 ac_header_compiler=no
8943 rm -f conftest.$ac_objext conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945 echo "${ECHO_T}$ac_header_compiler" >&6
8947 # Is the header present?
8948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8952 #include "confdefs.h"
8953 #include <$ac_header>
8955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958 egrep -v '^ *\+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } >/dev/null; then
8963 if test -s conftest.err; then
8964 ac_cpp_err=$ac_c_preproc_warn_flag
8971 if test -z "$ac_cpp_err"; then
8972 ac_header_preproc=yes
8974 echo "$as_me: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 ac_header_preproc=no
8978 rm -f conftest.err conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 echo "${ECHO_T}$ac_header_preproc" >&6
8982 # So? What about this header?
8983 case $ac_header_compiler:$ac_header_preproc in
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8997 echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 eval "$as_ac_Header=$ac_header_preproc"
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9009 cat >>confdefs.h <<_ACEOF
9010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018 for ac_header in wchar.h
9020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022 echo "$as_me:$LINENO: checking for $ac_header" >&5
9023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9030 # Is the header compilable?
9031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 #include "confdefs.h"
9036 $ac_includes_default
9037 #include <$ac_header>
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_header_compiler=yes
9053 echo "$as_me: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 ac_header_compiler=no
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9067 #include <$ac_header>
9069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9072 egrep -v '^ *\+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } >/dev/null; then
9077 if test -s conftest.err; then
9078 ac_cpp_err=$ac_c_preproc_warn_flag
9085 if test -z "$ac_cpp_err"; then
9086 ac_header_preproc=yes
9088 echo "$as_me: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 ac_header_preproc=no
9092 rm -f conftest.err conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9094 echo "${ECHO_T}$ac_header_preproc" >&6
9096 # So? What about this header?
9097 case $ac_header_compiler:$ac_header_preproc in
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9111 echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 eval "$as_ac_Header=$ac_header_preproc"
9118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
9133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 ac_cv_prog_cc_stdc=no
9139 cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 #include "confdefs.h"
9144 #include <sys/types.h>
9145 #include <sys/stat.h>
9146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9147 struct buf { int x; };
9148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9149 static char *e (p, i)
9155 static char *f (char * (*g) (char **, int), char **p, ...)
9160 s = g (p, va_arg (v,int));
9164 int test (int i, double x);
9165 struct s1 {int (*f) (int a);};
9166 struct s2 {int (*f) (double a);};
9167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9170 #ifdef F77_DUMMY_MAIN
9174 int F77_DUMMY_MAIN() { return 1; }
9179 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9184 # Don't try gcc -ansi; that turns off useful extensions and
9185 # breaks some systems' header files.
9186 # AIX -qlanglvl=ansi
9187 # Ultrix and OSF/1 -std1
9188 # HP-UX 10.20 and later -Ae
9189 # HP-UX older versions -Aa -D_HPUX_SOURCE
9190 # SVR4 -Xc -D__EXTENSIONS__
9191 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9193 CC="$ac_save_CC $ac_arg"
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -s conftest.$ac_objext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_prog_cc_stdc=$ac_arg
9209 echo "$as_me: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9212 rm -f conftest.$ac_objext
9214 rm -f conftest.$ac_ext conftest.$ac_objext
9219 case "x$ac_cv_prog_cc_stdc" in
9221 echo "$as_me:$LINENO: result: none needed" >&5
9222 echo "${ECHO_T}none needed" >&6 ;;
9224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
9225 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9226 CC="$CC $ac_cv_prog_cc_stdc" ;;
9229 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9231 if test "${ac_cv_c_const+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 #include "confdefs.h"
9238 #ifdef F77_DUMMY_MAIN
9242 int F77_DUMMY_MAIN() { return 1; }
9247 /* FIXME: Include the comments suggested by Paul. */
9249 /* Ultrix mips cc rejects this. */
9250 typedef int charset[2];
9252 /* SunOS 4.1.1 cc rejects this. */
9253 char const *const *ccp;
9255 /* NEC SVR4.0.2 mips cc rejects this. */
9256 struct point {int x, y;};
9257 static struct point const zero = {0,0};
9258 /* AIX XL C 1.02.0.0 rejects this.
9259 It does not let you subtract one const X* pointer from another in
9260 an arm of an if-expression whose if-part is not a constant
9262 const char *g = "string";
9263 ccp = &g + (g ? g-g : 0);
9264 /* HPUX 7.0 cc rejects these. */
9267 ccp = (char const *const *) p;
9268 { /* SCO 3.2v4 cc rejects this. */
9270 char const *s = 0 ? (char *) 0 : (char const *) 0;
9274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9276 const int *foo = &x[0];
9279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9280 typedef const int *iptr;
9284 { /* AIX XL C 1.02.0.0 rejects this saying
9285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9286 struct s { int j; const int *ap[3]; };
9287 struct s *b; b->j = 5;
9289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9298 rm -f conftest.$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -s conftest.$ac_objext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9312 echo "$as_me: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9316 rm -f conftest.$ac_objext conftest.$ac_ext
9318 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9319 echo "${ECHO_T}$ac_cv_c_const" >&6
9320 if test $ac_cv_c_const = no; then
9322 cat >>confdefs.h <<\_ACEOF
9328 echo "$as_me:$LINENO: checking for off_t" >&5
9329 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9330 if test "${ac_cv_type_off_t+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9335 #include "confdefs.h"
9336 $ac_includes_default
9337 #ifdef F77_DUMMY_MAIN
9341 int F77_DUMMY_MAIN() { return 1; }
9354 rm -f conftest.$ac_objext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356 (eval $ac_compile) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_type_off_t=yes
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9375 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9376 if test $ac_cv_type_off_t = yes; then
9380 cat >>confdefs.h <<_ACEOF
9386 echo "$as_me:$LINENO: checking for size_t" >&5
9387 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9388 if test "${ac_cv_type_size_t+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 #include "confdefs.h"
9394 $ac_includes_default
9395 #ifdef F77_DUMMY_MAIN
9399 int F77_DUMMY_MAIN() { return 1; }
9406 if (sizeof (size_t))
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -s conftest.$ac_objext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_type_size_t=yes
9426 echo "$as_me: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9428 ac_cv_type_size_t=no
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9432 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9433 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9434 if test $ac_cv_type_size_t = yes; then
9438 cat >>confdefs.h <<_ACEOF
9439 #define size_t unsigned
9445 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
9446 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
9447 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 cat >conftest.$ac_ext <<_ACEOF
9451 #line $LINENO "configure"
9452 #include "confdefs.h"
9453 $ac_includes_default
9454 #ifdef F77_DUMMY_MAIN
9458 int F77_DUMMY_MAIN() { return 1; }
9463 static struct stat ac_aggr;
9464 if (ac_aggr.st_rdev)
9470 rm -f conftest.$ac_objext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472 (eval $ac_compile) 2>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_cv_member_struct_stat_st_rdev=yes
9484 echo "$as_me: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 ac_cv_member_struct_stat_st_rdev=no
9488 rm -f conftest.$ac_objext conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
9491 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
9492 if test $ac_cv_member_struct_stat_st_rdev = yes; then
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_STRUCT_STAT_ST_RDEV 1
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_ST_RDEV 1
9506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9508 if test "${ac_cv_struct_tm+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #include <sys/types.h>
9517 #ifdef F77_DUMMY_MAIN
9521 int F77_DUMMY_MAIN() { return 1; }
9526 struct tm *tp; tp->tm_sec;
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
9537 { ac_try='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_struct_tm=time.h
9545 echo "$as_me: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 ac_cv_struct_tm=sys/time.h
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9551 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9552 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9553 if test $ac_cv_struct_tm = sys/time.h; then
9555 cat >>confdefs.h <<\_ACEOF
9556 #define TM_IN_SYS_TIME 1
9561 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
9562 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
9563 if test "${ac_cv_struct_tm_zone+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 #include "confdefs.h"
9569 #include <sys/types.h>
9570 #include <$ac_cv_struct_tm>
9571 #ifdef F77_DUMMY_MAIN
9575 int F77_DUMMY_MAIN() { return 1; }
9580 struct tm tm; tm.tm_zone;
9585 rm -f conftest.$ac_objext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -s conftest.$ac_objext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 ac_cv_struct_tm_zone=yes
9599 echo "$as_me: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 ac_cv_struct_tm_zone=no
9603 rm -f conftest.$ac_objext conftest.$ac_ext
9605 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
9606 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
9607 if test "$ac_cv_struct_tm_zone" = yes; then
9609 cat >>confdefs.h <<\_ACEOF
9610 #define HAVE_TM_ZONE 1
9614 echo "$as_me:$LINENO: checking for tzname" >&5
9615 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9616 if test "${ac_cv_var_tzname+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9623 #ifndef tzname /* For SGI. */
9624 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9626 #ifdef F77_DUMMY_MAIN
9630 int F77_DUMMY_MAIN() { return 1; }
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_var_tzname=yes
9654 echo "$as_me: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9660 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9661 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9662 if test $ac_cv_var_tzname = yes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_TZNAME 1
9670 echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
9671 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6
9672 if test "${ac_cv_struct_tm_isdst+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9676 #line $LINENO "configure"
9677 #include "confdefs.h"
9678 #include <sys/types.h>
9679 #include <$ac_cv_struct_tm>
9680 #ifdef F77_DUMMY_MAIN
9684 int F77_DUMMY_MAIN() { return 1; }
9689 struct tm tm; tm.tm_isdst;
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -s conftest.$ac_objext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_struct_tm_isdst=yes
9708 echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_struct_tm_isdst=no
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
9715 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6
9716 if test "$ac_cv_struct_tm_isdst" = yes; then
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_TM_ISDST 1
9722 echo "$as_me:$LINENO: checking for daylight" >&5
9723 echo $ECHO_N "checking for daylight... $ECHO_C" >&6
9724 if test "${ac_cv_var_daylight+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9729 #include "confdefs.h"
9731 #ifndef daylight /* In case IRIX #defines this, too */
9732 extern int daylight;
9734 #ifdef F77_DUMMY_MAIN
9738 int F77_DUMMY_MAIN() { return 1; }
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_var_daylight=yes
9762 echo "$as_me: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 ac_cv_var_daylight=no
9766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9768 echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
9769 echo "${ECHO_T}$ac_cv_var_daylight" >&6
9770 if test $ac_cv_var_daylight = yes; then
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_DAYLIGHT 1
9778 # Check whether --enable-largefile or --disable-largefile was given.
9779 if test "${enable_largefile+set}" = set; then
9780 enableval="$enable_largefile"
9783 if test "$enable_largefile" != no; then
9785 echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
9787 echo $ECHO_N "checking for special C compiler options needed for large files=
9789 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 ac_cv_sys_largefile_CC=no
9793 if test "$GCC" != yes; then
9794 # IRIX 6.2 and later do not support large files by default,
9795 # so use the C compiler's -n32 option if that helps.
9796 cat >conftest.$ac_ext <<_ACEOF
9797 #line $LINENO "configure"
9798 #include "confdefs.h"
9799 #include <sys/types.h>
9800 /* Check that off_t can represent 2**63 - 1 correctly.
9801 We can't simply "#define LARGE_OFF_T 9223372036854775807",
9802 since some C++ compilers masquerading as C compilers
9803 incorrectly reject 9223372036854775807. */
9804 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9806 && LARGE_OFF_T % 2147483647 == 1)
9809 #ifdef F77_DUMMY_MAIN
9813 int F77_DUMMY_MAIN() { return 1; }
9823 rm -f conftest.$ac_objext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9825 (eval $ac_compile) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -s conftest.$ac_objext'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9837 echo "$as_me: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9841 cat >conftest.$ac_ext <<_ACEOF
9842 #line $LINENO "configure"
9843 #include "confdefs.h"
9844 #include <sys/types.h>
9845 /* Check that off_t can represent 2**63 - 1 correctly.
9846 We can't simply "#define LARGE_OFF_T 9223372036854775807",
9847 since some C++ compilers masquerading as C compilers
9848 incorrectly reject 9223372036854775807. */
9849 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9851 && LARGE_OFF_T % 2147483647 == 1)
9854 #ifdef F77_DUMMY_MAIN
9858 int F77_DUMMY_MAIN() { return 1; }
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870 (eval $ac_compile) 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_sys_largefile_CC=' -n32'
9882 echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9885 rm -f conftest.$ac_objext conftest.$ac_ext
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9892 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9893 if test "$ac_cv_sys_largefile_CC" != no; then
9894 CC="$CC$ac_cv_sys_largefile_CC"
9897 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9898 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9899 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 ac_cv_sys_file_offset_bits=no
9903 cat >conftest.$ac_ext <<_ACEOF
9904 #line $LINENO "configure"
9905 #include "confdefs.h"
9906 #include <sys/types.h>
9907 /* Check that off_t can represent 2**63 - 1 correctly.
9908 We can't simply "#define LARGE_OFF_T 9223372036854775807",
9909 since some C++ compilers masquerading as C compilers
9910 incorrectly reject 9223372036854775807. */
9911 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9913 && LARGE_OFF_T % 2147483647 == 1)
9916 #ifdef F77_DUMMY_MAIN
9920 int F77_DUMMY_MAIN() { return 1; }
9930 rm -f conftest.$ac_objext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -s conftest.$ac_objext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9944 echo "$as_me: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 cat >conftest.$ac_ext <<_ACEOF
9947 #line $LINENO "configure"
9948 #include "confdefs.h"
9949 #define _FILE_OFFSET_BITS 64
9950 #include <sys/types.h>
9951 /* Check that off_t can represent 2**63 - 1 correctly.
9952 We can't simply "#define LARGE_OFF_T 9223372036854775807",
9953 since some C++ compilers masquerading as C compilers
9954 incorrectly reject 9223372036854775807. */
9955 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9957 && LARGE_OFF_T % 2147483647 == 1)
9961 #ifdef F77_DUMMY_MAIN
9965 int F77_DUMMY_MAIN() { return 1; }
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977 (eval $ac_compile) 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -s conftest.$ac_objext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_sys_file_offset_bits=64
9989 echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9992 rm -f conftest.$ac_objext conftest.$ac_ext
9994 rm -f conftest.$ac_objext conftest.$ac_ext
9996 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9997 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9998 if test "$ac_cv_sys_file_offset_bits" != no; then
10000 cat >>confdefs.h <<_ACEOF
10001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10005 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10006 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10007 if test "${ac_cv_sys_large_files+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 ac_cv_sys_large_files=no
10011 cat >conftest.$ac_ext <<_ACEOF
10012 #line $LINENO "configure"
10013 #include "confdefs.h"
10014 #include <sys/types.h>
10015 /* Check that off_t can represent 2**63 - 1 correctly.
10016 We can't simply "#define LARGE_OFF_T 9223372036854775807",
10017 since some C++ compilers masquerading as C compilers
10018 incorrectly reject 9223372036854775807. */
10019 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10021 && LARGE_OFF_T % 2147483647 == 1)
10024 #ifdef F77_DUMMY_MAIN
10025 # ifdef __cplusplus
10028 int F77_DUMMY_MAIN() { return 1; }
10038 rm -f conftest.$ac_objext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040 (eval $ac_compile) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -s conftest.$ac_objext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10052 echo "$as_me: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 cat >conftest.$ac_ext <<_ACEOF
10055 #line $LINENO "configure"
10056 #include "confdefs.h"
10057 #define _LARGE_FILES 1
10058 #include <sys/types.h>
10059 /* Check that off_t can represent 2**63 - 1 correctly.
10060 We can't simply "#define LARGE_OFF_T 9223372036854775807",
10061 since some C++ compilers masquerading as C compilers
10062 incorrectly reject 9223372036854775807. */
10063 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10065 && LARGE_OFF_T % 2147483647 == 1)
10069 #ifdef F77_DUMMY_MAIN
10070 # ifdef __cplusplus
10073 int F77_DUMMY_MAIN() { return 1; }
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -s conftest.$ac_objext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_sys_large_files=1
10097 echo "$as_me: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 rm -f conftest.$ac_objext conftest.$ac_ext
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10104 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10105 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10106 if test "$ac_cv_sys_large_files" != no; then
10108 cat >>confdefs.h <<_ACEOF
10109 #define _LARGE_FILES $ac_cv_sys_large_files
10117 for ac_header in stdlib.h
10119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10121 echo "$as_me:$LINENO: checking for $ac_header" >&5
10122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10129 # Is the header compilable?
10130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10135 $ac_includes_default
10136 #include <$ac_header>
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest.$ac_objext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_header_compiler=yes
10152 echo "$as_me: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 ac_header_compiler=no
10156 rm -f conftest.$ac_objext conftest.$ac_ext
10157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10158 echo "${ECHO_T}$ac_header_compiler" >&6
10160 # Is the header present?
10161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166 #include <$ac_header>
10168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10171 egrep -v '^ *\+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } >/dev/null; then
10176 if test -s conftest.err; then
10177 ac_cpp_err=$ac_c_preproc_warn_flag
10184 if test -z "$ac_cpp_err"; then
10185 ac_header_preproc=yes
10187 echo "$as_me: failed program was:" >&5
10188 cat conftest.$ac_ext >&5
10189 ac_header_preproc=no
10191 rm -f conftest.err conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193 echo "${ECHO_T}$ac_header_preproc" >&6
10195 # So? What about this header?
10196 case $ac_header_compiler:$ac_header_preproc in
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10210 echo "$as_me:$LINENO: checking for $ac_header" >&5
10211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 eval "$as_ac_Header=$ac_header_preproc"
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10222 cat >>confdefs.h <<_ACEOF
10223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10231 echo "$as_me:$LINENO: checking for mbstate_t" >&5
10232 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
10233 if test "${ac_cv_type_mbstate_t+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10237 #line $LINENO "configure"
10238 #include "confdefs.h"
10241 # include <stdlib.h>
10244 #ifdef F77_DUMMY_MAIN
10245 # ifdef __cplusplus
10248 int F77_DUMMY_MAIN() { return 1; }
10253 mbstate_t x; return sizeof x;
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_type_mbstate_t=yes
10272 echo "$as_me: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10274 ac_cv_type_mbstate_t=no
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
10279 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
10280 if test $ac_cv_type_mbstate_t = no; then
10282 cat >>confdefs.h <<\_ACEOF
10283 #define mbstate_t int
10288 echo "$as_me:$LINENO: checking for uint8_t" >&5
10289 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
10290 if test "${ac_cv_type_uint8_t+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10294 #line $LINENO "configure"
10295 #include "confdefs.h"
10297 #include <stdint.h>
10299 #include <sys/types.h>
10301 #include <stdlib.h>
10302 #include <stddef.h>
10305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10306 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10307 ac_cv_type_uint8_t=yes
10309 ac_cv_type_uint8_t=no
10314 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
10315 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
10316 if test $ac_cv_type_uint8_t = no; then
10317 cat >>confdefs.h <<\_ACEOF
10318 #define uint8_t unsigned char
10323 echo "$as_me:$LINENO: checking for uint16_t" >&5
10324 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
10325 if test "${ac_cv_type_uint16_t+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 #include "confdefs.h"
10332 #include <stdint.h>
10334 #include <sys/types.h>
10336 #include <stdlib.h>
10337 #include <stddef.h>
10340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10341 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10342 ac_cv_type_uint16_t=yes
10344 ac_cv_type_uint16_t=no
10349 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
10350 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
10351 if test $ac_cv_type_uint16_t = no; then
10352 cat >>confdefs.h <<\_ACEOF
10353 #define uint16_t unsigned short
10358 echo "$as_me:$LINENO: checking for uint32_t" >&5
10359 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10360 if test "${ac_cv_type_uint32_t+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10365 #include "confdefs.h"
10367 #include <stdint.h>
10369 #include <sys/types.h>
10371 #include <stdlib.h>
10372 #include <stddef.h>
10375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10376 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10377 ac_cv_type_uint32_t=yes
10379 ac_cv_type_uint32_t=no
10384 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10385 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
10386 if test $ac_cv_type_uint32_t = no; then
10387 cat >>confdefs.h <<\_ACEOF
10388 #define uint32_t unsigned int
10393 echo "$as_me:$LINENO: checking for int32_t" >&5
10394 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10395 if test "${ac_cv_type_int32_t+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10399 #line $LINENO "configure"
10400 #include "confdefs.h"
10402 #include <stdint.h>
10404 #include <sys/types.h>
10406 #include <stdlib.h>
10407 #include <stddef.h>
10410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10411 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10412 ac_cv_type_int32_t=yes
10414 ac_cv_type_int32_t=no
10419 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10420 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10421 if test $ac_cv_type_int32_t = no; then
10422 cat >>confdefs.h <<\_ACEOF
10423 #define int32_t int
10428 echo "$as_me:$LINENO: checking for long long" >&5
10429 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10430 if test "${ac_cv_c_long_long+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 if test "$GCC" = yes; then
10434 ac_cv_c_long_long=yes
10436 if test "$cross_compiling" = yes; then
10437 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10438 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10439 { (exit 1); exit 1; }; }
10441 cat >conftest.$ac_ext <<_ACEOF
10442 #line $LINENO "configure"
10443 #include "confdefs.h"
10446 exit(sizeof(long long) < sizeof(long)); }
10448 rm -f conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_cv_c_long_long=yes
10461 echo "$as_me: program exited with status $ac_status" >&5
10462 echo "$as_me: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 ( exit $ac_status )
10465 ac_cv_c_long_long=no
10467 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10471 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
10472 echo "${ECHO_T}$ac_cv_c_long_long" >&6
10473 if test $ac_cv_c_long_long = yes; then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_LONG_LONG 1
10480 if test $ac_cv_c_long_long = yes; then
10481 long64='unsigned long long';
10483 long64='unsigned long';
10485 echo "$as_me:$LINENO: checking for uint64_t" >&5
10486 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
10487 if test "${ac_cv_type_uint64_t+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10492 #include "confdefs.h"
10494 #include <stdint.h>
10496 #include <sys/types.h>
10498 #include <stdlib.h>
10499 #include <stddef.h>
10502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10503 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10504 eval "ac_cv_type_uint64_t=yes"
10506 eval "ac_cv_type_uint64_t=no"
10511 if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
10512 echo "$as_me:$LINENO: result: yes" >&5
10513 echo "${ECHO_T}yes" >&6
10515 echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6
10517 cat >>confdefs.h <<_ACEOF
10518 #define uint64_t $long64
10524 echo "$as_me:$LINENO: checking size of uint8_t" >&5
10525 echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
10526 if test "${ac_cv_sizeof_uint8_t+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 if test "$cross_compiling" = yes; then
10530 ac_cv_sizeof_uint8_t=0
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10534 #include "confdefs.h"
10536 #include <stdint.h>
10538 #include <sys/types.h>
10539 #ifdef STDC_HEADERS
10540 #include <stdlib.h>
10546 FILE *f=fopen("conftestval", "w");
10548 fprintf(f, "%d\n", sizeof(uint8_t));
10552 rm -f conftest$ac_exeext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554 (eval $ac_link) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_sizeof_uint8_t=`cat conftestval`
10565 echo "$as_me: program exited with status $ac_status" >&5
10566 echo "$as_me: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10568 ( exit $ac_status )
10569 ac_cv_sizeof_uint8_t=0
10571 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
10575 echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
10576 cat >>confdefs.h <<_ACEOF
10577 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
10582 echo "$as_me:$LINENO: checking size of uint16_t" >&5
10583 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
10584 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 if test "$cross_compiling" = yes; then
10588 ac_cv_sizeof_uint16_t=0
10590 cat >conftest.$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10592 #include "confdefs.h"
10594 #include <stdint.h>
10596 #include <sys/types.h>
10597 #ifdef STDC_HEADERS
10598 #include <stdlib.h>
10604 FILE *f=fopen("conftestval", "w");
10606 fprintf(f, "%d\n", sizeof(uint16_t));
10610 rm -f conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_sizeof_uint16_t=`cat conftestval`
10623 echo "$as_me: program exited with status $ac_status" >&5
10624 echo "$as_me: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 ( exit $ac_status )
10627 ac_cv_sizeof_uint16_t=0
10629 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
10633 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
10634 cat >>confdefs.h <<_ACEOF
10635 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
10640 echo "$as_me:$LINENO: checking size of uint32_t" >&5
10641 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
10642 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 if test "$cross_compiling" = yes; then
10646 ac_cv_sizeof_uint32_t=0
10648 cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10652 #include <stdint.h>
10654 #include <sys/types.h>
10655 #ifdef STDC_HEADERS
10656 #include <stdlib.h>
10662 FILE *f=fopen("conftestval", "w");
10664 fprintf(f, "%d\n", sizeof(uint32_t));
10668 rm -f conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_cv_sizeof_uint32_t=`cat conftestval`
10681 echo "$as_me: program exited with status $ac_status" >&5
10682 echo "$as_me: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10684 ( exit $ac_status )
10685 ac_cv_sizeof_uint32_t=0
10687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
10691 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
10692 cat >>confdefs.h <<_ACEOF
10693 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
10698 echo "$as_me:$LINENO: checking size of uint64_t" >&5
10699 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
10700 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 if test "$cross_compiling" = yes; then
10704 ac_cv_sizeof_uint64_t=0
10706 cat >conftest.$ac_ext <<_ACEOF
10707 #line $LINENO "configure"
10708 #include "confdefs.h"
10710 #include <stdint.h>
10712 #include <sys/types.h>
10713 #ifdef STDC_HEADERS
10714 #include <stdlib.h>
10720 FILE *f=fopen("conftestval", "w");
10722 fprintf(f, "%d\n", sizeof(uint64_t));
10726 rm -f conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_sizeof_uint64_t=`cat conftestval`
10739 echo "$as_me: program exited with status $ac_status" >&5
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 ( exit $ac_status )
10743 ac_cv_sizeof_uint64_t=0
10745 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
10749 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
10750 cat >>confdefs.h <<_ACEOF
10751 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
10766 for ac_func in mmap strerror strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth
10768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10769 echo "$as_me:$LINENO: checking for $ac_func" >&5
10770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10771 if eval "test \"\${$as_ac_var+set}\" = set"; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 cat >conftest.$ac_ext <<_ACEOF
10775 #line $LINENO "configure"
10776 #include "confdefs.h"
10777 /* System header to define __stub macros and hopefully few prototypes,
10778 which can conflict with char $ac_func (); below. */
10779 #include <assert.h>
10780 /* Override any gcc2 internal prototype to avoid an error. */
10784 /* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10789 #ifdef F77_DUMMY_MAIN
10790 # ifdef __cplusplus
10793 int F77_DUMMY_MAIN() { return 1; }
10798 /* The GNU C library defines this for functions which it implements
10799 to always fail with ENOSYS. Some functions are actually named
10800 something starting with __ and the normal name is an alias. */
10801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10813 (eval $ac_link) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -s conftest$ac_exeext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 eval "$as_ac_var=yes"
10825 echo "$as_me: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 eval "$as_ac_var=no"
10829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10833 if test `eval echo '${'$as_ac_var'}'` = yes; then
10834 cat >>confdefs.h <<_ACEOF
10835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
10844 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
10845 if test "${ac_cv_lib_z_gzopen+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 ac_check_lib_save_LIBS=$LIBS
10850 cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10852 #include "confdefs.h"
10854 /* Override any gcc2 internal prototype to avoid an error. */
10858 /* We use char because int might match the return type of a gcc2
10859 builtin and then its argument prototype would still apply. */
10861 #ifdef F77_DUMMY_MAIN
10862 # ifdef __cplusplus
10865 int F77_DUMMY_MAIN() { return 1; }
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877 (eval $ac_link) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -s conftest$ac_exeext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_lib_z_gzopen=yes
10889 echo "$as_me: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10891 ac_cv_lib_z_gzopen=no
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10896 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
10897 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
10898 if test $ac_cv_lib_z_gzopen = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define HAVE_LIBZ 1
10908 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
10910 cat >confcache <<\_ACEOF
10911 # This file is a shell script that caches the results of configure
10912 # tests run on this system so they can be shared between configure
10913 # scripts and configure runs, see configure's option --config-cache.
10914 # It is not useful on other systems. If it contains results you don't
10915 # want to keep, you may remove or edit it.
10917 # config.status only pays attention to the cache file if you give it
10918 # the --recheck option to rerun configure.
10920 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10922 # following values.
10926 # The following way of writing the cache mishandles newlines in values,
10927 # but we know of no workaround that is simple, portable, and efficient.
10928 # So, don't put newlines in cache variables' values.
10929 # Ultrix sh set writes to stderr and can't be redirected directly,
10930 # and sets the high bit in the cache file unless we assign to the vars.
10933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10935 # `set' does not quote correctly, so add quotes (double-quote
10936 # substitution turns \\\\ into \\, and sed turns \\ into \).
10939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10942 # `set' quotes correctly as required by POSIX, so do not add quotes.
10944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10955 if cmp -s $cache_file confcache; then :; else
10956 if test -w $cache_file; then
10957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10958 cat confcache >$cache_file
10960 echo "not updating unwritable cache $cache_file"
10965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10966 # Let make expand exec_prefix.
10967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10971 # trailing colons and then remove the whole line if VPATH becomes empty
10972 # (actually we leave an empty line to preserve line numbers).
10973 if test "x$srcdir" = x.; then
10974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10975 s/:*\$(srcdir):*/:/;
10976 s/:*\${srcdir}:*/:/;
10978 s/^\([^=]*=[ ]*\):*/\1/;
10984 DEFS=-DHAVE_CONFIG_H
10986 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
10987 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
10988 Usually this means the macro was only invoked conditionally." >&5
10989 echo "$as_me: error: conditional \"FSECT5\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&2;}
10991 { (exit 1); exit 1; }; }
10993 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10994 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10995 Usually this means the macro was only invoked conditionally." >&5
10996 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10997 Usually this means the macro was only invoked conditionally." >&2;}
10998 { (exit 1); exit 1; }; }
11001 : ${CONFIG_STATUS=./config.status}
11002 ac_clean_files_save=$ac_clean_files
11003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11004 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11005 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11006 cat >$CONFIG_STATUS <<_ACEOF
11008 # Generated by $as_me.
11009 # Run this file to recreate the current configuration.
11010 # Compiler output produced by configure, useful for debugging
11011 # configure, is in config.log if it exists.
11014 SHELL=\${CONFIG_SHELL-$SHELL}
11017 cat >>$CONFIG_STATUS <<\_ACEOF
11019 ## --------------------- ##
11020 ## M4sh Initialization. ##
11021 ## --------------------- ##
11023 # Be Bourne compatible
11024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11027 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11032 # Support unset when possible.
11033 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11039 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11040 { $as_unset LANG || test "${LANG+set}" != set; } ||
11041 { LANG=C; export LANG; }
11042 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11043 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11044 { LC_ALL=C; export LC_ALL; }
11045 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11046 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11047 { LC_TIME=C; export LC_TIME; }
11048 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11049 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11050 { LC_CTYPE=C; export LC_CTYPE; }
11051 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11052 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11053 { LANGUAGE=C; export LANGUAGE; }
11054 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11055 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11056 { LC_COLLATE=C; export LC_COLLATE; }
11057 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11058 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11059 { LC_NUMERIC=C; export LC_NUMERIC; }
11060 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11061 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11062 { LC_MESSAGES=C; export LC_MESSAGES; }
11065 # Name of the executable.
11066 as_me=`(basename "$0") 2>/dev/null ||
11067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11068 X"$0" : 'X\(//\)$' \| \
11069 X"$0" : 'X\(/\)$' \| \
11070 . : '\(.\)' 2>/dev/null ||
11072 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11073 /^X\/\(\/\/\)$/{ s//\1/; q; }
11074 /^X\/\(\/\).*/{ s//\1/; q; }
11077 # PATH needs CR, and LINENO needs CR and PATH.
11078 # Avoid depending upon Character Ranges.
11079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11082 as_cr_digits='0123456789'
11083 as_cr_alnum=$as_cr_Letters$as_cr_digits
11085 # The user is always right.
11086 if test "${PATH_SEPARATOR+set}" != set; then
11087 echo "#! /bin/sh" >conftest.sh
11088 echo "exit 0" >>conftest.sh
11089 chmod +x conftest.sh
11090 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11099 as_lineno_1=$LINENO
11100 as_lineno_2=$LINENO
11101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11102 test "x$as_lineno_1" != "x$as_lineno_2" &&
11103 test "x$as_lineno_3" = "x$as_lineno_2" || {
11104 # Find who we are. Look in the path if we contain no path at all
11107 *[\\/]* ) as_myself=$0 ;;
11108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11112 test -z "$as_dir" && as_dir=.
11113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11118 # We did not find ourselves, most probably we were run as `sh COMMAND'
11119 # in which case we are not to be found in the path.
11120 if test "x$as_myself" = x; then
11123 if test ! -f "$as_myself"; then
11124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11126 { (exit 1); exit 1; }; }
11128 case $CONFIG_SHELL in
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11134 test -z "$as_dir" && as_dir=.
11135 for as_base in sh bash ksh sh5; do
11138 if ("$as_dir/$as_base" -c '
11139 as_lineno_1=$LINENO
11140 as_lineno_2=$LINENO
11141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11142 test "x$as_lineno_1" != "x$as_lineno_2" &&
11143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11144 CONFIG_SHELL=$as_dir/$as_base
11145 export CONFIG_SHELL
11146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11155 # uniformly replaced by the line number. The first 'sed' inserts a
11156 # line-number line before each line; the second 'sed' does the real
11157 # work. The second script uses 'N' to pair each line-number line
11158 # with the numbered line, and appends trailing '-' during
11159 # substitution so that $LINENO is not a special case at line end.
11160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11162 sed '=' <$as_myself |
11167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11170 s,^['$as_cr_digits']*\n,,
11171 ' >$as_me.lineno &&
11172 chmod +x $as_me.lineno ||
11173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11174 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11175 { (exit 1); exit 1; }; }
11177 # Don't try to exec as it changes $[0], causing all sort of problems
11178 # (the dirname of $[0] is not the place where we might find the
11179 # original and so on. Autoconf is especially sensible to this).
11181 # Exit status is that of the last command.
11186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11187 *c*,-n*) ECHO_N= ECHO_C='
11189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11193 if expr a : '\(a\)' >/dev/null 2>&1; then
11199 rm -f conf$$ conf$$.exe conf$$.file
11201 if ln -s conf$$.file conf$$ 2>/dev/null; then
11202 # We could just check for DJGPP; but this test a) works b) is more generic
11203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11204 if test -f conf$$.exe; then
11205 # Don't use ln at all; we don't have any links
11210 elif ln conf$$.file conf$$ 2>/dev/null; then
11215 rm -f conf$$ conf$$.exe conf$$.file
11217 as_executable_p="test -f"
11219 # Sed expression to map a string onto a valid CPP name.
11220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11222 # Sed expression to map a string onto a valid variable name.
11223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11227 # We need space, tab and new line, in precisely that order.
11233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11237 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11238 # report actual input values of CONFIG_FILES etc. instead of their
11239 # values after options handling. Logging --version etc. is OK.
11243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11244 ## Running $as_me. ##
11249 This file was extended by $as_me, which was
11250 generated by GNU Autoconf 2.53. Invocation command line was
11252 CONFIG_FILES = $CONFIG_FILES
11253 CONFIG_HEADERS = $CONFIG_HEADERS
11254 CONFIG_LINKS = $CONFIG_LINKS
11255 CONFIG_COMMANDS = $CONFIG_COMMANDS
11259 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11263 # Files that config.status was made for.
11264 if test -n "$ac_config_files"; then
11265 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11268 if test -n "$ac_config_headers"; then
11269 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11272 if test -n "$ac_config_links"; then
11273 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11276 if test -n "$ac_config_commands"; then
11277 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11280 cat >>$CONFIG_STATUS <<\_ACEOF
11283 \`$as_me' instantiates files from templates according to the
11284 current configuration.
11286 Usage: $0 [OPTIONS] [FILE]...
11288 -h, --help print this help, then exit
11289 -V, --version print version number, then exit
11290 -d, --debug don't remove temporary files
11291 --recheck update $as_me by reconfiguring in the same conditions
11292 --file=FILE[:TEMPLATE]
11293 instantiate the configuration file FILE
11294 --header=FILE[:TEMPLATE]
11295 instantiate the configuration header FILE
11297 Configuration files:
11300 Configuration headers:
11303 Configuration commands:
11306 Report bugs to <bug-autoconf@gnu.org>."
11309 cat >>$CONFIG_STATUS <<_ACEOF
11312 configured by $0, generated by GNU Autoconf 2.53,
11313 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11315 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11316 Free Software Foundation, Inc.
11317 This config.status script is free software; the Free Software Foundation
11318 gives unlimited permission to copy, distribute and modify it."
11323 cat >>$CONFIG_STATUS <<\_ACEOF
11324 # If no file are specified by the user, then we need to provide default
11325 # value. By we need to know if files were specified by the user.
11331 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11332 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11334 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11338 *) # This is not an option, so the user has probably given explicit
11340 ac_need_defaults=false;;
11344 # Handling of the options.
11346 cat >>$CONFIG_STATUS <<_ACEOF
11347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11348 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11349 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11351 cat >>$CONFIG_STATUS <<\_ACEOF
11352 --version | --vers* | -V )
11353 echo "$ac_cs_version"; exit 0 ;;
11355 # Conflict between --help and --header
11356 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11357 Try \`$0 --help' for more information." >&5
11358 echo "$as_me: error: ambiguous option: $1
11359 Try \`$0 --help' for more information." >&2;}
11360 { (exit 1); exit 1; }; };;
11361 --help | --hel | -h )
11362 echo "$ac_cs_usage"; exit 0 ;;
11363 --debug | --d* | -d )
11365 --file | --fil | --fi | --f )
11367 CONFIG_FILES="$CONFIG_FILES $1"
11368 ac_need_defaults=false;;
11369 --header | --heade | --head | --hea )
11371 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11372 ac_need_defaults=false;;
11374 # This is an error.
11375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11376 Try \`$0 --help' for more information." >&5
11377 echo "$as_me: error: unrecognized option: $1
11378 Try \`$0 --help' for more information." >&2;}
11379 { (exit 1); exit 1; }; } ;;
11381 *) ac_config_targets="$ac_config_targets $1" ;;
11389 cat >>$CONFIG_STATUS <<_ACEOF
11391 # INIT-COMMANDS section.
11394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11401 for ac_config_target in $ac_config_targets
11403 case "$ac_config_target" in
11404 # Handling of arguments.
11405 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11406 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11407 "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
11408 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11409 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
11410 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11411 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11412 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11414 { (exit 1); exit 1; }; };;
11418 # If the user did not use the arguments to specify the items to instantiate,
11419 # then the envvar interface is used. Set only those that are not.
11420 # We use the long form for the default assignment because of an extremely
11421 # bizarre bug on SunOS 4.1.3.
11422 if $ac_need_defaults; then
11423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11428 # Create a temporary directory, and hook for its removal unless debugging.
11431 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11432 trap '{ (exit 1); exit 1; }' 1 2 13 15
11435 # Create a (secure) tmp directory for tmp files.
11438 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11439 test -n "$tmp" && test -d "$tmp"
11442 tmp=$TMPDIR/cs$$-$RANDOM
11443 (umask 077 && mkdir $tmp)
11446 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11447 { (exit 1); exit 1; }
11452 cat >>$CONFIG_STATUS <<_ACEOF
11455 # CONFIG_FILES section.
11458 # No need to generate the scripts if there are no CONFIG_FILES.
11459 # This happens for instance when ./config.status config.h
11460 if test -n "\$CONFIG_FILES"; then
11461 # Protect against being on the right side of a sed subst in config.status.
11462 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11463 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11464 s,@SHELL@,$SHELL,;t t
11465 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11466 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11467 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11468 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11469 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11470 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11471 s,@exec_prefix@,$exec_prefix,;t t
11472 s,@prefix@,$prefix,;t t
11473 s,@program_transform_name@,$program_transform_name,;t t
11474 s,@bindir@,$bindir,;t t
11475 s,@sbindir@,$sbindir,;t t
11476 s,@libexecdir@,$libexecdir,;t t
11477 s,@datadir@,$datadir,;t t
11478 s,@sysconfdir@,$sysconfdir,;t t
11479 s,@sharedstatedir@,$sharedstatedir,;t t
11480 s,@localstatedir@,$localstatedir,;t t
11481 s,@libdir@,$libdir,;t t
11482 s,@includedir@,$includedir,;t t
11483 s,@oldincludedir@,$oldincludedir,;t t
11484 s,@infodir@,$infodir,;t t
11485 s,@mandir@,$mandir,;t t
11486 s,@build_alias@,$build_alias,;t t
11487 s,@host_alias@,$host_alias,;t t
11488 s,@target_alias@,$target_alias,;t t
11489 s,@DEFS@,$DEFS,;t t
11490 s,@ECHO_C@,$ECHO_C,;t t
11491 s,@ECHO_N@,$ECHO_N,;t t
11492 s,@ECHO_T@,$ECHO_T,;t t
11493 s,@LIBS@,$LIBS,;t t
11494 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11495 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11496 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11497 s,@PACKAGE@,$PACKAGE,;t t
11498 s,@VERSION@,$VERSION,;t t
11499 s,@ACLOCAL@,$ACLOCAL,;t t
11500 s,@AUTOCONF@,$AUTOCONF,;t t
11501 s,@AUTOMAKE@,$AUTOMAKE,;t t
11502 s,@AUTOHEADER@,$AUTOHEADER,;t t
11503 s,@MAKEINFO@,$MAKEINFO,;t t
11504 s,@AMTAR@,$AMTAR,;t t
11505 s,@install_sh@,$install_sh,;t t
11506 s,@STRIP@,$STRIP,;t t
11507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11508 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11510 s,@SET_MAKE@,$SET_MAKE,;t t
11511 s,@fsect@,$fsect,;t t
11512 s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t
11513 s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t
11515 s,@CFLAGS@,$CFLAGS,;t t
11516 s,@LDFLAGS@,$LDFLAGS,;t t
11517 s,@CPPFLAGS@,$CPPFLAGS,;t t
11518 s,@ac_ct_CC@,$ac_ct_CC,;t t
11519 s,@EXEEXT@,$EXEEXT,;t t
11520 s,@OBJEXT@,$OBJEXT,;t t
11521 s,@DEPDIR@,$DEPDIR,;t t
11522 s,@am__include@,$am__include,;t t
11523 s,@am__quote@,$am__quote,;t t
11524 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11525 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11526 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11527 s,@CCDEPMODE@,$CCDEPMODE,;t t
11528 s,@LN_S@,$LN_S,;t t
11529 s,@build@,$build,;t t
11530 s,@build_cpu@,$build_cpu,;t t
11531 s,@build_vendor@,$build_vendor,;t t
11532 s,@build_os@,$build_os,;t t
11533 s,@host@,$host,;t t
11534 s,@host_cpu@,$host_cpu,;t t
11535 s,@host_vendor@,$host_vendor,;t t
11536 s,@host_os@,$host_os,;t t
11537 s,@ECHO@,$ECHO,;t t
11538 s,@RANLIB@,$RANLIB,;t t
11539 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11541 s,@LIBTOOL@,$LIBTOOL,;t t
11546 cat >>$CONFIG_STATUS <<\_ACEOF
11547 # Split the substitutions into bite-sized pieces for seds with
11548 # small command number limits, like on Digital OSF/1 and HP-UX.
11549 ac_max_sed_lines=48
11550 ac_sed_frag=1 # Number of current file.
11551 ac_beg=1 # First line for current file.
11552 ac_end=$ac_max_sed_lines # Line after last line for current file.
11555 while $ac_more_lines; do
11556 if test $ac_beg -gt 1; then
11557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11561 if test ! -s $tmp/subs.frag; then
11562 ac_more_lines=false
11564 # The purpose of the label and of the branching condition is to
11565 # speed up the sed processing (if there are no `@' at all, there
11566 # is no need to browse any of the substitutions).
11567 # These are the two extra sed commands mentioned above.
11569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11570 if test -z "$ac_sed_cmds"; then
11571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11575 ac_sed_frag=`expr $ac_sed_frag + 1`
11577 ac_end=`expr $ac_end + $ac_max_sed_lines`
11580 if test -z "$ac_sed_cmds"; then
11583 fi # test -n "$CONFIG_FILES"
11586 cat >>$CONFIG_STATUS <<\_ACEOF
11587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11590 - | *:- | *:-:* ) # input from stdin
11592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11596 * ) ac_file_in=$ac_file.in ;;
11599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11602 X"$ac_file" : 'X\(//\)[^/]' \| \
11603 X"$ac_file" : 'X\(//\)$' \| \
11604 X"$ac_file" : 'X\(/\)' \| \
11605 . : '\(.\)' 2>/dev/null ||
11607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11609 /^X\(\/\/\)$/{ s//\1/; q; }
11610 /^X\(\/\).*/{ s//\1/; q; }
11612 { case "$ac_dir" in
11613 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11617 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11618 case $as_mkdir_dir in
11619 # Skip DOS drivespec
11620 ?:) as_incr_dir=$as_mkdir_dir ;;
11622 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11623 test -d "$as_incr_dir" ||
11624 mkdir "$as_incr_dir" ||
11625 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11626 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11627 { (exit 1); exit 1; }; }
11634 if test "$ac_dir" != .; then
11635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11636 # A "../" for each directory in $ac_dir_suffix.
11637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11639 ac_dir_suffix= ac_top_builddir=
11643 .) # No --srcdir option. We are building in place.
11645 if test -z "$ac_top_builddir"; then
11648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11650 [\\/]* | ?:[\\/]* ) # Absolute path.
11651 ac_srcdir=$srcdir$ac_dir_suffix;
11652 ac_top_srcdir=$srcdir ;;
11653 *) # Relative path.
11654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11657 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11659 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11660 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11661 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11662 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11666 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11667 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11670 if test x"$ac_file" != x-; then
11671 { echo "$as_me:$LINENO: creating $ac_file" >&5
11672 echo "$as_me: creating $ac_file" >&6;}
11675 # Let's still pretend it is `configure' which instantiates (i.e., don't
11676 # use $as_me), people would be surprised to read:
11677 # /* config.h. Generated by config.status. */
11678 if test x"$ac_file" = x-; then
11681 configure_input="$ac_file. "
11683 configure_input=$configure_input"Generated from `echo $ac_file_in |
11684 sed 's,.*/,,'` by configure."
11686 # First look for the input files in the build tree, otherwise in the
11688 ac_file_inputs=`IFS=:
11689 for f in $ac_file_in; do
11691 -) echo $tmp/stdin ;;
11693 # Absolute (can't be DOS-style, as IFS=:)
11694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11695 echo "$as_me: error: cannot find input file: $f" >&2;}
11696 { (exit 1); exit 1; }; }
11699 if test -f "$f"; then
11702 elif test -f "$srcdir/$f"; then
11707 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11708 echo "$as_me: error: cannot find input file: $f" >&2;}
11709 { (exit 1); exit 1; }; }
11712 done` || { (exit 1); exit 1; }
11714 cat >>$CONFIG_STATUS <<_ACEOF
11718 cat >>$CONFIG_STATUS <<\_ACEOF
11720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11721 s,@configure_input@,$configure_input,;t t
11722 s,@srcdir@,$ac_srcdir,;t t
11723 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11724 s,@top_srcdir@,$ac_top_srcdir,;t t
11725 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11726 s,@builddir@,$ac_builddir,;t t
11727 s,@abs_builddir@,$ac_abs_builddir,;t t
11728 s,@top_builddir@,$ac_top_builddir,;t t
11729 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11730 s,@INSTALL@,$ac_INSTALL,;t t
11731 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11733 if test x"$ac_file" != x-; then
11734 mv $tmp/out $ac_file
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11745 # CONFIG_HEADER section.
11748 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11749 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11751 # ac_d sets the value in "#define NAME VALUE" lines.
11752 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11753 ac_dB='[ ].*$,\1#\2'
11756 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11757 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11758 ac_uB='$,\1#\2define\3'
11762 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11763 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11765 - | *:- | *:-:* ) # input from stdin
11767 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11769 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11771 * ) ac_file_in=$ac_file.in ;;
11774 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11775 echo "$as_me: creating $ac_file" >&6;}
11777 # First look for the input files in the build tree, otherwise in the
11779 ac_file_inputs=`IFS=:
11780 for f in $ac_file_in; do
11782 -) echo $tmp/stdin ;;
11784 # Absolute (can't be DOS-style, as IFS=:)
11785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11786 echo "$as_me: error: cannot find input file: $f" >&2;}
11787 { (exit 1); exit 1; }; }
11790 if test -f "$f"; then
11793 elif test -f "$srcdir/$f"; then
11798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11799 echo "$as_me: error: cannot find input file: $f" >&2;}
11800 { (exit 1); exit 1; }; }
11803 done` || { (exit 1); exit 1; }
11804 # Remove the trailing spaces.
11805 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11809 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11810 # `conftest.undefs', that substitutes the proper values into
11811 # config.h.in to produce config.h. The first handles `#define'
11812 # templates, and the second `#undef' templates.
11813 # And first: Protect against being on the right side of a sed subst in
11814 # config.status. Protect against being in an unquoted here document
11815 # in config.status.
11816 rm -f conftest.defines conftest.undefs
11817 # Using a here document instead of a string reduces the quoting nightmare.
11818 # Putting comments in sed scripts is not portable.
11820 # `end' is used to avoid that the second main sed command (meant for
11821 # 0-ary CPP macros) applies to n-ary macro definitions.
11822 # See the Autoconf documentation for `clear'.
11823 cat >confdef2sed.sed <<\_ACEOF
11828 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11830 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11833 # If some macros were called several times there might be several times
11834 # the same #defines, which is useless. Nevertheless, we may not want to
11835 # sort them, since we want the *last* AC-DEFINE to be honored.
11836 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11837 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11838 rm -f confdef2sed.sed
11840 # This sed command replaces #undef with comments. This is necessary, for
11841 # example, in the case of _POSIX_SOURCE, which is predefined and required
11842 # on some systems where configure will not decide to define it.
11843 cat >>conftest.undefs <<\_ACEOF
11844 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11847 # Break up conftest.defines because some shells have a limit on the size
11848 # of here documents, and old seds have small limits too (100 cmds).
11849 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11850 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11851 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11852 echo ' :' >>$CONFIG_STATUS
11853 rm -f conftest.tail
11854 while grep . conftest.defines >/dev/null
11856 # Write a limited-size here document to $tmp/defines.sed.
11857 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11858 # Speed up: don't consider the non `#define' lines.
11859 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11860 # Work around the forget-to-reset-the-flag bug.
11861 echo 't clr' >>$CONFIG_STATUS
11862 echo ': clr' >>$CONFIG_STATUS
11863 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11865 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11867 mv $tmp/out $tmp/in
11869 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11870 rm -f conftest.defines
11871 mv conftest.tail conftest.defines
11873 rm -f conftest.defines
11874 echo ' fi # egrep' >>$CONFIG_STATUS
11875 echo >>$CONFIG_STATUS
11877 # Break up conftest.undefs because some shells have a limit on the size
11878 # of here documents, and old seds have small limits too (100 cmds).
11879 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11880 rm -f conftest.tail
11881 while grep . conftest.undefs >/dev/null
11883 # Write a limited-size here document to $tmp/undefs.sed.
11884 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11885 # Speed up: don't consider the non `#undef'
11886 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11887 # Work around the forget-to-reset-the-flag bug.
11888 echo 't clr' >>$CONFIG_STATUS
11889 echo ': clr' >>$CONFIG_STATUS
11890 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11892 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11894 mv $tmp/out $tmp/in
11896 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11897 rm -f conftest.undefs
11898 mv conftest.tail conftest.undefs
11900 rm -f conftest.undefs
11902 cat >>$CONFIG_STATUS <<\_ACEOF
11903 # Let's still pretend it is `configure' which instantiates (i.e., don't
11904 # use $as_me), people would be surprised to read:
11905 # /* config.h. Generated by config.status. */
11906 if test x"$ac_file" = x-; then
11907 echo "/* Generated by configure. */" >$tmp/config.h
11909 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11911 cat $tmp/in >>$tmp/config.h
11913 if test x"$ac_file" != x-; then
11914 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11915 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11916 echo "$as_me: $ac_file is unchanged" >&6;}
11918 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11920 X"$ac_file" : 'X\(//\)[^/]' \| \
11921 X"$ac_file" : 'X\(//\)$' \| \
11922 X"$ac_file" : 'X\(/\)' \| \
11923 . : '\(.\)' 2>/dev/null ||
11925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11927 /^X\(\/\/\)$/{ s//\1/; q; }
11928 /^X\(\/\).*/{ s//\1/; q; }
11930 { case "$ac_dir" in
11931 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11935 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11936 case $as_mkdir_dir in
11937 # Skip DOS drivespec
11938 ?:) as_incr_dir=$as_mkdir_dir ;;
11940 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11941 test -d "$as_incr_dir" ||
11942 mkdir "$as_incr_dir" ||
11943 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11944 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11945 { (exit 1); exit 1; }; }
11951 mv $tmp/config.h $ac_file
11955 rm -f $tmp/config.h
11957 # Run the commands associated with the file.
11959 config.h ) # update the timestamp
11960 echo 'timestamp for config.h' >"./stamp-h1"
11965 cat >>$CONFIG_STATUS <<\_ACEOF
11968 # CONFIG_COMMANDS section.
11970 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11971 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11972 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11973 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11974 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11975 X"$ac_dest" : 'X\(//\)[^/]' \| \
11976 X"$ac_dest" : 'X\(//\)$' \| \
11977 X"$ac_dest" : 'X\(/\)' \| \
11978 . : '\(.\)' 2>/dev/null ||
11980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11982 /^X\(\/\/\)$/{ s//\1/; q; }
11983 /^X\(\/\).*/{ s//\1/; q; }
11987 if test "$ac_dir" != .; then
11988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11989 # A "../" for each directory in $ac_dir_suffix.
11990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11992 ac_dir_suffix= ac_top_builddir=
11996 .) # No --srcdir option. We are building in place.
11998 if test -z "$ac_top_builddir"; then
12001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12003 [\\/]* | ?:[\\/]* ) # Absolute path.
12004 ac_srcdir=$srcdir$ac_dir_suffix;
12005 ac_top_srcdir=$srcdir ;;
12006 *) # Relative path.
12007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12008 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12010 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12012 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12013 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12014 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12015 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12018 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12019 echo "$as_me: executing $ac_dest commands" >&6;}
12021 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12022 # Strip MF so we end up with the name of the file.
12023 mf=`echo "$mf" | sed -e 's/:.*$//'`
12024 # Check whether this is an Automake generated Makefile or not.
12025 # We used to match only the files named `Makefile.in', but
12026 # some people rename them; so instead we look at the file content.
12027 # Grep'ing the first line is not enough: some people post-process
12028 # each Makefile.in and add a new line on top of each file to say so.
12029 # So let's grep whole file.
12030 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12031 dirpart=`(dirname "$mf") 2>/dev/null ||
12032 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033 X"$mf" : 'X\(//\)[^/]' \| \
12034 X"$mf" : 'X\(//\)$' \| \
12035 X"$mf" : 'X\(/\)' \| \
12036 . : '\(.\)' 2>/dev/null ||
12038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12040 /^X\(\/\/\)$/{ s//\1/; q; }
12041 /^X\(\/\).*/{ s//\1/; q; }
12046 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12047 # Extract the definition of DEP_FILES from the Makefile without
12049 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12050 test -z "$DEPDIR" && continue
12051 # When using ansi2knr, U may be empty or an underscore; expand it
12052 U=`sed -n -e '/^U = / s///p' < "$mf"`
12053 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12054 # We invoke sed twice because it is the simplest approach to
12055 # changing $(DEPDIR) to its actual value in the expansion.
12056 for file in `sed -n -e '
12057 /^DEP_FILES = .*\\\\$/ {
12066 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12067 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12068 # Make sure the directory exists.
12069 test -f "$dirpart/$file" && continue
12070 fdir=`(dirname "$file") 2>/dev/null ||
12071 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12072 X"$file" : 'X\(//\)[^/]' \| \
12073 X"$file" : 'X\(//\)$' \| \
12074 X"$file" : 'X\(/\)' \| \
12075 . : '\(.\)' 2>/dev/null ||
12077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12079 /^X\(\/\/\)$/{ s//\1/; q; }
12080 /^X\(\/\).*/{ s//\1/; q; }
12082 { case $dirpart/$fdir in
12083 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12086 as_dummy=$dirpart/$fdir
12087 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12088 case $as_mkdir_dir in
12089 # Skip DOS drivespec
12090 ?:) as_incr_dir=$as_mkdir_dir ;;
12092 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12093 test -d "$as_incr_dir" ||
12094 mkdir "$as_incr_dir" ||
12095 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
12096 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
12097 { (exit 1); exit 1; }; }
12102 # echo "creating $dirpart/$file"
12103 echo '# dummy' > "$dirpart/$file"
12111 cat >>$CONFIG_STATUS <<\_ACEOF
12113 { (exit 0); exit 0; }
12115 chmod +x $CONFIG_STATUS
12116 ac_clean_files=$ac_clean_files_save
12119 # configure is writing to config.log, and then calls config.status.
12120 # config.status does its own redirection, appending to config.log.
12121 # Unfortunately, on DOS this fails, as config.log is still kept open
12122 # by configure, so config.status won't be able to write to it; its
12123 # output is simply discarded. So we exec the FD to /dev/null,
12124 # effectively closing config.log, so it can be properly (re)opened and
12125 # appended to by config.status. When coming back to configure, we
12126 # need to make the FD available again.
12127 if test "$no_create" != yes; then
12130 $SHELL $CONFIG_STATUS || ac_cs_success=false
12132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12133 # would make configure fail if this is the last instruction.
12134 $ac_cs_success || { (exit 1); exit 1; }