2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for fGIS 0.0.1.
5 # Report bugs to <dron@remotesensing.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Find the correct PATH separator. Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15 UNAME=${UNAME-`uname 2>/dev/null`}
17 *-DOS) lt_cv_sys_path_separator=';' ;;
18 *) lt_cv_sys_path_separator=':' ;;
20 PATH_SEPARATOR=$lt_cv_sys_path_separator
24 # Check that we are running under the correct shell.
25 SHELL=${CONFIG_SHELL-/bin/sh}
29 # Remove one level of quotation (which was required for Make).
30 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
35 if test "X$1" = X--no-reexec; then
36 # Discard the --no-reexec flag, and continue.
38 elif test "X$1" = X--fallback-echo; then
39 # Avoid inline document here, it may be left over
41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42 # Yippee, $echo works!
45 # Restart under the correct shell.
46 exec $SHELL "$0" --no-reexec ${1+"$@"}
49 if test "X$1" = X--fallback-echo; then
50 # used as fallback echo
58 # The HP-UX ksh and POSIX shell print the target directory to stdout
60 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62 if test -z "$ECHO"; then
63 if test "X${echo_test_string+set}" != Xset; then
64 # find a string as large as possible, as long as the shell can cope with it
65 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68 echo_test_string="`eval $cmd`" &&
69 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
76 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78 test "X$echo_testing_string" = "X$echo_test_string"; then
81 # The Solaris, AIX, and Digital Unix default echo programs unquote
82 # backslashes. This makes it impossible to quote backslashes using
83 # echo "$something" | sed 's/\\/\\\\/g'
85 # So, first we look for a working echo in the user's PATH.
87 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88 for dir in $PATH /usr/ucb; do
89 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
99 if test "X$echo" = Xecho; then
100 # We didn't find a better echo, so look for alternatives.
101 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
104 # This shell has a builtin print -r that does the trick.
106 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107 test "X$CONFIG_SHELL" != X/bin/ksh; then
108 # If we have ksh, try running configure again with it.
109 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110 export ORIGINAL_CONFIG_SHELL
111 CONFIG_SHELL=/bin/ksh
113 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
117 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119 test "X$echo_testing_string" = "X$echo_test_string"; then
122 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123 test "X$echo_testing_string" = 'X\t' &&
124 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125 test "X$echo_testing_string" = "X$echo_test_string"; then
126 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
128 SHELL="$CONFIG_SHELL"
130 echo="$CONFIG_SHELL $0 --fallback-echo"
131 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132 test "X$echo_testing_string" = 'X\t' &&
133 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134 test "X$echo_testing_string" = "X$echo_test_string"; then
135 echo="$CONFIG_SHELL $0 --fallback-echo"
137 # maybe with a smaller string...
140 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
148 if test "$prev" != 'sed 50q "$0"'; then
149 echo_test_string=`eval $prev`
150 export echo_test_string
151 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
153 # Oops. We lost completely, so just stick with echo.
162 # Copy echo and quote the copy suitably for passing to libtool from
163 # the Makefile, instead of quoting the original, which is used later.
165 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
171 if expr a : '\(a\)' >/dev/null 2>&1; then
178 ## --------------------- ##
179 ## M4sh Initialization. ##
180 ## --------------------- ##
182 # Be Bourne compatible
183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
191 # Support unset when possible.
192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
198 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199 { $as_unset LANG || test "${LANG+set}" != set; } ||
200 { LANG=C; export LANG; }
201 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203 { LC_ALL=C; export LC_ALL; }
204 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206 { LC_TIME=C; export LC_TIME; }
207 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209 { LC_CTYPE=C; export LC_CTYPE; }
210 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212 { LANGUAGE=C; export LANGUAGE; }
213 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215 { LC_COLLATE=C; export LC_COLLATE; }
216 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218 { LC_NUMERIC=C; export LC_NUMERIC; }
219 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221 { LC_MESSAGES=C; export LC_MESSAGES; }
224 # Name of the executable.
225 as_me=`(basename "$0") 2>/dev/null ||
226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227 X"$0" : 'X\(//\)$' \| \
228 X"$0" : 'X\(/\)$' \| \
229 . : '\(.\)' 2>/dev/null ||
231 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232 /^X\/\(\/\/\)$/{ s//\1/; q; }
233 /^X\/\(\/\).*/{ s//\1/; q; }
236 # PATH needs CR, and LINENO needs CR and PATH.
237 # Avoid depending upon Character Ranges.
238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241 as_cr_digits='0123456789'
242 as_cr_alnum=$as_cr_Letters$as_cr_digits
244 # The user is always right.
245 if test "${PATH_SEPARATOR+set}" != set; then
246 echo "#! /bin/sh" >conftest.sh
247 echo "exit 0" >>conftest.sh
249 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
260 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261 test "x$as_lineno_1" != "x$as_lineno_2" &&
262 test "x$as_lineno_3" = "x$as_lineno_2" || {
263 # Find who we are. Look in the path if we contain no path at all
266 *[\\/]* ) as_myself=$0 ;;
267 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
271 test -z "$as_dir" && as_dir=.
272 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
277 # We did not find ourselves, most probably we were run as `sh COMMAND'
278 # in which case we are not to be found in the path.
279 if test "x$as_myself" = x; then
282 if test ! -f "$as_myself"; then
283 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284 { (exit 1); exit 1; }; }
286 case $CONFIG_SHELL in
288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
292 test -z "$as_dir" && as_dir=.
293 for as_base in sh bash ksh sh5; do
296 if ("$as_dir/$as_base" -c '
299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300 test "x$as_lineno_1" != "x$as_lineno_2" &&
301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
302 CONFIG_SHELL=$as_dir/$as_base
304 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313 # uniformly replaced by the line number. The first 'sed' inserts a
314 # line-number line before each line; the second 'sed' does the real
315 # work. The second script uses 'N' to pair each line-number line
316 # with the numbered line, and appends trailing '-' during
317 # substitution so that $LINENO is not a special case at line end.
318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
320 sed '=' <$as_myself |
325 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
328 s,^['$as_cr_digits']*\n,,
330 chmod +x $as_me.lineno ||
331 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332 { (exit 1); exit 1; }; }
334 # Don't try to exec as it changes $[0], causing all sort of problems
335 # (the dirname of $[0] is not the place where we might find the
336 # original and so on. Autoconf is especially sensible to this).
338 # Exit status is that of the last command.
343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344 *c*,-n*) ECHO_N= ECHO_C='
346 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
350 if expr a : '\(a\)' >/dev/null 2>&1; then
356 rm -f conf$$ conf$$.exe conf$$.file
358 if ln -s conf$$.file conf$$ 2>/dev/null; then
359 # We could just check for DJGPP; but this test a) works b) is more generic
360 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361 if test -f conf$$.exe; then
362 # Don't use ln at all; we don't have any links
367 elif ln conf$$.file conf$$ 2>/dev/null; then
372 rm -f conf$$ conf$$.exe conf$$.file
374 as_executable_p="test -f"
376 # Sed expression to map a string onto a valid CPP name.
377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
379 # Sed expression to map a string onto a valid variable name.
380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
384 # We need space, tab and new line, in precisely that order.
390 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
408 SHELL=${CONFIG_SHELL-/bin/sh}
410 # Maximum number of lines to put in a shell here document.
411 # This variable seems obsolete. It should probably be removed, and
412 # only ac_max_sed_lines should be used.
413 : ${ac_max_here_lines=38}
415 # Identity of this package.
417 PACKAGE_TARNAME='fgis'
418 PACKAGE_VERSION='0.0.1'
419 PACKAGE_STRING='fGIS 0.0.1'
420 PACKAGE_BUGREPORT='dron@remotesensing.org'
422 # Factoring default headers for most tests.
423 ac_includes_default="\
426 # include <sys/types.h>
429 # include <sys/stat.h>
440 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <strings.h>
449 # include <inttypes.h>
460 # Initialize some variables set by options.
462 ac_init_version=false
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
472 program_transform_name=s,x,x,
480 # Installation directory options.
481 # These are left unexpanded so users can "make install exec_prefix=/foo"
482 # and all the variables that are supposed to be based on exec_prefix
483 # by default will actually change.
484 # Use braces instead of parens because sh, perl, etc. also accept them.
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
508 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
510 # Accept the important Cygnus configure options, so we can diagnose typos.
514 -bindir | --bindir | --bindi | --bind | --bin | --bi)
516 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519 -build | --build | --buil | --bui | --bu)
520 ac_prev=build_alias ;;
521 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
522 build_alias=$ac_optarg ;;
524 -cache-file | --cache-file | --cache-fil | --cache-fi \
525 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
526 ac_prev=cache_file ;;
527 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
528 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
529 cache_file=$ac_optarg ;;
532 cache_file=config.cache ;;
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
538 datadir=$ac_optarg ;;
540 -disable-* | --disable-*)
541 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
542 # Reject names that are not valid shell variable names.
543 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
544 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
545 { (exit 1); exit 1; }; }
546 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
547 eval "enable_$ac_feature=no" ;;
549 -enable-* | --enable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "enable_$ac_feature='$ac_optarg'" ;;
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
569 exec_prefix=$ac_optarg ;;
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
575 -help | --help | --hel | --he | -h)
577 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
578 ac_init_help=recursive ;;
579 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
580 ac_init_help=short ;;
582 -host | --host | --hos | --ho)
583 ac_prev=host_alias ;;
584 -host=* | --host=* | --hos=* | --ho=*)
585 host_alias=$ac_optarg ;;
587 -includedir | --includedir | --includedi | --included | --include \
588 | --includ | --inclu | --incl | --inc)
589 ac_prev=includedir ;;
590 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591 | --includ=* | --inclu=* | --incl=* | --inc=*)
592 includedir=$ac_optarg ;;
594 -infodir | --infodir | --infodi | --infod | --info | --inf)
596 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597 infodir=$ac_optarg ;;
599 -libdir | --libdir | --libdi | --libd)
601 -libdir=* | --libdir=* | --libdi=* | --libd=*)
604 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605 | --libexe | --libex | --libe)
606 ac_prev=libexecdir ;;
607 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608 | --libexe=* | --libex=* | --libe=*)
609 libexecdir=$ac_optarg ;;
611 -localstatedir | --localstatedir | --localstatedi | --localstated \
612 | --localstate | --localstat | --localsta | --localst \
613 | --locals | --local | --loca | --loc | --lo)
614 ac_prev=localstatedir ;;
615 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618 localstatedir=$ac_optarg ;;
620 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
622 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 # Obsolete; use --without-fp.
629 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630 | --no-cr | --no-c | -n)
633 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
637 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639 | --oldin | --oldi | --old | --ol | --o)
640 ac_prev=oldincludedir ;;
641 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644 oldincludedir=$ac_optarg ;;
646 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
648 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
651 -program-prefix | --program-prefix | --program-prefi | --program-pref \
652 | --program-pre | --program-pr | --program-p)
653 ac_prev=program_prefix ;;
654 -program-prefix=* | --program-prefix=* | --program-prefi=* \
655 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656 program_prefix=$ac_optarg ;;
658 -program-suffix | --program-suffix | --program-suffi | --program-suff \
659 | --program-suf | --program-su | --program-s)
660 ac_prev=program_suffix ;;
661 -program-suffix=* | --program-suffix=* | --program-suffi=* \
662 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663 program_suffix=$ac_optarg ;;
665 -program-transform-name | --program-transform-name \
666 | --program-transform-nam | --program-transform-na \
667 | --program-transform-n | --program-transform- \
668 | --program-transform | --program-transfor \
669 | --program-transfo | --program-transf \
670 | --program-trans | --program-tran \
671 | --progr-tra | --program-tr | --program-t)
672 ac_prev=program_transform_name ;;
673 -program-transform-name=* | --program-transform-name=* \
674 | --program-transform-nam=* | --program-transform-na=* \
675 | --program-transform-n=* | --program-transform-=* \
676 | --program-transform=* | --program-transfor=* \
677 | --program-transfo=* | --program-transf=* \
678 | --program-trans=* | --program-tran=* \
679 | --progr-tra=* | --program-tr=* | --program-t=*)
680 program_transform_name=$ac_optarg ;;
682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683 | -silent | --silent | --silen | --sile | --sil)
686 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
688 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
690 sbindir=$ac_optarg ;;
692 -sharedstatedir | --sharedstatedir | --sharedstatedi \
693 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694 | --sharedst | --shareds | --shared | --share | --shar \
696 ac_prev=sharedstatedir ;;
697 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
701 sharedstatedir=$ac_optarg ;;
703 -site | --site | --sit)
705 -site=* | --site=* | --sit=*)
708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
713 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714 | --syscon | --sysco | --sysc | --sys | --sy)
715 ac_prev=sysconfdir ;;
716 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718 sysconfdir=$ac_optarg ;;
720 -target | --target | --targe | --targ | --tar | --ta | --t)
721 ac_prev=target_alias ;;
722 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723 target_alias=$ac_optarg ;;
725 -v | -verbose | --verbose | --verbos | --verbo | --verb)
728 -version | --version | --versio | --versi | --vers | -V)
732 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
733 # Reject names that are not valid shell variable names.
734 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
735 { echo "$as_me: error: invalid package name: $ac_package" >&2
736 { (exit 1); exit 1; }; }
737 ac_package=`echo $ac_package| sed 's/-/_/g'`
739 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
742 eval "with_$ac_package='$ac_optarg'" ;;
744 -without-* | --without-*)
745 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package | sed 's/-/_/g'`
751 eval "with_$ac_package=no" ;;
754 # Obsolete; use --with-x.
757 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
758 | --x-incl | --x-inc | --x-in | --x-i)
759 ac_prev=x_includes ;;
760 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
761 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
762 x_includes=$ac_optarg ;;
764 -x-libraries | --x-libraries | --x-librarie | --x-librari \
765 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
766 ac_prev=x_libraries ;;
767 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
768 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
769 x_libraries=$ac_optarg ;;
771 -*) { echo "$as_me: error: unrecognized option: $ac_option
772 Try \`$0 --help' for more information." >&2
773 { (exit 1); exit 1; }; }
777 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
778 # Reject names that are not valid shell variable names.
779 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
780 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
781 { (exit 1); exit 1; }; }
782 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
783 eval "$ac_envvar='$ac_optarg'"
787 # FIXME: should be removed in autoconf 3.0.
788 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
789 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
790 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
791 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 if test -n "$ac_prev"; then
798 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
799 { echo "$as_me: error: missing argument to $ac_option" >&2
800 { (exit 1); exit 1; }; }
803 # Be sure to have absolute paths.
804 for ac_var in exec_prefix prefix
806 eval ac_val=$`echo $ac_var`
808 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
809 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
810 { (exit 1); exit 1; }; };;
814 # Be sure to have absolute paths.
815 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
816 localstatedir libdir includedir oldincludedir infodir mandir
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # There might be people who depend on the old broken behavior: `$host'
827 # used to hold the argument of --host etc.
828 # FIXME: To remove some day.
833 # FIXME: To remove some day.
834 if test "x$host_alias" != x; then
835 if test "x$build_alias" = x; then
836 cross_compiling=maybe
837 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
838 If a cross compiler is detected then cross compile mode will be used." >&2
839 elif test "x$build_alias" != "x$host_alias"; then
845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
847 test "$silent" = yes && exec 6>/dev/null
850 # Find the source files, if location was not specified.
851 if test -z "$srcdir"; then
852 ac_srcdir_defaulted=yes
853 # Try the directory containing this script, then its parent.
854 ac_confdir=`(dirname "$0") 2>/dev/null ||
855 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
856 X"$0" : 'X\(//\)[^/]' \| \
857 X"$0" : 'X\(//\)$' \| \
858 X"$0" : 'X\(/\)' \| \
859 . : '\(.\)' 2>/dev/null ||
861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
863 /^X\(\/\/\)$/{ s//\1/; q; }
864 /^X\(\/\).*/{ s//\1/; q; }
867 if test ! -r $srcdir/$ac_unique_file; then
871 ac_srcdir_defaulted=no
873 if test ! -r $srcdir/$ac_unique_file; then
874 if test "$ac_srcdir_defaulted" = yes; then
875 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
876 { (exit 1); exit 1; }; }
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
879 { (exit 1); exit 1; }; }
882 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883 ac_env_build_alias_set=${build_alias+set}
884 ac_env_build_alias_value=$build_alias
885 ac_cv_env_build_alias_set=${build_alias+set}
886 ac_cv_env_build_alias_value=$build_alias
887 ac_env_host_alias_set=${host_alias+set}
888 ac_env_host_alias_value=$host_alias
889 ac_cv_env_host_alias_set=${host_alias+set}
890 ac_cv_env_host_alias_value=$host_alias
891 ac_env_target_alias_set=${target_alias+set}
892 ac_env_target_alias_value=$target_alias
893 ac_cv_env_target_alias_set=${target_alias+set}
894 ac_cv_env_target_alias_value=$target_alias
895 ac_env_CC_set=${CC+set}
897 ac_cv_env_CC_set=${CC+set}
898 ac_cv_env_CC_value=$CC
899 ac_env_CFLAGS_set=${CFLAGS+set}
900 ac_env_CFLAGS_value=$CFLAGS
901 ac_cv_env_CFLAGS_set=${CFLAGS+set}
902 ac_cv_env_CFLAGS_value=$CFLAGS
903 ac_env_LDFLAGS_set=${LDFLAGS+set}
904 ac_env_LDFLAGS_value=$LDFLAGS
905 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906 ac_cv_env_LDFLAGS_value=$LDFLAGS
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
917 # Report the --help message.
919 if test "$ac_init_help" = "long"; then
920 # Omit some internal or obsolete options to make the list less imposing.
921 # This message is too long to be a string in the A/UX 3.1 sh.
923 \`configure' configures fGIS 0.0.1 to adapt to many kinds of systems.
925 Usage: $0 [OPTION]... [VAR=VALUE]...
927 To assign environment variables (e.g., CC, CFLAGS...), specify them as
928 VAR=VALUE. See below for descriptions of some of the useful variables.
930 Defaults for the options are specified in brackets.
933 -h, --help display this help and exit
934 --help=short display options specific to this package
935 --help=recursive display the short help of all the included packages
936 -V, --version display version information and exit
937 -q, --quiet, --silent do not print \`checking...' messages
938 --cache-file=FILE cache test results in FILE [disabled]
939 -C, --config-cache alias for \`--cache-file=config.cache'
940 -n, --no-create do not create output files
941 --srcdir=DIR find the sources in DIR [configure dir or \`..']
946 Installation directories:
947 --prefix=PREFIX install architecture-independent files in PREFIX
949 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
952 By default, \`make install' will install all the files in
953 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
954 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955 for instance \`--prefix=\$HOME'.
957 For better control, use the options below.
959 Fine tuning of the installation directories:
960 --bindir=DIR user executables [EPREFIX/bin]
961 --sbindir=DIR system admin executables [EPREFIX/sbin]
962 --libexecdir=DIR program executables [EPREFIX/libexec]
963 --datadir=DIR read-only architecture-independent data [PREFIX/share]
964 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
965 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
966 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
967 --libdir=DIR object code libraries [EPREFIX/lib]
968 --includedir=DIR C header files [PREFIX/include]
969 --oldincludedir=DIR C header files for non-gcc [/usr/include]
970 --infodir=DIR info documentation [PREFIX/info]
971 --mandir=DIR man documentation [PREFIX/man]
977 --program-prefix=PREFIX prepend PREFIX to installed program names
978 --program-suffix=SUFFIX append SUFFIX to installed program names
979 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
982 --x-includes=DIR X include files are in DIR
983 --x-libraries=DIR X library files are in DIR
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 if test -n "$ac_init_help"; then
992 case $ac_init_help in
993 short | recursive ) echo "Configuration of fGIS 0.0.1:";;
998 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
999 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1000 --enable-shared=PKGS build shared libraries default=yes
1001 --enable-static=PKGS build static libraries default=yes
1002 --enable-fast-install=PKGS optimize for fast installation default=yes
1003 --disable-dependency-tracking Speeds up one-time builds
1004 --enable-dependency-tracking Do not reject slow dependency extractors
1005 --disable-libtool-lock avoid locking (might break parallel builds)
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1010 --with-gnu-ld assume the C compiler uses GNU ld default=no
1011 --with-pic try to use only PIC/non-PIC objects default=use both
1012 --with-x use the X Window System
1013 --with-tclinclude=DIR directory where tcl private headers are
1014 --with-tcl directory containing tcl configuration (tclConfig.sh)
1015 --with-tkinclude directory where tk private headers are
1016 --with-tk directory containing tk configuration (tkConfig.sh)
1018 Some influential environment variables:
1019 CC C compiler command
1020 CFLAGS C compiler flags
1021 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1022 nonstandard directory <lib dir>
1023 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024 headers in a nonstandard directory <include dir>
1027 Use these variables to override the choices made by `configure' or to help
1028 it to find libraries and programs with nonstandard names/locations.
1030 Report bugs to <dron@remotesensing.org>.
1034 if test "$ac_init_help" = "recursive"; then
1035 # If there are subdirs, report their specific --help.
1037 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1038 test -d $ac_dir || continue
1041 if test "$ac_dir" != .; then
1042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1043 # A "../" for each directory in $ac_dir_suffix.
1044 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046 ac_dir_suffix= ac_top_builddir=
1050 .) # No --srcdir option. We are building in place.
1052 if test -z "$ac_top_builddir"; then
1055 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 [\\/]* | ?:[\\/]* ) # Absolute path.
1058 ac_srcdir=$srcdir$ac_dir_suffix;
1059 ac_top_srcdir=$srcdir ;;
1061 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1062 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1066 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1067 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1068 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1069 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1072 # Check for guested configure; otherwise get Cygnus style configure.
1073 if test -f $ac_srcdir/configure.gnu; then
1075 $SHELL $ac_srcdir/configure.gnu --help=recursive
1076 elif test -f $ac_srcdir/configure; then
1078 $SHELL $ac_srcdir/configure --help=recursive
1079 elif test -f $ac_srcdir/configure.ac ||
1080 test -f $ac_srcdir/configure.in; then
1082 $ac_configure --help
1084 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1090 test -n "$ac_init_help" && exit 0
1091 if $ac_init_version; then
1093 fGIS configure 0.0.1
1094 generated by GNU Autoconf 2.53
1096 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1097 Free Software Foundation, Inc.
1098 This configure script is free software; the Free Software Foundation
1099 gives unlimited permission to copy, distribute and modify it.
1105 This file contains any messages produced by compilers while
1106 running configure, to aid debugging if configure makes a mistake.
1108 It was created by fGIS $as_me 0.0.1, which was
1109 generated by GNU Autoconf 2.53. Invocation command line was
1120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1129 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1130 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143 test -z "$as_dir" && as_dir=.
1144 echo "PATH: $as_dir"
1159 # Keep a trace of the command line.
1160 # Strip out --no-create and --no-recursion so they do not pile up.
1161 # Also quote any args containing shell meta-characters.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n ) continue ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1173 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1175 case " $ac_configure_args " in
1176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1177 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1180 # Get rid of the leading space.
1183 # When interrupted or exit'd, cleanup temporary files, and complete
1184 # config.log. We remove comments because anyway the quotes in there
1185 # would cause problems or look ugly.
1186 # WARNING: Be sure not to use single quotes in there, as some shells,
1187 # such as our DU 5.0 friend, will then `close' the trap.
1188 trap 'exit_status=$?
1189 # Save into config.log some information that might help in debugging.
1193 ## ---------------- ##
1194 ## Cache variables. ##
1195 ## ---------------- ##
1198 # The following way of writing the cache mishandles newlines in values,
1201 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1204 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1209 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1214 if test -s confdefs.h; then
1221 sed "/^$/d" confdefs.h
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1228 rm -f core core.* *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1304 # Check that the precious variables saved in the cache have kept the same
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1386 am__api_version="1.6"
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 elif test -f $ac_dir/install.sh; then
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 elif test -f $ac_dir/shtool; then
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Find a good install program. We prefer a C program (faster),
1413 # so one script is as good as another. But avoid the broken or
1414 # incompatible versions:
1415 # SysV /etc/install, /usr/sbin/install
1416 # SunOS /usr/etc/install
1417 # IRIX /sbin/install
1419 # AmigaOS /C/install, which installs bootblocks on floppy discs
1420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1423 # ./install, which can be erroneously created by make from ./install.sh.
1424 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1426 if test -z "$INSTALL"; then
1427 if test "${ac_cv_path_install+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 test -z "$as_dir" && as_dir=.
1435 # Account for people who put trailing slashes in PATH elements.
1437 ./ | .// | /cC/* | \
1438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1441 # OSF1 and SCO ODT 3.0 have their own names for install.
1442 # Don't use installbsd from OSF since it installs stuff as root
1444 for ac_prog in ginstall scoinst install; do
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1447 if test $ac_prog = install &&
1448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1449 # AIX install. It has an incompatible calling convention.
1451 elif test $ac_prog = install &&
1452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1453 # program-specific install script used by HP pwplus--don't use.
1456 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1468 if test "${ac_cv_path_install+set}" = set; then
1469 INSTALL=$ac_cv_path_install
1471 # As a last resort, use the slow shell script. We don't cache a
1472 # path for INSTALL within a source directory, because that will
1473 # break other packages using the cache if that directory is
1474 # removed, or if the path is relative.
1475 INSTALL=$ac_install_sh
1478 echo "$as_me:$LINENO: result: $INSTALL" >&5
1479 echo "${ECHO_T}$INSTALL" >&6
1481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1482 # It thinks the first close brace ends the variable substitution.
1483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1489 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1490 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1493 echo timestamp > conftest.file
1494 # Do `set' in a subshell so we don't clobber the current shell's
1495 # arguments. Must try -L first in case configure is actually a
1496 # symlink; some systems play weird games with the mod time of symlinks
1497 # (eg FreeBSD returns the mod time of the symlink's containing
1500 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1501 if test "$*" = "X"; then
1503 set X `ls -t $srcdir/configure conftest.file`
1506 if test "$*" != "X $srcdir/configure conftest.file" \
1507 && test "$*" != "X conftest.file $srcdir/configure"; then
1509 # If neither matched, then we have a broken ls. This can happen
1510 # if, for instance, CONFIG_SHELL is bash and it inherits a
1511 # broken ls alias from the environment. This has actually
1512 # happened. Such a system could not be considered "sane".
1513 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1514 alias in your environment" >&5
1515 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1516 alias in your environment" >&2;}
1517 { (exit 1); exit 1; }; }
1520 test "$2" = conftest.file
1526 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1527 Check your system clock" >&5
1528 echo "$as_me: error: newly created file is older than distributed files!
1529 Check your system clock" >&2;}
1530 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1534 test "$program_prefix" != NONE &&
1535 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1536 # Use a double $ so make ignores it.
1537 test "$program_suffix" != NONE &&
1538 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1539 # Double any \ or $. echo might interpret backslashes.
1540 # By default was `s,x,x', remove it if useless.
1541 cat <<\_ACEOF >conftest.sed
1542 s/[\\$]/&&/g;s/;s,x,x,$//
1544 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1548 # expand $ac_aux_dir to an absolute path
1549 am_aux_dir=`cd $ac_aux_dir && pwd`
1551 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1552 # Use eval to expand $SHELL
1553 if eval "$MISSING --run true"; then
1554 am_missing_run="$MISSING --run "
1557 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1558 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1561 for ac_prog in gawk mawk nawk awk
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_AWK+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$AWK"; then
1571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_AWK="$ac_prog"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 if test -n "$AWK"; then
1591 echo "$as_me:$LINENO: result: $AWK" >&5
1592 echo "${ECHO_T}$AWK" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1598 test -n "$AWK" && break
1601 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1602 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1603 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1604 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 cat >conftest.make <<\_ACEOF
1609 @echo 'ac_maketemp="${MAKE}"'
1611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1612 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1613 if test -n "$ac_maketemp"; then
1614 eval ac_cv_prog_make_${ac_make}_set=yes
1616 eval ac_cv_prog_make_${ac_make}_set=no
1620 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1621 echo "$as_me:$LINENO: result: yes" >&5
1622 echo "${ECHO_T}yes" >&6
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1627 SET_MAKE="MAKE=${MAKE-make}"
1630 # test to see if srcdir already configured
1631 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1632 test -f $srcdir/config.status; then
1633 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1634 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1635 { (exit 1); exit 1; }; }
1638 # Define the identity of the package.
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE "$PACKAGE"
1648 cat >>confdefs.h <<_ACEOF
1649 #define VERSION "$VERSION"
1652 # Some tools Automake needs.
1654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1669 AMTAR=${AMTAR-"${am_missing_run}tar"}
1671 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1673 # Installed binaries are usually stripped using `strip' when the user
1674 # run `make install-strip'. However `strip' might not be the right
1675 # tool to use in cross-compilation environments, therefore Automake
1676 # will honor the `STRIP' environment variable to overrule this program.
1677 if test "$cross_compiling" != no; then
1678 if test -n "$ac_tool_prefix"; then
1679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1680 set dummy ${ac_tool_prefix}strip; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_STRIP+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$STRIP"; then
1687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 STRIP=$ac_cv_prog_STRIP
1706 if test -n "$STRIP"; then
1707 echo "$as_me:$LINENO: result: $STRIP" >&5
1708 echo "${ECHO_T}$STRIP" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1715 if test -z "$ac_cv_prog_STRIP"; then
1717 # Extract the first word of "strip", so it can be a program name with args.
1718 set dummy strip; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$ac_ct_STRIP"; then
1725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_ac_ct_STRIP="strip"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1745 if test -n "$ac_ct_STRIP"; then
1746 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1747 echo "${ECHO_T}$ac_ct_STRIP" >&6
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1755 STRIP="$ac_cv_prog_STRIP"
1759 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1761 # We need awk for the "check" target. The system "awk" is bad on
1766 # Add the stamp file to the list of files AC keeps track of,
1767 # along with our hook.
1768 ac_config_headers="$ac_config_headers include/config.h"
1774 # Check whether --enable-shared or --disable-shared was given.
1775 if test "${enable_shared+set}" = set; then
1776 enableval="$enable_shared"
1777 p=${PACKAGE-default}
1779 yes) enable_shared=yes ;;
1780 no) enable_shared=no ;;
1783 # Look at the argument we got. We use all the common list separators.
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1785 for pkg in $enableval; do
1786 if test "X$pkg" = "X$p"; then
1796 # Check whether --enable-static or --disable-static was given.
1797 if test "${enable_static+set}" = set; then
1798 enableval="$enable_static"
1799 p=${PACKAGE-default}
1801 yes) enable_static=yes ;;
1802 no) enable_static=no ;;
1805 # Look at the argument we got. We use all the common list separators.
1806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1807 for pkg in $enableval; do
1808 if test "X$pkg" = "X$p"; then
1818 # Check whether --enable-fast-install or --disable-fast-install was given.
1819 if test "${enable_fast_install+set}" = set; then
1820 enableval="$enable_fast_install"
1821 p=${PACKAGE-default}
1823 yes) enable_fast_install=yes ;;
1824 no) enable_fast_install=no ;;
1826 enable_fast_install=no
1827 # Look at the argument we got. We use all the common list separators.
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1829 for pkg in $enableval; do
1830 if test "X$pkg" = "X$p"; then
1831 enable_fast_install=yes
1838 enable_fast_install=yes
1840 # Make sure we can run config.sub.
1841 $ac_config_sub sun4 >/dev/null 2>&1 ||
1842 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1843 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1844 { (exit 1); exit 1; }; }
1846 echo "$as_me:$LINENO: checking build system type" >&5
1847 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1848 if test "${ac_cv_build+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 ac_cv_build_alias=$build_alias
1852 test -z "$ac_cv_build_alias" &&
1853 ac_cv_build_alias=`$ac_config_guess`
1854 test -z "$ac_cv_build_alias" &&
1855 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1857 { (exit 1); exit 1; }; }
1858 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1859 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1860 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1861 { (exit 1); exit 1; }; }
1864 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1865 echo "${ECHO_T}$ac_cv_build" >&6
1867 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1868 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1869 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1872 echo "$as_me:$LINENO: checking host system type" >&5
1873 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1874 if test "${ac_cv_host+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 ac_cv_host_alias=$host_alias
1878 test -z "$ac_cv_host_alias" &&
1879 ac_cv_host_alias=$ac_cv_build_alias
1880 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1881 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1882 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1883 { (exit 1); exit 1; }; }
1886 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1887 echo "${ECHO_T}$ac_cv_host" >&6
1889 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1890 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1891 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1894 rm -f .deps 2>/dev/null
1895 mkdir .deps 2>/dev/null
1896 if test -d .deps; then
1899 # MS-DOS does not allow filenames that begin with a dot.
1902 rmdir .deps 2>/dev/null
1905 ac_config_commands="$ac_config_commands depfiles"
1908 am_make=${MAKE-make}
1909 cat > confinc << 'END'
1913 # If we don't find an include directive, just comment out the code.
1914 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1915 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1919 # First try GNU make style include.
1920 echo "include confinc" > confmf
1921 # We grep out `Entering directory' and `Leaving directory'
1922 # messages which can occur if `w' ends up in MAKEFLAGS.
1923 # In particular we don't look at `^make:' because GNU make might
1924 # be invoked under some other name (usually "gmake"), in which
1925 # case it prints its new name instead of `make'.
1926 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1931 # Now try BSD make style include.
1932 if test "$am__include" = "#"; then
1933 echo '.include "confinc"' > confmf
1934 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1935 am__include=.include
1942 echo "$as_me:$LINENO: result: $_am_result" >&5
1943 echo "${ECHO_T}$_am_result" >&6
1944 rm -f confinc confmf
1946 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1947 if test "${enable_dependency_tracking+set}" = set; then
1948 enableval="$enable_dependency_tracking"
1951 if test "x$enable_dependency_tracking" != xno; then
1952 am_depcomp="$ac_aux_dir/depcomp"
1957 if test "x$enable_dependency_tracking" != xno; then
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 if test -n "$ac_tool_prefix"; then
1973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 if test -n "$CC"; then
2001 echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2009 if test -z "$ac_cv_prog_CC"; then
2011 # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; 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_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 ac_cv_prog_ac_ct_CC="gcc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2051 if test -z "$CC"; then
2052 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}cc; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_CC="${ac_tool_prefix}cc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2089 if test -z "$ac_cv_prog_CC"; then
2091 # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$ac_ct_CC"; then
2099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108 ac_cv_prog_ac_ct_CC="cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118 if test -n "$ac_ct_CC"; then
2119 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120 echo "${ECHO_T}$ac_ct_CC" >&6
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2132 if test -z "$CC"; then
2133 # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2152 ac_prog_rejected=yes
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 if test $ac_prog_rejected = yes; then
2163 # We found a bogon in the path, so make sure we never use it.
2164 set dummy $ac_cv_prog_CC
2166 if test $# != 0; then
2167 # We chose a different compiler from the bogus one.
2168 # However, it has the same basename, so the bogon will be chosen
2169 # first if we set CC to just the basename; use the full file name.
2171 set dummy "$as_dir/$ac_word" ${1+"$@"}
2179 if test -n "$CC"; then
2180 echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6
2183 echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2227 test -n "$CC" && break
2230 if test -z "$CC"; then
2234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2235 set dummy $ac_prog; ac_word=$2
2236 echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$ac_ct_CC"; then
2242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251 ac_cv_prog_ac_ct_CC="$ac_prog"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261 if test -n "$ac_ct_CC"; then
2262 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263 echo "${ECHO_T}$ac_ct_CC" >&6
2265 echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2269 test -n "$ac_ct_CC" && break
2278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2279 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2280 { (exit 1); exit 1; }; }
2282 # Provide some information about the compiler.
2283 echo "$as_me:$LINENO:" \
2284 "checking for C compiler version" >&5
2285 ac_compiler=`set X $ac_compile; echo $2`
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2287 (eval $ac_compiler --version </dev/null >&5) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }
2291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2292 (eval $ac_compiler -v </dev/null >&5) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }
2296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2297 (eval $ac_compiler -V </dev/null >&5) 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2306 #ifdef F77_DUMMY_MAIN
2310 int F77_DUMMY_MAIN() { return 1; }
2320 ac_clean_files_save=$ac_clean_files
2321 ac_clean_files="$ac_clean_files a.out a.exe"
2322 # Try to create an executable without -o first, disregard a.out.
2323 # It will help us diagnose broken compilers, and finding out an intuition
2325 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2326 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2327 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2328 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2329 (eval $ac_link_default) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 # Find the output, starting from the most likely. This scheme is
2334 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2337 # Be careful to initialize this variable, since it used to be cached.
2338 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2340 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2341 ls a.out conftest 2>/dev/null;
2342 ls a.* conftest.* 2>/dev/null`; do
2344 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2345 a.out ) # We found the default executable, but exeext='' is most
2348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2356 echo "$as_me: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2359 echo "$as_me: error: C compiler cannot create executables" >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2364 echo "$as_me:$LINENO: result: $ac_file" >&5
2365 echo "${ECHO_T}$ac_file" >&6
2367 # Check the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2372 # If not cross compiling, check that we can run a simple program.
2373 if test "$cross_compiling" != yes; then
2374 if { ac_try='./$ac_file'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2382 if test "$cross_compiling" = maybe; then
2385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'." >&5
2387 echo "$as_me: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'." >&2;}
2389 { (exit 1); exit 1; }; }
2393 echo "$as_me:$LINENO: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2396 rm -f a.out a.exe conftest$ac_cv_exeext
2397 ac_clean_files=$ac_clean_files_save
2398 # Check the compiler produces executables we can run. If not, either
2399 # the compiler is broken, or we cross compile.
2400 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2401 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2402 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2403 echo "${ECHO_T}$cross_compiling" >&6
2405 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2406 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2408 (eval $ac_link) 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2418 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2428 { (exit 1); exit 1; }; }
2431 rm -f conftest$ac_cv_exeext
2432 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2433 echo "${ECHO_T}$ac_cv_exeext" >&6
2435 rm -f conftest.$ac_ext
2436 EXEEXT=$ac_cv_exeext
2438 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2439 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2440 if test "${ac_cv_objext+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 #include "confdefs.h"
2447 #ifdef F77_DUMMY_MAIN
2451 int F77_DUMMY_MAIN() { return 1; }
2461 rm -f conftest.o conftest.obj
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; then
2467 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2475 echo "$as_me: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2478 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2479 { (exit 1); exit 1; }; }
2482 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2484 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2485 echo "${ECHO_T}$ac_cv_objext" >&6
2486 OBJEXT=$ac_cv_objext
2488 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2489 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2490 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 cat >conftest.$ac_ext <<_ACEOF
2494 #line $LINENO "configure"
2495 #include "confdefs.h"
2497 #ifdef F77_DUMMY_MAIN
2501 int F77_DUMMY_MAIN() { return 1; }
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2532 rm -f conftest.$ac_objext conftest.$ac_ext
2533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2537 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2538 GCC=`test $ac_compiler_gnu = yes && echo yes`
2539 ac_test_CFLAGS=${CFLAGS+set}
2540 ac_save_CFLAGS=$CFLAGS
2542 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_g+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #line $LINENO "configure"
2549 #include "confdefs.h"
2551 #ifdef F77_DUMMY_MAIN
2555 int F77_DUMMY_MAIN() { return 1; }
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2579 echo "$as_me: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2587 if test "$ac_test_CFLAGS" = set; then
2588 CFLAGS=$ac_save_CFLAGS
2589 elif test $ac_cv_prog_cc_g = yes; then
2590 if test "$GCC" = yes; then
2596 if test "$GCC" = yes; then
2602 # Some people use a C++ compiler to compile C. Since we use `exit',
2603 # in C++ we need to declare it. In case someone uses the same compiler
2604 # for both compiling C and C++ we need to have the C++ compiler decide
2605 # the declaration of exit, since it's the most demanding environment.
2606 cat >conftest.$ac_ext <<_ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration in \
2625 '#include <stdlib.h>' \
2626 'extern "C" void std::exit (int) throw (); using std::exit;' \
2627 'extern "C" void std::exit (int); using std::exit;' \
2628 'extern "C" void exit (int) throw ();' \
2629 'extern "C" void exit (int);' \
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2634 #include "confdefs.h"
2637 #ifdef F77_DUMMY_MAIN
2641 int F77_DUMMY_MAIN() { return 1; }
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2670 cat >conftest.$ac_ext <<_ACEOF
2671 #line $LINENO "configure"
2672 #include "confdefs.h"
2674 #ifdef F77_DUMMY_MAIN
2678 int F77_DUMMY_MAIN() { return 1; }
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2702 echo "$as_me: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 rm -f conftest.$ac_objext conftest.$ac_ext
2708 if test -n "$ac_declaration"; then
2709 echo '#ifdef __cplusplus' >>confdefs.h
2710 echo $ac_declaration >>confdefs.h
2711 echo '#endif' >>confdefs.h
2715 echo "$as_me: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 rm -f conftest.$ac_objext conftest.$ac_ext
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 depcc="$CC" am_compiler_list=
2727 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2728 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2729 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2733 # We make a subdir and do the tests there. Otherwise we can end up
2734 # making bogus files that we don't know about and never remove. For
2735 # instance it was reported that on HP-UX the gcc test will end up
2736 # making a dummy file named `D' -- because `-MD' means `put the output
2739 # Copy depcomp to subdir because otherwise we won't find it if we're
2740 # using a relative directory.
2741 cp "$am_depcomp" conftest.dir
2744 am_cv_CC_dependencies_compiler_type=none
2745 if test "$am_compiler_list" = ""; then
2746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2748 for depmode in $am_compiler_list; do
2749 # We need to recreate these files for each test, as the compiler may
2750 # overwrite some of them when testing with obscure command lines.
2751 # This happens at least with the AIX C compiler.
2752 echo '#include "conftest.h"' > conftest.c
2753 echo 'int i;' > conftest.h
2754 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2758 # after this tag, mechanisms are not by side-effect, so they'll
2759 # only be used when explicitly requested
2760 if test "x$enable_dependency_tracking" = xyes; then
2768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2769 # mode. It turns out that the SunPro C++ compiler does not properly
2770 # handle `-M -o', and we need to detect this.
2771 if depmode=$depmode \
2772 source=conftest.c object=conftest.o \
2773 depfile=conftest.Po tmpdepfile=conftest.TPo \
2774 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2775 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2777 am_cv_CC_dependencies_compiler_type=$depmode
2785 am_cv_CC_dependencies_compiler_type=none
2789 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2794 # Find the correct PATH separator. Usually this is `:', but
2795 # DJGPP uses `;' like DOS.
2796 if test "X${PATH_SEPARATOR+set}" != Xset; then
2797 UNAME=${UNAME-`uname 2>/dev/null`}
2799 *-DOS) lt_cv_sys_path_separator=';' ;;
2800 *) lt_cv_sys_path_separator=':' ;;
2802 PATH_SEPARATOR=$lt_cv_sys_path_separator
2806 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2807 if test "${with_gnu_ld+set}" = set; then
2808 withval="$with_gnu_ld"
2809 test "$withval" = no || with_gnu_ld=yes
2814 if test "$GCC" = yes; then
2815 # Check if gcc -print-prog-name=ld gives a path.
2816 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2817 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2820 # gcc leaves a trailing carriage return which upsets mingw
2821 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2823 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2826 # Accept absolute paths.
2827 [\\/]* | [A-Za-z]:[\\/]*)
2828 re_direlt='/[^/][^/]*/\.\./'
2829 # Canonicalize the path of ld
2830 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2831 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2832 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2834 test -z "$LD" && LD="$ac_prog"
2837 # If it fails, then pretend we aren't using GCC.
2841 # If it is relative, then search for the first ld in PATH.
2845 elif test "$with_gnu_ld" = yes; then
2846 echo "$as_me:$LINENO: checking for GNU ld" >&5
2847 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2849 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2850 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2852 if test "${lt_cv_path_LD+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -z "$LD"; then
2856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2857 for ac_dir in $PATH; do
2858 test -z "$ac_dir" && ac_dir=.
2859 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2860 lt_cv_path_LD="$ac_dir/$ac_prog"
2861 # Check to see if the program is GNU ld. I'd rather use --version,
2862 # but apparently some GNU ld's only accept -v.
2863 # Break only if it was the GNU/non-GNU ld that we prefer.
2864 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2865 test "$with_gnu_ld" != no && break
2867 test "$with_gnu_ld" != yes && break
2873 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2878 if test -n "$LD"; then
2879 echo "$as_me:$LINENO: result: $LD" >&5
2880 echo "${ECHO_T}$LD" >&6
2882 echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2885 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2886 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2887 { (exit 1); exit 1; }; }
2888 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2889 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2894 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2895 lt_cv_prog_gnu_ld=yes
2897 lt_cv_prog_gnu_ld=no
2900 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2901 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2902 with_gnu_ld=$lt_cv_prog_gnu_ld
2905 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2906 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2907 if test "${lt_cv_ld_reload_flag+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 lt_cv_ld_reload_flag='-r'
2912 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2913 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2914 reload_flag=$lt_cv_ld_reload_flag
2915 test -n "$reload_flag" && reload_flag=" $reload_flag"
2917 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2918 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2919 if test "${lt_cv_path_NM+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 if test -n "$NM"; then
2923 # Let the user override the test.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2927 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2928 test -z "$ac_dir" && ac_dir=.
2929 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2930 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2931 # Check to see if the nm accepts a BSD-compat flag.
2932 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2933 # nm: unknown option "B" ignored
2934 # Tru64's nm complains that /dev/null is an invalid object file
2935 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2936 lt_cv_path_NM="$tmp_nm -B"
2938 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2939 lt_cv_path_NM="$tmp_nm -p"
2942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2943 continue # so that we can try to find one that supports BSD flags
2948 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2953 echo "$as_me:$LINENO: result: $NM" >&5
2954 echo "${ECHO_T}$NM" >&6
2956 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2957 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2959 if test "$LN_S" = "ln -s"; then
2960 echo "$as_me:$LINENO: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2963 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2964 echo "${ECHO_T}no, using $LN_S" >&6
2967 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2968 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2969 if test "${lt_cv_deplibs_check_method+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 lt_cv_file_magic_cmd='$MAGIC_CMD'
2973 lt_cv_file_magic_test_file=
2974 lt_cv_deplibs_check_method='unknown'
2975 # Need to set the preceding variable on all platforms that support
2976 # interlibrary dependencies.
2977 # 'none' -- dependencies not supported.
2978 # `unknown' -- same as none, but documents that we really don't know.
2979 # 'pass_all' -- all dependencies passed with no checks.
2980 # 'test_compile' -- check by making test program.
2981 # 'file_magic [[regex]]' -- check by looking for files in library path
2982 # which responds to the $file_magic_cmd with a given egrep regex.
2983 # If you have `file' or equivalent on your system and you're not sure
2984 # whether `pass_all' will *always* work, you probably want this one.
2988 lt_cv_deplibs_check_method=pass_all
2992 lt_cv_deplibs_check_method=pass_all
2996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2997 lt_cv_file_magic_cmd='/usr/bin/file -L'
2998 lt_cv_file_magic_test_file=/shlib/libc.so
3001 cygwin* | mingw* | pw32*)
3002 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3003 lt_cv_file_magic_cmd='$OBJDUMP -f'
3006 darwin* | rhapsody*)
3007 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3008 lt_cv_file_magic_cmd='/usr/bin/file -L'
3010 rhapsody* | darwin1.[012])
3011 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3014 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3023 # Not sure whether the presence of OpenBSD here was a mistake.
3024 # Let's accept both of them until this is cleared up.
3025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3026 lt_cv_file_magic_cmd=/usr/bin/file
3027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3031 lt_cv_deplibs_check_method=pass_all
3036 lt_cv_deplibs_check_method=pass_all
3040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3041 lt_cv_file_magic_cmd=/usr/bin/file
3042 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3045 irix5* | irix6* | nonstopux*)
3047 irix5* | nonstopux*)
3048 # this will be overridden with pass_all, but let us keep it just in case
3049 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3053 *-32|*"-32 ") libmagic=32-bit;;
3054 *-n32|*"-n32 ") libmagic=N32;;
3055 *-64|*"-64 ") libmagic=64-bit;;
3056 *) libmagic=never-match;;
3058 # this will be overridden with pass_all, but let us keep it just in case
3059 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3062 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3063 lt_cv_deplibs_check_method=pass_all
3066 # This must be Linux ELF.
3068 lt_cv_deplibs_check_method=pass_all
3069 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3073 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3074 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3076 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3082 lt_cv_file_magic_cmd=/usr/bin/file
3083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3087 lt_cv_file_magic_cmd=/usr/bin/file
3088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3092 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3096 osf3* | osf4* | osf5*)
3097 # this will be overridden with pass_all, but let us keep it just in case
3098 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3099 lt_cv_file_magic_test_file=/shlib/libc.so
3100 lt_cv_deplibs_check_method=pass_all
3104 lt_cv_deplibs_check_method=pass_all
3108 lt_cv_deplibs_check_method=pass_all
3109 lt_cv_file_magic_test_file=/lib/libc.so
3112 sysv5uw[78]* | sysv4*uw2*)
3113 lt_cv_deplibs_check_method=pass_all
3116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3117 case $host_vendor in
3119 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]'
3120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3123 lt_cv_deplibs_check_method=pass_all
3126 lt_cv_file_magic_cmd='/bin/file'
3127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3130 lt_cv_file_magic_cmd='/bin/file'
3131 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3132 lt_cv_file_magic_test_file=/lib/libc.so
3139 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3140 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3141 file_magic_cmd=$lt_cv_file_magic_cmd
3142 deplibs_check_method=$lt_cv_deplibs_check_method
3151 # Check for command to grab the raw symbol name followed by C symbol from nm.
3152 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3153 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3154 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 # These are sane defaults that work on at least a few old systems.
3159 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3161 # Character class describing NM global symbol codes.
3162 symcode='[BCDEGRST]'
3164 # Regexp to match symbols that can be accessed directly from C.
3165 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3167 # Transform the above into a raw symbol and a C symbol.
3168 symxfrm='\1 \2\3 \3'
3170 # Transform an extracted symbol line into a proper C declaration
3171 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3173 # Transform an extracted symbol line into symbol name and symbol address
3174 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'"
3176 # Define system-specific variables.
3181 cygwin* | mingw* | pw32*)
3182 symcode='[ABCDGISTW]'
3184 hpux*) # Its linker distinguishes data from code symbols
3185 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3186 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'"
3189 symcode='[BCDEGRST]'
3199 # Handle CRLF in mingw tool chain
3203 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3207 # If we're using GNU nm, then use its standard symbol codes.
3208 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3209 symcode='[ABCDGISTW]'
3212 # Try without a prefix undercore, then with it.
3213 for ac_symprfx in "" "_"; do
3215 # Write the raw and C identifiers.
3216 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3218 # Check to see that the pipe works correctly.
3221 cat > conftest.$ac_ext <<EOF
3226 void nm_test_func(){}
3230 int main(){nm_test_var='a';nm_test_func();return(0);}
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # Now try to grab the symbols.
3240 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && test -s "$nlist"; then
3245 # Try sorting and uniquifying the output.
3246 if sort "$nlist" | uniq > "$nlist"T; then
3247 mv -f "$nlist"T "$nlist"
3252 # Make sure that we snagged all the symbols we need.
3253 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3254 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3255 cat <<EOF > conftest.$ac_ext
3261 # Now generate the symbol file.
3262 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3264 cat <<EOF >> conftest.$ac_ext
3265 #if defined (__STDC__) && __STDC__
3266 # define lt_ptr void *
3268 # define lt_ptr char *
3272 /* The mapping between symbol names and symbols. */
3277 lt_preloaded_symbols[] =
3280 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3281 cat <<\EOF >> conftest.$ac_ext
3289 # Now try linking the two files.
3290 mv conftest.$ac_objext conftstm.$ac_objext
3292 save_CFLAGS="$CFLAGS"
3293 LIBS="conftstm.$ac_objext"
3294 CFLAGS="$CFLAGS$no_builtin_flag"
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } && test -s conftest; then
3303 CFLAGS="$save_CFLAGS"
3305 echo "cannot find nm_test_func in $nlist" >&5
3308 echo "cannot find nm_test_var in $nlist" >&5
3311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3314 echo "$progname: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 rm -f conftest* conftst*
3319 # Do not use the global_symbol_pipe unless it works.
3320 if test "$pipe_works" = yes; then
3323 lt_cv_sys_global_symbol_pipe=
3329 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3330 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3331 global_symbol_to_cdecl=
3332 global_symbol_to_c_name_address=
3334 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3335 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3337 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3339 echo "$as_me:$LINENO: result: failed" >&5
3340 echo "${ECHO_T}failed" >&6
3342 echo "$as_me:$LINENO: result: ok" >&5
3343 echo "${ECHO_T}ok" >&6
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3353 # On Suns, sometimes $CPP names a directory.
3354 if test -n "$CPP" && test -d "$CPP"; then
3357 if test -z "$CPP"; then
3358 if test "${ac_cv_prog_CPP+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 # Double quotes because CPP needs to be expanded
3362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365 for ac_c_preproc_warn_flag in '' yes
3367 # Use a header file that comes with gcc, so configuring glibc
3368 # with a fresh cross-compiler works.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line $LINENO "configure"
3373 #include "confdefs.h"
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 egrep -v '^ *\+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3398 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether non-existent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 #include "confdefs.h"
3408 #include <ac_nonexistent.h>
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 egrep -v '^ *\+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3426 if test -z "$ac_cpp_err"; then
3427 # Broken: success on invalid input.
3430 echo "$as_me: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3432 # Passes both tests.
3436 rm -f conftest.err conftest.$ac_ext
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3453 echo "$as_me:$LINENO: result: $CPP" >&5
3454 echo "${ECHO_T}$CPP" >&6
3456 for ac_c_preproc_warn_flag in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 #include "confdefs.h"
3468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3471 egrep -v '^ *\+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3484 if test -z "$ac_cpp_err"; then
3487 echo "$as_me: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3489 # Broken: fails on valid input.
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether non-existent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 #include "confdefs.h"
3499 #include <ac_nonexistent.h>
3501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3504 egrep -v '^ *\+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null; then
3509 if test -s conftest.err; then
3510 ac_cpp_err=$ac_c_preproc_warn_flag
3517 if test -z "$ac_cpp_err"; then
3518 # Broken: success on invalid input.
3521 echo "$as_me: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3523 # Passes both tests.
3527 rm -f conftest.err conftest.$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3535 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3537 { (exit 1); exit 1; }; }
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3549 if test "${ac_cv_header_stdc+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3564 egrep -v '^ *\+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3577 if test -z "$ac_cpp_err"; then
3578 ac_cv_header_stdc=yes
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 ac_cv_header_stdc=no
3584 rm -f conftest.err conftest.$ac_ext
3586 if test $ac_cv_header_stdc = yes; then
3587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3595 egrep "memchr" >/dev/null 2>&1; then
3598 ac_cv_header_stdc=no
3604 if test $ac_cv_header_stdc = yes; then
3605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3606 cat >conftest.$ac_ext <<_ACEOF
3607 #line $LINENO "configure"
3608 #include "confdefs.h"
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613 egrep "free" >/dev/null 2>&1; then
3616 ac_cv_header_stdc=no
3622 if test $ac_cv_header_stdc = yes; then
3623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3624 if test "$cross_compiling" = yes; then
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line $LINENO "configure"
3629 #include "confdefs.h"
3631 #if ((' ' & 0x0FF) == 0x020)
3632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3635 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3636 || ('j' <= (c) && (c) <= 'r') \
3637 || ('s' <= (c) && (c) <= 'z'))
3638 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3646 for (i = 0; i < 256; i++)
3647 if (XOR (islower (i), ISLOWER (i))
3648 || toupper (i) != TOUPPER (i))
3653 rm -f conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655 (eval $ac_link) 2>&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3666 echo "$as_me: program exited with status $ac_status" >&5
3667 echo "$as_me: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 ac_cv_header_stdc=no
3672 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3676 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3677 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3678 if test $ac_cv_header_stdc = yes; then
3680 cat >>confdefs.h <<\_ACEOF
3681 #define STDC_HEADERS 1
3686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3697 inttypes.h stdint.h unistd.h
3699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3700 echo "$as_me:$LINENO: checking for $ac_header" >&5
3701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line $LINENO "configure"
3707 #include "confdefs.h"
3708 $ac_includes_default
3710 #include <$ac_header>
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 eval "$as_ac_Header=yes"
3726 echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 eval "$as_ac_Header=no"
3730 rm -f conftest.$ac_objext conftest.$ac_ext
3732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3735 cat >>confdefs.h <<_ACEOF
3736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3745 for ac_header in dlfcn.h
3747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo "$as_me:$LINENO: checking for $ac_header" >&5
3750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3757 # Is the header compilable?
3758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3760 cat >conftest.$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 #include "confdefs.h"
3763 $ac_includes_default
3764 #include <$ac_header>
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 ac_header_compiler=yes
3780 echo "$as_me: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 ac_header_compiler=no
3784 rm -f conftest.$ac_objext conftest.$ac_ext
3785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3786 echo "${ECHO_T}$ac_header_compiler" >&6
3788 # Is the header present?
3789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3791 cat >conftest.$ac_ext <<_ACEOF
3792 #line $LINENO "configure"
3793 #include "confdefs.h"
3794 #include <$ac_header>
3796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3799 egrep -v '^ *\+' conftest.er1 >conftest.err
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } >/dev/null; then
3804 if test -s conftest.err; then
3805 ac_cpp_err=$ac_c_preproc_warn_flag
3812 if test -z "$ac_cpp_err"; then
3813 ac_header_preproc=yes
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 ac_header_preproc=no
3819 rm -f conftest.err conftest.$ac_ext
3820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3821 echo "${ECHO_T}$ac_header_preproc" >&6
3823 # So? What about this header?
3824 case $ac_header_compiler:$ac_header_preproc in
3826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3838 echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 eval "$as_ac_Header=$ac_header_preproc"
3845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3850 cat >>confdefs.h <<_ACEOF
3851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3862 # Only perform the check for file, if the check method requires it
3863 case $deplibs_check_method in
3865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3866 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3867 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3879 ac_save_MAGIC_CMD="$MAGIC_CMD"
3880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3881 ac_dummy="/usr/bin:$PATH"
3882 for ac_dir in $ac_dummy; do
3883 test -z "$ac_dir" && ac_dir=.
3884 if test -f $ac_dir/${ac_tool_prefix}file; then
3885 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3886 if test -n "$file_magic_test_file"; then
3887 case $deplibs_check_method in
3889 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3891 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3892 egrep "$file_magic_regex" > /dev/null; then
3897 *** Warning: the command libtool uses to detect shared libraries,
3898 *** $file_magic_cmd, produces output that libtool cannot recognize.
3899 *** The result is that libtool may fail to recognize shared libraries
3900 *** as such. This will affect the creation of libtool libraries that
3901 *** depend on shared libraries, but programs linked with such libtool
3902 *** libraries will work regardless of this problem. Nevertheless, you
3903 *** may want to report the problem to your system manager and/or to
3904 *** bug-libtool@gnu.org
3914 MAGIC_CMD="$ac_save_MAGIC_CMD"
3919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3920 if test -n "$MAGIC_CMD"; then
3921 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3922 echo "${ECHO_T}$MAGIC_CMD" >&6
3924 echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3928 if test -z "$lt_cv_path_MAGIC_CMD"; then
3929 if test -n "$ac_tool_prefix"; then
3930 echo "$as_me:$LINENO: checking for file" >&5
3931 echo $ECHO_N "checking for file... $ECHO_C" >&6
3932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3943 ac_save_MAGIC_CMD="$MAGIC_CMD"
3944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3945 ac_dummy="/usr/bin:$PATH"
3946 for ac_dir in $ac_dummy; do
3947 test -z "$ac_dir" && ac_dir=.
3948 if test -f $ac_dir/file; then
3949 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3950 if test -n "$file_magic_test_file"; then
3951 case $deplibs_check_method in
3953 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3956 egrep "$file_magic_regex" > /dev/null; then
3961 *** Warning: the command libtool uses to detect shared libraries,
3962 *** $file_magic_cmd, produces output that libtool cannot recognize.
3963 *** The result is that libtool may fail to recognize shared libraries
3964 *** as such. This will affect the creation of libtool libraries that
3965 *** depend on shared libraries, but programs linked with such libtool
3966 *** libraries will work regardless of this problem. Nevertheless, you
3967 *** may want to report the problem to your system manager and/or to
3968 *** bug-libtool@gnu.org
3978 MAGIC_CMD="$ac_save_MAGIC_CMD"
3983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3984 if test -n "$MAGIC_CMD"; then
3985 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3986 echo "${ECHO_T}$MAGIC_CMD" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_RANLIB+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$RANLIB"; then
4010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 RANLIB=$ac_cv_prog_RANLIB
4029 if test -n "$RANLIB"; then
4030 echo "$as_me:$LINENO: result: $RANLIB" >&5
4031 echo "${ECHO_T}$RANLIB" >&6
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4038 if test -z "$ac_cv_prog_RANLIB"; then
4039 ac_ct_RANLIB=$RANLIB
4040 # Extract the first word of "ranlib", so it can be a program name with args.
4041 set dummy ranlib; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 if test -n "$ac_ct_RANLIB"; then
4048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_ac_ct_RANLIB="ranlib"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4068 if test -n "$ac_ct_RANLIB"; then
4069 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4070 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 RANLIB=$ac_ct_RANLIB
4078 RANLIB="$ac_cv_prog_RANLIB"
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}strip; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_STRIP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$STRIP"; then
4090 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 STRIP=$ac_cv_prog_STRIP
4109 if test -n "$STRIP"; then
4110 echo "$as_me:$LINENO: result: $STRIP" >&5
4111 echo "${ECHO_T}$STRIP" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4118 if test -z "$ac_cv_prog_STRIP"; then
4120 # Extract the first word of "strip", so it can be a program name with args.
4121 set dummy strip; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test -n "$ac_ct_STRIP"; then
4128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_STRIP="strip"
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4148 if test -n "$ac_ct_STRIP"; then
4149 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4150 echo "${ECHO_T}$ac_ct_STRIP" >&6
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4158 STRIP="$ac_cv_prog_STRIP"
4165 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4166 if test "${enable_libtool_lock+set}" = set; then
4167 enableval="$enable_libtool_lock"
4170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4172 # Some flags need to be propagated to the compiler or linker for good
4176 # Find out which ABI we are using.
4177 echo '#line 4177 "configure"' > conftest.$ac_ext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; then
4183 case `/usr/bin/file conftest.$ac_objext` in
4199 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4200 SAVE_CFLAGS="$CFLAGS"
4201 CFLAGS="$CFLAGS -belf"
4202 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4203 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4204 if test "${lt_cv_cc_needs_belf+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 cat >conftest.$ac_ext <<_ACEOF
4216 #line $LINENO "configure"
4217 #include "confdefs.h"
4219 #ifdef F77_DUMMY_MAIN
4223 int F77_DUMMY_MAIN() { return 1; }
4233 rm -f conftest.$ac_objext conftest$ac_exeext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4235 (eval $ac_link) 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 lt_cv_cc_needs_belf=yes
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 lt_cv_cc_needs_belf=no
4251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4260 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4261 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4262 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4263 CFLAGS="$SAVE_CFLAGS"
4270 # Sed substitution that helps us do robust quoting. It backslashifies
4271 # metacharacters that are still active within double-quoted strings.
4272 Xsed='sed -e s/^X//'
4273 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4275 # Same as above, but do not quote variable references.
4276 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4278 # Sed substitution to delay expansion of an escaped shell variable in a
4279 # double_quote_subst'ed string.
4280 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4286 default_ofile=libtool
4287 can_build_shared=yes
4289 # All known linkers require a `.a' archive for static linking (except M$VC,
4290 # which needs '.lib').
4292 ltmain="$ac_aux_dir/ltmain.sh"
4293 ofile="$default_ofile"
4294 with_gnu_ld="$lt_cv_prog_gnu_ld"
4295 need_locks="$enable_libtool_lock"
4298 old_CFLAGS="$CFLAGS"
4300 # Set sane defaults for various variables
4301 test -z "$AR" && AR=ar
4302 test -z "$AR_FLAGS" && AR_FLAGS=cru
4303 test -z "$AS" && AS=as
4304 test -z "$CC" && CC=cc
4305 test -z "$DLLTOOL" && DLLTOOL=dlltool
4306 test -z "$LD" && LD=ld
4307 test -z "$LN_S" && LN_S="ln -s"
4308 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4309 test -z "$NM" && NM=nm
4310 test -z "$OBJDUMP" && OBJDUMP=objdump
4311 test -z "$RANLIB" && RANLIB=:
4312 test -z "$STRIP" && STRIP=:
4313 test -z "$ac_objext" && ac_objext=o
4315 if test x"$host" != x"$build"; then
4316 ac_tool_prefix=${host_alias}-
4321 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4324 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4329 # AIX sometimes has problems with the GCC collect2 program. For some
4330 # reason, if we set the COLLECT_NAMES environment variable, the problems
4331 # vanish in a puff of smoke.
4332 if test "X${COLLECT_NAMES+set}" != Xset; then
4334 export COLLECT_NAMES
4339 # Determine commands to create old-style static archives.
4340 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4341 old_postinstall_cmds='chmod 644 $oldlib'
4342 old_postuninstall_cmds=
4344 if test -n "$RANLIB"; then
4347 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4350 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4353 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4356 # Allow CC to be a program name with arguments.
4360 echo "$as_me:$LINENO: checking for objdir" >&5
4361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4362 rm -f .libs 2>/dev/null
4363 mkdir .libs 2>/dev/null
4364 if test -d .libs; then
4367 # MS-DOS does not allow filenames that begin with a dot.
4370 rmdir .libs 2>/dev/null
4371 echo "$as_me:$LINENO: result: $objdir" >&5
4372 echo "${ECHO_T}$objdir" >&6
4376 # Check whether --with-pic or --without-pic was given.
4377 if test "${with_pic+set}" = set; then
4383 test -z "$pic_mode" && pic_mode=default
4385 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4386 # in isolation, and that seeing it set (from the cache) indicates that
4387 # the associated values are set (in the cache) correctly too.
4388 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4390 if test "${lt_cv_prog_cc_pic+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 lt_cv_prog_cc_shlib=
4396 lt_cv_prog_cc_static=
4397 lt_cv_prog_cc_no_builtin=
4398 lt_cv_prog_cc_can_build_shared=$can_build_shared
4400 if test "$GCC" = yes; then
4401 lt_cv_prog_cc_wl='-Wl,'
4402 lt_cv_prog_cc_static='-static'
4406 # Below there is a dirty hack to force normal static linking with -ldl
4407 # The problem is because libdl dynamically linked with both libc and
4408 # libC (AIX C++ library), which obviously doesn't included in libraries
4409 # list by gcc. This cause undefined symbols with -static flags.
4410 # This hack allows C programs to be linked with "-static -ldl", but
4411 # not sure about C++ programs.
4412 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4415 # FIXME: we need at least 68020 code to build shared libraries, but
4416 # adding the `-m68020' flag to GCC prevents building anything better,
4418 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4420 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4421 # PIC is the default for these OSes.
4423 darwin* | rhapsody*)
4424 # PIC is the default on this platform
4425 # Common symbols not allowed in MH_DYLIB files
4426 lt_cv_prog_cc_pic='-fno-common'
4428 cygwin* | mingw* | pw32* | os2*)
4429 # This hack is so that the source file can tell whether it is being
4430 # built for inclusion in a dll (and should export symbols for example).
4431 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4434 if test -d /usr/nec; then
4435 lt_cv_prog_cc_pic=-Kconform_pic
4439 lt_cv_prog_cc_pic='-fPIC'
4443 # PORTME Check for PIC flags for the system compiler.
4445 aix3* | aix4* | aix5*)
4446 lt_cv_prog_cc_wl='-Wl,'
4447 # All AIX code is PIC.
4448 if test "$host_cpu" = ia64; then
4449 # AIX 5 now supports IA64 processor
4450 lt_cv_prog_cc_static='-Bstatic'
4452 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4456 hpux9* | hpux10* | hpux11*)
4457 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4458 lt_cv_prog_cc_wl='-Wl,'
4459 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4460 lt_cv_prog_cc_pic='+Z'
4463 irix5* | irix6* | nonstopux*)
4464 lt_cv_prog_cc_wl='-Wl,'
4465 lt_cv_prog_cc_static='-non_shared'
4466 # PIC (with -KPIC) is the default.
4469 cygwin* | mingw* | pw32* | os2*)
4470 # This hack is so that the source file can tell whether it is being
4471 # built for inclusion in a dll (and should export symbols for example).
4472 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4476 lt_cv_prog_cc_pic='-KPIC'
4477 lt_cv_prog_cc_static='-Bstatic'
4480 osf3* | osf4* | osf5*)
4481 # All OSF/1 code is PIC.
4482 lt_cv_prog_cc_wl='-Wl,'
4483 lt_cv_prog_cc_static='-non_shared'
4487 lt_cv_prog_cc_pic='-Kpic'
4488 lt_cv_prog_cc_static='-dn'
4489 lt_cv_prog_cc_shlib='-belf'
4493 lt_cv_prog_cc_pic='-KPIC'
4494 lt_cv_prog_cc_static='-Bstatic'
4495 lt_cv_prog_cc_wl='-Wl,'
4499 lt_cv_prog_cc_pic='-PIC'
4500 lt_cv_prog_cc_static='-Bstatic'
4501 lt_cv_prog_cc_wl='-Qoption ld '
4504 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4505 lt_cv_prog_cc_pic='-KPIC'
4506 lt_cv_prog_cc_static='-Bstatic'
4507 if test "x$host_vendor" = xsni; then
4508 lt_cv_prog_cc_wl='-LD'
4510 lt_cv_prog_cc_wl='-Wl,'
4515 lt_cv_prog_cc_pic='-pic'
4516 lt_cv_prog_cc_static='-Bstatic'
4520 if test -d /usr/nec ;then
4521 lt_cv_prog_cc_pic='-Kconform_pic'
4522 lt_cv_prog_cc_static='-Bstatic'
4527 lt_cv_prog_cc_can_build_shared=no
4534 if test -z "$lt_cv_prog_cc_pic"; then
4535 echo "$as_me:$LINENO: result: none" >&5
4536 echo "${ECHO_T}none" >&6
4538 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4539 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4541 # Check to make sure the pic_flag actually works.
4542 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4543 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4544 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 save_CFLAGS="$CFLAGS"
4548 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4549 cat >conftest.$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4551 #include "confdefs.h"
4553 #ifdef F77_DUMMY_MAIN
4557 int F77_DUMMY_MAIN() { return 1; }
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4580 hpux9* | hpux10* | hpux11*)
4581 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4582 # they create non-PIC objects. So, if there were any warnings, we
4583 # assume that PIC is not supported.
4584 if test -s conftest.err; then
4585 lt_cv_prog_cc_pic_works=no
4587 lt_cv_prog_cc_pic_works=yes
4591 lt_cv_prog_cc_pic_works=yes
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598 lt_cv_prog_cc_pic_works=no
4601 rm -f conftest.$ac_objext conftest.$ac_ext
4602 CFLAGS="$save_CFLAGS"
4607 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4609 lt_cv_prog_cc_can_build_shared=no
4611 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4614 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4615 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4618 # Check for any special shared library compilation flags.
4619 if test -n "$lt_cv_prog_cc_shlib"; then
4620 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4621 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4622 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4624 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4625 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4626 lt_cv_prog_cc_can_build_shared=no
4630 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4631 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4632 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 lt_cv_prog_cc_static_works=no
4636 save_LDFLAGS="$LDFLAGS"
4637 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4638 cat >conftest.$ac_ext <<_ACEOF
4639 #line $LINENO "configure"
4640 #include "confdefs.h"
4642 #ifdef F77_DUMMY_MAIN
4646 int F77_DUMMY_MAIN() { return 1; }
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -s conftest$ac_exeext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 lt_cv_prog_cc_static_works=yes
4670 echo "$as_me: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4674 LDFLAGS="$save_LDFLAGS"
4679 # Belt *and* braces to stop my trousers falling down:
4680 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4681 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4682 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4684 pic_flag="$lt_cv_prog_cc_pic"
4685 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4686 wl="$lt_cv_prog_cc_wl"
4687 link_static_flag="$lt_cv_prog_cc_static"
4688 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4689 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4692 # Check to see if options -o and -c are simultaneously supported by compiler
4693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4695 if test "${lt_cv_compiler_c_o+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 $rm -r conftest 2>/dev/null
4702 echo "int some_variable = 0;" > conftest.$ac_ext
4704 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4705 # that will create temporary files in the current directory regardless of
4706 # the output directory. Thus, making CWD read-only will cause this test
4707 # to fail, enabling locking or at least warning the user not to do parallel
4710 save_CFLAGS="$CFLAGS"
4711 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4713 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4714 # The compiler can only warn and ignore the option if not recognized
4715 # So say no if there are warnings
4716 if test -s out/conftest.err; then
4717 lt_cv_compiler_c_o=no
4719 lt_cv_compiler_c_o=yes
4722 # Append any errors to the config.log.
4723 cat out/conftest.err 1>&5
4724 lt_cv_compiler_c_o=no
4726 CFLAGS="$save_CFLAGS"
4732 $rm -r conftest 2>/dev/null
4736 compiler_c_o=$lt_cv_compiler_c_o
4737 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4738 echo "${ECHO_T}$compiler_c_o" >&6
4740 if test x"$compiler_c_o" = x"yes"; then
4741 # Check to see if we can write to a .lo
4742 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4743 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4744 if test "${lt_cv_compiler_o_lo+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 lt_cv_compiler_o_lo=no
4749 save_CFLAGS="$CFLAGS"
4750 CFLAGS="$CFLAGS -c -o conftest.lo"
4751 save_objext="$ac_objext"
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 #include "confdefs.h"
4757 #ifdef F77_DUMMY_MAIN
4761 int F77_DUMMY_MAIN() { return 1; }
4766 int some_variable = 0;
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 # The compiler can only warn and ignore the option if not recognized
4784 # So say no if there are warnings
4785 if test -s conftest.err; then
4786 lt_cv_compiler_o_lo=no
4788 lt_cv_compiler_o_lo=yes
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796 ac_objext="$save_objext"
4797 CFLAGS="$save_CFLAGS"
4801 compiler_o_lo=$lt_cv_compiler_o_lo
4802 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4803 echo "${ECHO_T}$compiler_o_lo" >&6
4808 # Check to see if we can do hard links to lock some files if needed
4809 hard_links="nottested"
4810 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4811 # do not overwrite the value of need_locks provided by the user
4812 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4818 ln conftest.a conftest.b 2>&5 || hard_links=no
4819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4820 echo "$as_me:$LINENO: result: $hard_links" >&5
4821 echo "${ECHO_T}$hard_links" >&6
4822 if test "$hard_links" = no; then
4823 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4831 if test "$GCC" = yes; then
4832 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4833 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4834 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4835 echo "int some_variable = 0;" > conftest.$ac_ext
4836 save_CFLAGS="$CFLAGS"
4837 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4838 compiler_rtti_exceptions=no
4839 cat >conftest.$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4841 #include "confdefs.h"
4843 #ifdef F77_DUMMY_MAIN
4847 int F77_DUMMY_MAIN() { return 1; }
4852 int some_variable = 0;
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 # The compiler can only warn and ignore the option if not recognized
4870 # So say no if there are warnings
4871 if test -s conftest.err; then
4872 compiler_rtti_exceptions=no
4874 compiler_rtti_exceptions=yes
4878 echo "$as_me: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4881 rm -f conftest.$ac_objext conftest.$ac_ext
4882 CFLAGS="$save_CFLAGS"
4883 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4884 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4886 if test "$compiler_rtti_exceptions" = "yes"; then
4887 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4889 no_builtin_flag=' -fno-builtin'
4893 # See if the linker supports building shared libraries.
4894 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4895 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4897 allow_undefined_flag=
4899 need_lib_prefix=unknown
4900 need_version=unknown
4901 # when you set need_version to no, make sure it does not cause -set_version
4902 # flags to be left without arguments
4904 archive_expsym_cmds=
4905 old_archive_from_new_cmds=
4906 old_archive_from_expsyms_cmds=
4907 export_dynamic_flag_spec=
4908 whole_archive_flag_spec=
4909 thread_safe_flag_spec=
4910 hardcode_into_libs=no
4911 hardcode_libdir_flag_spec=
4912 hardcode_libdir_separator=
4915 hardcode_shlibpath_var=unsupported
4917 link_all_deplibs=unknown
4918 always_export_symbols=no
4919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4920 # include_expsyms should be a list of space-separated symbols to be *always*
4921 # included in the symbol list
4923 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4926 # as well as any symbol that contains `d'.
4927 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4929 # platforms (ab)use it in PIC code, but their linkers get confused if
4930 # the symbol is explicitly referenced. Since portable code cannot
4931 # rely on this symbol name, it's probably fine to never include it in
4932 # preloaded symbol tables.
4933 extract_expsyms_cmds=
4936 cygwin* | mingw* | pw32*)
4937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4938 # When not using gcc, we currently assume that we are using
4939 # Microsoft Visual C++.
4940 if test "$GCC" != yes; then
4950 if test "$with_gnu_ld" = yes; then
4951 # If archive_cmds runs LD, not CC, wlarc should be empty
4954 # See if GNU ld supports shared libraries.
4956 aix3* | aix4* | aix5*)
4957 # On AIX, the GNU linker is very broken
4958 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4962 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4963 *** to be unable to reliably create shared libraries on AIX.
4964 *** Therefore, libtool is disabling shared libraries support. If you
4965 *** really care for shared libraries, you may want to modify your PATH
4966 *** so that a non-GNU linker is found, and then restart.
4972 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)'
4973 hardcode_libdir_flag_spec='-L$libdir'
4974 hardcode_minus_L=yes
4976 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4977 # that the semantics of dynamic libraries on AmigaOS, at least up
4978 # to version 4, is to share data among multiple programs linked
4979 # with the same dynamic library. Since this doesn't match the
4980 # behavior of shared libraries on other platforms, we can use
4986 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4987 allow_undefined_flag=unsupported
4988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4989 # support --undefined. This deserves some investigation. FIXME
4990 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4996 cygwin* | mingw* | pw32*)
4997 # hardcode_libdir_flag_spec is actually meaningless, as there is
4998 # no search path for DLLs.
4999 hardcode_libdir_flag_spec='-L$libdir'
5000 allow_undefined_flag=unsupported
5001 always_export_symbols=yes
5003 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5004 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5005 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5006 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5007 else $CC -o impgen impgen.c ; fi)~
5008 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5010 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5012 # cygwin and mingw dlls have different entry points and sets of symbols
5014 # FIXME: what about values for MSVC?
5015 dll_entry=__cygwin_dll_entry@12
5016 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5020 dll_entry=_DllMainCRTStartup@12
5021 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5025 # mingw and cygwin differ, and it's simplest to just exclude the union
5026 # of the two symbol sets.
5027 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5029 # recent cygwin and mingw systems supply a stub DllMain which the user
5030 # can override, but on older systems we have to supply one (in ltdll.c)
5031 if test "x$lt_cv_need_dllmain" = "xyes"; then
5032 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5033 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~
5034 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5040 # Extract the symbol export list from an `--export-all' def file,
5041 # then regenerate the def file from the symbol export list, so that
5042 # the compiled dll only exports the symbol export list.
5043 # Be careful not to strip the DATA tag left be newer dlltools.
5044 export_symbols_cmds="$ltdll_cmds"'
5045 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5046 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5048 # If the export-symbols file already is a .def file (1st line
5049 # is EXPORTS), use it as is.
5050 # If DATA tags from a recent dlltool are present, honour them!
5051 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5052 cp $export_symbols $output_objdir/$soname-def;
5054 echo EXPORTS > $output_objdir/$soname-def;
5056 cat $export_symbols | while read symbol; do
5059 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5060 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5062 _lt_hint=`expr 1 + \$_lt_hint`;
5066 $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~
5067 $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~
5068 $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~
5069 $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~
5070 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5075 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5078 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5079 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5084 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5089 *** create shared libraries on Solaris systems. Therefore, libtool
5090 *** is disabling shared libraries support. We urge you to upgrade GNU
5091 *** binutils to release 2.9.1 or newer. Another option is to modify
5092 *** your PATH or compiler configuration so that the native linker is
5093 *** used, and then restart.
5096 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5105 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5108 hardcode_shlibpath_var=no
5112 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5121 if test "$ld_shlibs" = yes; then
5122 runpath_var=LD_RUN_PATH
5123 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5124 export_dynamic_flag_spec='${wl}--export-dynamic'
5126 cygwin* | mingw* | pw32*)
5127 # dlltool doesn't understand --whole-archive et. al.
5128 whole_archive_flag_spec=
5131 # ancient GNU ld didn't support --whole-archive et. al.
5132 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5135 whole_archive_flag_spec=
5141 # PORTME fill in a description of your system's linker (not GNU ld)
5144 allow_undefined_flag=unsupported
5145 always_export_symbols=yes
5146 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'
5147 # Note: this linker hardcodes the directories in LIBPATH if there
5148 # are no directories specified by -L.
5149 hardcode_minus_L=yes
5150 if test "$GCC" = yes && test -z "$link_static_flag"; then
5151 # Neither direct hardcoding nor static linking is supported with a
5153 hardcode_direct=unsupported
5158 if test "$host_cpu" = ia64; then
5159 # On IA64, the linker does run time linking by default, so we don't
5160 # have to do anything special.
5161 aix_use_runtimelinking=no
5162 exp_sym_flag='-Bexport'
5165 aix_use_runtimelinking=no
5167 # Test if we are trying to use run time linking or normal
5168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5169 # need to do runtime linking.
5170 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5171 for ld_flag in $LDFLAGS; do
5172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5173 aix_use_runtimelinking=yes
5179 exp_sym_flag='-bexport'
5180 no_entry_flag='-bnoentry'
5183 # When large executables or shared objects are built, AIX ld can
5184 # have problems creating the table of contents. If linking a library
5185 # or program results in "error TOC overflow" add -mminimal-toc to
5186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5191 hardcode_libdir_separator=':'
5192 if test "$GCC" = yes; then
5193 case $host_os in aix4.[012]|aix4.[012].*)
5194 collect2name=`${CC} -print-prog-name=collect2`
5195 if test -f "$collect2name" && \
5196 strings "$collect2name" | grep resolve_lib_name >/dev/null
5198 # We have reworked collect2
5201 # We have old collect2
5202 hardcode_direct=unsupported
5203 # It fails to find uninstalled libraries when the uninstalled
5204 # path is not listed in the libpath. Setting hardcode_minus_L
5205 # to unsupported forces relinking
5206 hardcode_minus_L=yes
5207 hardcode_libdir_flag_spec='-L$libdir'
5208 hardcode_libdir_separator=
5212 shared_flag='-shared'
5215 if test "$host_cpu" = ia64; then
5216 shared_flag='${wl}-G'
5218 if test "$aix_use_runtimelinking" = yes; then
5219 shared_flag='${wl}-G'
5221 shared_flag='${wl}-bM:SRE'
5226 # It seems that -bexpall can do strange things, so it is better to
5227 # generate a list of symbols to export.
5228 always_export_symbols=yes
5229 if test "$aix_use_runtimelinking" = yes; then
5230 # Warning - without using the other runtime loading flags (-brtl),
5231 # -berok will link without error, but may produce a broken library.
5232 allow_undefined_flag='-berok'
5233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5234 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"
5236 if test "$host_cpu" = ia64; then
5237 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5238 allow_undefined_flag="-z nodefs"
5239 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"
5241 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5242 # Warning - without using the other run time loading flags,
5243 # -berok will link without error, but may produce a broken library.
5244 allow_undefined_flag='${wl}-berok'
5245 # This is a bit strange, but is similar to how AIX traditionally builds
5246 # it's shared libraries.
5247 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'
5253 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)'
5254 hardcode_libdir_flag_spec='-L$libdir'
5255 hardcode_minus_L=yes
5256 # see comment about different semantics on the GNU ld section
5260 cygwin* | mingw* | pw32*)
5261 # When not using gcc, we currently assume that we are using
5262 # Microsoft Visual C++.
5263 # hardcode_libdir_flag_spec is actually meaningless, as there is
5264 # no search path for DLLs.
5265 hardcode_libdir_flag_spec=' '
5266 allow_undefined_flag=unsupported
5267 # Tell ltmain to make .lib files, not .a files.
5269 # FIXME: Setting linknames here is a bad hack.
5270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5271 # The linker will automatically build a .lib file if we build a DLL.
5272 old_archive_from_new_cmds='true'
5273 # FIXME: Should let the user specify the lib program.
5274 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5275 fix_srcfile_path='`cygpath -w "$srcfile"`'
5278 darwin* | rhapsody*)
5280 rhapsody* | darwin1.[012])
5281 allow_undefined_flag='-undefined suppress'
5284 allow_undefined_flag='-flat_namespace -undefined suppress'
5287 # FIXME: Relying on posixy $() will cause problems for
5288 # cross-compilation, but unfortunately the echo tests do not
5289 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5290 # `"' quotes if we put them in here... so don't!
5291 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5292 # We need to add '_' to the symbols in $export_symbols first
5293 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5295 hardcode_shlibpath_var=no
5296 whole_archive_flag_spec='-all_load $convenience'
5303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5304 # support. Future versions do this automatically, but an explicit c++rt0.o
5305 # does not break anything, and helps significantly (at the cost of a little
5308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5309 hardcode_libdir_flag_spec='-R$libdir'
5311 hardcode_shlibpath_var=no
5314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5318 hardcode_minus_L=yes
5319 hardcode_shlibpath_var=no
5322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5324 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5325 hardcode_libdir_flag_spec='-R$libdir'
5327 hardcode_shlibpath_var=no
5330 hpux9* | hpux10* | hpux11*)
5332 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' ;;
5333 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5336 hardcode_libdir_separator=:
5338 hardcode_minus_L=yes # Not in the search PATH, but as the default
5339 # location of the library.
5340 export_dynamic_flag_spec='${wl}-E'
5343 irix5* | irix6* | nonstopux*)
5344 if test "$GCC" = yes; then
5345 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'
5347 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'
5349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5350 hardcode_libdir_separator=:
5351 link_all_deplibs=yes
5355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5358 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5360 hardcode_libdir_flag_spec='-R$libdir'
5362 hardcode_shlibpath_var=no
5366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5369 hardcode_libdir_separator=:
5370 hardcode_shlibpath_var=no
5375 hardcode_shlibpath_var=no
5376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5379 export_dynamic_flag_spec='${wl}-E'
5382 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5384 hardcode_libdir_flag_spec='-R$libdir'
5387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5388 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5395 hardcode_libdir_flag_spec='-L$libdir'
5396 hardcode_minus_L=yes
5397 allow_undefined_flag=unsupported
5398 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'
5399 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5403 if test "$GCC" = yes; then
5404 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5405 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'
5407 allow_undefined_flag=' -expect_unresolved \*'
5408 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'
5410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5411 hardcode_libdir_separator=:
5414 osf4* | osf5*) # as osf3* with the addition of -msym flag
5415 if test "$GCC" = yes; then
5416 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5417 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'
5418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5420 allow_undefined_flag=' -expect_unresolved \*'
5421 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'
5422 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5423 $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'
5425 #Both c and cxx compiler support -rpath directly
5426 hardcode_libdir_flag_spec='-rpath $libdir'
5428 hardcode_libdir_separator=:
5432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5433 hardcode_shlibpath_var=no
5434 runpath_var=LD_RUN_PATH
5435 hardcode_runpath_var=yes
5436 export_dynamic_flag_spec='${wl}-Bexport'
5440 # gcc --version < 3.0 without binutils cannot create self contained
5441 # shared libraries reliably, requiring libgcc.a to resolve some of
5442 # the object symbols generated in some cases. Libraries that use
5443 # assert need libgcc.a to resolve __eprintf, for example. Linking
5444 # a copy of libgcc.a into every shared library to guarantee resolving
5445 # such symbols causes other problems: According to Tim Van Holder
5446 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5447 # (to the application) exception stack for one thing.
5448 no_undefined_flag=' -z defs'
5449 if test "$GCC" = yes; then
5450 case `$CC --version 2>/dev/null` in
5454 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5455 *** create self contained shared libraries on Solaris systems, without
5456 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5457 *** -no-undefined support, which will at least allow you to build shared
5458 *** libraries. However, you may find that when you link such libraries
5459 *** into an application without using GCC, you have to manually add
5460 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5461 *** upgrade to a newer version of GCC. Another option is to rebuild your
5462 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5469 # $CC -shared without GNU ld will not create a library from C++
5470 # object files and a static libstdc++, better avoid it by now
5471 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5472 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5474 hardcode_libdir_flag_spec='-R$libdir'
5475 hardcode_shlibpath_var=no
5477 solaris2.[0-5] | solaris2.[0-5].*) ;;
5478 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5479 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5481 link_all_deplibs=yes
5485 if test "x$host_vendor" = xsequent; then
5486 # Use $CC to link under sequent, because it throws in some extra .o
5487 # files that make .init and .fini sections work.
5488 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5490 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5492 hardcode_libdir_flag_spec='-L$libdir'
5494 hardcode_minus_L=yes
5495 hardcode_shlibpath_var=no
5499 if test "x$host_vendor" = xsno; then
5500 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5501 hardcode_direct=yes # is this really true???
5503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5504 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5506 runpath_var='LD_RUN_PATH'
5507 hardcode_shlibpath_var=no
5511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5512 hardcode_shlibpath_var=no
5513 export_dynamic_flag_spec='-Bexport'
5517 no_undefined_flag=' -z text'
5518 # $CC -shared without GNU ld will not create a library from C++
5519 # object files and a static libstdc++, better avoid it by now
5520 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5521 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5523 hardcode_libdir_flag_spec=
5524 hardcode_shlibpath_var=no
5525 runpath_var='LD_RUN_PATH'
5529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5530 hardcode_libdir_flag_spec='-L$libdir'
5531 hardcode_shlibpath_var=no
5535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5536 hardcode_libdir_flag_spec='-L$libdir'
5537 hardcode_shlibpath_var=no
5541 if test -d /usr/nec; then
5542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5543 hardcode_shlibpath_var=no
5544 runpath_var=LD_RUN_PATH
5545 hardcode_runpath_var=yes
5551 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5554 hardcode_shlibpath_var=no
5555 hardcode_runpath_var=yes
5556 runpath_var=LD_RUN_PATH
5559 sysv5uw7* | unixware7*)
5560 no_undefined_flag='${wl}-z ${wl}text'
5561 if test "$GCC" = yes; then
5562 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5564 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5566 runpath_var='LD_RUN_PATH'
5567 hardcode_shlibpath_var=no
5575 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5576 echo "${ECHO_T}$ld_shlibs" >&6
5577 test "$ld_shlibs" = no && can_build_shared=no
5579 # Check hardcoding attributes.
5580 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5583 if test -n "$hardcode_libdir_flag_spec" || \
5584 test -n "$runpath_var"; then
5586 # We can hardcode non-existant directories.
5587 if test "$hardcode_direct" != no &&
5588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5589 # have to relink, otherwise we might link with an installed library
5590 # when we should be linking with a yet-to-be-installed one
5591 ## test "$hardcode_shlibpath_var" != no &&
5592 test "$hardcode_minus_L" != no; then
5593 # Linking always hardcodes the temporary library directory.
5594 hardcode_action=relink
5596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5597 hardcode_action=immediate
5600 # We cannot hardcode anything, or else we can only hardcode existing
5602 hardcode_action=unsupported
5604 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5605 echo "${ECHO_T}$hardcode_action" >&6
5609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5614 echo "$as_me:$LINENO: result: yes" >&5
5615 echo "${ECHO_T}yes" >&6
5617 echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6
5621 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5624 # PORTME Fill in your ld.so characteristics
5625 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5626 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5628 libname_spec='lib$name'
5635 shlibpath_overrides_runpath=unknown
5637 dynamic_linker="$host_os ld.so"
5638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5644 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5645 shlibpath_var=LIBPATH
5647 # AIX has no versioning support, so we append a major version to the name.
5648 soname_spec='${libname}${release}.so$major'
5653 if test "$host_cpu" = ia64; then
5654 # AIX 5 supports IA64
5655 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5656 shlibpath_var=LD_LIBRARY_PATH
5658 # With GCC up to 2.95.x, collect2 would create an import file
5659 # for dependence libraries. The import file would start with
5660 # the line `#! .'. This would cause the generated library to
5661 # depend on `.', always an invalid library. This was fixed in
5662 # development snapshots of GCC prior to 3.0.
5664 aix4 | aix4.[01] | aix4.[01].*)
5665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5674 # AIX (on Power*) has no versioning support, so currently we can
5675 # not hardcode correct soname into executable. Probably we can
5676 # add versioning support to collect2, so additional links can
5677 # be useful in future.
5678 if test "$aix_use_runtimelinking" = yes; then
5679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5680 # instead of lib<name>.a to let people know that these are not
5681 # typical AIX shared libraries.
5682 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5684 # We preserve .a as extension for shared libraries through AIX4.2
5685 # and later when we are not doing run time linking.
5686 library_names_spec='${libname}${release}.a $libname.a'
5687 soname_spec='${libname}${release}.so$major'
5689 shlibpath_var=LIBPATH
5694 library_names_spec='$libname.ixlibrary $libname.a'
5695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5696 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'
5700 library_names_spec='${libname}.so'
5701 dynamic_linker="$host_os ld.so"
5702 shlibpath_var=LIBRARY_PATH
5708 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5709 soname_spec='${libname}${release}.so$major'
5710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5711 shlibpath_var=LD_LIBRARY_PATH
5712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5714 export_dynamic_flag_spec=-rdynamic
5715 # the default ld.so.conf also contains /usr/contrib/lib and
5716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5717 # libtool to hard-code these into programs
5720 cygwin* | mingw* | pw32*)
5721 version_type=windows
5724 case $GCC,$host_os in
5726 library_names_spec='$libname.dll.a'
5727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5728 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5729 dldir=$destdir/`dirname \$dlpath`~
5730 test -d \$dldir || mkdir -p \$dldir~
5731 $install_prog .libs/$dlname \$dldir/$dlname'
5732 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5733 dlpath=$dir/\$dldll~
5737 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5744 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5747 dynamic_linker='Win32 ld.exe'
5748 # FIXME: first we should search . and the directory the executable is in
5752 darwin* | rhapsody*)
5753 dynamic_linker="$host_os dyld"
5757 # FIXME: Relying on posixy $() will cause problems for
5758 # cross-compilation, but unfortunately the echo tests do not
5759 # yet detect zsh echo's removal of \ escapes.
5760 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)'
5761 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5762 shlibpath_overrides_runpath=yes
5763 shlibpath_var=DYLD_LIBRARY_PATH
5771 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5772 version_type=freebsd-$objformat
5773 case $version_type in
5775 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5780 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5784 shlibpath_var=LD_LIBRARY_PATH
5787 shlibpath_overrides_runpath=yes
5790 shlibpath_overrides_runpath=no
5791 hardcode_into_libs=yes
5800 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5801 soname_spec='${libname}${release}.so$major'
5802 shlibpath_var=LD_LIBRARY_PATH
5803 hardcode_into_libs=yes
5806 hpux9* | hpux10* | hpux11*)
5807 # Give a soname corresponding to the major version so that dld.sl refuses to
5808 # link against other versions.
5809 dynamic_linker="$host_os dld.sl"
5813 shlibpath_var=SHLIB_PATH
5814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5815 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5816 soname_spec='${libname}${release}.sl$major'
5817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5818 postinstall_cmds='chmod 555 $lib'
5821 irix5* | irix6* | nonstopux*)
5823 nonstopux*) version_type=nonstopux ;;
5824 *) version_type=irix ;;
5828 soname_spec='${libname}${release}.so$major'
5829 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5831 irix5* | nonstopux*)
5835 case $LD in # libtool.m4 will add one of these switches to LD
5836 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5837 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5838 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5839 *) libsuff= shlibsuff= libmagic=never-match;;
5843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5844 shlibpath_overrides_runpath=no
5845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5849 # No shared lib support for Linux oldld, aout, or coff.
5850 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5854 # This must be Linux ELF.
5859 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5860 soname_spec='${libname}${release}.so$major'
5861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5862 shlibpath_var=LD_LIBRARY_PATH
5863 shlibpath_overrides_runpath=no
5864 # This implies no fast_install, which is unacceptable.
5865 # Some rework will be needed to allow for fast_install
5866 # before this can be enabled.
5867 hardcode_into_libs=yes
5869 # We used to test for /lib/ld.so.1 and disable shared libraries on
5870 # powerpc, because MkLinux only supported shared libraries with the
5871 # GNU dynamic linker. Since this was broken with cross compilers,
5872 # most powerpc-linux boxes support dynamic linking these days and
5873 # people can always --disable-shared, the test was removed, and we
5874 # assume the GNU/Linux dynamic linker is in use.
5875 dynamic_linker='GNU/Linux ld.so'
5882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5883 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5885 dynamic_linker='NetBSD (a.out) ld.so'
5887 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5888 soname_spec='${libname}${release}.so$major'
5889 dynamic_linker='NetBSD ld.elf_so'
5891 shlibpath_var=LD_LIBRARY_PATH
5892 shlibpath_overrides_runpath=yes
5893 hardcode_into_libs=yes
5898 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5899 shlibpath_var=LD_LIBRARY_PATH
5900 shlibpath_overrides_runpath=yes
5907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5909 openbsd2.[89] | openbsd2.[89].*)
5910 shlibpath_overrides_runpath=no
5913 shlibpath_overrides_runpath=yes
5917 shlibpath_overrides_runpath=yes
5919 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5921 shlibpath_var=LD_LIBRARY_PATH
5925 libname_spec='$name'
5927 library_names_spec='$libname.dll $libname.a'
5928 dynamic_linker='OS/2 ld.exe'
5929 shlibpath_var=LIBPATH
5932 osf3* | osf4* | osf5*)
5936 soname_spec='${libname}${release}.so'
5937 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5938 shlibpath_var=LD_LIBRARY_PATH
5939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5945 soname_spec='${libname}${release}.so$major'
5946 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5947 shlibpath_var=LD_LIBRARY_PATH
5954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5955 soname_spec='${libname}${release}.so$major'
5956 shlibpath_var=LD_LIBRARY_PATH
5957 shlibpath_overrides_runpath=yes
5958 hardcode_into_libs=yes
5959 # ldd complains unless libraries are executable
5960 postinstall_cmds='chmod +x $lib'
5965 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5967 shlibpath_var=LD_LIBRARY_PATH
5968 shlibpath_overrides_runpath=yes
5969 if test "$with_gnu_ld" = yes; then
5975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5977 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5978 soname_spec='${libname}${release}.so$major'
5979 shlibpath_var=LD_LIBRARY_PATH
5980 case $host_vendor in
5982 shlibpath_overrides_runpath=no
5987 shlibpath_overrides_runpath=no
5988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5995 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5996 soname_spec='${libname}${release}.so$major'
5997 shlibpath_var=LD_LIBRARY_PATH
6004 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6005 soname_spec='${libname}${release}.so$major'
6006 shlibpath_var=LD_LIBRARY_PATH
6010 if test -d /usr/nec ;then
6012 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6013 soname_spec='$libname.so.$major'
6014 shlibpath_var=LD_LIBRARY_PATH
6022 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6023 echo "${ECHO_T}$dynamic_linker" >&6
6024 test "$dynamic_linker" = no && can_build_shared=no
6026 # Report the final consequences.
6027 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6028 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6029 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6030 echo "${ECHO_T}$can_build_shared" >&6
6032 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6033 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6034 test "$can_build_shared" = "no" && enable_shared=no
6036 # On AIX, shared libraries and static libraries use the same namespace, and
6037 # are all built from PIC.
6040 test "$enable_shared" = yes && enable_static=no
6041 if test -n "$RANLIB"; then
6042 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6043 postinstall_cmds='$RANLIB $lib'
6048 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6049 test "$enable_shared" = yes && enable_static=no
6053 echo "$as_me:$LINENO: result: $enable_shared" >&5
6054 echo "${ECHO_T}$enable_shared" >&6
6056 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6057 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6058 # Make sure either enable_shared or enable_static is yes.
6059 test "$enable_shared" = yes || enable_static=yes
6060 echo "$as_me:$LINENO: result: $enable_static" >&5
6061 echo "${ECHO_T}$enable_static" >&6
6063 if test "$hardcode_action" = relink; then
6064 # Fast installation is not supported
6065 enable_fast_install=no
6066 elif test "$shlibpath_overrides_runpath" = yes ||
6067 test "$enable_shared" = no; then
6068 # Fast installation is not necessary
6069 enable_fast_install=needless
6072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6073 if test "$GCC" = yes; then
6074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6077 if test "x$enable_dlopen" != xyes; then
6078 enable_dlopen=unknown
6079 enable_dlopen_self=unknown
6080 enable_dlopen_self_static=unknown
6087 lt_cv_dlopen="load_add_on"
6089 lt_cv_dlopen_self=yes
6092 cygwin* | mingw* | pw32*)
6093 lt_cv_dlopen="LoadLibrary"
6098 echo "$as_me:$LINENO: checking for shl_load" >&5
6099 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6100 if test "${ac_cv_func_shl_load+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #line $LINENO "configure"
6105 #include "confdefs.h"
6106 /* System header to define __stub macros and hopefully few prototypes,
6107 which can conflict with char shl_load (); below. */
6109 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6118 #ifdef F77_DUMMY_MAIN
6122 int F77_DUMMY_MAIN() { return 1; }
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6140 rm -f conftest.$ac_objext conftest$ac_exeext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142 (eval $ac_link) 2>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_func_shl_load=yes
6154 echo "$as_me: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 ac_cv_func_shl_load=no
6158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6161 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6162 if test $ac_cv_func_shl_load = yes; then
6163 lt_cv_dlopen="shl_load"
6165 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6166 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6167 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 ac_check_lib_save_LIBS=$LIBS
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6183 #ifdef F77_DUMMY_MAIN
6187 int F77_DUMMY_MAIN() { return 1; }
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_lib_dld_shl_load=yes
6211 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6213 ac_cv_lib_dld_shl_load=no
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6218 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6219 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6220 if test $ac_cv_lib_dld_shl_load = yes; then
6221 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6223 echo "$as_me:$LINENO: checking for dlopen" >&5
6224 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6225 if test "${ac_cv_func_dlopen+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 #include "confdefs.h"
6231 /* System header to define __stub macros and hopefully few prototypes,
6232 which can conflict with char dlopen (); below. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6243 #ifdef F77_DUMMY_MAIN
6247 int F77_DUMMY_MAIN() { return 1; }
6252 /* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
6255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -s conftest$ac_exeext'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_func_dlopen=yes
6279 echo "$as_me: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6281 ac_cv_func_dlopen=no
6283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6286 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6287 if test $ac_cv_func_dlopen = yes; then
6288 lt_cv_dlopen="dlopen"
6290 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6291 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6292 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 ac_check_lib_save_LIBS=$LIBS
6297 cat >conftest.$ac_ext <<_ACEOF
6298 #line $LINENO "configure"
6299 #include "confdefs.h"
6301 /* Override any gcc2 internal prototype to avoid an error. */
6305 /* We use char because int might match the return type of a gcc2
6306 builtin and then its argument prototype would still apply. */
6308 #ifdef F77_DUMMY_MAIN
6312 int F77_DUMMY_MAIN() { return 1; }
6322 rm -f conftest.$ac_objext conftest$ac_exeext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6324 (eval $ac_link) 2>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_lib_dl_dlopen=yes
6336 echo "$as_me: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 ac_cv_lib_dl_dlopen=no
6340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6343 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6345 if test $ac_cv_lib_dl_dlopen = yes; then
6346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6348 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6349 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6350 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 ac_check_lib_save_LIBS=$LIBS
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6359 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6366 #ifdef F77_DUMMY_MAIN
6370 int F77_DUMMY_MAIN() { return 1; }
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -s conftest$ac_exeext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_lib_svld_dlopen=yes
6394 echo "$as_me: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6396 ac_cv_lib_svld_dlopen=no
6398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6399 LIBS=$ac_check_lib_save_LIBS
6401 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6402 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6403 if test $ac_cv_lib_svld_dlopen = yes; then
6404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6406 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6407 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6408 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_check_lib_save_LIBS=$LIBS
6413 cat >conftest.$ac_ext <<_ACEOF
6414 #line $LINENO "configure"
6415 #include "confdefs.h"
6417 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6424 #ifdef F77_DUMMY_MAIN
6428 int F77_DUMMY_MAIN() { return 1; }
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_lib_dld_dld_link=yes
6452 echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 ac_cv_lib_dld_dld_link=no
6456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6457 LIBS=$ac_check_lib_save_LIBS
6459 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6460 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6461 if test $ac_cv_lib_dld_dld_link = yes; then
6462 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6483 if test "x$lt_cv_dlopen" != xno; then
6489 case $lt_cv_dlopen in
6491 save_CPPFLAGS="$CPPFLAGS"
6492 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6494 save_LDFLAGS="$LDFLAGS"
6495 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6498 LIBS="$lt_cv_dlopen_libs $LIBS"
6500 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6501 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6502 if test "${lt_cv_dlopen_self+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 if test "$cross_compiling" = yes; then :
6506 lt_cv_dlopen_self=cross
6508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6509 lt_status=$lt_dlunknown
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6511 "configure"
6512 #include "confdefs.h"
6521 # define LT_DLGLOBAL RTLD_GLOBAL
6524 # define LT_DLGLOBAL DL_GLOBAL
6526 # define LT_DLGLOBAL 0
6530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6531 find out it does not work in some platform. */
6532 #ifndef LT_DLLAZY_OR_NOW
6534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6537 # define LT_DLLAZY_OR_NOW DL_LAZY
6540 # define LT_DLLAZY_OR_NOW RTLD_NOW
6543 # define LT_DLLAZY_OR_NOW DL_NOW
6545 # define LT_DLLAZY_OR_NOW 0
6553 extern "C" void exit (int);
6556 void fnord() { int i=42;}
6559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6560 int status = $lt_dlunknown;
6564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6566 /* dlclose (self); */
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6577 (./conftest; exit; ) 2>/dev/null
6580 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6581 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6582 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6585 # compilation failed
6586 lt_cv_dlopen_self=no
6593 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6594 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6596 if test "x$lt_cv_dlopen_self" = xyes; then
6597 LDFLAGS="$LDFLAGS $link_static_flag"
6598 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6599 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6600 if test "${lt_cv_dlopen_self_static+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 if test "$cross_compiling" = yes; then :
6604 lt_cv_dlopen_self_static=cross
6606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6607 lt_status=$lt_dlunknown
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6609 "configure"
6610 #include "confdefs.h"
6619 # define LT_DLGLOBAL RTLD_GLOBAL
6622 # define LT_DLGLOBAL DL_GLOBAL
6624 # define LT_DLGLOBAL 0
6628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6629 find out it does not work in some platform. */
6630 #ifndef LT_DLLAZY_OR_NOW
6632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6635 # define LT_DLLAZY_OR_NOW DL_LAZY
6638 # define LT_DLLAZY_OR_NOW RTLD_NOW
6641 # define LT_DLLAZY_OR_NOW DL_NOW
6643 # define LT_DLLAZY_OR_NOW 0
6651 extern "C" void exit (int);
6654 void fnord() { int i=42;}
6657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6658 int status = $lt_dlunknown;
6662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6663 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6664 /* dlclose (self); */
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6675 (./conftest; exit; ) 2>/dev/null
6678 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6679 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6680 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6683 # compilation failed
6684 lt_cv_dlopen_self_static=no
6691 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6692 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6695 CPPFLAGS="$save_CPPFLAGS"
6696 LDFLAGS="$save_LDFLAGS"
6701 case $lt_cv_dlopen_self in
6702 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6703 *) enable_dlopen_self=unknown ;;
6706 case $lt_cv_dlopen_self_static in
6707 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6708 *) enable_dlopen_self_static=unknown ;;
6713 if test "$enable_shared" = yes && test "$GCC" = yes; then
6714 case $archive_cmds in
6716 # FIXME: we may have to deal with multi-command sequences.
6719 # Test whether the compiler implicitly links with -lc since on some
6720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6721 # to ld, don't add -lc before -lgcc.
6722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6724 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 echo 'static int dummy;' > conftest.$ac_ext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731 (eval $ac_compile) 2>&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; then
6737 libobjs=conftest.$ac_objext
6739 wl=$lt_cv_prog_cc_wl
6745 save_allow_undefined_flag=$allow_undefined_flag
6746 allow_undefined_flag=
6747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6748 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }
6753 lt_cv_archive_cmds_need_lc=no
6755 lt_cv_archive_cmds_need_lc=yes
6757 allow_undefined_flag=$save_allow_undefined_flag
6759 cat conftest.err 1>&5
6763 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6764 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6768 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6770 # The second clause should only fire when bootstrapping the
6771 # libtool distribution, otherwise you forgot to ship ltmain.sh
6772 # with your package, and you will get complaints that there are
6773 # no rules to generate ltmain.sh.
6774 if test -f "$ltmain"; then
6777 # If there is no Makefile yet, we rely on a make rule to execute
6778 # `config.status --recheck' to rerun these tests and create the
6779 # libtool script then.
6780 test -f Makefile && make "$ltmain"
6783 if test -f "$ltmain"; then
6784 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6787 echo creating $ofile
6789 # Now quote all the things that may contain metacharacters while being
6790 # careful not to overquote the AC_SUBSTed values. We take copies of the
6791 # variables and quote the copies for generation of the libtool script.
6792 for var in echo old_CC old_CFLAGS \
6793 AR AR_FLAGS CC LD LN_S NM SHELL \
6794 reload_flag reload_cmds wl \
6795 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6796 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6797 library_names_spec soname_spec \
6798 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6799 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6800 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6801 old_striplib striplib file_magic_cmd export_symbols_cmds \
6802 deplibs_check_method allow_undefined_flag no_undefined_flag \
6803 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6804 global_symbol_to_c_name_address \
6805 hardcode_libdir_flag_spec hardcode_libdir_separator \
6806 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6807 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6810 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6811 old_postinstall_cmds | old_postuninstall_cmds | \
6812 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6813 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6814 postinstall_cmds | postuninstall_cmds | \
6815 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6816 # Double-quote double-evaled strings.
6817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6825 cat <<__EOF__ > "${ofile}T"
6828 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6829 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6830 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6832 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6833 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6835 # This program is free software; you can redistribute it and/or modify
6836 # it under the terms of the GNU General Public License as published by
6837 # the Free Software Foundation; either version 2 of the License, or
6838 # (at your option) any later version.
6840 # This program is distributed in the hope that it will be useful, but
6841 # WITHOUT ANY WARRANTY; without even the implied warranty of
6842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6843 # General Public License for more details.
6845 # You should have received a copy of the GNU General Public License
6846 # along with this program; if not, write to the Free Software
6847 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6849 # As a special exception to the GNU General Public License, if you
6850 # distribute this file as part of a program that contains a
6851 # configuration script generated by Autoconf, you may include it under
6852 # the same distribution terms that you use for the rest of that program.
6854 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6855 Xsed="sed -e s/^X//"
6857 # The HP-UX ksh and POSIX shell print the target directory to stdout
6859 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6861 # ### BEGIN LIBTOOL CONFIG
6863 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6865 # Shell to use when invoking shell scripts.
6868 # Whether or not to build shared libraries.
6869 build_libtool_libs=$enable_shared
6871 # Whether or not to build static libraries.
6872 build_old_libs=$enable_static
6874 # Whether or not to add -lc for building shared libraries.
6875 build_libtool_need_lc=$need_lc
6877 # Whether or not to optimize for fast installation.
6878 fast_install=$enable_fast_install
6881 host_alias=$host_alias
6884 # An echo program that does not interpret backslashes.
6889 AR_FLAGS=$lt_AR_FLAGS
6891 # The default C compiler.
6894 # Is the compiler the GNU C compiler?
6897 # The linker used to build libraries.
6900 # Whether we need hard or soft links.
6903 # A BSD-compatible nm program.
6906 # A symbol stripping program
6909 # Used to examine libraries when file_magic_cmd begins "file"
6910 MAGIC_CMD=$MAGIC_CMD
6912 # Used on cygwin: DLL creation program.
6915 # Used on cygwin: object dumper.
6918 # Used on cygwin: assembler.
6921 # The name of the directory that contains temporary libtool files.
6924 # How to create reloadable object files.
6925 reload_flag=$lt_reload_flag
6926 reload_cmds=$lt_reload_cmds
6928 # How to pass a linker flag through the compiler.
6931 # Object file suffix (normally "o").
6934 # Old archive suffix (normally "a").
6937 # Executable file suffix (normally "").
6940 # Additional compiler flags for building library objects.
6941 pic_flag=$lt_pic_flag
6944 # Does compiler simultaneously support -c and -o options?
6945 compiler_c_o=$lt_compiler_c_o
6947 # Can we write directly to a .lo ?
6948 compiler_o_lo=$lt_compiler_o_lo
6950 # Must we lock files when doing compilation ?
6951 need_locks=$lt_need_locks
6953 # Do we need the lib prefix for modules?
6954 need_lib_prefix=$need_lib_prefix
6956 # Do we need a version for libraries?
6957 need_version=$need_version
6959 # Whether dlopen is supported.
6960 dlopen_support=$enable_dlopen
6962 # Whether dlopen of programs is supported.
6963 dlopen_self=$enable_dlopen_self
6965 # Whether dlopen of statically linked programs is supported.
6966 dlopen_self_static=$enable_dlopen_self_static
6968 # Compiler flag to prevent dynamic linking.
6969 link_static_flag=$lt_link_static_flag
6971 # Compiler flag to turn off builtin functions.
6972 no_builtin_flag=$lt_no_builtin_flag
6974 # Compiler flag to allow reflexive dlopens.
6975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6977 # Compiler flag to generate shared objects directly from archives.
6978 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6980 # Compiler flag to generate thread-safe objects.
6981 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6983 # Library versioning type.
6984 version_type=$version_type
6986 # Format of library name prefix.
6987 libname_spec=$lt_libname_spec
6989 # List of archive names. First name is the real one, the rest are links.
6990 # The last name is the one that the linker finds with -lNAME.
6991 library_names_spec=$lt_library_names_spec
6993 # The coded name of the library, if different from the real name.
6994 soname_spec=$lt_soname_spec
6996 # Commands used to build and install an old-style archive.
6998 old_archive_cmds=$lt_old_archive_cmds
6999 old_postinstall_cmds=$lt_old_postinstall_cmds
7000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7002 # Create an old-style archive from a shared archive.
7003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7005 # Create a temporary old-style archive to link instead of a shared archive.
7006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7008 # Commands used to build and install a shared archive.
7009 archive_cmds=$lt_archive_cmds
7010 archive_expsym_cmds=$lt_archive_expsym_cmds
7011 postinstall_cmds=$lt_postinstall_cmds
7012 postuninstall_cmds=$lt_postuninstall_cmds
7014 # Commands to strip libraries.
7015 old_striplib=$lt_old_striplib
7016 striplib=$lt_striplib
7018 # Method to check whether dependent libraries are shared objects.
7019 deplibs_check_method=$lt_deplibs_check_method
7021 # Command to use when deplibs_check_method == file_magic.
7022 file_magic_cmd=$lt_file_magic_cmd
7024 # Flag that allows shared libraries with undefined symbols to be built.
7025 allow_undefined_flag=$lt_allow_undefined_flag
7027 # Flag that forces no undefined symbols.
7028 no_undefined_flag=$lt_no_undefined_flag
7030 # Commands used to finish a libtool library installation in a directory.
7031 finish_cmds=$lt_finish_cmds
7033 # Same as above, but a single script fragment to be evaled but not shown.
7034 finish_eval=$lt_finish_eval
7036 # Take the output of nm and produce a listing of raw symbols and C names.
7037 global_symbol_pipe=$lt_global_symbol_pipe
7039 # Transform the output of nm in a proper C declaration
7040 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7042 # Transform the output of nm in a C name address pair
7043 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7045 # This is the shared library runtime path variable.
7046 runpath_var=$runpath_var
7048 # This is the shared library path variable.
7049 shlibpath_var=$shlibpath_var
7051 # Is shlibpath searched before the hard-coded library search path?
7052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7054 # How to hardcode a shared library path into an executable.
7055 hardcode_action=$hardcode_action
7057 # Whether we should hardcode library paths into libraries.
7058 hardcode_into_libs=$hardcode_into_libs
7060 # Flag to hardcode \$libdir into a binary during linking.
7061 # This must work even if \$libdir does not exist.
7062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7064 # Whether we need a single -rpath flag with a separated argument.
7065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7067 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7069 hardcode_direct=$hardcode_direct
7071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7073 hardcode_minus_L=$hardcode_minus_L
7075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7076 # the resulting binary.
7077 hardcode_shlibpath_var=$hardcode_shlibpath_var
7079 # Variables whose values should be saved in libtool wrapper scripts and
7080 # restored at relink time.
7081 variables_saved_for_relink="$variables_saved_for_relink"
7083 # Whether libtool must link a program against all its dependency libraries.
7084 link_all_deplibs=$link_all_deplibs
7086 # Compile-time system search path for libraries
7087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7089 # Run-time system search path for libraries
7090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7092 # Fix the shell variable \$srcfile for the compiler.
7093 fix_srcfile_path="$fix_srcfile_path"
7095 # Set to yes if exported symbols are required.
7096 always_export_symbols=$always_export_symbols
7098 # The commands to list exported symbols.
7099 export_symbols_cmds=$lt_export_symbols_cmds
7101 # The commands to extract the exported symbol list from a shared archive.
7102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7104 # Symbols that should not be listed in the preloaded symbols.
7105 exclude_expsyms=$lt_exclude_expsyms
7107 # Symbols that must always be exported.
7108 include_expsyms=$lt_include_expsyms
7110 # ### END LIBTOOL CONFIG
7116 cat <<\EOF >> "${ofile}T"
7118 # AIX sometimes has problems with the GCC collect2 program. For some
7119 # reason, if we set the COLLECT_NAMES environment variable, the problems
7120 # vanish in a puff of smoke.
7121 if test "X${COLLECT_NAMES+set}" != Xset; then
7123 export COLLECT_NAMES
7130 cygwin* | mingw* | pw32* | os2*)
7131 cat <<'EOF' >> "${ofile}T"
7132 # This is a source program that is used to create dlls on Windows
7133 # Don't remove nor modify the starting and closing comments
7134 # /* ltdll.c starts here */
7135 # #define WIN32_LEAN_AND_MEAN
7136 # #include <windows.h>
7137 # #undef WIN32_LEAN_AND_MEAN
7138 # #include <stdio.h>
7140 # #ifndef __CYGWIN__
7141 # # ifdef __CYGWIN32__
7142 # # define __CYGWIN__ __CYGWIN32__
7146 # #ifdef __cplusplus
7149 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7150 # #ifdef __cplusplus
7155 # #include <cygwin/cygwin_dll.h>
7156 # DECLARE_CYGWIN_DLL( DllMain );
7158 # HINSTANCE __hDllInstance_base;
7161 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7163 # __hDllInstance_base = hInst;
7166 # /* ltdll.c ends here */
7167 # This is a source program that is used to create import libraries
7168 # on Windows for dlls which lack them. Don't remove nor modify the
7169 # starting and closing comments
7170 # /* impgen.c starts here */
7171 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7173 # This file is part of GNU libtool.
7175 # This program is free software; you can redistribute it and/or modify
7176 # it under the terms of the GNU General Public License as published by
7177 # the Free Software Foundation; either version 2 of the License, or
7178 # (at your option) any later version.
7180 # This program is distributed in the hope that it will be useful,
7181 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7182 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7183 # GNU General Public License for more details.
7185 # You should have received a copy of the GNU General Public License
7186 # along with this program; if not, write to the Free Software
7187 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7190 # #include <stdio.h> /* for printf() */
7191 # #include <unistd.h> /* for open(), lseek(), read() */
7192 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7193 # #include <string.h> /* for strdup() */
7195 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7197 # #define O_BINARY 0
7200 # static unsigned int
7201 # pe_get16 (fd, offset)
7205 # unsigned char b[2];
7206 # lseek (fd, offset, SEEK_SET);
7208 # return b[0] + (b[1]<<8);
7211 # static unsigned int
7212 # pe_get32 (fd, offset)
7216 # unsigned char b[4];
7217 # lseek (fd, offset, SEEK_SET);
7219 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7222 # static unsigned int
7226 # unsigned char *b = ptr;
7227 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7236 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7237 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7238 # unsigned long name_rvas, nexp;
7239 # unsigned char *expdata, *erva;
7240 # char *filename, *dll_name;
7242 # filename = argv[1];
7244 # dll = open(filename, O_RDONLY|O_BINARY);
7248 # dll_name = filename;
7250 # for (i=0; filename[i]; i++)
7251 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7252 # dll_name = filename + i +1;
7254 # pe_header_offset = pe_get32 (dll, 0x3c);
7255 # opthdr_ofs = pe_header_offset + 4 + 20;
7256 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7258 # if (num_entries < 1) /* no exports */
7261 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7262 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7263 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7264 # secptr = (pe_header_offset + 4 + 20 +
7265 # pe_get16 (dll, pe_header_offset + 4 + 16));
7268 # for (i = 0; i < nsections; i++)
7271 # unsigned long secptr1 = secptr + 40 * i;
7272 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7273 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7274 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7275 # lseek(dll, secptr1, SEEK_SET);
7276 # read(dll, sname, 8);
7277 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7279 # expptr = fptr + (export_rva - vaddr);
7280 # if (export_rva + export_size > vaddr + vsize)
7281 # export_size = vsize - (export_rva - vaddr);
7286 # expdata = (unsigned char*)malloc(export_size);
7287 # lseek (dll, expptr, SEEK_SET);
7288 # read (dll, expdata, export_size);
7289 # erva = expdata - export_rva;
7291 # nexp = pe_as32 (expdata+24);
7292 # name_rvas = pe_as32 (expdata+32);
7294 # printf ("EXPORTS\n");
7295 # for (i = 0; i<nexp; i++)
7297 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7298 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7303 # /* impgen.c ends here */
7309 # We use sed instead of cat because bash on DJGPP gets confused if
7310 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7311 # text mode, it properly converts lines to CR/LF. This bash problem
7312 # is reportedly fixed, but why not run on old versions too?
7313 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7315 mv -f "${ofile}T" "$ofile" || \
7316 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7324 # This can be used to rebuild libtool when needed
7325 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7327 # Always use our own libtool.
7328 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7330 # Prevent multiple expansion
7333 for ac_prog in 'bison -y' byacc
7335 # Extract the first word of "$ac_prog", so it can be a program name with args.
7336 set dummy $ac_prog; ac_word=$2
7337 echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339 if test "${ac_cv_prog_YACC+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 if test -n "$YACC"; then
7343 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_YACC="$ac_prog"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 YACC=$ac_cv_prog_YACC
7362 if test -n "$YACC"; then
7363 echo "$as_me:$LINENO: result: $YACC" >&5
7364 echo "${ECHO_T}$YACC" >&6
7366 echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7370 test -n "$YACC" && break
7372 test -n "$YACC" || YACC="yacc"
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_CC+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test -n "$CC"; then
7388 ac_cv_prog_CC="$CC" # Let the user override the test.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 if test -n "$CC"; then
7408 echo "$as_me:$LINENO: result: $CC" >&5
7409 echo "${ECHO_T}$CC" >&6
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7416 if test -z "$ac_cv_prog_CC"; then
7418 # Extract the first word of "gcc", so it can be a program name with args.
7419 set dummy gcc; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 if test -n "$ac_ct_CC"; then
7426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_CC="gcc"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7445 if test -n "$ac_ct_CC"; then
7446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7447 echo "${ECHO_T}$ac_ct_CC" >&6
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7458 if test -z "$CC"; then
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}cc; ac_word=$2
7462 echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464 if test "${ac_cv_prog_CC+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 if test -n "$CC"; then
7468 ac_cv_prog_CC="$CC" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_CC="${ac_tool_prefix}cc"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 if test -n "$CC"; then
7488 echo "$as_me:$LINENO: result: $CC" >&5
7489 echo "${ECHO_T}$CC" >&6
7491 echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7496 if test -z "$ac_cv_prog_CC"; then
7498 # Extract the first word of "cc", so it can be a program name with args.
7499 set dummy cc; ac_word=$2
7500 echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 if test -n "$ac_ct_CC"; then
7506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_CC="cc"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7525 if test -n "$ac_ct_CC"; then
7526 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7527 echo "${ECHO_T}$ac_ct_CC" >&6
7529 echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7539 if test -z "$CC"; then
7540 # Extract the first word of "cc", so it can be a program name with args.
7541 set dummy cc; ac_word=$2
7542 echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7544 if test "${ac_cv_prog_CC+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 if test -n "$CC"; then
7548 ac_cv_prog_CC="$CC" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7559 ac_prog_rejected=yes
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 if test $ac_prog_rejected = yes; then
7570 # We found a bogon in the path, so make sure we never use it.
7571 set dummy $ac_cv_prog_CC
7573 if test $# != 0; then
7574 # We chose a different compiler from the bogus one.
7575 # However, it has the same basename, so the bogon will be chosen
7576 # first if we set CC to just the basename; use the full file name.
7578 set dummy "$as_dir/$ac_word" ${1+"$@"}
7586 if test -n "$CC"; then
7587 echo "$as_me:$LINENO: result: $CC" >&5
7588 echo "${ECHO_T}$CC" >&6
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7595 if test -z "$CC"; then
7596 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7601 echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603 if test "${ac_cv_prog_CC+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 if test -n "$CC"; then
7607 ac_cv_prog_CC="$CC" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 if test -n "$CC"; then
7627 echo "$as_me:$LINENO: result: $CC" >&5
7628 echo "${ECHO_T}$CC" >&6
7630 echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6
7634 test -n "$CC" && break
7637 if test -z "$CC"; then
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 if test -n "$ac_ct_CC"; then
7649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ac_ct_CC="$ac_prog"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7668 if test -n "$ac_ct_CC"; then
7669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7670 echo "${ECHO_T}$ac_ct_CC" >&6
7672 echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6
7676 test -n "$ac_ct_CC" && break
7685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7686 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7687 { (exit 1); exit 1; }; }
7689 # Provide some information about the compiler.
7690 echo "$as_me:$LINENO:" \
7691 "checking for C compiler version" >&5
7692 ac_compiler=`set X $ac_compile; echo $2`
7693 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7694 (eval $ac_compiler --version </dev/null >&5) 2>&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }
7698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7699 (eval $ac_compiler -v </dev/null >&5) 2>&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }
7703 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7704 (eval $ac_compiler -V </dev/null >&5) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }
7709 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7718 #ifdef F77_DUMMY_MAIN
7722 int F77_DUMMY_MAIN() { return 1; }
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -s conftest.$ac_objext'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7753 rm -f conftest.$ac_objext conftest.$ac_ext
7754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7757 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7758 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7759 GCC=`test $ac_compiler_gnu = yes && echo yes`
7760 ac_test_CFLAGS=${CFLAGS+set}
7761 ac_save_CFLAGS=$CFLAGS
7763 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7764 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7765 if test "${ac_cv_prog_cc_g+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7772 #ifdef F77_DUMMY_MAIN
7776 int F77_DUMMY_MAIN() { return 1; }
7786 rm -f conftest.$ac_objext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7800 echo "$as_me: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7804 rm -f conftest.$ac_objext conftest.$ac_ext
7806 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7807 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7808 if test "$ac_test_CFLAGS" = set; then
7809 CFLAGS=$ac_save_CFLAGS
7810 elif test $ac_cv_prog_cc_g = yes; then
7811 if test "$GCC" = yes; then
7817 if test "$GCC" = yes; then
7823 # Some people use a C++ compiler to compile C. Since we use `exit',
7824 # in C++ we need to declare it. In case someone uses the same compiler
7825 # for both compiling C and C++ we need to have the C++ compiler decide
7826 # the declaration of exit, since it's the most demanding environment.
7827 cat >conftest.$ac_ext <<_ACEOF
7832 rm -f conftest.$ac_objext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834 (eval $ac_compile) 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 for ac_declaration in \
7846 '#include <stdlib.h>' \
7847 'extern "C" void std::exit (int) throw (); using std::exit;' \
7848 'extern "C" void std::exit (int); using std::exit;' \
7849 'extern "C" void exit (int) throw ();' \
7850 'extern "C" void exit (int);' \
7853 cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 #include "confdefs.h"
7858 #ifdef F77_DUMMY_MAIN
7862 int F77_DUMMY_MAIN() { return 1; }
7872 rm -f conftest.$ac_objext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874 (eval $ac_compile) 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -s conftest.$ac_objext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7886 echo "$as_me: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7890 rm -f conftest.$ac_objext conftest.$ac_ext
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7895 #ifdef F77_DUMMY_MAIN
7899 int F77_DUMMY_MAIN() { return 1; }
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7911 (eval $ac_compile) 2>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -s conftest.$ac_objext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 rm -f conftest.$ac_objext conftest.$ac_ext
7929 if test -n "$ac_declaration"; then
7930 echo '#ifdef __cplusplus' >>confdefs.h
7931 echo $ac_declaration >>confdefs.h
7932 echo '#endif' >>confdefs.h
7936 echo "$as_me: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 rm -f conftest.$ac_objext conftest.$ac_ext
7941 ac_cpp='$CPP $CPPFLAGS'
7942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946 depcc="$CC" am_compiler_list=
7948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7954 # We make a subdir and do the tests there. Otherwise we can end up
7955 # making bogus files that we don't know about and never remove. For
7956 # instance it was reported that on HP-UX the gcc test will end up
7957 # making a dummy file named `D' -- because `-MD' means `put the output
7960 # Copy depcomp to subdir because otherwise we won't find it if we're
7961 # using a relative directory.
7962 cp "$am_depcomp" conftest.dir
7965 am_cv_CC_dependencies_compiler_type=none
7966 if test "$am_compiler_list" = ""; then
7967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7969 for depmode in $am_compiler_list; do
7970 # We need to recreate these files for each test, as the compiler may
7971 # overwrite some of them when testing with obscure command lines.
7972 # This happens at least with the AIX C compiler.
7973 echo '#include "conftest.h"' > conftest.c
7974 echo 'int i;' > conftest.h
7975 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7979 # after this tag, mechanisms are not by side-effect, so they'll
7980 # only be used when explicitly requested
7981 if test "x$enable_dependency_tracking" = xyes; then
7989 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7990 # mode. It turns out that the SunPro C++ compiler does not properly
7991 # handle `-M -o', and we need to detect this.
7992 if depmode=$depmode \
7993 source=conftest.c object=conftest.o \
7994 depfile=conftest.Po tmpdepfile=conftest.TPo \
7995 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7996 grep conftest.h conftest.Po > /dev/null 2>&1 &&
7997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7998 am_cv_CC_dependencies_compiler_type=$depmode
8006 am_cv_CC_dependencies_compiler_type=none
8010 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8011 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8012 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8015 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8016 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8017 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8018 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 cat >conftest.make <<\_ACEOF
8023 @echo 'ac_maketemp="${MAKE}"'
8025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8026 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8027 if test -n "$ac_maketemp"; then
8028 eval ac_cv_prog_make_${ac_make}_set=yes
8030 eval ac_cv_prog_make_${ac_make}_set=no
8034 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6
8039 echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6
8041 SET_MAKE="MAKE=${MAKE-make}"
8045 # Checks for libraries.
8046 # FIXME: Replace `main' with a function in `-lX11':
8047 # AC_CHECK_LIB([X11], [main])
8048 # FIXME: Replace `main' with a function in `-ldl':
8049 # AC_CHECK_LIB([dl], [main])
8050 # FIXME: Replace `main' with a function in `-lefence':
8051 # AC_CHECK_LIB([efence], [main])
8052 # FIXME: Replace `main' with a function in `-lm':
8053 # AC_CHECK_LIB([m], [main])
8054 # FIXME: Replace `main' with a function in `-lproj':
8055 # AC_CHECK_LIB([proj], [main])
8057 # Checks for header files.
8058 echo "$as_me:$LINENO: checking for X" >&5
8059 echo $ECHO_N "checking for X... $ECHO_C" >&6
8062 # Check whether --with-x or --without-x was given.
8063 if test "${with_x+set}" = set; then
8067 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8068 if test "x$with_x" = xno; then
8069 # The user explicitly disabled X.
8072 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8073 # Both variables are already set.
8076 if test "${ac_cv_have_x+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 # One or both of the vars are not set, and there is no cached value.
8080 ac_x_includes=no ac_x_libraries=no
8082 if mkdir conftest.dir; then
8084 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8085 cat >Imakefile <<'_ACEOF'
8087 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8089 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8091 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8093 for ac_extension in a so sl; do
8094 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8095 test -f $ac_im_libdir/libX11.$ac_extension; then
8096 ac_im_usrlibdir=$ac_im_libdir; break
8099 # Screen out bogus values from the imake configuration. They are
8100 # bogus both because they are the default anyway, and because
8101 # using them would break gcc on systems where it needs fixed includes.
8102 case $ac_im_incroot in
8104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8106 case $ac_im_usrlibdir in
8108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8115 # Standard set of common directories for X headers.
8116 # Check X11 before X11Rn because it is often a symlink to the current release.
8128 /usr/local/X11/include
8129 /usr/local/X11R6/include
8130 /usr/local/X11R5/include
8131 /usr/local/X11R4/include
8133 /usr/local/include/X11
8134 /usr/local/include/X11R6
8135 /usr/local/include/X11R5
8136 /usr/local/include/X11R4
8140 /usr/XFree86/include/X11
8144 /usr/unsupported/include
8146 /usr/local/x11r5/include
8147 /usr/lpp/Xamples/include
8149 /usr/openwin/include
8150 /usr/openwin/share/include'
8152 if test "$ac_x_includes" = no; then
8153 # Guess where to find include files, by looking for Intrinsic.h.
8154 # First, try using that file with no special directory specified.
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 #include <X11/Intrinsic.h>
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8163 egrep -v '^ *\+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev/null; then
8168 if test -s conftest.err; then
8169 ac_cpp_err=$ac_c_preproc_warn_flag
8176 if test -z "$ac_cpp_err"; then
8177 # We can compile using X headers with no special include directory.
8180 echo "$as_me: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8182 for ac_dir in $ac_x_header_dirs; do
8183 if test -r "$ac_dir/X11/Intrinsic.h"; then
8184 ac_x_includes=$ac_dir
8189 rm -f conftest.err conftest.$ac_ext
8190 fi # $ac_x_includes = no
8192 if test "$ac_x_libraries" = no; then
8193 # Check for the libraries.
8194 # See if we find them without any special options.
8195 # Don't add to $LIBS permanently.
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line $LINENO "configure"
8200 #include "confdefs.h"
8201 #include <X11/Intrinsic.h>
8202 #ifdef F77_DUMMY_MAIN
8206 int F77_DUMMY_MAIN() { return 1; }
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8229 # We can link X programs with no special library path.
8232 echo "$as_me: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8235 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8237 # Don't even attempt the hair of trying to link an X program!
8238 for ac_extension in a so sl; do
8239 if test -r $ac_dir/libXt.$ac_extension; then
8240 ac_x_libraries=$ac_dir
8246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247 fi # $ac_x_libraries = no
8249 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8250 # Didn't find X anywhere. Cache the known absence of X.
8251 ac_cv_have_x="have_x=no"
8253 # Record where we found X for the cache.
8254 ac_cv_have_x="have_x=yes \
8255 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8260 eval "$ac_cv_have_x"
8263 if test "$have_x" != yes; then
8264 echo "$as_me:$LINENO: result: $have_x" >&5
8265 echo "${ECHO_T}$have_x" >&6
8268 # If each of the values was on the command line, it overrides each guess.
8269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8271 # Update the cache value to reflect the command line values.
8272 ac_cv_have_x="have_x=yes \
8273 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8274 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8278 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8279 # for constant arguments. Useless!
8280 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8281 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8282 if test "${ac_cv_working_alloca_h+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 #include "confdefs.h"
8289 #ifdef F77_DUMMY_MAIN
8293 int F77_DUMMY_MAIN() { return 1; }
8298 char *p = (char *) alloca (2 * sizeof (int));
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_working_alloca_h=yes
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_cv_working_alloca_h=no
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8323 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8324 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8325 if test $ac_cv_working_alloca_h = yes; then
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_ALLOCA_H 1
8333 echo "$as_me:$LINENO: checking for alloca" >&5
8334 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8335 if test "${ac_cv_func_alloca_works+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8339 #line $LINENO "configure"
8340 #include "confdefs.h"
8342 # define alloca __builtin_alloca
8345 # include <malloc.h>
8346 # define alloca _alloca
8349 # include <alloca.h>
8354 # ifndef alloca /* predefined by HP cc +Olibcalls */
8362 #ifdef F77_DUMMY_MAIN
8366 int F77_DUMMY_MAIN() { return 1; }
8371 char *p = (char *) alloca (1);
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_func_alloca_works=yes
8390 echo "$as_me: failed program was:" >&5
8391 cat conftest.$ac_ext >&5
8392 ac_cv_func_alloca_works=no
8394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8397 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8399 if test $ac_cv_func_alloca_works = yes; then
8401 cat >>confdefs.h <<\_ACEOF
8402 #define HAVE_ALLOCA 1
8406 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8407 # that cause trouble. Some versions do not even contain alloca or
8408 # contain a buggy version. If you still want to use their alloca,
8409 # use ar to extract alloca.o from them instead of compiling alloca.c.
8411 ALLOCA=alloca.$ac_objext
8413 cat >>confdefs.h <<\_ACEOF
8418 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8419 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8420 if test "${ac_cv_os_cray+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 #include "confdefs.h"
8426 #if defined(CRAY) && ! defined(CRAY2)
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434 egrep "webecray" >/dev/null 2>&1; then
8442 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8443 echo "${ECHO_T}$ac_cv_os_cray" >&6
8444 if test $ac_cv_os_cray = yes; then
8445 for ac_func in _getb67 GETB67 getb67; do
8446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8447 echo "$as_me:$LINENO: checking for $ac_func" >&5
8448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8449 if eval "test \"\${$as_ac_var+set}\" = set"; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 cat >conftest.$ac_ext <<_ACEOF
8453 #line $LINENO "configure"
8454 #include "confdefs.h"
8455 /* System header to define __stub macros and hopefully few prototypes,
8456 which can conflict with char $ac_func (); below. */
8458 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8467 #ifdef F77_DUMMY_MAIN
8471 int F77_DUMMY_MAIN() { return 1; }
8476 /* The GNU C library defines this for functions which it implements
8477 to always fail with ENOSYS. Some functions are actually named
8478 something starting with __ and the normal name is an alias. */
8479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 eval "$as_ac_var=yes"
8503 echo "$as_me: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 eval "$as_ac_var=no"
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8511 if test `eval echo '${'$as_ac_var'}'` = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514 #define CRAY_STACKSEG_END $ac_func
8523 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8524 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8525 if test "${ac_cv_c_stack_direction+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 if test "$cross_compiling" = yes; then
8529 ac_cv_c_stack_direction=0
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8535 find_stack_direction ()
8537 static char *addr = 0;
8542 return find_stack_direction ();
8545 return (&dummy > addr) ? 1 : -1;
8551 exit (find_stack_direction () < 0);
8554 rm -f conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556 (eval $ac_link) 2>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_c_stack_direction=1
8567 echo "$as_me: program exited with status $ac_status" >&5
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 ac_cv_c_stack_direction=-1
8573 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8576 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8577 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8579 cat >>confdefs.h <<_ACEOF
8580 #define STACK_DIRECTION $ac_cv_c_stack_direction
8586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8588 if test "${ac_cv_header_stdc+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 cat >conftest.$ac_ext <<_ACEOF
8592 #line $LINENO "configure"
8593 #include "confdefs.h"
8600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8603 egrep -v '^ *\+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } >/dev/null; then
8608 if test -s conftest.err; then
8609 ac_cpp_err=$ac_c_preproc_warn_flag
8616 if test -z "$ac_cpp_err"; then
8617 ac_cv_header_stdc=yes
8619 echo "$as_me: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 ac_cv_header_stdc=no
8623 rm -f conftest.err conftest.$ac_ext
8625 if test $ac_cv_header_stdc = yes; then
8626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8627 cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8629 #include "confdefs.h"
8633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8634 egrep "memchr" >/dev/null 2>&1; then
8637 ac_cv_header_stdc=no
8643 if test $ac_cv_header_stdc = yes; then
8644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8645 cat >conftest.$ac_ext <<_ACEOF
8646 #line $LINENO "configure"
8647 #include "confdefs.h"
8651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8652 egrep "free" >/dev/null 2>&1; then
8655 ac_cv_header_stdc=no
8661 if test $ac_cv_header_stdc = yes; then
8662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8663 if test "$cross_compiling" = yes; then
8666 cat >conftest.$ac_ext <<_ACEOF
8667 #line $LINENO "configure"
8668 #include "confdefs.h"
8670 #if ((' ' & 0x0FF) == 0x020)
8671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8674 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8675 || ('j' <= (c) && (c) <= 'r') \
8676 || ('s' <= (c) && (c) <= 'z'))
8677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8685 for (i = 0; i < 256; i++)
8686 if (XOR (islower (i), ISLOWER (i))
8687 || toupper (i) != TOUPPER (i))
8692 rm -f conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8705 echo "$as_me: program exited with status $ac_status" >&5
8706 echo "$as_me: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8709 ac_cv_header_stdc=no
8711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8717 if test $ac_cv_header_stdc = yes; then
8719 cat >>confdefs.h <<\_ACEOF
8720 #define STDC_HEADERS 1
8732 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo "$as_me:$LINENO: checking for $ac_header" >&5
8737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 # Is the header compilable?
8745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 #include "confdefs.h"
8750 $ac_includes_default
8751 #include <$ac_header>
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -s conftest.$ac_objext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_header_compiler=yes
8767 echo "$as_me: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 ac_header_compiler=no
8771 rm -f conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8773 echo "${ECHO_T}$ac_header_compiler" >&6
8775 # Is the header present?
8776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8780 #include "confdefs.h"
8781 #include <$ac_header>
8783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8786 egrep -v '^ *\+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev/null; then
8791 if test -s conftest.err; then
8792 ac_cpp_err=$ac_c_preproc_warn_flag
8799 if test -z "$ac_cpp_err"; then
8800 ac_header_preproc=yes
8802 echo "$as_me: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 ac_header_preproc=no
8806 rm -f conftest.err conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8808 echo "${ECHO_T}$ac_header_preproc" >&6
8810 # So? What about this header?
8811 case $ac_header_compiler:$ac_header_preproc in
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8825 echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 eval "$as_ac_Header=$ac_header_preproc"
8832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8837 cat >>confdefs.h <<_ACEOF
8838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8846 # Checks for typedefs, structures, and compiler characteristics.
8847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 ac_cv_prog_cc_stdc=no
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line $LINENO "configure"
8856 #include "confdefs.h"
8859 #include <sys/types.h>
8860 #include <sys/stat.h>
8861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8862 struct buf { int x; };
8863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8864 static char *e (p, i)
8870 static char *f (char * (*g) (char **, int), char **p, ...)
8875 s = g (p, va_arg (v,int));
8879 int test (int i, double x);
8880 struct s1 {int (*f) (int a);};
8881 struct s2 {int (*f) (double a);};
8882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8885 #ifdef F77_DUMMY_MAIN
8889 int F77_DUMMY_MAIN() { return 1; }
8894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8899 # Don't try gcc -ansi; that turns off useful extensions and
8900 # breaks some systems' header files.
8901 # AIX -qlanglvl=ansi
8902 # Ultrix and OSF/1 -std1
8903 # HP-UX 10.20 and later -Ae
8904 # HP-UX older versions -Aa -D_HPUX_SOURCE
8905 # SVR4 -Xc -D__EXTENSIONS__
8906 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8908 CC="$ac_save_CC $ac_arg"
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -s conftest.$ac_objext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_prog_cc_stdc=$ac_arg
8924 echo "$as_me: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8927 rm -f conftest.$ac_objext
8929 rm -f conftest.$ac_ext conftest.$ac_objext
8934 case "x$ac_cv_prog_cc_stdc" in
8936 echo "$as_me:$LINENO: result: none needed" >&5
8937 echo "${ECHO_T}none needed" >&6 ;;
8939 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8941 CC="$CC $ac_cv_prog_cc_stdc" ;;
8944 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8946 if test "${ac_cv_c_const+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8951 #include "confdefs.h"
8953 #ifdef F77_DUMMY_MAIN
8957 int F77_DUMMY_MAIN() { return 1; }
8962 /* FIXME: Include the comments suggested by Paul. */
8964 /* Ultrix mips cc rejects this. */
8965 typedef int charset[2];
8967 /* SunOS 4.1.1 cc rejects this. */
8968 char const *const *ccp;
8970 /* NEC SVR4.0.2 mips cc rejects this. */
8971 struct point {int x, y;};
8972 static struct point const zero = {0,0};
8973 /* AIX XL C 1.02.0.0 rejects this.
8974 It does not let you subtract one const X* pointer from another in
8975 an arm of an if-expression whose if-part is not a constant
8977 const char *g = "string";
8978 ccp = &g + (g ? g-g : 0);
8979 /* HPUX 7.0 cc rejects these. */
8982 ccp = (char const *const *) p;
8983 { /* SCO 3.2v4 cc rejects this. */
8985 char const *s = 0 ? (char *) 0 : (char const *) 0;
8989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8991 const int *foo = &x[0];
8994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8995 typedef const int *iptr;
8999 { /* AIX XL C 1.02.0.0 rejects this saying
9000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9001 struct s { int j; const int *ap[3]; };
9002 struct s *b; b->j = 5;
9004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9034 echo "${ECHO_T}$ac_cv_c_const" >&6
9035 if test $ac_cv_c_const = no; then
9037 cat >>confdefs.h <<\_ACEOF
9043 echo "$as_me:$LINENO: checking for size_t" >&5
9044 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9045 if test "${ac_cv_type_size_t+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9049 #line $LINENO "configure"
9050 #include "confdefs.h"
9051 $ac_includes_default
9052 #ifdef F77_DUMMY_MAIN
9056 int F77_DUMMY_MAIN() { return 1; }
9063 if (sizeof (size_t))
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_type_size_t=yes
9083 echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9085 ac_cv_type_size_t=no
9087 rm -f conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9090 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9091 if test $ac_cv_type_size_t = yes; then
9095 cat >>confdefs.h <<_ACEOF
9096 #define size_t unsigned
9101 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9102 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9103 if test "${ac_cv_struct_tm+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 #include "confdefs.h"
9109 #include <sys/types.h>
9112 #ifdef F77_DUMMY_MAIN
9116 int F77_DUMMY_MAIN() { return 1; }
9121 struct tm *tp; tp->tm_sec;
9126 rm -f conftest.$ac_objext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9128 (eval $ac_compile) 2>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_struct_tm=time.h
9140 echo "$as_me: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9142 ac_cv_struct_tm=sys/time.h
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9147 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9148 if test $ac_cv_struct_tm = sys/time.h; then
9150 cat >>confdefs.h <<\_ACEOF
9151 #define TM_IN_SYS_TIME 1
9157 # Checks for library functions.
9158 echo "$as_me:$LINENO: checking for error_at_line" >&5
9159 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9160 if test "${ac_cv_lib_error_at_line+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9165 #include "confdefs.h"
9167 #ifdef F77_DUMMY_MAIN
9171 int F77_DUMMY_MAIN() { return 1; }
9176 error_at_line (0, 0, "", 0, "");
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183 (eval $ac_link) 2>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_lib_error_at_line=yes
9195 echo "$as_me: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 ac_cv_lib_error_at_line=no
9199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9201 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9202 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9203 if test $ac_cv_lib_error_at_line = no; then
9204 LIBOBJS="$LIBOBJS error.$ac_objext"
9208 for ac_header in stdlib.h
9210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9212 echo "$as_me:$LINENO: checking for $ac_header" >&5
9213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9220 # Is the header compilable?
9221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9224 #line $LINENO "configure"
9225 #include "confdefs.h"
9226 $ac_includes_default
9227 #include <$ac_header>
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231 (eval $ac_compile) 2>&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_header_compiler=yes
9243 echo "$as_me: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 ac_header_compiler=no
9247 rm -f conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9249 echo "${ECHO_T}$ac_header_compiler" >&6
9251 # Is the header present?
9252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9255 #line $LINENO "configure"
9256 #include "confdefs.h"
9257 #include <$ac_header>
9259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262 egrep -v '^ *\+' conftest.er1 >conftest.err
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } >/dev/null; then
9267 if test -s conftest.err; then
9268 ac_cpp_err=$ac_c_preproc_warn_flag
9275 if test -z "$ac_cpp_err"; then
9276 ac_header_preproc=yes
9278 echo "$as_me: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 ac_header_preproc=no
9282 rm -f conftest.err conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9284 echo "${ECHO_T}$ac_header_preproc" >&6
9286 # So? What about this header?
9287 case $ac_header_compiler:$ac_header_preproc in
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9301 echo "$as_me:$LINENO: checking for $ac_header" >&5
9302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 eval "$as_ac_Header=$ac_header_preproc"
9308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9313 cat >>confdefs.h <<_ACEOF
9314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9321 echo "$as_me:$LINENO: checking for working malloc" >&5
9322 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9323 if test "${ac_cv_func_malloc_works+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 if test "$cross_compiling" = yes; then
9327 ac_cv_func_malloc_works=no
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 #include "confdefs.h"
9332 #if STDC_HEADERS || HAVE_STDLIB_H
9333 # include <stdlib.h>
9338 #ifdef F77_DUMMY_MAIN
9342 int F77_DUMMY_MAIN() { return 1; }
9347 exit (malloc (0) ? 0 : 1);
9352 rm -f conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_cv_func_malloc_works=yes
9365 echo "$as_me: program exited with status $ac_status" >&5
9366 echo "$as_me: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9369 ac_cv_func_malloc_works=no
9371 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
9375 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
9376 if test $ac_cv_func_malloc_works = yes; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_MALLOC 1
9386 for ac_header in stdlib.h unistd.h
9388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9390 echo "$as_me:$LINENO: checking for $ac_header" >&5
9391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9398 # Is the header compilable?
9399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404 $ac_includes_default
9405 #include <$ac_header>
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_header_compiler=yes
9421 echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 ac_header_compiler=no
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 echo "${ECHO_T}$ac_header_compiler" >&6
9429 # Is the header present?
9430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9433 #line $LINENO "configure"
9434 #include "confdefs.h"
9435 #include <$ac_header>
9437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9440 egrep -v '^ *\+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } >/dev/null; then
9445 if test -s conftest.err; then
9446 ac_cpp_err=$ac_c_preproc_warn_flag
9453 if test -z "$ac_cpp_err"; then
9454 ac_header_preproc=yes
9456 echo "$as_me: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 ac_header_preproc=no
9460 rm -f conftest.err conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9462 echo "${ECHO_T}$ac_header_preproc" >&6
9464 # So? What about this header?
9465 case $ac_header_compiler:$ac_header_preproc in
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9479 echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 eval "$as_ac_Header=$ac_header_preproc"
9486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9491 cat >>confdefs.h <<_ACEOF
9492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9500 for ac_func in getpagesize
9502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9503 echo "$as_me:$LINENO: checking for $ac_func" >&5
9504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9505 if eval "test \"\${$as_ac_var+set}\" = set"; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char $ac_func (); below. */
9514 /* Override any gcc2 internal prototype to avoid an error. */
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9523 #ifdef F77_DUMMY_MAIN
9527 int F77_DUMMY_MAIN() { return 1; }
9532 /* The GNU C library defines this for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 eval "$as_ac_var=yes"
9559 echo "$as_me: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 eval "$as_ac_var=no"
9563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9567 if test `eval echo '${'$as_ac_var'}'` = yes; then
9568 cat >>confdefs.h <<_ACEOF
9569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9575 echo "$as_me:$LINENO: checking for working mmap" >&5
9576 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9577 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 if test "$cross_compiling" = yes; then
9581 ac_cv_func_mmap_fixed_mapped=no
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 #include "confdefs.h"
9586 $ac_includes_default
9587 /* malloc might have been renamed as rpl_malloc. */
9590 /* Thanks to Mike Haertel and Jim Avera for this test.
9591 Here is a matrix of mmap possibilities:
9592 mmap private not fixed
9593 mmap private fixed at somewhere currently unmapped
9594 mmap private fixed at somewhere already mapped
9595 mmap shared not fixed
9596 mmap shared fixed at somewhere currently unmapped
9597 mmap shared fixed at somewhere already mapped
9598 For private mappings, we should verify that changes cannot be read()
9599 back from the file, nor mmap's back from the file at a different
9600 address. (There have been systems where private was not correctly
9601 implemented like the infamous i386 svr4.0, and systems where the
9602 VM page cache was not coherent with the file system buffer cache
9603 like early versions of FreeBSD and possibly contemporary NetBSD.)
9604 For shared mappings, we should conversely verify that changes get
9605 propagated back to all the places they're supposed to be.
9607 Grep wants private fixed already mapped.
9608 The main things grep needs to know about mmap are:
9609 * does it exist and is it safe to write into the mmap'd area
9610 * how to use it (BSD variants) */
9613 #include <sys/mman.h>
9615 #if !STDC_HEADERS && !HAVE_STDLIB_H
9619 /* This mess was copied from the GNU getpagesize.h. */
9620 #if !HAVE_GETPAGESIZE
9621 /* Assume that all systems that can run configure have sys/param.h. */
9622 # if !HAVE_SYS_PARAM_H
9623 # define HAVE_SYS_PARAM_H 1
9626 # ifdef _SC_PAGESIZE
9627 # define getpagesize() sysconf(_SC_PAGESIZE)
9628 # else /* no _SC_PAGESIZE */
9629 # if HAVE_SYS_PARAM_H
9630 # include <sys/param.h>
9631 # ifdef EXEC_PAGESIZE
9632 # define getpagesize() EXEC_PAGESIZE
9633 # else /* no EXEC_PAGESIZE */
9635 # define getpagesize() NBPG * CLSIZE
9638 # endif /* no CLSIZE */
9639 # else /* no NBPG */
9641 # define getpagesize() NBPC
9642 # else /* no NBPC */
9644 # define getpagesize() PAGESIZE
9645 # endif /* PAGESIZE */
9646 # endif /* no NBPC */
9647 # endif /* no NBPG */
9648 # endif /* no EXEC_PAGESIZE */
9649 # else /* no HAVE_SYS_PARAM_H */
9650 # define getpagesize() 8192 /* punt totally */
9651 # endif /* no HAVE_SYS_PARAM_H */
9652 # endif /* no _SC_PAGESIZE */
9654 #endif /* no HAVE_GETPAGESIZE */
9659 char *data, *data2, *data3;
9663 pagesize = getpagesize ();
9665 /* First, make a file with some known garbage in it. */
9666 data = (char *) malloc (pagesize);
9669 for (i = 0; i < pagesize; ++i)
9670 *(data + i) = rand ();
9672 fd = creat ("conftest.mmap", 0600);
9675 if (write (fd, data, pagesize) != pagesize)
9679 /* Next, try to mmap the file at a fixed address which already has
9680 something else allocated at it. If we can, also make sure that
9681 we see the same garbage. */
9682 fd = open ("conftest.mmap", O_RDWR);
9685 data2 = (char *) malloc (2 * pagesize);
9688 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9689 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9690 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9692 for (i = 0; i < pagesize; ++i)
9693 if (*(data + i) != *(data2 + i))
9696 /* Finally, make sure that changes to the mapped area do not
9697 percolate back to the file as seen by read(). (This is a bug on
9698 some variants of i386 svr4.0.) */
9699 for (i = 0; i < pagesize; ++i)
9700 *(data2 + i) = *(data2 + i) + 1;
9701 data3 = (char *) malloc (pagesize);
9704 if (read (fd, data3, pagesize) != pagesize)
9706 for (i = 0; i < pagesize; ++i)
9707 if (*(data + i) != *(data3 + i))
9713 rm -f conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_func_mmap_fixed_mapped=yes
9726 echo "$as_me: program exited with status $ac_status" >&5
9727 echo "$as_me: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 ac_cv_func_mmap_fixed_mapped=no
9732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9735 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9736 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9737 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9739 cat >>confdefs.h <<\_ACEOF
9746 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9747 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9748 if test "${ac_cv_type_signal+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9754 #include <sys/types.h>
9760 extern "C" void (*signal (int, void (*)(int)))(int);
9762 void (*signal ()) ();
9765 #ifdef F77_DUMMY_MAIN
9769 int F77_DUMMY_MAIN() { return 1; }
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -s conftest.$ac_objext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_cv_type_signal=void
9793 echo "$as_me: failed program was:" >&5
9794 cat conftest.$ac_ext >&5
9795 ac_cv_type_signal=int
9797 rm -f conftest.$ac_objext conftest.$ac_ext
9799 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9800 echo "${ECHO_T}$ac_cv_type_signal" >&6
9802 cat >>confdefs.h <<_ACEOF
9803 #define RETSIGTYPE $ac_cv_type_signal
9807 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9808 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9809 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 rm -f conftest.sym conftest.file
9814 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9815 if test "$cross_compiling" = yes; then
9816 ac_cv_func_lstat_dereferences_slashed_symlink=no
9818 cat >conftest.$ac_ext <<_ACEOF
9819 #line $LINENO "configure"
9820 #include "confdefs.h"
9821 $ac_includes_default
9822 #ifdef F77_DUMMY_MAIN
9826 int F77_DUMMY_MAIN() { return 1; }
9832 /* Linux will dereference the symlink and fail.
9833 That is better in the sense that it means we will not
9834 have to compile and use the lstat wrapper. */
9835 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9840 rm -f conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9853 echo "$as_me: program exited with status $ac_status" >&5
9854 echo "$as_me: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9857 ac_cv_func_lstat_dereferences_slashed_symlink=no
9859 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9862 # If the `ln -s' command failed, then we probably don't even
9863 # have an lstat function.
9864 ac_cv_func_lstat_dereferences_slashed_symlink=no
9866 rm -f conftest.sym conftest.file
9869 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9870 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9872 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9874 cat >>confdefs.h <<_ACEOF
9875 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9879 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9880 LIBOBJS="$LIBOBJS lstat.$ac_objext"
9883 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9884 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9885 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 if test "$cross_compiling" = yes; then
9889 ac_cv_func_stat_empty_string_bug=yes
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 #include "confdefs.h"
9894 $ac_includes_default
9895 #ifdef F77_DUMMY_MAIN
9899 int F77_DUMMY_MAIN() { return 1; }
9905 exit (stat ("", &sbuf) ? 1 : 0);
9910 rm -f conftest$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_func_stat_empty_string_bug=yes
9923 echo "$as_me: program exited with status $ac_status" >&5
9924 echo "$as_me: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9927 ac_cv_func_stat_empty_string_bug=no
9929 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9933 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
9934 if test $ac_cv_func_stat_empty_string_bug = yes; then
9935 LIBOBJS="$LIBOBJS stat.$ac_objext"
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_STAT_EMPTY_STRING_BUG 1
9943 echo "$as_me:$LINENO: checking for working strtod" >&5
9944 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9945 if test "${ac_cv_func_strtod+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 if test "$cross_compiling" = yes; then
9949 ac_cv_func_strtod=no
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line $LINENO "configure"
9953 #include "confdefs.h"
9960 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9961 char *string = " +69";
9964 value = strtod (string, &term);
9965 if (value != 69 || term != (string + 4))
9970 /* Under Solaris 2.4, strtod returns the wrong value for the
9971 terminating character under some conditions. */
9972 char *string = "NaN";
9974 strtod (string, &term);
9975 if (term != string && *(term - 1) == 0)
9982 rm -f conftest$ac_exeext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9984 (eval $ac_link) 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_func_strtod=yes
9995 echo "$as_me: program exited with status $ac_status" >&5
9996 echo "$as_me: failed program was:" >&5
9997 cat conftest.$ac_ext >&5
9999 ac_cv_func_strtod=no
10001 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10004 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10005 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10006 if test $ac_cv_func_strtod = no; then
10007 LIBOBJS="$LIBOBJS strtod.$ac_objext"
10008 echo "$as_me:$LINENO: checking for pow" >&5
10009 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10010 if test "${ac_cv_func_pow+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 cat >conftest.$ac_ext <<_ACEOF
10014 #line $LINENO "configure"
10015 #include "confdefs.h"
10016 /* System header to define __stub macros and hopefully few prototypes,
10017 which can conflict with char pow (); below. */
10018 #include <assert.h>
10019 /* Override any gcc2 internal prototype to avoid an error. */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10028 #ifdef F77_DUMMY_MAIN
10029 # ifdef __cplusplus
10032 int F77_DUMMY_MAIN() { return 1; }
10037 /* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040 #if defined (__stub_pow) || defined (__stub___pow)
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10064 echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10070 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10071 echo "${ECHO_T}$ac_cv_func_pow" >&6
10073 if test $ac_cv_func_pow = no; then
10074 echo "$as_me:$LINENO: checking for pow in -lm" >&5
10075 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10076 if test "${ac_cv_lib_m_pow+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 ac_check_lib_save_LIBS=$LIBS
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10085 /* Override any gcc2 internal prototype to avoid an error. */
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10092 #ifdef F77_DUMMY_MAIN
10093 # ifdef __cplusplus
10096 int F77_DUMMY_MAIN() { return 1; }
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -s conftest$ac_exeext'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_lib_m_pow=yes
10120 echo "$as_me: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10127 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10128 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10129 if test $ac_cv_lib_m_pow = yes; then
10132 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10133 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10141 for ac_func in vprintf
10143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_var+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 #include "confdefs.h"
10152 /* System header to define __stub macros and hopefully few prototypes,
10153 which can conflict with char $ac_func (); below. */
10154 #include <assert.h>
10155 /* Override any gcc2 internal prototype to avoid an error. */
10159 /* We use char because int might match the return type of a gcc2
10160 builtin and then its argument prototype would still apply. */
10164 #ifdef F77_DUMMY_MAIN
10165 # ifdef __cplusplus
10168 int F77_DUMMY_MAIN() { return 1; }
10173 /* The GNU C library defines this for functions which it implements
10174 to always fail with ENOSYS. Some functions are actually named
10175 something starting with __ and the normal name is an alias. */
10176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -s conftest$ac_exeext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 eval "$as_ac_var=yes"
10200 echo "$as_me: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 eval "$as_ac_var=no"
10204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10208 if test `eval echo '${'$as_ac_var'}'` = yes; then
10209 cat >>confdefs.h <<_ACEOF
10210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10213 echo "$as_me:$LINENO: checking for _doprnt" >&5
10214 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10215 if test "${ac_cv_func__doprnt+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 cat >conftest.$ac_ext <<_ACEOF
10219 #line $LINENO "configure"
10220 #include "confdefs.h"
10221 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char _doprnt (); below. */
10223 #include <assert.h>
10224 /* Override any gcc2 internal prototype to avoid an error. */
10228 /* We use char because int might match the return type of a gcc2
10229 builtin and then its argument prototype would still apply. */
10233 #ifdef F77_DUMMY_MAIN
10234 # ifdef __cplusplus
10237 int F77_DUMMY_MAIN() { return 1; }
10242 /* The GNU C library defines this for functions which it implements
10243 to always fail with ENOSYS. Some functions are actually named
10244 something starting with __ and the normal name is an alias. */
10245 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_func__doprnt=yes
10269 echo "$as_me: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10271 ac_cv_func__doprnt=no
10273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10276 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10277 if test $ac_cv_func__doprnt = yes; then
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_DOPRNT 1
10302 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10305 echo "$as_me:$LINENO: checking for $ac_func" >&5
10306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10307 if eval "test \"\${$as_ac_var+set}\" = set"; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 cat >conftest.$ac_ext <<_ACEOF
10311 #line $LINENO "configure"
10312 #include "confdefs.h"
10313 /* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char $ac_func (); below. */
10315 #include <assert.h>
10316 /* Override any gcc2 internal prototype to avoid an error. */
10320 /* We use char because int might match the return type of a gcc2
10321 builtin and then its argument prototype would still apply. */
10325 #ifdef F77_DUMMY_MAIN
10326 # ifdef __cplusplus
10329 int F77_DUMMY_MAIN() { return 1; }
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 eval "$as_ac_var=yes"
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 eval "$as_ac_var=no"
10365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10369 if test `eval echo '${'$as_ac_var'}'` = yes; then
10370 cat >>confdefs.h <<_ACEOF
10371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10380 FGIS_CONFIG=$"$sysconfdir"
10381 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10382 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10383 FGIS_CONFIG=`eval echo $FGIS_CONFIG`
10384 FGIS_CONFIG=`eval echo $FGIS_CONFIG`
10388 cat >>confdefs.h <<_ACEOF
10389 #define FGIS_CONFIG "$FGIS_CONFIG"
10392 FGIS_CONFIG=$FGIS_CONFIG
10397 FGIS_LIBDIR=$"$libdir"
10398 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10399 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10400 FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10401 FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10404 FGIS_LIBDIR=$FGIS_LIBDIR
10409 FGIS_SCRIPTS=$"$libdir/fgis/tcl"
10410 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10411 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10412 FGIS_SCRIPTS=`eval echo $FGIS_SCRIPTS`
10413 FGIS_SCRIPTS=`eval echo $FGIS_SCRIPTS`
10416 FGIS_SCRIPTS=$FGIS_SCRIPTS
10420 LIBEPP=../lib/libepp.la
10426 # Ok, lets find the tcl source trees so we can use the headers
10427 # Warning: transition of version 9 to 10 will break this algorithm
10428 # because 10 sorts before 9. We also look for just tcl. We have to
10429 # be careful that we don't match stuff like tclX by accident.
10430 # the alternative search directory is involked by --with-tclinclude
10433 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
10434 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
10436 # Check whether --with-tclinclude or --without-tclinclude was given.
10437 if test "${with_tclinclude+set}" = set; then
10438 withval="$with_tclinclude"
10439 with_tclinclude=${withval}
10441 if test "${ac_cv_c_tclh+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 # first check to see if --with-tclinclude was specified
10446 if test x"${with_tclinclude}" != x ; then
10447 if test -f ${with_tclinclude}/tclInt.h ; then
10448 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10449 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10450 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10452 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
10453 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
10454 { (exit 1); exit 1; }; }
10458 # next check if it came with Tcl configuration file
10459 if test x"${ac_cv_c_tclconfig}" != x ; then
10460 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10461 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
10465 # next check in private source directory
10467 # since ls returns lowest version numbers first, reverse its output
10468 if test x"${ac_cv_c_tclh}" = x ; then
10471 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10472 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \
10473 ${srcdir}/../../tcl \
10474 `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \
10475 `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \
10476 ${srcdir}/../../../tcl \
10477 `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \
10478 `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do
10479 if test -f $i/generic/tclInt.h ; then
10480 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10486 # check Debian-specific locations
10487 if test x"${ac_cv_c_tclh}" = x ; then
10489 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tcl-private /usr/include/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10490 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tcl-private /usr/include/tcl[8].[2-9]/tcl-private 2>/dev/null`; do
10491 if test -f $i/generic/tclInt.h ; then
10492 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10498 # finally check in a few common install locations
10500 # since ls returns lowest version numbers first, reverse its output
10501 if test x"${ac_cv_c_tclh}" = x ; then
10503 `ls -dr /usr/lib/tcl[9].[0-9].[0-9]/tcl-private /usr/lib/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10504 `ls -dr /usr/lib/tcl[8].[2-9].[0-9]/tcl-private /usr/lib/tcl[8].[2-9]/tcl-private 2>/dev/null` \
10505 `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \
10506 `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \
10507 `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \
10508 `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \
10509 /usr/local/src/tcl \
10510 /usr/local/lib/tcl \
10511 ${prefix}/include ; do
10512 if test -f $i/generic/tclInt.h ; then
10513 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10518 # see if one is installed
10519 if test x"${ac_cv_c_tclh}" = x ; then
10520 if test "${ac_cv_header_tclInt_h+set}" = set; then
10521 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10522 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10523 if test "${ac_cv_header_tclInt_h+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10527 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10529 # Is the header compilable?
10530 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
10531 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10534 #include "confdefs.h"
10535 $ac_includes_default
10536 #include <tclInt.h>
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540 (eval $ac_compile) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -s conftest.$ac_objext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_header_compiler=yes
10552 echo "$as_me: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10554 ac_header_compiler=no
10556 rm -f conftest.$ac_objext conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10558 echo "${ECHO_T}$ac_header_compiler" >&6
10560 # Is the header present?
10561 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
10562 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
10563 cat >conftest.$ac_ext <<_ACEOF
10564 #line $LINENO "configure"
10565 #include "confdefs.h"
10566 #include <tclInt.h>
10568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10571 egrep -v '^ *\+' conftest.er1 >conftest.err
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev/null; then
10576 if test -s conftest.err; then
10577 ac_cpp_err=$ac_c_preproc_warn_flag
10584 if test -z "$ac_cpp_err"; then
10585 ac_header_preproc=yes
10587 echo "$as_me: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 ac_header_preproc=no
10591 rm -f conftest.err conftest.$ac_ext
10592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10593 echo "${ECHO_T}$ac_header_preproc" >&6
10595 # So? What about this header?
10596 case $ac_header_compiler:$ac_header_preproc in
10598 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10599 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10601 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10603 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10610 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10611 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10612 if test "${ac_cv_header_tclInt_h+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 ac_cv_header_tclInt_h=$ac_header_preproc
10617 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10618 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10621 if test $ac_cv_header_tclInt_h = yes; then
10622 ac_cv_c_tclh=installed
10632 if test x"${ac_cv_c_tclh}" = x ; then
10633 TCLHDIR="# no Tcl private headers found"
10634 TCLHDIRDASHI="# no Tcl private headers found"
10635 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
10636 echo "$as_me: error: Can't find Tcl private headers" >&2;}
10637 { (exit 1); exit 1; }; }
10639 if test x"${ac_cv_c_tclh}" != x ; then
10641 if test x"${ac_cv_c_tclh}" = x"installed" ; then
10642 echo "$as_me:$LINENO: result: is installed" >&5
10643 echo "${ECHO_T}is installed" >&6
10648 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
10649 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
10650 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10651 TCLHDIR="${ac_cv_c_tclh}"
10652 TCLHDIRDASHI="-I${ac_cv_c_tclh}"
10653 TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
10661 if test x"$no_tcl" = x"true" ; then
10662 echo " ERROR: Can't find Tcl headers or library."
10663 echo " See README for information on how to obtain Tcl."
10664 echo " If Tcl is installed, see INSTALL on how to tell"
10665 echo " configure where Tcl is installed."
10670 # Ok, lets find the tcl configuration
10671 # First, look for one uninstalled.
10672 # the alternative search directory is invoked by --with-tcl
10675 if test x"${no_tcl}" = x ; then
10676 # we reset no_tcl in case something fails here
10679 # Check whether --with-tcl or --without-tcl was given.
10680 if test "${with_tcl+set}" = set; then
10681 withval="$with_tcl"
10682 with_tclconfig=${withval}
10684 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
10685 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
10686 if test "${ac_cv_c_tclconfig+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 # First check to see if --with-tcl was specified.
10692 if test x"${with_tclconfig}" != x ; then
10693 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10694 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10696 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10697 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10698 { (exit 1); exit 1; }; }
10702 # then check for a private Tcl installation
10703 if test x"${ac_cv_c_tclconfig}" = x ; then
10706 `ls -dr ../tcl[9].[0-9].[0-9] ../tcl[9].[0-9] 2>/dev/null` \
10707 `ls -dr ../tcl[8].[2-9].[0-9] ../tcl[8].[2-9] 2>/dev/null` \
10709 `ls -dr ../../tcl[9].[0-9].[0-9] ../../tcl[9].[0-9] 2>/dev/null` \
10710 `ls -dr ../../tcl[8].[2-9].[0-9] ../../tcl[8].[2-9] 2>/dev/null` \
10712 `ls -dr ../../../tcl[9].[0-9].[0-9] ../../../tcl[9].[0-9] 2>/dev/null` \
10713 `ls -dr ../../../tcl[8].[2-9].[0-9] ../../../tcl[8].[2-9] 2>/dev/null` ; do
10714 if test -f "$i/unix/tclConfig.sh" ; then
10715 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10720 # check in a few common install locations
10721 if test x"${ac_cv_c_tclconfig}" = x ; then
10722 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10723 if test -f "$i/tclConfig.sh" ; then
10724 ac_cv_c_tclconfig=`(cd $i; pwd)`
10730 # check Debian-specific locations
10731 if test x"${ac_cv_c_tclconfig}" = x ; then
10733 `ls -dr /usr/lib/tcl[9].[0-9].[0-9] /usr/lib/tcl[9].[0-9] 2>/dev/null` \
10734 `ls -dr /usr/lib/tcl[8].[2-9].[0-9] /usr/lib/tcl[8].[2-9] 2>/dev/null` ; do
10735 if test -f "$i/tclConfig.sh" ; then
10736 ac_cv_c_tclconfig=`(cd $i; pwd)`
10742 # check in a few other private locations
10743 if test x"${ac_cv_c_tclconfig}" = x ; then
10746 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10747 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` ; do
10748 if test -f "$i/unix/tclConfig.sh" ; then
10749 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10757 if test x"${ac_cv_c_tclconfig}" = x ; then
10758 TCLCONFIG="# no Tcl configs found"
10759 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
10760 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10763 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
10764 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
10765 echo "${ECHO_T}found $TCLCONFIG" >&6
10782 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
10783 # as just SHLIB_SUFFIX. How bizarre.
10784 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
10789 # if Tcl's build directory has been removed, TCL_LIB_SPEC should
10790 # be used instead of TCL_BUILD_LIB_SPEC
10792 # eval used to expand out TCL_DBGX
10793 eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
10794 echo "$as_me:$LINENO: checking Tcl build library" >&5
10795 echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
10796 echo "$as_me:$LINENO: result: $LIBS" >&5
10797 echo "${ECHO_T}$LIBS" >&6
10799 echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
10800 echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
10801 if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 #include "confdefs.h"
10807 /* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char Tcl_CreateCommand (); below. */
10809 #include <assert.h>
10810 /* Override any gcc2 internal prototype to avoid an error. */
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char Tcl_CreateCommand ();
10819 #ifdef F77_DUMMY_MAIN
10820 # ifdef __cplusplus
10823 int F77_DUMMY_MAIN() { return 1; }
10828 /* The GNU C library defines this for functions which it implements
10829 to always fail with ENOSYS. Some functions are actually named
10830 something starting with __ and the normal name is an alias. */
10831 #if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
10834 f = Tcl_CreateCommand;
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843 (eval $ac_link) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_cv_func_Tcl_CreateCommand=yes
10855 echo "$as_me: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 ac_cv_func_Tcl_CreateCommand=no
10859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10861 echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
10862 echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
10863 if test $ac_cv_func_Tcl_CreateCommand = yes; then
10865 echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10866 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10867 echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6
10872 TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
10873 # Can't pull the following CHECKING call out since it will be
10874 # broken up by the CHECK_FUNC just above.
10875 echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10876 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10890 TCL_INC_DIR=$TCL_INC_DIR
10892 TCL_PACKAGE_PATH=$TCL_PACKAGE_PATH
10897 # Ok, lets find the tk source trees so we can use the headers
10898 # If the directory (presumably symlink) named "tk" exists, use that one
10899 # in preference to any others. Same logic is used when choosing library
10900 # and again with Tcl. The search order is the best place to look first, then in
10901 # decreasing significance. The loop breaks if the trigger file is found.
10902 # Note the gross little conversion here of srcdir by cd'ing to the found
10903 # directory. This converts the path from a relative to an absolute, so
10904 # recursive cache variables for the path will work right. We check all
10905 # the possible paths in one loop rather than many seperate loops to speed
10907 # the alternative search directory is involked by --with-tkinclude
10910 echo "$as_me:$LINENO: checking for Tk private headers" >&5
10911 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
10913 # Check whether --with-tkinclude or --without-tkinclude was given.
10914 if test "${with_tkinclude+set}" = set; then
10915 withval="$with_tkinclude"
10916 with_tkinclude=${withval}
10918 if test "${ac_cv_c_tkh+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 # first check to see if --with-tkinclude was specified
10923 if test x"${with_tkinclude}" != x ; then
10924 if test -f ${with_tkinclude}/tk.h ; then
10925 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
10926 elif test -f ${with_tkinclude}/generic/tk.h ; then
10927 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
10929 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
10930 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
10931 { (exit 1); exit 1; }; }
10935 # next check if it came with Tk configuration file
10936 if test x"${ac_cv_c_tkconfig}" != x ; then
10937 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
10938 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
10942 # next check in private source directory
10944 # since ls returns lowest version numbers first, reverse its output
10945 if test x"${ac_cv_c_tkh}" = x ; then
10948 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10949 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10950 ${srcdir}/../../tk \
10951 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10952 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10953 ${srcdir}/../../../tk \
10954 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` \
10955 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
10956 if test -f $i/generic/tk.h ; then
10957 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10963 # check Debian-specific locations
10964 if test x"${ac_cv_c_tkh}" = x ; then
10966 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tk-private /usr/include/tcl[9].[0-9]/tk-private 2>/dev/null` \
10967 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tk-private /usr/include/tcl[8].[2-9]/tk-private 2>/dev/null` ; do
10968 if test -f $i/generic/tk.h ; then
10969 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10975 # finally check in a few common install locations
10977 # since ls returns lowest version numbers first, reverse its output
10978 if test x"${ac_cv_c_tkh}" = x ; then
10980 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10981 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10982 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10983 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10984 /usr/local/src/tk \
10985 /usr/local/lib/tk \
10986 ${prefix}/include ; do
10987 if test -f $i/generic/tk.h ; then
10988 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10993 # see if one is installed
10994 if test x"${ac_cv_c_tkh}" = x ; then
10995 if test "${ac_cv_header_tk_h+set}" = set; then
10996 echo "$as_me:$LINENO: checking for tk.h" >&5
10997 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
10998 if test "${ac_cv_header_tk_h+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11002 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11004 # Is the header compilable?
11005 echo "$as_me:$LINENO: checking tk.h usability" >&5
11006 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010 $ac_includes_default
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_header_compiler=yes
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 ac_header_compiler=no
11031 rm -f conftest.$ac_objext conftest.$ac_ext
11032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033 echo "${ECHO_T}$ac_header_compiler" >&6
11035 # Is the header present?
11036 echo "$as_me:$LINENO: checking tk.h presence" >&5
11037 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11046 egrep -v '^ *\+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } >/dev/null; then
11051 if test -s conftest.err; then
11052 ac_cpp_err=$ac_c_preproc_warn_flag
11059 if test -z "$ac_cpp_err"; then
11060 ac_header_preproc=yes
11062 echo "$as_me: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11064 ac_header_preproc=no
11066 rm -f conftest.err conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11068 echo "${ECHO_T}$ac_header_preproc" >&6
11070 # So? What about this header?
11071 case $ac_header_compiler:$ac_header_preproc in
11073 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
11074 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11078 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
11079 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
11081 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11083 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11085 echo "$as_me:$LINENO: checking for tk.h" >&5
11086 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11087 if test "${ac_cv_header_tk_h+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_cv_header_tk_h=$ac_header_preproc
11092 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11093 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11096 if test $ac_cv_header_tk_h = yes; then
11097 ac_cv_c_tkh=installed
11107 if test x"${ac_cv_c_tkh}" != x ; then
11109 if test x"${ac_cv_c_tkh}" = x"installed" ; then
11110 echo "$as_me:$LINENO: result: is installed" >&5
11111 echo "${ECHO_T}is installed" >&6
11114 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
11115 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
11116 # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
11117 TKHDIRDASHI="-I${ac_cv_c_tkh}"
11120 TKHDIRDASHI="# no Tk directory found"
11121 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
11122 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
11130 # Ok, lets find the tk configuration
11131 # First, look for one uninstalled.
11132 # the alternative search directory is invoked by --with-tk
11135 if test x"${no_tk}" = x ; then
11136 # we reset no_tk in case something fails here
11139 # Check whether --with-tk or --without-tk was given.
11140 if test "${with_tk+set}" = set; then
11142 with_tkconfig=${withval}
11144 echo "$as_me:$LINENO: checking for Tk configuration" >&5
11145 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
11146 if test "${ac_cv_c_tkconfig+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 # First check to see if --with-tk was specified.
11152 if test x"${with_tkconfig}" != x ; then
11153 if test -f "${with_tkconfig}/tkConfig.sh" ; then
11154 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
11156 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
11157 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
11158 { (exit 1); exit 1; }; }
11162 # then check for a private Tk library
11163 if test x"${ac_cv_c_tkconfig}" = x ; then
11166 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11167 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11169 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11170 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11172 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` \
11173 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` ; do
11174 if test -f "$i/unix/tkConfig.sh" ; then
11175 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11180 # check in a few common install locations
11181 if test x"${ac_cv_c_tkconfig}" = x ; then
11182 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
11183 if test -f "$i/tkConfig.sh" ; then
11184 ac_cv_c_tkconfig=`(cd $i; pwd)`
11189 # check Debian-specific locations
11190 if test x"${ac_cv_c_tkconfig}" = x ; then
11192 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` \
11193 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` ; do
11194 if test -f "$i/tkConfig.sh" ; then
11195 ac_cv_c_tkconfig=`(cd $i; pwd)`
11200 # check in a few other private locations
11201 if test x"${ac_cv_c_tkconfig}" = x ; then
11204 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11205 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
11206 if test -f "$i/unix/tkConfig.sh" ; then
11207 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11215 if test x"${ac_cv_c_tkconfig}" = x ; then
11216 TKCONFIG="# no Tk configs found"
11217 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
11218 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
11221 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
11222 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
11223 echo "${ECHO_T}found $TKCONFIG" >&6
11229 if test -f "$TKCONFIG" ; then
11243 # if Tk's build directory has been removed, TK_LIB_SPEC should
11244 # be used instead of TK_BUILD_LIB_SPEC
11246 # eval used to expand out TK_DBGX
11247 eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
11248 echo "$as_me:$LINENO: checking for Tk_Init" >&5
11249 echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
11250 if test "${ac_cv_func_Tk_Init+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11254 #line $LINENO "configure"
11255 #include "confdefs.h"
11256 /* System header to define __stub macros and hopefully few prototypes,
11257 which can conflict with char Tk_Init (); below. */
11258 #include <assert.h>
11259 /* Override any gcc2 internal prototype to avoid an error. */
11263 /* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11268 #ifdef F77_DUMMY_MAIN
11269 # ifdef __cplusplus
11272 int F77_DUMMY_MAIN() { return 1; }
11277 /* The GNU C library defines this for functions which it implements
11278 to always fail with ENOSYS. Some functions are actually named
11279 something starting with __ and the normal name is an alias. */
11280 #if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_func_Tk_Init=yes
11304 echo "$as_me: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 ac_cv_func_Tk_Init=no
11308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310 echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
11311 echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
11312 if test $ac_cv_func_Tk_Init = yes; then
11314 echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11315 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11316 echo "$as_me:$LINENO: result: yes" >&5
11317 echo "${ECHO_T}yes" >&6
11321 TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
11322 # Can't pull the following CHECKING call out since it will be
11323 # broken up by the CHECK_FUNC just above.
11324 echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11325 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11326 echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11336 TK_INC_DIR=$TK_INC_DIR
11338 if [[ $TK_VERSION < "8.4" ]]; then
11340 cat >>confdefs.h <<\_ACEOF
11346 ac_config_files="$ac_config_files Makefile etc/Makefile etc/fgis.rc dll/Makefile epu/Makefile include/Makefile lib/Makefile tcl/Makefile tcl/pkgIndex.tcl"
11348 cat >confcache <<\_ACEOF
11349 # This file is a shell script that caches the results of configure
11350 # tests run on this system so they can be shared between configure
11351 # scripts and configure runs, see configure's option --config-cache.
11352 # It is not useful on other systems. If it contains results you don't
11353 # want to keep, you may remove or edit it.
11355 # config.status only pays attention to the cache file if you give it
11356 # the --recheck option to rerun configure.
11358 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11360 # following values.
11364 # The following way of writing the cache mishandles newlines in values,
11365 # but we know of no workaround that is simple, portable, and efficient.
11366 # So, don't put newlines in cache variables' values.
11367 # Ultrix sh set writes to stderr and can't be redirected directly,
11368 # and sets the high bit in the cache file unless we assign to the vars.
11371 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11373 # `set' does not quote correctly, so add quotes (double-quote
11374 # substitution turns \\\\ into \\, and sed turns \\ into \).
11377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11380 # `set' quotes correctly as required by POSIX, so do not add quotes.
11382 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11391 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11393 if cmp -s $cache_file confcache; then :; else
11394 if test -w $cache_file; then
11395 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11396 cat confcache >$cache_file
11398 echo "not updating unwritable cache $cache_file"
11403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11404 # Let make expand exec_prefix.
11405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11409 # trailing colons and then remove the whole line if VPATH becomes empty
11410 # (actually we leave an empty line to preserve line numbers).
11411 if test "x$srcdir" = x.; then
11412 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11413 s/:*\$(srcdir):*/:/;
11414 s/:*\${srcdir}:*/:/;
11416 s/^\([^=]*=[ ]*\):*/\1/;
11422 DEFS=-DHAVE_CONFIG_H
11424 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11425 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11426 Usually this means the macro was only invoked conditionally." >&5
11427 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11428 Usually this means the macro was only invoked conditionally." >&2;}
11429 { (exit 1); exit 1; }; }
11432 : ${CONFIG_STATUS=./config.status}
11433 ac_clean_files_save=$ac_clean_files
11434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11435 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11437 cat >$CONFIG_STATUS <<_ACEOF
11439 # Generated by $as_me.
11440 # Run this file to recreate the current configuration.
11441 # Compiler output produced by configure, useful for debugging
11442 # configure, is in config.log if it exists.
11445 SHELL=\${CONFIG_SHELL-$SHELL}
11448 cat >>$CONFIG_STATUS <<\_ACEOF
11450 ## --------------------- ##
11451 ## M4sh Initialization. ##
11452 ## --------------------- ##
11454 # Be Bourne compatible
11455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11463 # Support unset when possible.
11464 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11470 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11471 { $as_unset LANG || test "${LANG+set}" != set; } ||
11472 { LANG=C; export LANG; }
11473 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11474 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11475 { LC_ALL=C; export LC_ALL; }
11476 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11477 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11478 { LC_TIME=C; export LC_TIME; }
11479 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11480 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11481 { LC_CTYPE=C; export LC_CTYPE; }
11482 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11483 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11484 { LANGUAGE=C; export LANGUAGE; }
11485 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11486 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11487 { LC_COLLATE=C; export LC_COLLATE; }
11488 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11489 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11490 { LC_NUMERIC=C; export LC_NUMERIC; }
11491 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11492 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11493 { LC_MESSAGES=C; export LC_MESSAGES; }
11496 # Name of the executable.
11497 as_me=`(basename "$0") 2>/dev/null ||
11498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11499 X"$0" : 'X\(//\)$' \| \
11500 X"$0" : 'X\(/\)$' \| \
11501 . : '\(.\)' 2>/dev/null ||
11503 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11504 /^X\/\(\/\/\)$/{ s//\1/; q; }
11505 /^X\/\(\/\).*/{ s//\1/; q; }
11508 # PATH needs CR, and LINENO needs CR and PATH.
11509 # Avoid depending upon Character Ranges.
11510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11513 as_cr_digits='0123456789'
11514 as_cr_alnum=$as_cr_Letters$as_cr_digits
11516 # The user is always right.
11517 if test "${PATH_SEPARATOR+set}" != set; then
11518 echo "#! /bin/sh" >conftest.sh
11519 echo "exit 0" >>conftest.sh
11520 chmod +x conftest.sh
11521 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11530 as_lineno_1=$LINENO
11531 as_lineno_2=$LINENO
11532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11533 test "x$as_lineno_1" != "x$as_lineno_2" &&
11534 test "x$as_lineno_3" = "x$as_lineno_2" || {
11535 # Find who we are. Look in the path if we contain no path at all
11538 *[\\/]* ) as_myself=$0 ;;
11539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11543 test -z "$as_dir" && as_dir=.
11544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11549 # We did not find ourselves, most probably we were run as `sh COMMAND'
11550 # in which case we are not to be found in the path.
11551 if test "x$as_myself" = x; then
11554 if test ! -f "$as_myself"; then
11555 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11556 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11557 { (exit 1); exit 1; }; }
11559 case $CONFIG_SHELL in
11561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11565 test -z "$as_dir" && as_dir=.
11566 for as_base in sh bash ksh sh5; do
11569 if ("$as_dir/$as_base" -c '
11570 as_lineno_1=$LINENO
11571 as_lineno_2=$LINENO
11572 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11573 test "x$as_lineno_1" != "x$as_lineno_2" &&
11574 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11575 CONFIG_SHELL=$as_dir/$as_base
11576 export CONFIG_SHELL
11577 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11586 # uniformly replaced by the line number. The first 'sed' inserts a
11587 # line-number line before each line; the second 'sed' does the real
11588 # work. The second script uses 'N' to pair each line-number line
11589 # with the numbered line, and appends trailing '-' during
11590 # substitution so that $LINENO is not a special case at line end.
11591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11592 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11593 sed '=' <$as_myself |
11598 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11601 s,^['$as_cr_digits']*\n,,
11602 ' >$as_me.lineno &&
11603 chmod +x $as_me.lineno ||
11604 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11605 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11606 { (exit 1); exit 1; }; }
11608 # Don't try to exec as it changes $[0], causing all sort of problems
11609 # (the dirname of $[0] is not the place where we might find the
11610 # original and so on. Autoconf is especially sensible to this).
11612 # Exit status is that of the last command.
11617 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11618 *c*,-n*) ECHO_N= ECHO_C='
11620 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11621 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11624 if expr a : '\(a\)' >/dev/null 2>&1; then
11630 rm -f conf$$ conf$$.exe conf$$.file
11632 if ln -s conf$$.file conf$$ 2>/dev/null; then
11633 # We could just check for DJGPP; but this test a) works b) is more generic
11634 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11635 if test -f conf$$.exe; then
11636 # Don't use ln at all; we don't have any links
11641 elif ln conf$$.file conf$$ 2>/dev/null; then
11646 rm -f conf$$ conf$$.exe conf$$.file
11648 as_executable_p="test -f"
11650 # Sed expression to map a string onto a valid CPP name.
11651 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11653 # Sed expression to map a string onto a valid variable name.
11654 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11658 # We need space, tab and new line, in precisely that order.
11664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11668 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11669 # report actual input values of CONFIG_FILES etc. instead of their
11670 # values after options handling. Logging --version etc. is OK.
11674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11675 ## Running $as_me. ##
11680 This file was extended by fGIS $as_me 0.0.1, which was
11681 generated by GNU Autoconf 2.53. Invocation command line was
11683 CONFIG_FILES = $CONFIG_FILES
11684 CONFIG_HEADERS = $CONFIG_HEADERS
11685 CONFIG_LINKS = $CONFIG_LINKS
11686 CONFIG_COMMANDS = $CONFIG_COMMANDS
11690 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11694 # Files that config.status was made for.
11695 if test -n "$ac_config_files"; then
11696 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11699 if test -n "$ac_config_headers"; then
11700 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11703 if test -n "$ac_config_links"; then
11704 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11707 if test -n "$ac_config_commands"; then
11708 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11711 cat >>$CONFIG_STATUS <<\_ACEOF
11714 \`$as_me' instantiates files from templates according to the
11715 current configuration.
11717 Usage: $0 [OPTIONS] [FILE]...
11719 -h, --help print this help, then exit
11720 -V, --version print version number, then exit
11721 -d, --debug don't remove temporary files
11722 --recheck update $as_me by reconfiguring in the same conditions
11723 --file=FILE[:TEMPLATE]
11724 instantiate the configuration file FILE
11725 --header=FILE[:TEMPLATE]
11726 instantiate the configuration header FILE
11728 Configuration files:
11731 Configuration headers:
11734 Configuration commands:
11737 Report bugs to <bug-autoconf@gnu.org>."
11740 cat >>$CONFIG_STATUS <<_ACEOF
11742 fGIS config.status 0.0.1
11743 configured by $0, generated by GNU Autoconf 2.53,
11744 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11746 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11747 Free Software Foundation, Inc.
11748 This config.status script is free software; the Free Software Foundation
11749 gives unlimited permission to copy, distribute and modify it."
11754 cat >>$CONFIG_STATUS <<\_ACEOF
11755 # If no file are specified by the user, then we need to provide default
11756 # value. By we need to know if files were specified by the user.
11762 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11763 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11765 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11769 *) # This is not an option, so the user has probably given explicit
11771 ac_need_defaults=false;;
11775 # Handling of the options.
11777 cat >>$CONFIG_STATUS <<_ACEOF
11778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11779 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11780 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11782 cat >>$CONFIG_STATUS <<\_ACEOF
11783 --version | --vers* | -V )
11784 echo "$ac_cs_version"; exit 0 ;;
11786 # Conflict between --help and --header
11787 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11788 Try \`$0 --help' for more information." >&5
11789 echo "$as_me: error: ambiguous option: $1
11790 Try \`$0 --help' for more information." >&2;}
11791 { (exit 1); exit 1; }; };;
11792 --help | --hel | -h )
11793 echo "$ac_cs_usage"; exit 0 ;;
11794 --debug | --d* | -d )
11796 --file | --fil | --fi | --f )
11798 CONFIG_FILES="$CONFIG_FILES $1"
11799 ac_need_defaults=false;;
11800 --header | --heade | --head | --hea )
11802 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11803 ac_need_defaults=false;;
11805 # This is an error.
11806 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11807 Try \`$0 --help' for more information." >&5
11808 echo "$as_me: error: unrecognized option: $1
11809 Try \`$0 --help' for more information." >&2;}
11810 { (exit 1); exit 1; }; } ;;
11812 *) ac_config_targets="$ac_config_targets $1" ;;
11820 cat >>$CONFIG_STATUS <<_ACEOF
11822 # INIT-COMMANDS section.
11825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11832 for ac_config_target in $ac_config_targets
11834 case "$ac_config_target" in
11835 # Handling of arguments.
11836 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11837 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11838 "etc/fgis.rc" ) CONFIG_FILES="$CONFIG_FILES etc/fgis.rc" ;;
11839 "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
11840 "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
11841 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11842 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11843 "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
11844 "tcl/pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES tcl/pkgIndex.tcl" ;;
11845 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11846 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11847 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11849 { (exit 1); exit 1; }; };;
11853 # If the user did not use the arguments to specify the items to instantiate,
11854 # then the envvar interface is used. Set only those that are not.
11855 # We use the long form for the default assignment because of an extremely
11856 # bizarre bug on SunOS 4.1.3.
11857 if $ac_need_defaults; then
11858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11859 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11860 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11863 # Create a temporary directory, and hook for its removal unless debugging.
11866 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11867 trap '{ (exit 1); exit 1; }' 1 2 13 15
11870 # Create a (secure) tmp directory for tmp files.
11873 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11874 test -n "$tmp" && test -d "$tmp"
11877 tmp=$TMPDIR/cs$$-$RANDOM
11878 (umask 077 && mkdir $tmp)
11881 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11882 { (exit 1); exit 1; }
11887 cat >>$CONFIG_STATUS <<_ACEOF
11890 # CONFIG_FILES section.
11893 # No need to generate the scripts if there are no CONFIG_FILES.
11894 # This happens for instance when ./config.status config.h
11895 if test -n "\$CONFIG_FILES"; then
11896 # Protect against being on the right side of a sed subst in config.status.
11897 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11898 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11899 s,@SHELL@,$SHELL,;t t
11900 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11901 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11902 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11903 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11904 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11905 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11906 s,@exec_prefix@,$exec_prefix,;t t
11907 s,@prefix@,$prefix,;t t
11908 s,@program_transform_name@,$program_transform_name,;t t
11909 s,@bindir@,$bindir,;t t
11910 s,@sbindir@,$sbindir,;t t
11911 s,@libexecdir@,$libexecdir,;t t
11912 s,@datadir@,$datadir,;t t
11913 s,@sysconfdir@,$sysconfdir,;t t
11914 s,@sharedstatedir@,$sharedstatedir,;t t
11915 s,@localstatedir@,$localstatedir,;t t
11916 s,@libdir@,$libdir,;t t
11917 s,@includedir@,$includedir,;t t
11918 s,@oldincludedir@,$oldincludedir,;t t
11919 s,@infodir@,$infodir,;t t
11920 s,@mandir@,$mandir,;t t
11921 s,@build_alias@,$build_alias,;t t
11922 s,@host_alias@,$host_alias,;t t
11923 s,@target_alias@,$target_alias,;t t
11924 s,@DEFS@,$DEFS,;t t
11925 s,@ECHO_C@,$ECHO_C,;t t
11926 s,@ECHO_N@,$ECHO_N,;t t
11927 s,@ECHO_T@,$ECHO_T,;t t
11928 s,@LIBS@,$LIBS,;t t
11929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11932 s,@PACKAGE@,$PACKAGE,;t t
11933 s,@VERSION@,$VERSION,;t t
11934 s,@ACLOCAL@,$ACLOCAL,;t t
11935 s,@AUTOCONF@,$AUTOCONF,;t t
11936 s,@AUTOMAKE@,$AUTOMAKE,;t t
11937 s,@AUTOHEADER@,$AUTOHEADER,;t t
11938 s,@MAKEINFO@,$MAKEINFO,;t t
11939 s,@AMTAR@,$AMTAR,;t t
11940 s,@install_sh@,$install_sh,;t t
11941 s,@STRIP@,$STRIP,;t t
11942 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11943 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11945 s,@SET_MAKE@,$SET_MAKE,;t t
11946 s,@build@,$build,;t t
11947 s,@build_cpu@,$build_cpu,;t t
11948 s,@build_vendor@,$build_vendor,;t t
11949 s,@build_os@,$build_os,;t t
11950 s,@host@,$host,;t t
11951 s,@host_cpu@,$host_cpu,;t t
11952 s,@host_vendor@,$host_vendor,;t t
11953 s,@host_os@,$host_os,;t t
11955 s,@CFLAGS@,$CFLAGS,;t t
11956 s,@LDFLAGS@,$LDFLAGS,;t t
11957 s,@CPPFLAGS@,$CPPFLAGS,;t t
11958 s,@ac_ct_CC@,$ac_ct_CC,;t t
11959 s,@EXEEXT@,$EXEEXT,;t t
11960 s,@OBJEXT@,$OBJEXT,;t t
11961 s,@DEPDIR@,$DEPDIR,;t t
11962 s,@am__include@,$am__include,;t t
11963 s,@am__quote@,$am__quote,;t t
11964 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11965 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11966 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11967 s,@CCDEPMODE@,$CCDEPMODE,;t t
11968 s,@LN_S@,$LN_S,;t t
11969 s,@ECHO@,$ECHO,;t t
11970 s,@RANLIB@,$RANLIB,;t t
11971 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11973 s,@LIBTOOL@,$LIBTOOL,;t t
11974 s,@YACC@,$YACC,;t t
11975 s,@ALLOCA@,$ALLOCA,;t t
11976 s,@LIBOBJS@,$LIBOBJS,;t t
11977 s,@POW_LIB@,$POW_LIB,;t t
11978 s,@FGIS_CONFIG@,$FGIS_CONFIG,;t t
11979 s,@FGIS_LIBDIR@,$FGIS_LIBDIR,;t t
11980 s,@FGIS_SCRIPTS@,$FGIS_SCRIPTS,;t t
11981 s,@LIBEPP@,$LIBEPP,;t t
11982 s,@TCLHDIR@,$TCLHDIR,;t t
11983 s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
11984 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
11985 s,@TCL_DEFS@,$TCL_DEFS,;t t
11986 s,@TCL_DELETEME@,$TCL_DELETEME,;t t
11987 s,@TCL_DBGX@,$TCL_DBGX,;t t
11988 s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
11989 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
11990 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
11991 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
11992 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
11993 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
11994 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
11995 s,@TCL_INC_DIR@,$TCL_INC_DIR,;t t
11996 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
11997 s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
11998 s,@TK_VERSION@,$TK_VERSION,;t t
11999 s,@TK_DEFS@,$TK_DEFS,;t t
12000 s,@TK_DBGX@,$TK_DBGX,;t t
12001 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
12002 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
12003 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
12004 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
12005 s,@TK_INC_DIR@,$TK_INC_DIR,;t t
12010 cat >>$CONFIG_STATUS <<\_ACEOF
12011 # Split the substitutions into bite-sized pieces for seds with
12012 # small command number limits, like on Digital OSF/1 and HP-UX.
12013 ac_max_sed_lines=48
12014 ac_sed_frag=1 # Number of current file.
12015 ac_beg=1 # First line for current file.
12016 ac_end=$ac_max_sed_lines # Line after last line for current file.
12019 while $ac_more_lines; do
12020 if test $ac_beg -gt 1; then
12021 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12023 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12025 if test ! -s $tmp/subs.frag; then
12026 ac_more_lines=false
12028 # The purpose of the label and of the branching condition is to
12029 # speed up the sed processing (if there are no `@' at all, there
12030 # is no need to browse any of the substitutions).
12031 # These are the two extra sed commands mentioned above.
12033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12034 if test -z "$ac_sed_cmds"; then
12035 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12037 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12039 ac_sed_frag=`expr $ac_sed_frag + 1`
12041 ac_end=`expr $ac_end + $ac_max_sed_lines`
12044 if test -z "$ac_sed_cmds"; then
12047 fi # test -n "$CONFIG_FILES"
12050 cat >>$CONFIG_STATUS <<\_ACEOF
12051 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12054 - | *:- | *:-:* ) # input from stdin
12056 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12058 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12060 * ) ac_file_in=$ac_file.in ;;
12063 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12066 X"$ac_file" : 'X\(//\)[^/]' \| \
12067 X"$ac_file" : 'X\(//\)$' \| \
12068 X"$ac_file" : 'X\(/\)' \| \
12069 . : '\(.\)' 2>/dev/null ||
12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12073 /^X\(\/\/\)$/{ s//\1/; q; }
12074 /^X\(\/\).*/{ s//\1/; q; }
12076 { case "$ac_dir" in
12077 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12081 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12082 case $as_mkdir_dir in
12083 # Skip DOS drivespec
12084 ?:) as_incr_dir=$as_mkdir_dir ;;
12086 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12087 test -d "$as_incr_dir" ||
12088 mkdir "$as_incr_dir" ||
12089 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12090 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12091 { (exit 1); exit 1; }; }
12098 if test "$ac_dir" != .; then
12099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12100 # A "../" for each directory in $ac_dir_suffix.
12101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12103 ac_dir_suffix= ac_top_builddir=
12107 .) # No --srcdir option. We are building in place.
12109 if test -z "$ac_top_builddir"; then
12112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12114 [\\/]* | ?:[\\/]* ) # Absolute path.
12115 ac_srcdir=$srcdir$ac_dir_suffix;
12116 ac_top_srcdir=$srcdir ;;
12117 *) # Relative path.
12118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12121 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12123 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12124 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12125 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12126 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12130 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12131 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12134 if test x"$ac_file" != x-; then
12135 { echo "$as_me:$LINENO: creating $ac_file" >&5
12136 echo "$as_me: creating $ac_file" >&6;}
12139 # Let's still pretend it is `configure' which instantiates (i.e., don't
12140 # use $as_me), people would be surprised to read:
12141 # /* config.h. Generated by config.status. */
12142 if test x"$ac_file" = x-; then
12145 configure_input="$ac_file. "
12147 configure_input=$configure_input"Generated from `echo $ac_file_in |
12148 sed 's,.*/,,'` by configure."
12150 # First look for the input files in the build tree, otherwise in the
12152 ac_file_inputs=`IFS=:
12153 for f in $ac_file_in; do
12155 -) echo $tmp/stdin ;;
12157 # Absolute (can't be DOS-style, as IFS=:)
12158 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12159 echo "$as_me: error: cannot find input file: $f" >&2;}
12160 { (exit 1); exit 1; }; }
12163 if test -f "$f"; then
12166 elif test -f "$srcdir/$f"; then
12171 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12172 echo "$as_me: error: cannot find input file: $f" >&2;}
12173 { (exit 1); exit 1; }; }
12176 done` || { (exit 1); exit 1; }
12178 cat >>$CONFIG_STATUS <<_ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF
12184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12185 s,@configure_input@,$configure_input,;t t
12186 s,@srcdir@,$ac_srcdir,;t t
12187 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12188 s,@top_srcdir@,$ac_top_srcdir,;t t
12189 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12190 s,@builddir@,$ac_builddir,;t t
12191 s,@abs_builddir@,$ac_abs_builddir,;t t
12192 s,@top_builddir@,$ac_top_builddir,;t t
12193 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12194 s,@INSTALL@,$ac_INSTALL,;t t
12195 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12197 if test x"$ac_file" != x-; then
12198 mv $tmp/out $ac_file
12206 cat >>$CONFIG_STATUS <<\_ACEOF
12209 # CONFIG_HEADER section.
12212 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12213 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12215 # ac_d sets the value in "#define NAME VALUE" lines.
12216 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12217 ac_dB='[ ].*$,\1#\2'
12220 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12221 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12222 ac_uB='$,\1#\2define\3'
12226 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12229 - | *:- | *:-:* ) # input from stdin
12231 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12233 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12235 * ) ac_file_in=$ac_file.in ;;
12238 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12239 echo "$as_me: creating $ac_file" >&6;}
12241 # First look for the input files in the build tree, otherwise in the
12243 ac_file_inputs=`IFS=:
12244 for f in $ac_file_in; do
12246 -) echo $tmp/stdin ;;
12248 # Absolute (can't be DOS-style, as IFS=:)
12249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12250 echo "$as_me: error: cannot find input file: $f" >&2;}
12251 { (exit 1); exit 1; }; }
12254 if test -f "$f"; then
12257 elif test -f "$srcdir/$f"; then
12262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12263 echo "$as_me: error: cannot find input file: $f" >&2;}
12264 { (exit 1); exit 1; }; }
12267 done` || { (exit 1); exit 1; }
12268 # Remove the trailing spaces.
12269 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12273 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12274 # `conftest.undefs', that substitutes the proper values into
12275 # config.h.in to produce config.h. The first handles `#define'
12276 # templates, and the second `#undef' templates.
12277 # And first: Protect against being on the right side of a sed subst in
12278 # config.status. Protect against being in an unquoted here document
12279 # in config.status.
12280 rm -f conftest.defines conftest.undefs
12281 # Using a here document instead of a string reduces the quoting nightmare.
12282 # Putting comments in sed scripts is not portable.
12284 # `end' is used to avoid that the second main sed command (meant for
12285 # 0-ary CPP macros) applies to n-ary macro definitions.
12286 # See the Autoconf documentation for `clear'.
12287 cat >confdef2sed.sed <<\_ACEOF
12292 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12294 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12297 # If some macros were called several times there might be several times
12298 # the same #defines, which is useless. Nevertheless, we may not want to
12299 # sort them, since we want the *last* AC-DEFINE to be honored.
12300 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12301 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12302 rm -f confdef2sed.sed
12304 # This sed command replaces #undef with comments. This is necessary, for
12305 # example, in the case of _POSIX_SOURCE, which is predefined and required
12306 # on some systems where configure will not decide to define it.
12307 cat >>conftest.undefs <<\_ACEOF
12308 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12311 # Break up conftest.defines because some shells have a limit on the size
12312 # of here documents, and old seds have small limits too (100 cmds).
12313 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12314 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12315 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12316 echo ' :' >>$CONFIG_STATUS
12317 rm -f conftest.tail
12318 while grep . conftest.defines >/dev/null
12320 # Write a limited-size here document to $tmp/defines.sed.
12321 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12322 # Speed up: don't consider the non `#define' lines.
12323 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12324 # Work around the forget-to-reset-the-flag bug.
12325 echo 't clr' >>$CONFIG_STATUS
12326 echo ': clr' >>$CONFIG_STATUS
12327 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12329 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12331 mv $tmp/out $tmp/in
12333 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12334 rm -f conftest.defines
12335 mv conftest.tail conftest.defines
12337 rm -f conftest.defines
12338 echo ' fi # egrep' >>$CONFIG_STATUS
12339 echo >>$CONFIG_STATUS
12341 # Break up conftest.undefs because some shells have a limit on the size
12342 # of here documents, and old seds have small limits too (100 cmds).
12343 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12344 rm -f conftest.tail
12345 while grep . conftest.undefs >/dev/null
12347 # Write a limited-size here document to $tmp/undefs.sed.
12348 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12349 # Speed up: don't consider the non `#undef'
12350 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12351 # Work around the forget-to-reset-the-flag bug.
12352 echo 't clr' >>$CONFIG_STATUS
12353 echo ': clr' >>$CONFIG_STATUS
12354 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12356 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12358 mv $tmp/out $tmp/in
12360 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12361 rm -f conftest.undefs
12362 mv conftest.tail conftest.undefs
12364 rm -f conftest.undefs
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12367 # Let's still pretend it is `configure' which instantiates (i.e., don't
12368 # use $as_me), people would be surprised to read:
12369 # /* config.h. Generated by config.status. */
12370 if test x"$ac_file" = x-; then
12371 echo "/* Generated by configure. */" >$tmp/config.h
12373 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12375 cat $tmp/in >>$tmp/config.h
12377 if test x"$ac_file" != x-; then
12378 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12379 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12380 echo "$as_me: $ac_file is unchanged" >&6;}
12382 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12384 X"$ac_file" : 'X\(//\)[^/]' \| \
12385 X"$ac_file" : 'X\(//\)$' \| \
12386 X"$ac_file" : 'X\(/\)' \| \
12387 . : '\(.\)' 2>/dev/null ||
12389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12391 /^X\(\/\/\)$/{ s//\1/; q; }
12392 /^X\(\/\).*/{ s//\1/; q; }
12394 { case "$ac_dir" in
12395 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12399 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12400 case $as_mkdir_dir in
12401 # Skip DOS drivespec
12402 ?:) as_incr_dir=$as_mkdir_dir ;;
12404 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12405 test -d "$as_incr_dir" ||
12406 mkdir "$as_incr_dir" ||
12407 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12408 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12409 { (exit 1); exit 1; }; }
12415 mv $tmp/config.h $ac_file
12419 rm -f $tmp/config.h
12421 # Run the commands associated with the file.
12423 include/config.h ) # update the timestamp
12424 echo 'timestamp for include/config.h' >"include/stamp-h1"
12429 cat >>$CONFIG_STATUS <<\_ACEOF
12432 # CONFIG_COMMANDS section.
12434 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12435 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12436 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12437 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12438 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12439 X"$ac_dest" : 'X\(//\)[^/]' \| \
12440 X"$ac_dest" : 'X\(//\)$' \| \
12441 X"$ac_dest" : 'X\(/\)' \| \
12442 . : '\(.\)' 2>/dev/null ||
12444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12446 /^X\(\/\/\)$/{ s//\1/; q; }
12447 /^X\(\/\).*/{ s//\1/; q; }
12451 if test "$ac_dir" != .; then
12452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12453 # A "../" for each directory in $ac_dir_suffix.
12454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12456 ac_dir_suffix= ac_top_builddir=
12460 .) # No --srcdir option. We are building in place.
12462 if test -z "$ac_top_builddir"; then
12465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12467 [\\/]* | ?:[\\/]* ) # Absolute path.
12468 ac_srcdir=$srcdir$ac_dir_suffix;
12469 ac_top_srcdir=$srcdir ;;
12470 *) # Relative path.
12471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12474 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12476 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12477 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12478 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12479 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12482 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12483 echo "$as_me: executing $ac_dest commands" >&6;}
12485 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12486 # Strip MF so we end up with the name of the file.
12487 mf=`echo "$mf" | sed -e 's/:.*$//'`
12488 # Check whether this is an Automake generated Makefile or not.
12489 # We used to match only the files named `Makefile.in', but
12490 # some people rename them; so instead we look at the file content.
12491 # Grep'ing the first line is not enough: some people post-process
12492 # each Makefile.in and add a new line on top of each file to say so.
12493 # So let's grep whole file.
12494 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12495 dirpart=`(dirname "$mf") 2>/dev/null ||
12496 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12497 X"$mf" : 'X\(//\)[^/]' \| \
12498 X"$mf" : 'X\(//\)$' \| \
12499 X"$mf" : 'X\(/\)' \| \
12500 . : '\(.\)' 2>/dev/null ||
12502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12504 /^X\(\/\/\)$/{ s//\1/; q; }
12505 /^X\(\/\).*/{ s//\1/; q; }
12510 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12511 # Extract the definition of DEP_FILES from the Makefile without
12513 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12514 test -z "$DEPDIR" && continue
12515 # When using ansi2knr, U may be empty or an underscore; expand it
12516 U=`sed -n -e '/^U = / s///p' < "$mf"`
12517 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12518 # We invoke sed twice because it is the simplest approach to
12519 # changing $(DEPDIR) to its actual value in the expansion.
12520 for file in `sed -n -e '
12521 /^DEP_FILES = .*\\\\$/ {
12530 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12531 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12532 # Make sure the directory exists.
12533 test -f "$dirpart/$file" && continue
12534 fdir=`(dirname "$file") 2>/dev/null ||
12535 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12536 X"$file" : 'X\(//\)[^/]' \| \
12537 X"$file" : 'X\(//\)$' \| \
12538 X"$file" : 'X\(/\)' \| \
12539 . : '\(.\)' 2>/dev/null ||
12541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12543 /^X\(\/\/\)$/{ s//\1/; q; }
12544 /^X\(\/\).*/{ s//\1/; q; }
12546 { case $dirpart/$fdir in
12547 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12550 as_dummy=$dirpart/$fdir
12551 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12552 case $as_mkdir_dir in
12553 # Skip DOS drivespec
12554 ?:) as_incr_dir=$as_mkdir_dir ;;
12556 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12557 test -d "$as_incr_dir" ||
12558 mkdir "$as_incr_dir" ||
12559 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
12560 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
12561 { (exit 1); exit 1; }; }
12566 # echo "creating $dirpart/$file"
12567 echo '# dummy' > "$dirpart/$file"
12575 cat >>$CONFIG_STATUS <<\_ACEOF
12577 { (exit 0); exit 0; }
12579 chmod +x $CONFIG_STATUS
12580 ac_clean_files=$ac_clean_files_save
12583 # configure is writing to config.log, and then calls config.status.
12584 # config.status does its own redirection, appending to config.log.
12585 # Unfortunately, on DOS this fails, as config.log is still kept open
12586 # by configure, so config.status won't be able to write to it; its
12587 # output is simply discarded. So we exec the FD to /dev/null,
12588 # effectively closing config.log, so it can be properly (re)opened and
12589 # appended to by config.status. When coming back to configure, we
12590 # need to make the FD available again.
12591 if test "$no_create" != yes; then
12594 $SHELL $CONFIG_STATUS || ac_cs_success=false
12596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12597 # would make configure fail if this is the last instruction.
12598 $ac_cs_success || { (exit 1); exit 1; }