2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for expat 1.95.5.
5 # Report bugs to <expat-bugs@mail.libexpat.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
='expat'
418 PACKAGE_VERSION
='1.95.5'
419 PACKAGE_STRING
='expat 1.95.5'
420 PACKAGE_BUGREPORT
='expat-bugs@mail.libexpat.org'
422 ac_unique_file
="Makefile.in"
423 # Factoring default headers for most tests.
424 ac_includes_default
="\
427 # include <sys/types.h>
430 # include <sys/stat.h>
441 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <strings.h>
450 # include <inttypes.h>
461 # Initialize some variables set by options.
463 ac_init_version
=false
464 # The variables have the same names as the options, with
465 # dashes changed to underlines.
473 program_transform_name
=s
,x
,x
,
481 # Installation directory options.
482 # These are left unexpanded so users can "make install exec_prefix=/foo"
483 # and all the variables that are supposed to be based on exec_prefix
484 # by default will actually change.
485 # Use braces instead of parens because sh, perl, etc. also accept them.
486 bindir
='${exec_prefix}/bin'
487 sbindir
='${exec_prefix}/sbin'
488 libexecdir
='${exec_prefix}/libexec'
489 datadir
='${prefix}/share'
490 sysconfdir
='${prefix}/etc'
491 sharedstatedir
='${prefix}/com'
492 localstatedir
='${prefix}/var'
493 libdir
='${exec_prefix}/lib'
494 includedir
='${prefix}/include'
495 oldincludedir
='/usr/include'
496 infodir
='${prefix}/info'
497 mandir
='${prefix}/man'
502 # If the previous option needs an argument, assign it.
503 if test -n "$ac_prev"; then
504 eval "$ac_prev=\$ac_option"
509 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
511 # Accept the important Cygnus configure options, so we can diagnose typos.
515 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
517 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
520 -build |
--build |
--buil |
--bui |
--bu)
521 ac_prev
=build_alias
;;
522 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
523 build_alias
=$ac_optarg ;;
525 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
526 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
527 ac_prev
=cache_file
;;
528 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
529 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
530 cache_file
=$ac_optarg ;;
533 cache_file
=config.cache
;;
535 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
537 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
539 datadir
=$ac_optarg ;;
541 -disable-* |
--disable-*)
542 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
543 # Reject names that are not valid shell variable names.
544 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
545 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
546 { (exit 1); exit 1; }; }
547 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
548 eval "enable_$ac_feature=no" ;;
550 -enable-* |
--enable-*)
551 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
558 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "enable_$ac_feature='$ac_optarg'" ;;
563 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
564 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
565 |
--exec |
--exe |
--ex)
566 ac_prev
=exec_prefix
;;
567 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
568 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
569 |
--exec=* |
--exe=* |
--ex=*)
570 exec_prefix
=$ac_optarg ;;
572 -gas |
--gas |
--ga |
--g)
573 # Obsolete; use --with-gas.
576 -help |
--help |
--hel |
--he |
-h)
578 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
579 ac_init_help
=recursive
;;
580 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
581 ac_init_help
=short
;;
583 -host |
--host |
--hos |
--ho)
584 ac_prev
=host_alias
;;
585 -host=* |
--host=* |
--hos=* |
--ho=*)
586 host_alias
=$ac_optarg ;;
588 -includedir |
--includedir |
--includedi |
--included |
--include \
589 |
--includ |
--inclu |
--incl |
--inc)
590 ac_prev
=includedir
;;
591 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
592 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
593 includedir
=$ac_optarg ;;
595 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
597 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
598 infodir
=$ac_optarg ;;
600 -libdir |
--libdir |
--libdi |
--libd)
602 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
605 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
606 |
--libexe |
--libex |
--libe)
607 ac_prev
=libexecdir
;;
608 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
609 |
--libexe=* |
--libex=* |
--libe=*)
610 libexecdir
=$ac_optarg ;;
612 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
613 |
--localstate |
--localstat |
--localsta |
--localst \
614 |
--locals |
--local |
--loca |
--loc |
--lo)
615 ac_prev
=localstatedir
;;
616 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
617 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
618 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
619 localstatedir
=$ac_optarg ;;
621 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
623 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
627 # Obsolete; use --without-fp.
630 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
631 |
--no-cr |
--no-c |
-n)
634 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
635 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
638 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
639 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
640 |
--oldin |
--oldi |
--old |
--ol |
--o)
641 ac_prev
=oldincludedir
;;
642 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
643 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
644 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
645 oldincludedir
=$ac_optarg ;;
647 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
649 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
652 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
653 |
--program-pre |
--program-pr |
--program-p)
654 ac_prev
=program_prefix
;;
655 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
656 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
657 program_prefix
=$ac_optarg ;;
659 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
660 |
--program-suf |
--program-su |
--program-s)
661 ac_prev
=program_suffix
;;
662 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
663 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
664 program_suffix
=$ac_optarg ;;
666 -program-transform-name |
--program-transform-name \
667 |
--program-transform-nam |
--program-transform-na \
668 |
--program-transform-n |
--program-transform- \
669 |
--program-transform |
--program-transfor \
670 |
--program-transfo |
--program-transf \
671 |
--program-trans |
--program-tran \
672 |
--progr-tra |
--program-tr |
--program-t)
673 ac_prev
=program_transform_name
;;
674 -program-transform-name=* |
--program-transform-name=* \
675 |
--program-transform-nam=* |
--program-transform-na=* \
676 |
--program-transform-n=* |
--program-transform-=* \
677 |
--program-transform=* |
--program-transfor=* \
678 |
--program-transfo=* |
--program-transf=* \
679 |
--program-trans=* |
--program-tran=* \
680 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
681 program_transform_name
=$ac_optarg ;;
683 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
684 |
-silent |
--silent |
--silen |
--sile |
--sil)
687 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
689 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
691 sbindir
=$ac_optarg ;;
693 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
694 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
695 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
697 ac_prev
=sharedstatedir
;;
698 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
699 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
700 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
702 sharedstatedir
=$ac_optarg ;;
704 -site |
--site |
--sit)
706 -site=* |
--site=* |
--sit=*)
709 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
711 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
714 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
715 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
716 ac_prev
=sysconfdir
;;
717 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
718 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
719 sysconfdir
=$ac_optarg ;;
721 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
722 ac_prev
=target_alias
;;
723 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
724 target_alias
=$ac_optarg ;;
726 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
729 -version |
--version |
--versio |
--versi |
--vers |
-V)
733 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
734 # Reject names that are not valid shell variable names.
735 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
736 { echo "$as_me: error: invalid package name: $ac_package" >&2
737 { (exit 1); exit 1; }; }
738 ac_package
=`echo $ac_package| sed 's/-/_/g'`
740 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 eval "with_$ac_package='$ac_optarg'" ;;
745 -without-* |
--without-*)
746 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package
=`echo $ac_package | sed 's/-/_/g'`
752 eval "with_$ac_package=no" ;;
755 # Obsolete; use --with-x.
758 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
759 |
--x-incl |
--x-inc |
--x-in |
--x-i)
760 ac_prev
=x_includes
;;
761 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
762 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
763 x_includes
=$ac_optarg ;;
765 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
766 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
767 ac_prev
=x_libraries
;;
768 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
769 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
770 x_libraries
=$ac_optarg ;;
772 -*) { echo "$as_me: error: unrecognized option: $ac_option
773 Try \`$0 --help' for more information." >&2
774 { (exit 1); exit 1; }; }
778 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
781 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
782 { (exit 1); exit 1; }; }
783 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
784 eval "$ac_envvar='$ac_optarg'"
788 # FIXME: should be removed in autoconf 3.0.
789 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
791 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 if test -n "$ac_prev"; then
799 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
800 { echo "$as_me: error: missing argument to $ac_option" >&2
801 { (exit 1); exit 1; }; }
804 # Be sure to have absolute paths.
805 for ac_var
in exec_prefix prefix
807 eval ac_val
=$
`echo $ac_var`
809 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
810 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
811 { (exit 1); exit 1; }; };;
815 # Be sure to have absolute paths.
816 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817 localstatedir libdir includedir oldincludedir infodir mandir
819 eval ac_val
=$
`echo $ac_var`
821 [\\/$
]* | ?
:[\\/]* ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # There might be people who depend on the old broken behavior: `$host'
828 # used to hold the argument of --host etc.
829 # FIXME: To remove some day.
834 # FIXME: To remove some day.
835 if test "x$host_alias" != x
; then
836 if test "x$build_alias" = x
; then
837 cross_compiling
=maybe
838 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
839 If a cross compiler is detected then cross compile mode will be used." >&2
840 elif test "x$build_alias" != "x$host_alias"; then
846 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
848 test "$silent" = yes && exec 6>/dev
/null
851 # Find the source files, if location was not specified.
852 if test -z "$srcdir"; then
853 ac_srcdir_defaulted
=yes
854 # Try the directory containing this script, then its parent.
855 ac_confdir
=`(dirname "$0") 2>/dev/null ||
856 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
857 X"$0" : 'X\(//\)[^/]' \| \
858 X"$0" : 'X\(//\)$' \| \
859 X"$0" : 'X\(/\)' \| \
860 . : '\(.\)' 2>/dev/null ||
862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
864 /^X\(\/\/\)$/{ s//\1/; q; }
865 /^X\(\/\).*/{ s//\1/; q; }
868 if test ! -r $srcdir/$ac_unique_file; then
872 ac_srcdir_defaulted
=no
874 if test ! -r $srcdir/$ac_unique_file; then
875 if test "$ac_srcdir_defaulted" = yes; then
876 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
877 { (exit 1); exit 1; }; }
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
880 { (exit 1); exit 1; }; }
883 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884 ac_env_build_alias_set
=${build_alias+set}
885 ac_env_build_alias_value
=$build_alias
886 ac_cv_env_build_alias_set
=${build_alias+set}
887 ac_cv_env_build_alias_value
=$build_alias
888 ac_env_host_alias_set
=${host_alias+set}
889 ac_env_host_alias_value
=$host_alias
890 ac_cv_env_host_alias_set
=${host_alias+set}
891 ac_cv_env_host_alias_value
=$host_alias
892 ac_env_target_alias_set
=${target_alias+set}
893 ac_env_target_alias_value
=$target_alias
894 ac_cv_env_target_alias_set
=${target_alias+set}
895 ac_cv_env_target_alias_value
=$target_alias
896 ac_env_CC_set
=${CC+set}
898 ac_cv_env_CC_set
=${CC+set}
899 ac_cv_env_CC_value
=$CC
900 ac_env_CFLAGS_set
=${CFLAGS+set}
901 ac_env_CFLAGS_value
=$CFLAGS
902 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
903 ac_cv_env_CFLAGS_value
=$CFLAGS
904 ac_env_LDFLAGS_set
=${LDFLAGS+set}
905 ac_env_LDFLAGS_value
=$LDFLAGS
906 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
907 ac_cv_env_LDFLAGS_value
=$LDFLAGS
908 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value
=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
912 ac_env_CPP_set
=${CPP+set}
913 ac_env_CPP_value
=$CPP
914 ac_cv_env_CPP_set
=${CPP+set}
915 ac_cv_env_CPP_value
=$CPP
918 # Report the --help message.
920 if test "$ac_init_help" = "long"; then
921 # Omit some internal or obsolete options to make the list less imposing.
922 # This message is too long to be a string in the A/UX 3.1 sh.
924 \`configure' configures expat 1.95.5 to adapt to many kinds of systems.
926 Usage: $0 [OPTION]... [VAR=VALUE]...
928 To assign environment variables (e.g., CC, CFLAGS...), specify them as
929 VAR=VALUE. See below for descriptions of some of the useful variables.
931 Defaults for the options are specified in brackets.
934 -h, --help display this help and exit
935 --help=short display options specific to this package
936 --help=recursive display the short help of all the included packages
937 -V, --version display version information and exit
938 -q, --quiet, --silent do not print \`checking...' messages
939 --cache-file=FILE cache test results in FILE [disabled]
940 -C, --config-cache alias for \`--cache-file=config.cache'
941 -n, --no-create do not create output files
942 --srcdir=DIR find the sources in DIR [configure dir or \`..']
947 Installation directories:
948 --prefix=PREFIX install architecture-independent files in PREFIX
950 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
953 By default, \`make install' will install all the files in
954 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
955 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
956 for instance \`--prefix=\$HOME'.
958 For better control, use the options below.
960 Fine tuning of the installation directories:
961 --bindir=DIR user executables [EPREFIX/bin]
962 --sbindir=DIR system admin executables [EPREFIX/sbin]
963 --libexecdir=DIR program executables [EPREFIX/libexec]
964 --datadir=DIR read-only architecture-independent data [PREFIX/share]
965 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
966 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
967 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
968 --libdir=DIR object code libraries [EPREFIX/lib]
969 --includedir=DIR C header files [PREFIX/include]
970 --oldincludedir=DIR C header files for non-gcc [/usr/include]
971 --infodir=DIR info documentation [PREFIX/info]
972 --mandir=DIR man documentation [PREFIX/man]
978 --build=BUILD configure
for building on BUILD
[guessed
]
979 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive
) echo "Configuration of expat 1.95.5:";;
990 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
991 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
992 --enable-shared=PKGS build shared libraries default
=yes
993 --enable-static=PKGS build static libraries default
=yes
994 --enable-fast-install=PKGS optimize
for fast installation default
=yes
995 --disable-libtool-lock avoid locking
(might
break parallel builds
)
998 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
999 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1000 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1001 --with-pic try to use only PIC
/non-PIC objects default
=use both
1003 Some influential environment variables
:
1004 CC C compiler
command
1005 CFLAGS C compiler flags
1006 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1007 nonstandard directory
<lib dir
>
1008 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1009 headers
in a nonstandard directory
<include dir
>
1012 Use these variables to override the choices made by
`configure' or to help
1013 it to find libraries and programs with nonstandard names/locations.
1015 Report bugs to <expat-bugs@mail.libexpat.org>.
1019 if test "$ac_init_help" = "recursive"; then
1020 # If there are subdirs, report their specific --help.
1022 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1023 test -d $ac_dir || continue
1026 if test "$ac_dir" != .; then
1027 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1028 # A "../" for each directory in $ac_dir_suffix.
1029 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1031 ac_dir_suffix= ac_top_builddir=
1035 .) # No --srcdir option. We are building in place.
1037 if test -z "$ac_top_builddir"; then
1040 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1042 [\\/]* | ?:[\\/]* ) # Absolute path.
1043 ac_srcdir=$srcdir$ac_dir_suffix;
1044 ac_top_srcdir=$srcdir ;;
1046 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1047 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1049 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1051 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1052 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1053 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1054 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1057 # Check for guested configure; otherwise get Cygnus style configure.
1058 if test -f $ac_srcdir/configure.gnu; then
1060 $SHELL $ac_srcdir/configure.gnu --help=recursive
1061 elif test -f $ac_srcdir/configure; then
1063 $SHELL $ac_srcdir/configure --help=recursive
1064 elif test -f $ac_srcdir/configure.ac ||
1065 test -f $ac_srcdir/configure.in; then
1067 $ac_configure --help
1069 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1078 expat configure 1.95.5
1079 generated by GNU Autoconf 2.53
1081 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1082 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by expat $as_me 1.95.5, which was
1094 generated by GNU Autoconf 2.53. Invocation command line was
1105 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1106 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1107 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1108 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1109 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1111 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1112 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1114 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1115 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1116 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1117 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1118 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1119 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1120 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Also quote any args containing shell meta-characters.
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n ) continue ;;
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1158 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1160 case " $ac_configure_args " in
1161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1162 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1165 # Get rid of the leading space.
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log. We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close
' the trap.
1173 trap 'exit_status
=$?
1174 # Save into config.log some information that might help in debugging.
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1183 # The following way of writing the cache mishandles newlines in values,
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199 if test -s confdefs.h
; then
1206 sed "/^$/d" confdefs.h
1209 test "$ac_signal" != 0 &&
1210 echo "$as_me: caught signal $ac_signal"
1211 echo "$as_me: exit $exit_status"
1213 rm -f core core.
* *.core
&&
1214 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1217 for ac_signal in 1 2 13 15; do
1218 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1223 rm -rf conftest* confdefs.h
1224 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1227 # Predefined preprocessor variables.
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_NAME "$PACKAGE_NAME"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_STRING "$PACKAGE_STRING"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1254 # Let the site file select an alternate cache file if it wants to.
1255 # Prefer explicitly selected file to automatically selected ones.
1256 if test -z "$CONFIG_SITE"; then
1257 if test "x$prefix" != xNONE; then
1258 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1260 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1263 for ac_site_file in $CONFIG_SITE; do
1264 if test -r "$ac_site_file"; then
1265 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1266 echo "$as_me: loading site script $ac_site_file" >&6;}
1267 sed 's
/^
/|
/' "$ac_site_file" >&5
1272 if test -r "$cache_file"; then
1273 # Some versions of bash will fail to source /dev/null (special
1274 # files actually), so we avoid doing that.
1275 if test -f "$cache_file"; then
1276 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1277 echo "$as_me: loading cache $cache_file" >&6;}
1279 [\\/]* | ?:[\\/]* ) . $cache_file;;
1280 *) . ./$cache_file;;
1284 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1285 echo "$as_me: creating cache $cache_file" >&6;}
1289 # Check that the precious variables saved in the cache have kept the same
1291 ac_cache_corrupted=false
1292 for ac_var in `(set) 2>&1 |
1293 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1294 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1295 eval ac_new_set=\$ac_env_${ac_var}_set
1296 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1297 eval ac_new_val="\$ac_env_${ac_var}_value"
1298 case $ac_old_set,$ac_new_set in
1300 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1301 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1302 ac_cache_corrupted=: ;;
1304 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1305 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1306 ac_cache_corrupted=: ;;
1309 if test "x$ac_old_val" != "x$ac_new_val"; then
1310 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1311 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1312 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1313 echo "$as_me: former value: $ac_old_val" >&2;}
1314 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1315 echo "$as_me: current value: $ac_new_val" >&2;}
1316 ac_cache_corrupted=:
1319 # Pass precious variables to config.status.
1320 if test "$ac_new_set" = set; then
1322 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1323 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1324 *) ac_arg=$ac_var=$ac_new_val ;;
1326 case " $ac_configure_args " in
1327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1328 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1332 if $ac_cache_corrupted; then
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1336 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1343 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 for ac_dir in conftools $srcdir/conftools; do
1376 if test -f $ac_dir/install-sh; then
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 elif test -f $ac_dir/install.sh; then
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1384 elif test -f $ac_dir/shtool; then
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1390 if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1393 { (exit 1); exit 1; }; }
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1406 ac_config_headers="$ac_config_headers expat_config.h"
1409 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
1410 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
1411 ## Free Software Foundation, Inc.
1412 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1414 ## This program is free software; you can redistribute it and/or modify
1415 ## it under the terms of the GNU General Public License as published by
1416 ## the Free Software Foundation; either version 2 of the License, or
1417 ## (at your option) any later version.
1419 ## This program is distributed in the hope that it will be useful, but
1420 ## WITHOUT ANY WARRANTY; without even the implied warranty of
1421 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1422 ## General Public License for more details.
1424 ## You should have received a copy of the GNU General Public License
1425 ## along with this program; if not, write to the Free Software
1426 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1428 ## As a special exception to the GNU General Public License, if you
1429 ## distribute this file as part of a program that contains a
1430 ## configuration script generated by Autoconf, you may include it under
1431 ## the same distribution terms that you use for the rest of that program.
1433 # serial 46 AC_PROG_LIBTOOL
1439 # AC_LIBTOOL_HEADER_ASSERT
1440 # ------------------------
1441 # AC_LIBTOOL_HEADER_ASSERT
1443 # _LT_AC_CHECK_DLFCN
1444 # --------------------
1445 # _LT_AC_CHECK_DLFCN
1447 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1448 # ---------------------------------
1449 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1451 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1452 # ---------------------------------
1453 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1455 # _LT_AC_PROG_ECHO_BACKSLASH
1456 # --------------------------
1457 # Add some code to the start of the generated configure script which
1458 # will find an echo command which doesn't interpret backslashes.
1459 # _LT_AC_PROG_ECHO_BACKSLASH
1461 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1462 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1463 # ------------------------------------------------------------------
1464 # _LT_AC_TRY_DLOPEN_SELF
1466 # AC_LIBTOOL_DLOPEN_SELF
1467 # -------------------
1468 # AC_LIBTOOL_DLOPEN_SELF
1470 # _LT_AC_LTCONFIG_HACK
1472 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
1475 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
1478 # AC_ENABLE_SHARED - implement the --enable-shared flag
1479 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
1480 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1484 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
1487 # AC_ENABLE_STATIC - implement the --enable-static flag
1488 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
1489 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1493 # AC_DISABLE_STATIC - set the default static flag to --disable-static
1497 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1498 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
1499 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1503 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
1506 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
1507 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
1508 # Where MODE is either `yes' or `no'. If omitted, it defaults to
1513 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
1517 # AC_PATH_MAGIC - find a file program which can recognise a shared library
1521 # AC_PROG_LD - find the path to the GNU or non-GNU linker
1527 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
1528 # -- PORTME Some linkers may need a different reload flag.
1531 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
1532 # -- PORTME fill in with the dynamic library characteristics
1536 # AC_PROG_NM - find the path to a BSD-compatible name lister
1539 # AC_CHECK_LIBM - check for math library
1542 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1543 # the libltdl convenience library and INCLTDL to the include flags for
1544 # the libltdl header and adds --enable-ltdl-convenience to the
1545 # configure arguments. Note that LIBLTDL and INCLTDL are not
1546 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
1547 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
1548 # with '${top_builddir}/' and INCLTDL will be prefixed with
1549 # '${top_srcdir}/' (note the single quotes!). If your package is not
1550 # flat and you're not using automake, define top_builddir and
1551 # top_srcdir appropriately in the Makefiles.
1554 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1555 # the libltdl installable library and INCLTDL to the include flags for
1556 # the libltdl header and adds --enable-ltdl-install to the configure
1557 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1558 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
1559 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
1560 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1561 # with '${top_srcdir}/' (note the single quotes!). If your package is
1562 # not flat and you're not using automake, define top_builddir and
1563 # top_srcdir appropriately in the Makefiles.
1564 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1576 # This is just to silence aclocal about the macro not being used
1583 # Check whether --enable-shared or --disable-shared was given.
1584 if test "${enable_shared+set}" = set; then
1585 enableval
="$enable_shared"
1586 p
=${PACKAGE-default}
1588 yes) enable_shared
=yes ;;
1589 no
) enable_shared
=no
;;
1592 # Look at the argument we got. We use all the common list separators.
1593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1594 for pkg
in $enableval; do
1595 if test "X$pkg" = "X$p"; then
1605 # Check whether --enable-static or --disable-static was given.
1606 if test "${enable_static+set}" = set; then
1607 enableval
="$enable_static"
1608 p
=${PACKAGE-default}
1610 yes) enable_static
=yes ;;
1611 no
) enable_static
=no
;;
1614 # Look at the argument we got. We use all the common list separators.
1615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1616 for pkg
in $enableval; do
1617 if test "X$pkg" = "X$p"; then
1627 # Check whether --enable-fast-install or --disable-fast-install was given.
1628 if test "${enable_fast_install+set}" = set; then
1629 enableval
="$enable_fast_install"
1630 p
=${PACKAGE-default}
1632 yes) enable_fast_install
=yes ;;
1633 no
) enable_fast_install
=no
;;
1635 enable_fast_install
=no
1636 # Look at the argument we got. We use all the common list separators.
1637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1638 for pkg
in $enableval; do
1639 if test "X$pkg" = "X$p"; then
1640 enable_fast_install
=yes
1647 enable_fast_install
=yes
1649 # Make sure we can run config.sub.
1650 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1651 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1653 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: checking build system type" >&5
1656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1657 if test "${ac_cv_build+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 ac_cv_build_alias
=$build_alias
1661 test -z "$ac_cv_build_alias" &&
1662 ac_cv_build_alias
=`$ac_config_guess`
1663 test -z "$ac_cv_build_alias" &&
1664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1666 { (exit 1); exit 1; }; }
1667 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1674 echo "${ECHO_T}$ac_cv_build" >&6
1676 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 echo "$as_me:$LINENO: checking host system type" >&5
1682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1683 if test "${ac_cv_host+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 ac_cv_host_alias
=$host_alias
1687 test -z "$ac_cv_host_alias" &&
1688 ac_cv_host_alias
=$ac_cv_build_alias
1689 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1696 echo "${ECHO_T}$ac_cv_host" >&6
1698 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704 ac_cpp
='$CPP $CPPFLAGS'
1705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1708 if test -n "$ac_tool_prefix"; then
1709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1710 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$CC"; then
1717 ac_cv_prog_CC
="$CC" # Let the user override the test.
1719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir
=.
1724 for ac_exec_ext
in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test -n "$CC"; then
1737 echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1745 if test -z "$ac_cv_prog_CC"; then
1747 # Extract the first word of "gcc", so it can be a program name with args.
1748 set dummy gcc
; ac_word
=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir
=.
1762 for ac_exec_ext
in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC
="gcc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1787 if test -z "$CC"; then
1788 if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1790 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC
="$CC" # Let the user override the test.
1799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir
=.
1804 for ac_exec_ext
in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816 if test -n "$CC"; then
1817 echo "$as_me:$LINENO: result: $CC" >&5
1818 echo "${ECHO_T}$CC" >&6
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1825 if test -z "$ac_cv_prog_CC"; then
1827 # Extract the first word of "cc", so it can be a program name with args.
1828 set dummy cc
; ac_word
=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir
=.
1842 for ac_exec_ext
in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_ac_ct_CC
="cc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1854 if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856 echo "${ECHO_T}$ac_ct_CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1868 if test -z "$CC"; then
1869 # Extract the first word of "cc", so it can be a program name with args.
1870 set dummy cc
; ac_word
=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC
="$CC" # Let the user override the test.
1880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir
=.
1885 for ac_exec_ext
in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1888 ac_prog_rejected
=yes
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 if test $ac_prog_rejected = yes; then
1899 # We found a bogon in the path, so make sure we never use it.
1900 set dummy
$ac_cv_prog_CC
1902 if test $# != 0; then
1903 # We chose a different compiler from the bogus one.
1904 # However, it has the same basename, so the bogon will be chosen
1905 # first if we set CC to just the basename; use the full file name.
1907 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1915 if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1924 if test -z "$CC"; then
1925 if test -n "$ac_tool_prefix"; then
1928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1929 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC
="$CC" # Let the user override the test.
1938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir
=.
1943 for ac_exec_ext
in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 if test -n "$CC"; then
1956 echo "$as_me:$LINENO: result: $CC" >&5
1957 echo "${ECHO_T}$CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1963 test -n "$CC" && break
1966 if test -z "$CC"; then
1970 # Extract the first word of "$ac_prog", so it can be a program name with args.
1971 set dummy
$ac_prog; ac_word
=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$ac_ct_CC"; then
1978 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir
=.
1985 for ac_exec_ext
in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_ac_ct_CC
="$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1997 if test -n "$ac_ct_CC"; then
1998 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1999 echo "${ECHO_T}$ac_ct_CC" >&6
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2005 test -n "$ac_ct_CC" && break
2014 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2015 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2016 { (exit 1); exit 1; }; }
2018 # Provide some information about the compiler.
2019 echo "$as_me:$LINENO:" \
2020 "checking for C compiler version" >&5
2021 ac_compiler
=`set X $ac_compile; echo $2`
2022 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2023 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2028 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }
2032 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2033 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }
2038 cat >conftest.
$ac_ext <<_ACEOF
2039 #line $LINENO "configure"
2040 #include "confdefs.h"
2042 #ifdef F77_DUMMY_MAIN
2046 int F77_DUMMY_MAIN() { return 1; }
2056 ac_clean_files_save
=$ac_clean_files
2057 ac_clean_files
="$ac_clean_files a.out a.exe"
2058 # Try to create an executable without -o first, disregard a.out.
2059 # It will help us diagnose broken compilers, and finding out an intuition
2061 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2062 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2063 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2064 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2065 (eval $ac_link_default) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; then
2069 # Find the output, starting from the most likely. This scheme is
2070 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2073 # Be careful to initialize this variable, since it used to be cached.
2074 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2076 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2077 ls a.out conftest 2>/dev/null;
2078 ls a.* conftest.* 2>/dev/null`; do
2080 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2081 a.out
) # We found the default executable, but exeext='' is most
2084 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.
$ac_ext >&5
2094 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2095 echo "$as_me: error: C compiler cannot create executables" >&2;}
2096 { (exit 77); exit 77; }; }
2099 ac_exeext
=$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_file" >&5
2101 echo "${ECHO_T}$ac_file" >&6
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2106 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2107 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2108 # If not cross compiling, check that we can run a simple program.
2109 if test "$cross_compiling" != yes; then
2110 if { ac_try
='./$ac_file'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2118 if test "$cross_compiling" = maybe
; then
2121 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2122 If you meant to cross compile, use \`--host'." >&5
2123 echo "$as_me: error: cannot run C compiled programs.
2124 If you meant to cross compile, use \`--host'." >&2;}
2125 { (exit 1); exit 1; }; }
2129 echo "$as_me:$LINENO: result: yes" >&5
2130 echo "${ECHO_T}yes" >&6
2132 rm -f a.out a.exe conftest
$ac_cv_exeext
2133 ac_clean_files
=$ac_clean_files_save
2134 # Check the compiler produces executables we can run. If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2137 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2138 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2139 echo "${ECHO_T}$cross_compiling" >&6
2141 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2142 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2144 (eval $ac_link) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2149 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2150 # work properly (i.e., refer to `conftest.exe'), while it won't with
2152 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2154 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2155 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2164 { (exit 1); exit 1; }; }
2167 rm -f conftest
$ac_cv_exeext
2168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2169 echo "${ECHO_T}$ac_cv_exeext" >&6
2171 rm -f conftest.
$ac_ext
2172 EXEEXT
=$ac_cv_exeext
2174 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2175 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2176 if test "${ac_cv_objext+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.
$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2183 #ifdef F77_DUMMY_MAIN
2187 int F77_DUMMY_MAIN() { return 1; }
2197 rm -f conftest.o conftest.obj
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2206 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.
$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2214 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2215 { (exit 1); exit 1; }; }
2218 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2220 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2221 echo "${ECHO_T}$ac_cv_objext" >&6
2222 OBJEXT
=$ac_cv_objext
2224 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 cat >conftest.
$ac_ext <<_ACEOF
2230 #line $LINENO "configure"
2231 #include "confdefs.h"
2233 #ifdef F77_DUMMY_MAIN
2237 int F77_DUMMY_MAIN() { return 1; }
2250 rm -f conftest.
$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try
='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 cat conftest.
$ac_ext >&5
2268 rm -f conftest.
$ac_objext conftest.
$ac_ext
2269 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2272 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2274 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2275 ac_test_CFLAGS
=${CFLAGS+set}
2276 ac_save_CFLAGS
=$CFLAGS
2278 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2279 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2280 if test "${ac_cv_prog_cc_g+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.
$ac_ext <<_ACEOF
2284 #line $LINENO "configure"
2285 #include "confdefs.h"
2287 #ifdef F77_DUMMY_MAIN
2291 int F77_DUMMY_MAIN() { return 1; }
2301 rm -f conftest.
$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try
='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.
$ac_ext >&5
2319 rm -f conftest.
$ac_objext conftest.
$ac_ext
2321 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2322 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2323 if test "$ac_test_CFLAGS" = set; then
2324 CFLAGS
=$ac_save_CFLAGS
2325 elif test $ac_cv_prog_cc_g = yes; then
2326 if test "$GCC" = yes; then
2332 if test "$GCC" = yes; then
2338 # Some people use a C++ compiler to compile C. Since we use `exit',
2339 # in C++ we need to declare it. In case someone uses the same compiler
2340 # for both compiling C and C++ we need to have the C++ compiler decide
2341 # the declaration of exit, since it's the most demanding environment.
2342 cat >conftest.
$ac_ext <<_ACEOF
2347 rm -f conftest.
$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try
='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2359 for ac_declaration
in \
2361 '#include <stdlib.h>' \
2362 'extern "C" void std::exit (int) throw (); using std::exit;' \
2363 'extern "C" void std::exit (int); using std::exit;' \
2364 'extern "C" void exit (int) throw ();' \
2365 'extern "C" void exit (int);' \
2368 cat >conftest.
$ac_ext <<_ACEOF
2369 #line $LINENO "configure"
2370 #include "confdefs.h"
2373 #ifdef F77_DUMMY_MAIN
2377 int F77_DUMMY_MAIN() { return 1; }
2387 rm -f conftest.
$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try
='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2405 rm -f conftest.
$ac_objext conftest.
$ac_ext
2406 cat >conftest.
$ac_ext <<_ACEOF
2407 #line $LINENO "configure"
2408 #include "confdefs.h"
2410 #ifdef F77_DUMMY_MAIN
2414 int F77_DUMMY_MAIN() { return 1; }
2424 rm -f conftest.
$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 rm -f conftest.
$ac_objext conftest.
$ac_ext
2444 if test -n "$ac_declaration"; then
2445 echo '#ifdef __cplusplus' >>confdefs.h
2446 echo $ac_declaration >>confdefs.h
2447 echo '#endif' >>confdefs.h
2451 echo "$as_me: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 rm -f conftest.
$ac_objext conftest.
$ac_ext
2456 ac_cpp
='$CPP $CPPFLAGS'
2457 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2461 # Find the correct PATH separator. Usually this is `:', but
2462 # DJGPP uses `;' like DOS.
2463 if test "X${PATH_SEPARATOR+set}" != Xset
; then
2464 UNAME
=${UNAME-`uname 2>/dev/null`}
2466 *-DOS) lt_cv_sys_path_separator
=';' ;;
2467 *) lt_cv_sys_path_separator
=':' ;;
2469 PATH_SEPARATOR
=$lt_cv_sys_path_separator
2473 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2474 if test "${with_gnu_ld+set}" = set; then
2475 withval
="$with_gnu_ld"
2476 test "$withval" = no || with_gnu_ld
=yes
2481 if test "$GCC" = yes; then
2482 # Check if gcc -print-prog-name=ld gives a path.
2483 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2484 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2487 # gcc leaves a trailing carriage return which upsets mingw
2488 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2490 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
2493 # Accept absolute paths.
2494 [\\/]* |
[A-Za-z
]:[\\/]*)
2495 re_direlt
='/[^/][^/]*/\.\./'
2496 # Canonicalize the path of ld
2497 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2498 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2499 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2501 test -z "$LD" && LD
="$ac_prog"
2504 # If it fails, then pretend we aren't using GCC.
2508 # If it is relative, then search for the first ld in PATH.
2512 elif test "$with_gnu_ld" = yes; then
2513 echo "$as_me:$LINENO: checking for GNU ld" >&5
2514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2519 if test "${lt_cv_path_LD+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -z "$LD"; then
2523 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
2524 for ac_dir
in $PATH; do
2525 test -z "$ac_dir" && ac_dir
=.
2526 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2527 lt_cv_path_LD
="$ac_dir/$ac_prog"
2528 # Check to see if the program is GNU ld. I'd rather use --version,
2529 # but apparently some GNU ld's only accept -v.
2530 # Break only if it was the GNU/non-GNU ld that we prefer.
2531 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2532 test "$with_gnu_ld" != no
&& break
2534 test "$with_gnu_ld" != yes && break
2540 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
2545 if test -n "$LD"; then
2546 echo "$as_me:$LINENO: result: $LD" >&5
2547 echo "${ECHO_T}$LD" >&6
2549 echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2554 { (exit 1); exit 1; }; }
2555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2561 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2562 lt_cv_prog_gnu_ld
=yes
2564 lt_cv_prog_gnu_ld
=no
2567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2569 with_gnu_ld
=$lt_cv_prog_gnu_ld
2572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2574 if test "${lt_cv_ld_reload_flag+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 lt_cv_ld_reload_flag
='-r'
2579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2581 reload_flag
=$lt_cv_ld_reload_flag
2582 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2584 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2585 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2586 if test "${lt_cv_path_NM+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$NM"; then
2590 # Let the user override the test.
2593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
2594 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2595 test -z "$ac_dir" && ac_dir
=.
2596 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2597 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2598 # Check to see if the nm accepts a BSD-compat flag.
2599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2600 # nm: unknown option "B" ignored
2601 # Tru64's nm complains that /dev/null is an invalid object file
2602 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2603 lt_cv_path_NM
="$tmp_nm -B"
2605 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2606 lt_cv_path_NM
="$tmp_nm -p"
2609 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2610 continue # so that we can try to find one that supports BSD flags
2615 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2620 echo "$as_me:$LINENO: result: $NM" >&5
2621 echo "${ECHO_T}$NM" >&6
2623 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2624 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2626 if test "$LN_S" = "ln -s"; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2630 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2631 echo "${ECHO_T}no, using $LN_S" >&6
2634 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2635 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2636 if test "${lt_cv_deplibs_check_method+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2640 lt_cv_file_magic_test_file
=
2641 lt_cv_deplibs_check_method
='unknown'
2642 # Need to set the preceding variable on all platforms that support
2643 # interlibrary dependencies.
2644 # 'none' -- dependencies not supported.
2645 # `unknown' -- same as none, but documents that we really don't know.
2646 # 'pass_all' -- all dependencies passed with no checks.
2647 # 'test_compile' -- check by making test program.
2648 # 'file_magic [[regex]]' -- check by looking for files in library path
2649 # which responds to the $file_magic_cmd with a given egrep regex.
2650 # If you have `file' or equivalent on your system and you're not sure
2651 # whether `pass_all' will *always* work, you probably want this one.
2655 lt_cv_deplibs_check_method
=pass_all
2659 lt_cv_deplibs_check_method
=pass_all
2663 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2664 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2665 lt_cv_file_magic_test_file
=/shlib
/libc.so
2668 cygwin
* | mingw
* | pw32
*)
2669 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2670 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2673 darwin
* | rhapsody
*)
2674 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2675 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2677 rhapsody
* | darwin1.
[012])
2678 lt_cv_file_magic_test_file
=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2681 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2687 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2690 # Not sure whether the presence of OpenBSD here was a mistake.
2691 # Let's accept both of them until this is cleared up.
2692 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2693 lt_cv_file_magic_cmd
=/usr
/bin
/file
2694 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2698 lt_cv_deplibs_check_method
=pass_all
2703 lt_cv_deplibs_check_method
=pass_all
2707 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2708 lt_cv_file_magic_cmd
=/usr
/bin
/file
2709 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2715 # this will be overridden with pass_all, but let us keep it just in case
2716 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2720 *-32|
*"-32 ") libmagic
=32-bit;;
2721 *-n32|
*"-n32 ") libmagic
=N32
;;
2722 *-64|
*"-64 ") libmagic
=64-bit;;
2723 *) libmagic
=never-match
;;
2725 # this will be overridden with pass_all, but let us keep it just in case
2726 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2729 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2730 lt_cv_deplibs_check_method
=pass_all
2733 # This must be Linux ELF.
2736 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
2737 lt_cv_deplibs_check_method
=pass_all
;;
2739 # glibc up to 2.1.1 does not perform some relocations on ARM
2740 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2742 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2746 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2747 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2749 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2754 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2755 lt_cv_file_magic_cmd
=/usr
/bin
/file
2756 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2760 lt_cv_file_magic_cmd
=/usr
/bin
/file
2761 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2763 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2765 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
2769 osf3
* | osf4
* | osf5
*)
2770 # this will be overridden with pass_all, but let us keep it just in case
2771 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2772 lt_cv_file_magic_test_file
=/shlib
/libc.so
2773 lt_cv_deplibs_check_method
=pass_all
2777 lt_cv_deplibs_check_method
=pass_all
2781 lt_cv_deplibs_check_method
=pass_all
2782 lt_cv_file_magic_test_file
=/lib
/libc.so
2785 sysv5uw
[78]* | sysv4
*uw2
*)
2786 lt_cv_deplibs_check_method
=pass_all
2789 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2790 case $host_vendor in
2792 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]'
2793 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2796 lt_cv_deplibs_check_method
=pass_all
2799 lt_cv_file_magic_cmd
='/bin/file'
2800 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2803 lt_cv_file_magic_cmd
='/bin/file'
2804 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2805 lt_cv_file_magic_test_file
=/lib
/libc.so
2812 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2813 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2814 file_magic_cmd
=$lt_cv_file_magic_cmd
2815 deplibs_check_method
=$lt_cv_deplibs_check_method
2824 # Check for command to grab the raw symbol name followed by C symbol from nm.
2825 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2826 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2827 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 # These are sane defaults that work on at least a few old systems.
2832 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2834 # Character class describing NM global symbol codes.
2835 symcode
='[BCDEGRST]'
2837 # Regexp to match symbols that can be accessed directly from C.
2838 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
2840 # Transform the above into a raw symbol and a C symbol.
2841 symxfrm
='\1 \2\3 \3'
2843 # Transform an extracted symbol line into a proper C declaration
2844 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2846 # Transform an extracted symbol line into symbol name and symbol address
2847 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'"
2849 # Define system-specific variables.
2854 cygwin
* | mingw
* | pw32
*)
2855 symcode
='[ABCDGISTW]'
2857 hpux
*) # Its linker distinguishes data from code symbols
2858 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2859 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'"
2862 symcode
='[BCDEGRST]'
2872 # Handle CRLF in mingw tool chain
2876 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2880 # If we're using GNU nm, then use its standard symbol codes.
2881 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
2882 symcode
='[ABCDGISTW]'
2885 # Try without a prefix undercore, then with it.
2886 for ac_symprfx
in "" "_"; do
2888 # Write the raw and C identifiers.
2889 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2891 # Check to see that the pipe works correctly.
2894 cat > conftest.
$ac_ext <<EOF
2899 void nm_test_func(){}
2903 int main(){nm_test_var='a';nm_test_func();return(0);}
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Now try to grab the symbols.
2913 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2914 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && test -s "$nlist"; then
2918 # Try sorting and uniquifying the output.
2919 if sort "$nlist" |
uniq > "$nlist"T
; then
2920 mv -f "$nlist"T
"$nlist"
2925 # Make sure that we snagged all the symbols we need.
2926 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
2927 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
2928 cat <<EOF > conftest.$ac_ext
2934 # Now generate the symbol file.
2935 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2937 cat <<EOF >> conftest.$ac_ext
2938 #if defined (__STDC__) && __STDC__
2939 # define lt_ptr void *
2941 # define lt_ptr char *
2945 /* The mapping between symbol names and symbols. */
2950 lt_preloaded_symbols[] =
2953 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.
$ac_ext
2954 cat <<\EOF
>> conftest.
$ac_ext
2962 # Now try linking the two files.
2963 mv conftest.
$ac_objext conftstm.
$ac_objext
2965 save_CFLAGS
="$CFLAGS"
2966 LIBS
="conftstm.$ac_objext"
2967 CFLAGS
="$CFLAGS$no_builtin_flag"
2968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2969 (eval $ac_link) 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && test -s conftest
; then
2976 CFLAGS
="$save_CFLAGS"
2978 echo "cannot find nm_test_func in $nlist" >&5
2981 echo "cannot find nm_test_var in $nlist" >&5
2984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2987 echo "$progname: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 rm -f conftest
* conftst
*
2992 # Do not use the global_symbol_pipe unless it works.
2993 if test "$pipe_works" = yes; then
2996 lt_cv_sys_global_symbol_pipe
=
3002 global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe"
3003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3004 global_symbol_to_cdecl
=
3005 global_symbol_to_c_name_address
=
3007 global_symbol_to_cdecl
="$lt_cv_global_symbol_to_cdecl"
3008 global_symbol_to_c_name_address
="$lt_cv_global_symbol_to_c_name_address"
3010 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3012 echo "$as_me:$LINENO: result: failed" >&5
3013 echo "${ECHO_T}failed" >&6
3015 echo "$as_me:$LINENO: result: ok" >&5
3016 echo "${ECHO_T}ok" >&6
3020 ac_cpp
='$CPP $CPPFLAGS'
3021 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3024 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3025 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3026 # On Suns, sometimes $CPP names a directory.
3027 if test -n "$CPP" && test -d "$CPP"; then
3030 if test -z "$CPP"; then
3031 if test "${ac_cv_prog_CPP+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 # Double quotes because CPP needs to be expanded
3035 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3038 for ac_c_preproc_warn_flag
in '' yes
3040 # Use a header file that comes with gcc, so configuring glibc
3041 # with a fresh cross-compiler works.
3042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp. "Syntax error" is here to catch this case.
3044 cat >conftest.
$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3046 #include "confdefs.h"
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3053 egrep -v '^ *\+' conftest.er1
>conftest.err
3055 cat conftest.err
>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev
/null
; then
3058 if test -s conftest.err
; then
3059 ac_cpp_err
=$ac_c_preproc_warn_flag
3066 if test -z "$ac_cpp_err"; then
3069 echo "$as_me: failed program was:" >&5
3070 cat conftest.
$ac_ext >&5
3071 # Broken: fails on valid input.
3074 rm -f conftest.err conftest.
$ac_ext
3076 # OK, works on sane cases. Now check whether non-existent headers
3077 # can be detected and how.
3078 cat >conftest.
$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 #include "confdefs.h"
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3086 egrep -v '^ *\+' conftest.er1
>conftest.err
3088 cat conftest.err
>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev
/null
; then
3091 if test -s conftest.err
; then
3092 ac_cpp_err
=$ac_c_preproc_warn_flag
3099 if test -z "$ac_cpp_err"; then
3100 # Broken: success on invalid input.
3103 echo "$as_me: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3105 # Passes both tests.
3109 rm -f conftest.err conftest.
$ac_ext
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.
$ac_ext
3114 if $ac_preproc_ok; then
3126 echo "$as_me:$LINENO: result: $CPP" >&5
3127 echo "${ECHO_T}$CPP" >&6
3129 for ac_c_preproc_warn_flag
in '' yes
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # On the NeXT, cc -E runs the code through the compiler's parser,
3134 # not just through cpp. "Syntax error" is here to catch this case.
3135 cat >conftest.
$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 #include "confdefs.h"
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3144 egrep -v '^ *\+' conftest.er1
>conftest.err
3146 cat conftest.err
>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev
/null
; then
3149 if test -s conftest.err
; then
3150 ac_cpp_err
=$ac_c_preproc_warn_flag
3157 if test -z "$ac_cpp_err"; then
3160 echo "$as_me: failed program was:" >&5
3161 cat conftest.
$ac_ext >&5
3162 # Broken: fails on valid input.
3165 rm -f conftest.err conftest.
$ac_ext
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.
$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3172 #include <ac_nonexistent.h>
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3177 egrep -v '^ *\+' conftest.er1
>conftest.err
3179 cat conftest.err
>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev
/null
; then
3182 if test -s conftest.err
; then
3183 ac_cpp_err
=$ac_c_preproc_warn_flag
3190 if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.
$ac_ext >&5
3196 # Passes both tests.
3200 rm -f conftest.err conftest.
$ac_ext
3203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3204 rm -f conftest.err conftest.
$ac_ext
3205 if $ac_preproc_ok; then
3208 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3209 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3210 { (exit 1); exit 1; }; }
3214 ac_cpp
='$CPP $CPPFLAGS'
3215 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3220 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3221 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3222 if test "${ac_cv_header_stdc+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 cat >conftest.
$ac_ext <<_ACEOF
3226 #line $LINENO "configure"
3227 #include "confdefs.h"
3234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3235 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3237 egrep -v '^ *\+' conftest.er1
>conftest.err
3239 cat conftest.err
>&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } >/dev
/null
; then
3242 if test -s conftest.err
; then
3243 ac_cpp_err
=$ac_c_preproc_warn_flag
3250 if test -z "$ac_cpp_err"; then
3251 ac_cv_header_stdc
=yes
3253 echo "$as_me: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3255 ac_cv_header_stdc
=no
3257 rm -f conftest.err conftest.
$ac_ext
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat >conftest.
$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3268 egrep "memchr" >/dev
/null
2>&1; then
3271 ac_cv_header_stdc
=no
3277 if test $ac_cv_header_stdc = yes; then
3278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3279 cat >conftest.
$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 egrep "free" >/dev
/null
2>&1; then
3289 ac_cv_header_stdc
=no
3295 if test $ac_cv_header_stdc = yes; then
3296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3297 if test "$cross_compiling" = yes; then
3300 cat >conftest.
$ac_ext <<_ACEOF
3301 #line $LINENO "configure"
3302 #include "confdefs.h"
3304 #if ((' ' & 0x0FF) == 0x020)
3305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3308 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3309 || ('j' <= (c) && (c) <= 'r') \
3310 || ('s' <= (c) && (c) <= 'z'))
3311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3319 for (i = 0; i < 256; i++)
3320 if (XOR (islower (i), ISLOWER (i))
3321 || toupper (i) != TOUPPER (i))
3326 rm -f conftest
$ac_exeext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3328 (eval $ac_link) 2>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3339 echo "$as_me: program exited with status $ac_status" >&5
3340 echo "$as_me: failed program was:" >&5
3341 cat conftest.
$ac_ext >&5
3343 ac_cv_header_stdc
=no
3345 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3351 if test $ac_cv_header_stdc = yes; then
3353 cat >>confdefs.h
<<\_ACEOF
3354 #define STDC_HEADERS 1
3359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3369 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3370 inttypes.h stdint.h unistd.h
3372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 echo "$as_me:$LINENO: checking for $ac_header" >&5
3374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 cat >conftest.
$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 $ac_includes_default
3383 #include <$ac_header>
3385 rm -f conftest.
$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try
='test -s conftest.$ac_objext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 eval "$as_ac_Header=yes"
3399 echo "$as_me: failed program was:" >&5
3400 cat conftest.
$ac_ext >&5
3401 eval "$as_ac_Header=no"
3403 rm -f conftest.
$ac_objext conftest.
$ac_ext
3405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3408 cat >>confdefs.h
<<_ACEOF
3409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3418 for ac_header
in dlfcn.h
3420 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3422 echo "$as_me:$LINENO: checking for $ac_header" >&5
3423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3430 # Is the header compilable?
3431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3433 cat >conftest.
$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3435 #include "confdefs.h"
3436 $ac_includes_default
3437 #include <$ac_header>
3439 rm -f conftest.
$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try
='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_header_compiler
=yes
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.
$ac_ext >&5
3455 ac_header_compiler
=no
3457 rm -f conftest.
$ac_objext conftest.
$ac_ext
3458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3459 echo "${ECHO_T}$ac_header_compiler" >&6
3461 # Is the header present?
3462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3464 cat >conftest.
$ac_ext <<_ACEOF
3465 #line $LINENO "configure"
3466 #include "confdefs.h"
3467 #include <$ac_header>
3469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3472 egrep -v '^ *\+' conftest.er1
>conftest.err
3474 cat conftest.err
>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev
/null
; then
3477 if test -s conftest.err
; then
3478 ac_cpp_err
=$ac_c_preproc_warn_flag
3485 if test -z "$ac_cpp_err"; then
3486 ac_header_preproc
=yes
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3490 ac_header_preproc
=no
3492 rm -f conftest.err conftest.
$ac_ext
3493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3494 echo "${ECHO_T}$ac_header_preproc" >&6
3496 # So? What about this header?
3497 case $ac_header_compiler:$ac_header_preproc in
3499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 eval "$as_ac_Header=$ac_header_preproc"
3518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3523 cat >>confdefs.h
<<_ACEOF
3524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3535 # Only perform the check for file, if the check method requires it
3536 case $deplibs_check_method in
3538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3539 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3540 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3541 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3549 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3552 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3554 ac_dummy
="/usr/bin:$PATH"
3555 for ac_dir
in $ac_dummy; do
3556 test -z "$ac_dir" && ac_dir
=.
3557 if test -f $ac_dir/${ac_tool_prefix}file; then
3558 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
3559 if test -n "$file_magic_test_file"; then
3560 case $deplibs_check_method in
3562 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3563 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3564 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3565 egrep "$file_magic_regex" > /dev
/null
; then
3570 *** Warning: the command libtool uses to detect shared libraries,
3571 *** $file_magic_cmd, produces output that libtool cannot recognize.
3572 *** The result is that libtool may fail to recognize shared libraries
3573 *** as such. This will affect the creation of libtool libraries that
3574 *** depend on shared libraries, but programs linked with such libtool
3575 *** libraries will work regardless of this problem. Nevertheless, you
3576 *** may want to report the problem to your system manager and/or to
3577 *** bug-libtool@gnu.org
3587 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3592 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3593 if test -n "$MAGIC_CMD"; then
3594 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3595 echo "${ECHO_T}$MAGIC_CMD" >&6
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 if test -z "$lt_cv_path_MAGIC_CMD"; then
3602 if test -n "$ac_tool_prefix"; then
3603 echo "$as_me:$LINENO: checking for file" >&5
3604 echo $ECHO_N "checking for file... $ECHO_C" >&6
3605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3613 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3616 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3618 ac_dummy
="/usr/bin:$PATH"
3619 for ac_dir
in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir
=.
3621 if test -f $ac_dir/file; then
3622 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
3623 if test -n "$file_magic_test_file"; then
3624 case $deplibs_check_method in
3626 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3627 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3628 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3629 egrep "$file_magic_regex" > /dev
/null
; then
3634 *** Warning: the command libtool uses to detect shared libraries,
3635 *** $file_magic_cmd, produces output that libtool cannot recognize.
3636 *** The result is that libtool may fail to recognize shared libraries
3637 *** as such. This will affect the creation of libtool libraries that
3638 *** depend on shared libraries, but programs linked with such libtool
3639 *** libraries will work regardless of this problem. Nevertheless, you
3640 *** may want to report the problem to your system manager and/or to
3641 *** bug-libtool@gnu.org
3651 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3656 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3657 if test -n "$MAGIC_CMD"; then
3658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3659 echo "${ECHO_T}$MAGIC_CMD" >&6
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3676 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3677 echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_prog_RANLIB+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 if test -n "$RANLIB"; then
3683 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_exec_ext
in '' $ac_executable_extensions; do
3691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 RANLIB
=$ac_cv_prog_RANLIB
3702 if test -n "$RANLIB"; then
3703 echo "$as_me:$LINENO: result: $RANLIB" >&5
3704 echo "${ECHO_T}$RANLIB" >&6
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3711 if test -z "$ac_cv_prog_RANLIB"; then
3712 ac_ct_RANLIB
=$RANLIB
3713 # Extract the first word of "ranlib", so it can be a program name with args.
3714 set dummy ranlib
; ac_word
=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test -n "$ac_ct_RANLIB"; then
3721 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir
=.
3728 for ac_exec_ext
in '' $ac_executable_extensions; do
3729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3740 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3741 if test -n "$ac_ct_RANLIB"; then
3742 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3743 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 RANLIB
=$ac_ct_RANLIB
3751 RANLIB
="$ac_cv_prog_RANLIB"
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3756 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_STRIP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$STRIP"; then
3763 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir
=.
3770 for ac_exec_ext
in '' $ac_executable_extensions; do
3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 STRIP
=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 echo "$as_me:$LINENO: result: $STRIP" >&5
3784 echo "${ECHO_T}$STRIP" >&6
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3791 if test -z "$ac_cv_prog_STRIP"; then
3793 # Extract the first word of "strip", so it can be a program name with args.
3794 set dummy strip
; ac_word
=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir
=.
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_STRIP
="strip"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3820 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3821 if test -n "$ac_ct_STRIP"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3823 echo "${ECHO_T}$ac_ct_STRIP" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3831 STRIP
="$ac_cv_prog_STRIP"
3838 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3839 if test "${enable_libtool_lock+set}" = set; then
3840 enableval
="$enable_libtool_lock"
3843 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3845 # Some flags need to be propagated to the compiler or linker for good
3849 # Find out which ABI we are using.
3850 echo '#line 3850 "configure"' > conftest.
$ac_ext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; then
3856 case `/usr/bin/file conftest.$ac_objext` in
3872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3873 SAVE_CFLAGS
="$CFLAGS"
3874 CFLAGS
="$CFLAGS -belf"
3875 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3876 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3877 if test "${lt_cv_cc_needs_belf+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_cpp
='$CPP $CPPFLAGS'
3884 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3888 cat >conftest.
$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 #include "confdefs.h"
3892 #ifdef F77_DUMMY_MAIN
3896 int F77_DUMMY_MAIN() { return 1; }
3906 rm -f conftest.
$ac_objext conftest
$ac_exeext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908 (eval $ac_link) 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try
='test -s conftest$ac_exeext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 lt_cv_cc_needs_belf
=yes
3920 echo "$as_me: failed program was:" >&5
3921 cat conftest.
$ac_ext >&5
3922 lt_cv_cc_needs_belf
=no
3924 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3926 ac_cpp
='$CPP $CPPFLAGS'
3927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3932 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3933 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3934 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3936 CFLAGS
="$SAVE_CFLAGS"
3943 # Sed substitution that helps us do robust quoting. It backslashifies
3944 # metacharacters that are still active within double-quoted strings.
3945 Xsed
='sed -e s/^X//'
3946 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
3948 # Same as above, but do not quote variable references.
3949 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
3951 # Sed substitution to delay expansion of an escaped shell variable in a
3952 # double_quote_subst'ed string.
3953 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
3959 default_ofile
=libtool
3960 can_build_shared
=yes
3962 # All known linkers require a `.a' archive for static linking (except M$VC,
3963 # which needs '.lib').
3965 ltmain
="$ac_aux_dir/ltmain.sh"
3966 ofile
="$default_ofile"
3967 with_gnu_ld
="$lt_cv_prog_gnu_ld"
3968 need_locks
="$enable_libtool_lock"
3971 old_CFLAGS
="$CFLAGS"
3973 # Set sane defaults for various variables
3974 test -z "$AR" && AR
=ar
3975 test -z "$AR_FLAGS" && AR_FLAGS
=cru
3976 test -z "$AS" && AS
=as
3977 test -z "$CC" && CC
=cc
3978 test -z "$DLLTOOL" && DLLTOOL
=dlltool
3979 test -z "$LD" && LD
=ld
3980 test -z "$LN_S" && LN_S
="ln -s"
3981 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
3982 test -z "$NM" && NM
=nm
3983 test -z "$OBJDUMP" && OBJDUMP
=objdump
3984 test -z "$RANLIB" && RANLIB
=:
3985 test -z "$STRIP" && STRIP
=:
3986 test -z "$ac_objext" && ac_objext
=o
3988 if test x
"$host" != x
"$build"; then
3989 ac_tool_prefix
=${host_alias}-
3994 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3997 linux
*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4002 # AIX sometimes has problems with the GCC collect2 program. For some
4003 # reason, if we set the COLLECT_NAMES environment variable, the problems
4004 # vanish in a puff of smoke.
4005 if test "X${COLLECT_NAMES+set}" != Xset
; then
4007 export COLLECT_NAMES
4012 # Determine commands to create old-style static archives.
4013 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4014 old_postinstall_cmds
='chmod 644 $oldlib'
4015 old_postuninstall_cmds
=
4017 if test -n "$RANLIB"; then
4020 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4023 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
4026 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
4029 # Allow CC to be a program name with arguments.
4033 ## FIXME: this should be a separate macro
4035 echo "$as_me:$LINENO: checking for objdir" >&5
4036 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4037 rm -f .libs
2>/dev
/null
4038 mkdir .libs
2>/dev
/null
4039 if test -d .libs
; then
4042 # MS-DOS does not allow filenames that begin with a dot.
4045 rmdir .libs
2>/dev
/null
4046 echo "$as_me:$LINENO: result: $objdir" >&5
4047 echo "${ECHO_T}$objdir" >&6
4052 ## FIXME: this should be a separate macro
4055 # Check whether --with-pic or --without-pic was given.
4056 if test "${with_pic+set}" = set; then
4062 test -z "$pic_mode" && pic_mode
=default
4064 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4065 # in isolation, and that seeing it set (from the cache) indicates that
4066 # the associated values are set (in the cache) correctly too.
4067 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4068 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4069 if test "${lt_cv_prog_cc_pic+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 lt_cv_prog_cc_shlib
=
4075 lt_cv_prog_cc_static
=
4076 lt_cv_prog_cc_no_builtin
=
4077 lt_cv_prog_cc_can_build_shared
=$can_build_shared
4079 if test "$GCC" = yes; then
4080 lt_cv_prog_cc_wl
='-Wl,'
4081 lt_cv_prog_cc_static
='-static'
4085 # Below there is a dirty hack to force normal static linking with -ldl
4086 # The problem is because libdl dynamically linked with both libc and
4087 # libC (AIX C++ library), which obviously doesn't included in libraries
4088 # list by gcc. This cause undefined symbols with -static flags.
4089 # This hack allows C programs to be linked with "-static -ldl", but
4090 # not sure about C++ programs.
4091 lt_cv_prog_cc_static
="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4094 # FIXME: we need at least 68020 code to build shared libraries, but
4095 # adding the `-m68020' flag to GCC prevents building anything better,
4097 lt_cv_prog_cc_pic
='-m68020 -resident32 -malways-restore-a4'
4099 beos
* | irix5
* | irix6
* | osf3
* | osf4
* | osf5
*)
4100 # PIC is the default for these OSes.
4102 darwin
* | rhapsody
*)
4103 # PIC is the default on this platform
4104 # Common symbols not allowed in MH_DYLIB files
4105 lt_cv_prog_cc_pic
='-fno-common'
4107 cygwin
* | mingw
* | pw32
* | os2
*)
4108 # This hack is so that the source file can tell whether it is being
4109 # built for inclusion in a dll (and should export symbols for example).
4110 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
4113 if test -d /usr
/nec
; then
4114 lt_cv_prog_cc_pic
=-Kconform_pic
4118 lt_cv_prog_cc_pic
='-fPIC'
4122 # PORTME Check for PIC flags for the system compiler.
4124 aix3
* | aix4
* | aix5
*)
4125 lt_cv_prog_cc_wl
='-Wl,'
4126 # All AIX code is PIC.
4127 if test "$host_cpu" = ia64
; then
4128 # AIX 5 now supports IA64 processor
4129 lt_cv_prog_cc_static
='-Bstatic'
4131 lt_cv_prog_cc_static
='-bnso -bI:/lib/syscalls.exp'
4135 hpux9
* | hpux10
* | hpux11
*)
4136 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4137 lt_cv_prog_cc_wl
='-Wl,'
4138 lt_cv_prog_cc_static
="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4139 lt_cv_prog_cc_pic
='+Z'
4143 lt_cv_prog_cc_wl
='-Wl,'
4144 lt_cv_prog_cc_static
='-non_shared'
4145 # PIC (with -KPIC) is the default.
4148 cygwin
* | mingw
* | pw32
* | os2
*)
4149 # This hack is so that the source file can tell whether it is being
4150 # built for inclusion in a dll (and should export symbols for example).
4151 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
4155 lt_cv_prog_cc_pic
='-KPIC'
4156 lt_cv_prog_cc_static
='-Bstatic'
4159 osf3
* | osf4
* | osf5
*)
4160 # All OSF/1 code is PIC.
4161 lt_cv_prog_cc_wl
='-Wl,'
4162 lt_cv_prog_cc_static
='-non_shared'
4166 lt_cv_prog_cc_pic
='-Kpic'
4167 lt_cv_prog_cc_static
='-dn'
4168 lt_cv_prog_cc_shlib
='-belf'
4172 lt_cv_prog_cc_pic
='-KPIC'
4173 lt_cv_prog_cc_static
='-Bstatic'
4174 lt_cv_prog_cc_wl
='-Wl,'
4178 lt_cv_prog_cc_pic
='-PIC'
4179 lt_cv_prog_cc_static
='-Bstatic'
4180 lt_cv_prog_cc_wl
='-Qoption ld '
4183 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4184 lt_cv_prog_cc_pic
='-KPIC'
4185 lt_cv_prog_cc_static
='-Bstatic'
4186 if test "x$host_vendor" = xsni
; then
4187 lt_cv_prog_cc_wl
='-LD'
4189 lt_cv_prog_cc_wl
='-Wl,'
4194 lt_cv_prog_cc_pic
='-pic'
4195 lt_cv_prog_cc_static
='-Bstatic'
4199 if test -d /usr
/nec
;then
4200 lt_cv_prog_cc_pic
='-Kconform_pic'
4201 lt_cv_prog_cc_static
='-Bstatic'
4206 lt_cv_prog_cc_can_build_shared
=no
4213 if test -z "$lt_cv_prog_cc_pic"; then
4214 echo "$as_me:$LINENO: result: none" >&5
4215 echo "${ECHO_T}none" >&6
4217 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4218 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4220 # Check to make sure the pic_flag actually works.
4221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4222 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4223 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 save_CFLAGS
="$CFLAGS"
4227 CFLAGS
="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4228 cat >conftest.
$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 #include "confdefs.h"
4232 #ifdef F77_DUMMY_MAIN
4236 int F77_DUMMY_MAIN() { return 1; }
4246 rm -f conftest.
$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try
='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4259 hpux9
* | hpux10
* | hpux11
*)
4260 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4261 # they create non-PIC objects. So, if there were any warnings, we
4262 # assume that PIC is not supported.
4263 if test -s conftest.err
; then
4264 lt_cv_prog_cc_pic_works
=no
4266 lt_cv_prog_cc_pic_works
=yes
4270 lt_cv_prog_cc_pic_works
=yes
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4277 lt_cv_prog_cc_pic_works
=no
4280 rm -f conftest.
$ac_objext conftest.
$ac_ext
4281 CFLAGS
="$save_CFLAGS"
4286 if test "X$lt_cv_prog_cc_pic_works" = Xno
; then
4288 lt_cv_prog_cc_can_build_shared
=no
4290 lt_cv_prog_cc_pic
=" $lt_cv_prog_cc_pic"
4293 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4294 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4299 # Check for any special shared library compilation flags.
4300 if test -n "$lt_cv_prog_cc_shlib"; then
4301 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4302 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4303 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev
/null
; then :
4305 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4306 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4307 lt_cv_prog_cc_can_build_shared
=no
4311 ## FIXME: this should be a separate macro
4313 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4314 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4315 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 lt_cv_prog_cc_static_works
=no
4319 save_LDFLAGS
="$LDFLAGS"
4320 LDFLAGS
="$LDFLAGS $lt_cv_prog_cc_static"
4321 cat >conftest.
$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4323 #include "confdefs.h"
4325 #ifdef F77_DUMMY_MAIN
4329 int F77_DUMMY_MAIN() { return 1; }
4339 rm -f conftest.
$ac_objext conftest
$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try
='test -s conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 lt_cv_prog_cc_static_works
=yes
4353 echo "$as_me: failed program was:" >&5
4354 cat conftest.
$ac_ext >&5
4356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4357 LDFLAGS
="$save_LDFLAGS"
4362 # Belt *and* braces to stop my trousers falling down:
4363 test "X$lt_cv_prog_cc_static_works" = Xno
&& lt_cv_prog_cc_static
=
4364 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4365 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4367 pic_flag
="$lt_cv_prog_cc_pic"
4368 special_shlib_compile_flags
="$lt_cv_prog_cc_shlib"
4369 wl
="$lt_cv_prog_cc_wl"
4370 link_static_flag
="$lt_cv_prog_cc_static"
4371 no_builtin_flag
="$lt_cv_prog_cc_no_builtin"
4372 can_build_shared
="$lt_cv_prog_cc_can_build_shared"
4377 ## FIXME: this should be a separate macro
4379 # Check to see if options -o and -c are simultaneously supported by compiler
4380 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4381 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4382 if test "${lt_cv_compiler_c_o+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 $rm -r conftest
2>/dev
/null
4389 echo "int some_variable = 0;" > conftest.
$ac_ext
4391 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4392 # that will create temporary files in the current directory regardless of
4393 # the output directory. Thus, making CWD read-only will cause this test
4394 # to fail, enabling locking or at least warning the user not to do parallel
4397 save_CFLAGS
="$CFLAGS"
4398 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
4400 if { (eval echo configure
:4400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out
/conftest.err
; } && test -s out
/conftest2.
$ac_objext; then
4401 # The compiler can only warn and ignore the option if not recognized
4402 # So say no if there are warnings
4403 if test -s out
/conftest.err
; then
4404 lt_cv_compiler_c_o
=no
4406 lt_cv_compiler_c_o
=yes
4409 # Append any errors to the config.log.
4410 cat out
/conftest.err
1>&5
4411 lt_cv_compiler_c_o
=no
4413 CFLAGS
="$save_CFLAGS"
4419 $rm -r conftest
2>/dev
/null
4423 compiler_c_o
=$lt_cv_compiler_c_o
4424 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4425 echo "${ECHO_T}$compiler_c_o" >&6
4427 if test x
"$compiler_c_o" = x
"yes"; then
4428 # Check to see if we can write to a .lo
4429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4430 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4431 if test "${lt_cv_compiler_o_lo+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 lt_cv_compiler_o_lo
=no
4436 save_CFLAGS
="$CFLAGS"
4437 CFLAGS
="$CFLAGS -c -o conftest.lo"
4438 save_objext
="$ac_objext"
4440 cat >conftest.
$ac_ext <<_ACEOF
4441 #line $LINENO "configure"
4442 #include "confdefs.h"
4444 #ifdef F77_DUMMY_MAIN
4448 int F77_DUMMY_MAIN() { return 1; }
4453 int some_variable = 0;
4458 rm -f conftest.
$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try
='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 # The compiler can only warn and ignore the option if not recognized
4471 # So say no if there are warnings
4472 if test -s conftest.err
; then
4473 lt_cv_compiler_o_lo
=no
4475 lt_cv_compiler_o_lo
=yes
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.
$ac_ext >&5
4482 rm -f conftest.
$ac_objext conftest.
$ac_ext
4483 ac_objext
="$save_objext"
4484 CFLAGS
="$save_CFLAGS"
4488 compiler_o_lo
=$lt_cv_compiler_o_lo
4489 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4490 echo "${ECHO_T}$compiler_o_lo" >&6
4497 ## FIXME: this should be a separate macro
4499 # Check to see if we can do hard links to lock some files if needed
4500 hard_links
="nottested"
4501 if test "$compiler_c_o" = no
&& test "$need_locks" != no
; then
4502 # do not overwrite the value of need_locks provided by the user
4503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4507 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
4509 ln conftest.a conftest.b
2>&5 || hard_links
=no
4510 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
4511 echo "$as_me:$LINENO: result: $hard_links" >&5
4512 echo "${ECHO_T}$hard_links" >&6
4513 if test "$hard_links" = no
; then
4514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4524 ## FIXME: this should be a separate macro
4526 if test "$GCC" = yes; then
4527 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4528 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4530 echo "int some_variable = 0;" > conftest.
$ac_ext
4531 save_CFLAGS
="$CFLAGS"
4532 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4533 compiler_rtti_exceptions
=no
4534 cat >conftest.
$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 #include "confdefs.h"
4538 #ifdef F77_DUMMY_MAIN
4542 int F77_DUMMY_MAIN() { return 1; }
4547 int some_variable = 0;
4552 rm -f conftest.
$ac_objext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try
='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 # The compiler can only warn and ignore the option if not recognized
4565 # So say no if there are warnings
4566 if test -s conftest.err
; then
4567 compiler_rtti_exceptions
=no
4569 compiler_rtti_exceptions
=yes
4573 echo "$as_me: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4576 rm -f conftest.
$ac_objext conftest.
$ac_ext
4577 CFLAGS
="$save_CFLAGS"
4578 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4579 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4581 if test "$compiler_rtti_exceptions" = "yes"; then
4582 no_builtin_flag
=' -fno-builtin -fno-rtti -fno-exceptions'
4584 no_builtin_flag
=' -fno-builtin'
4590 ## FIXME: this should be a separate macro
4592 # See if the linker supports building shared libraries.
4593 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4594 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4596 allow_undefined_flag
=
4598 need_lib_prefix
=unknown
4599 need_version
=unknown
4600 # when you set need_version to no, make sure it does not cause -set_version
4601 # flags to be left without arguments
4603 archive_expsym_cmds
=
4604 old_archive_from_new_cmds
=
4605 old_archive_from_expsyms_cmds
=
4606 export_dynamic_flag_spec
=
4607 whole_archive_flag_spec
=
4608 thread_safe_flag_spec
=
4609 hardcode_into_libs
=no
4610 hardcode_libdir_flag_spec
=
4611 hardcode_libdir_separator
=
4614 hardcode_shlibpath_var
=unsupported
4616 link_all_deplibs
=unknown
4617 always_export_symbols
=no
4618 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4619 # include_expsyms should be a list of space-separated symbols to be *always*
4620 # included in the symbol list
4622 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4625 # as well as any symbol that contains `d'.
4626 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
4627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4628 # platforms (ab)use it in PIC code, but their linkers get confused if
4629 # the symbol is explicitly referenced. Since portable code cannot
4630 # rely on this symbol name, it's probably fine to never include it in
4631 # preloaded symbol tables.
4632 extract_expsyms_cmds
=
4635 cygwin
* | mingw
* | pw32
*)
4636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4637 # When not using gcc, we currently assume that we are using
4638 # Microsoft Visual C++.
4639 if test "$GCC" != yes; then
4649 if test "$with_gnu_ld" = yes; then
4650 # If archive_cmds runs LD, not CC, wlarc should be empty
4653 # See if GNU ld supports shared libraries.
4655 aix3
* | aix4
* | aix5
*)
4656 # On AIX, the GNU linker is very broken
4657 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4661 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4662 *** to be unable to reliably create shared libraries on AIX.
4663 *** Therefore, libtool is disabling shared libraries support. If you
4664 *** really care for shared libraries, you may want to modify your PATH
4665 *** so that a non-GNU linker is found, and then restart.
4671 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)'
4672 hardcode_libdir_flag_spec
='-L$libdir'
4673 hardcode_minus_L
=yes
4675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4676 # that the semantics of dynamic libraries on AmigaOS, at least up
4677 # to version 4, is to share data among multiple programs linked
4678 # with the same dynamic library. Since this doesn't match the
4679 # behavior of shared libraries on other platforms, we can use
4685 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4686 allow_undefined_flag
=unsupported
4687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4688 # support --undefined. This deserves some investigation. FIXME
4689 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4695 cygwin
* | mingw
* | pw32
*)
4696 # hardcode_libdir_flag_spec is actually meaningless, as there is
4697 # no search path for DLLs.
4698 hardcode_libdir_flag_spec
='-L$libdir'
4699 allow_undefined_flag
=unsupported
4700 always_export_symbols
=yes
4702 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
4703 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4704 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4705 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4706 else $CC -o impgen impgen.c ; fi)~
4707 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4709 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4711 # cygwin and mingw dlls have different entry points and sets of symbols
4713 # FIXME: what about values for MSVC?
4714 dll_entry
=__cygwin_dll_entry@
12
4715 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12~
4719 dll_entry
=_DllMainCRTStartup@
12
4720 dll_exclude_symbols
=DllMain@
12,DllMainCRTStartup@
12,DllEntryPoint@
12~
4724 # mingw and cygwin differ, and it's simplest to just exclude the union
4725 # of the two symbol sets.
4726 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
4728 # recent cygwin and mingw systems supply a stub DllMain which the user
4729 # can override, but on older systems we have to supply one (in ltdll.c)
4730 if test "x$lt_cv_need_dllmain" = "xyes"; then
4731 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
4732 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~
4733 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4739 # Extract the symbol export list from an `--export-all' def file,
4740 # then regenerate the def file from the symbol export list, so that
4741 # the compiled dll only exports the symbol export list.
4742 # Be careful not to strip the DATA tag left be newer dlltools.
4743 export_symbols_cmds
="$ltdll_cmds"'
4744 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4745 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4747 # If the export-symbols file already is a .def file (1st line
4748 # is EXPORTS), use it as is.
4749 # If DATA tags from a recent dlltool are present, honour them!
4750 archive_expsym_cmds
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4751 cp $export_symbols $output_objdir/$soname-def;
4753 echo EXPORTS > $output_objdir/$soname-def;
4755 cat $export_symbols | while read symbol; do
4758 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4759 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4761 _lt_hint=`expr 1 + \$_lt_hint`;
4765 $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~
4766 $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~
4767 $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~
4768 $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~
4769 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4773 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4774 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4777 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4778 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4783 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
4787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4788 *** create shared libraries on Solaris systems. Therefore, libtool
4789 *** is disabling shared libraries support. We urge you to upgrade GNU
4790 *** binutils to release 2.9.1 or newer. Another option is to modify
4791 *** your PATH or compiler configuration so that the native linker is
4792 *** used, and then restart.
4795 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4796 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4797 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4804 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4807 hardcode_shlibpath_var
=no
4811 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4812 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4813 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4820 if test "$ld_shlibs" = yes; then
4821 runpath_var
=LD_RUN_PATH
4822 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
4823 export_dynamic_flag_spec
='${wl}--export-dynamic'
4825 cygwin
* | mingw
* | pw32
*)
4826 # dlltool doesn't understand --whole-archive et. al.
4827 whole_archive_flag_spec
=
4830 # ancient GNU ld didn't support --whole-archive et. al.
4831 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
4832 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4834 whole_archive_flag_spec
=
4840 # PORTME fill in a description of your system's linker (not GNU ld)
4843 allow_undefined_flag
=unsupported
4844 always_export_symbols
=yes
4845 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'
4846 # Note: this linker hardcodes the directories in LIBPATH if there
4847 # are no directories specified by -L.
4848 hardcode_minus_L
=yes
4849 if test "$GCC" = yes && test -z "$link_static_flag"; then
4850 # Neither direct hardcoding nor static linking is supported with a
4852 hardcode_direct
=unsupported
4857 if test "$host_cpu" = ia64
; then
4858 # On IA64, the linker does run time linking by default, so we don't
4859 # have to do anything special.
4860 aix_use_runtimelinking
=no
4861 exp_sym_flag
='-Bexport'
4864 aix_use_runtimelinking
=no
4866 # Test if we are trying to use run time linking or normal
4867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4868 # need to do runtime linking.
4869 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
4870 for ld_flag
in $LDFLAGS; do
4871 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
4872 aix_use_runtimelinking
=yes
4878 exp_sym_flag
='-bexport'
4879 no_entry_flag
='-bnoentry'
4882 # When large executables or shared objects are built, AIX ld can
4883 # have problems creating the table of contents. If linking a library
4884 # or program results in "error TOC overflow" add -mminimal-toc to
4885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4890 hardcode_libdir_separator
=':'
4891 if test "$GCC" = yes; then
4892 case $host_os in aix4.
[012]|aix4.
[012].
*)
4893 collect2name
=`${CC} -print-prog-name=collect2`
4894 if test -f "$collect2name" && \
4895 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
4897 # We have reworked collect2
4900 # We have old collect2
4901 hardcode_direct
=unsupported
4902 # It fails to find uninstalled libraries when the uninstalled
4903 # path is not listed in the libpath. Setting hardcode_minus_L
4904 # to unsupported forces relinking
4905 hardcode_minus_L
=yes
4906 hardcode_libdir_flag_spec
='-L$libdir'
4907 hardcode_libdir_separator
=
4911 shared_flag
='-shared'
4914 if test "$host_cpu" = ia64
; then
4915 shared_flag
='${wl}-G'
4917 if test "$aix_use_runtimelinking" = yes; then
4918 shared_flag
='${wl}-G'
4920 shared_flag
='${wl}-bM:SRE'
4925 # It seems that -bexpall can do strange things, so it is better to
4926 # generate a list of symbols to export.
4927 always_export_symbols
=yes
4928 if test "$aix_use_runtimelinking" = yes; then
4929 # Warning - without using the other runtime loading flags (-brtl),
4930 # -berok will link without error, but may produce a broken library.
4931 allow_undefined_flag
='-berok'
4932 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:/usr/lib:/lib'
4933 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"
4935 if test "$host_cpu" = ia64; then
4936 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
4937 allow_undefined_flag="-z nodefs"
4938 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"
4940 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4941 # Warning - without using the other run time loading flags,
4942 # -berok will link without error, but may produce a broken library.
4943 allow_undefined_flag='${wl}-berok'
4944 # This is a bit strange, but is similar to how AIX traditionally builds
4945 # it's shared libraries.
4946 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'
4952 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)'
4953 hardcode_libdir_flag_spec
='-L$libdir'
4954 hardcode_minus_L
=yes
4955 # see comment about different semantics on the GNU ld section
4959 cygwin
* | mingw
* | pw32
*)
4960 # When not using gcc, we currently assume that we are using
4961 # Microsoft Visual C++.
4962 # hardcode_libdir_flag_spec is actually meaningless, as there is
4963 # no search path for DLLs.
4964 hardcode_libdir_flag_spec
=' '
4965 allow_undefined_flag
=unsupported
4966 # Tell ltmain to make .lib files, not .a files.
4968 # FIXME: Setting linknames here is a bad hack.
4969 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4970 # The linker will automatically build a .lib file if we build a DLL.
4971 old_archive_from_new_cmds
='true'
4972 # FIXME: Should let the user specify the lib program.
4973 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
4974 fix_srcfile_path
='`cygpath -w "$srcfile"`'
4977 darwin
* | rhapsody
*)
4979 rhapsody
* | darwin1.
[012])
4980 allow_undefined_flag
='-undefined suppress'
4983 allow_undefined_flag
='-flat_namespace -undefined suppress'
4986 # FIXME: Relying on posixy $() will cause problems for
4987 # cross-compilation, but unfortunately the echo tests do not
4988 # yet detect zsh echo's removal of \ escapes.
4989 archive_cmds
='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4990 # We need to add '_' to the symbols in $export_symbols first
4991 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4993 hardcode_shlibpath_var
=no
4994 whole_archive_flag_spec
='-all_load $convenience'
5001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5002 # support. Future versions do this automatically, but an explicit c++rt0.o
5003 # does not break anything, and helps significantly (at the cost of a little
5006 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5007 hardcode_libdir_flag_spec
='-R$libdir'
5009 hardcode_shlibpath_var
=no
5012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5014 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5016 hardcode_minus_L
=yes
5017 hardcode_shlibpath_var
=no
5020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5022 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5023 hardcode_libdir_flag_spec
='-R$libdir'
5025 hardcode_shlibpath_var
=no
5028 hpux9
* | hpux10
* | hpux11
*)
5030 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' ;;
5031 *) archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5033 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
5034 hardcode_libdir_separator
=:
5036 hardcode_minus_L
=yes # Not in the search PATH, but as the default
5037 # location of the library.
5038 export_dynamic_flag_spec
='${wl}-E'
5042 if test "$GCC" = yes; then
5043 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'
5045 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'
5047 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
5048 hardcode_libdir_separator
=:
5049 link_all_deplibs
=yes
5053 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
5054 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5056 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5058 hardcode_libdir_flag_spec
='-R$libdir'
5060 hardcode_shlibpath_var
=no
5064 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5066 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
5067 hardcode_libdir_separator
=:
5068 hardcode_shlibpath_var
=no
5073 hardcode_shlibpath_var
=no
5074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5075 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5076 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
5077 export_dynamic_flag_spec
='${wl}-E'
5080 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
5081 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5082 hardcode_libdir_flag_spec
='-R$libdir'
5085 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5086 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
5093 hardcode_libdir_flag_spec
='-L$libdir'
5094 hardcode_minus_L
=yes
5095 allow_undefined_flag
=unsupported
5096 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'
5097 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5101 if test "$GCC" = yes; then
5102 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
5103 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'
5105 allow_undefined_flag
=' -expect_unresolved \*'
5106 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'
5108 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
5109 hardcode_libdir_separator
=:
5112 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
5113 if test "$GCC" = yes; then
5114 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
5115 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'
5116 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
5118 allow_undefined_flag
=' -expect_unresolved \*'
5119 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'
5120 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5121 $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'
5123 #Both c and cxx compiler support -rpath directly
5124 hardcode_libdir_flag_spec
='-rpath $libdir'
5126 hardcode_libdir_separator
=:
5130 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5131 hardcode_shlibpath_var
=no
5132 runpath_var
=LD_RUN_PATH
5133 hardcode_runpath_var
=yes
5134 export_dynamic_flag_spec
='${wl}-Bexport'
5138 # gcc --version < 3.0 without binutils cannot create self contained
5139 # shared libraries reliably, requiring libgcc.a to resolve some of
5140 # the object symbols generated in some cases. Libraries that use
5141 # assert need libgcc.a to resolve __eprintf, for example. Linking
5142 # a copy of libgcc.a into every shared library to guarantee resolving
5143 # such symbols causes other problems: According to Tim Van Holder
5144 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5145 # (to the application) exception stack for one thing.
5146 no_undefined_flag
=' -z defs'
5147 if test "$GCC" = yes; then
5148 case `$CC --version 2>/dev/null` in
5152 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5153 *** create self contained shared libraries on Solaris systems, without
5154 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5155 *** -no-undefined support, which will at least allow you to build shared
5156 *** libraries. However, you may find that when you link such libraries
5157 *** into an application without using GCC, you have to manually add
5158 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5159 *** upgrade to a newer version of GCC. Another option is to rebuild your
5160 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5167 # $CC -shared without GNU ld will not create a library from C++
5168 # object files and a static libstdc++, better avoid it by now
5169 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5170 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5172 hardcode_libdir_flag_spec
='-R$libdir'
5173 hardcode_shlibpath_var
=no
5175 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
5176 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5177 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
5179 link_all_deplibs
=yes
5183 if test "x$host_vendor" = xsequent
; then
5184 # Use $CC to link under sequent, because it throws in some extra .o
5185 # files that make .init and .fini sections work.
5186 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5188 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5190 hardcode_libdir_flag_spec
='-L$libdir'
5192 hardcode_minus_L
=yes
5193 hardcode_shlibpath_var
=no
5197 if test "x$host_vendor" = xsno
; then
5198 archive_cmds
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5199 hardcode_direct
=yes # is this really true???
5201 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5202 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
5204 runpath_var
='LD_RUN_PATH'
5205 hardcode_shlibpath_var
=no
5209 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5210 hardcode_shlibpath_var
=no
5211 export_dynamic_flag_spec
='-Bexport'
5215 no_undefined_flag
=' -z text'
5216 # $CC -shared without GNU ld will not create a library from C++
5217 # object files and a static libstdc++, better avoid it by now
5218 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5219 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5220 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5221 hardcode_libdir_flag_spec
=
5222 hardcode_shlibpath_var
=no
5223 runpath_var
='LD_RUN_PATH'
5227 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5228 hardcode_libdir_flag_spec
='-L$libdir'
5229 hardcode_shlibpath_var
=no
5233 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5234 hardcode_libdir_flag_spec
='-L$libdir'
5235 hardcode_shlibpath_var
=no
5239 if test -d /usr
/nec
; then
5240 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5241 hardcode_shlibpath_var
=no
5242 runpath_var
=LD_RUN_PATH
5243 hardcode_runpath_var
=yes
5249 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5252 hardcode_shlibpath_var
=no
5253 hardcode_runpath_var
=yes
5254 runpath_var
=LD_RUN_PATH
5257 sysv5uw7
* | unixware7
*)
5258 no_undefined_flag
='${wl}-z ${wl}text'
5259 if test "$GCC" = yes; then
5260 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5262 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5264 runpath_var
='LD_RUN_PATH'
5265 hardcode_shlibpath_var
=no
5273 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5274 echo "${ECHO_T}$ld_shlibs" >&6
5275 test "$ld_shlibs" = no
&& can_build_shared
=no
5279 ## FIXME: this should be a separate macro
5281 # Check hardcoding attributes.
5282 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5283 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5285 if test -n "$hardcode_libdir_flag_spec" || \
5286 test -n "$runpath_var"; then
5288 # We can hardcode non-existant directories.
5289 if test "$hardcode_direct" != no
&&
5290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5291 # have to relink, otherwise we might link with an installed library
5292 # when we should be linking with a yet-to-be-installed one
5293 ## test "$hardcode_shlibpath_var" != no &&
5294 test "$hardcode_minus_L" != no
; then
5295 # Linking always hardcodes the temporary library directory.
5296 hardcode_action
=relink
5298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5299 hardcode_action
=immediate
5302 # We cannot hardcode anything, or else we can only hardcode existing
5304 hardcode_action
=unsupported
5306 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5307 echo "${ECHO_T}$hardcode_action" >&6
5311 ## FIXME: this should be a separate macro
5315 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5316 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5317 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
5318 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
5319 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
5320 echo "$as_me:$LINENO: result: yes" >&5
5321 echo "${ECHO_T}yes" >&6
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5329 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5330 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5332 ## FIXME: this should be a separate macro
5334 # PORTME Fill in your ld.so characteristics
5335 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5336 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5338 libname_spec
='lib$name'
5345 shlibpath_overrides_runpath
=unknown
5347 dynamic_linker
="$host_os ld.so"
5348 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
5349 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
5354 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
5355 shlibpath_var
=LIBPATH
5357 # AIX has no versioning support, so we append a major version to the name.
5358 soname_spec
='${libname}${release}.so$major'
5363 if test "$host_cpu" = ia64
; then
5364 # AIX 5 supports IA64
5365 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5366 shlibpath_var
=LD_LIBRARY_PATH
5368 # With GCC up to 2.95.x, collect2 would create an import file
5369 # for dependence libraries. The import file would start with
5370 # the line `#! .'. This would cause the generated library to
5371 # depend on `.', always an invalid library. This was fixed in
5372 # development snapshots of GCC prior to 3.0.
5374 aix4 | aix4.
[01] | aix4.
[01].
*)
5375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5377 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
5384 # AIX (on Power*) has no versioning support, so currently we can
5385 # not hardcode correct soname into executable. Probably we can
5386 # add versioning support to collect2, so additional links can
5387 # be useful in future.
5388 if test "$aix_use_runtimelinking" = yes; then
5389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5390 # instead of lib<name>.a to let people know that these are not
5391 # typical AIX shared libraries.
5392 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5394 # We preserve .a as extension for shared libraries through AIX4.2
5395 # and later when we are not doing run time linking.
5396 library_names_spec
='${libname}${release}.a $libname.a'
5397 soname_spec
='${libname}${release}.so$major'
5399 shlibpath_var
=LIBPATH
5404 library_names_spec
='$libname.ixlibrary $libname.a'
5405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5406 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'
5410 library_names_spec
='${libname}.so'
5411 dynamic_linker
="$host_os ld.so"
5412 shlibpath_var
=LIBRARY_PATH
5418 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5419 soname_spec
='${libname}${release}.so$major'
5420 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
5421 shlibpath_var
=LD_LIBRARY_PATH
5422 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5423 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
5424 export_dynamic_flag_spec
=-rdynamic
5425 # the default ld.so.conf also contains /usr/contrib/lib and
5426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5427 # libtool to hard-code these into programs
5430 cygwin
* | mingw
* | pw32
*)
5431 version_type
=windows
5434 case $GCC,$host_os in
5436 library_names_spec
='$libname.dll.a'
5437 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5438 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5439 dldir=$destdir/`dirname \$dlpath`~
5440 test -d \$dldir || mkdir -p \$dldir~
5441 $install_prog .libs/$dlname \$dldir/$dlname'
5442 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5443 dlpath=$dir/\$dldll~
5447 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5448 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5451 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5454 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5457 dynamic_linker
='Win32 ld.exe'
5458 # FIXME: first we should search . and the directory the executable is in
5462 darwin
* | rhapsody
*)
5463 dynamic_linker
="$host_os dyld"
5467 # FIXME: Relying on posixy $() will cause problems for
5468 # cross-compilation, but unfortunately the echo tests do not
5469 # yet detect zsh echo's removal of \ escapes.
5470 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)'
5471 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5472 shlibpath_overrides_runpath
=yes
5473 shlibpath_var
=DYLD_LIBRARY_PATH
5481 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5482 version_type
=freebsd-
$objformat
5483 case $version_type in
5485 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5490 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
5494 shlibpath_var
=LD_LIBRARY_PATH
5497 shlibpath_overrides_runpath
=yes
5500 shlibpath_overrides_runpath
=no
5501 hardcode_into_libs
=yes
5510 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5511 soname_spec
='${libname}${release}.so$major'
5512 shlibpath_var
=LD_LIBRARY_PATH
5513 hardcode_into_libs
=yes
5516 hpux9
* | hpux10
* | hpux11
*)
5517 # Give a soname corresponding to the major version so that dld.sl refuses to
5518 # link against other versions.
5519 dynamic_linker
="$host_os dld.sl"
5523 shlibpath_var
=SHLIB_PATH
5524 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
5525 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5526 soname_spec
='${libname}${release}.sl$major'
5527 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5528 postinstall_cmds
='chmod 555 $lib'
5535 soname_spec
='${libname}${release}.so$major'
5536 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5542 case $LD in # libtool.m4 will add one of these switches to LD
5543 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
5544 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
5545 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
5546 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
5550 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
5551 shlibpath_overrides_runpath
=no
5552 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5553 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
5556 # No shared lib support for Linux oldld, aout, or coff.
5557 linux-gnuoldld
* | linux-gnuaout
* | linux-gnucoff
*)
5561 # This must be Linux ELF.
5566 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5567 soname_spec
='${libname}${release}.so$major'
5568 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5569 shlibpath_var
=LD_LIBRARY_PATH
5570 shlibpath_overrides_runpath
=no
5571 # This implies no fast_install, which is unacceptable.
5572 # Some rework will be needed to allow for fast_install
5573 # before this can be enabled.
5574 hardcode_into_libs
=yes
5576 # We used to test for /lib/ld.so.1 and disable shared libraries on
5577 # powerpc, because MkLinux only supported shared libraries with the
5578 # GNU dynamic linker. Since this was broken with cross compilers,
5579 # most powerpc-linux boxes support dynamic linking these days and
5580 # people can always --disable-shared, the test was removed, and we
5581 # assume the GNU/Linux dynamic linker is in use.
5582 dynamic_linker
='GNU/Linux ld.so'
5589 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
5590 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5591 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5592 dynamic_linker
='NetBSD (a.out) ld.so'
5594 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5595 soname_spec
='${libname}${release}.so$major'
5596 dynamic_linker
='NetBSD ld.elf_so'
5598 shlibpath_var
=LD_LIBRARY_PATH
5599 shlibpath_overrides_runpath
=yes
5600 hardcode_into_libs
=yes
5605 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5606 shlibpath_var
=LD_LIBRARY_PATH
5607 shlibpath_overrides_runpath
=yes
5614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5616 openbsd2.
[89] | openbsd2.
[89].
*)
5617 shlibpath_overrides_runpath
=no
5620 shlibpath_overrides_runpath
=yes
5624 shlibpath_overrides_runpath
=yes
5626 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5627 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5628 shlibpath_var
=LD_LIBRARY_PATH
5632 libname_spec
='$name'
5634 library_names_spec
='$libname.dll $libname.a'
5635 dynamic_linker
='OS/2 ld.exe'
5636 shlibpath_var
=LIBPATH
5639 osf3
* | osf4
* | osf5
*)
5642 soname_spec
='${libname}${release}.so'
5643 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5644 shlibpath_var
=LD_LIBRARY_PATH
5645 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5646 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
5651 soname_spec
='${libname}${release}.so$major'
5652 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5653 shlibpath_var
=LD_LIBRARY_PATH
5660 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5661 soname_spec
='${libname}${release}.so$major'
5662 shlibpath_var
=LD_LIBRARY_PATH
5663 shlibpath_overrides_runpath
=yes
5664 hardcode_into_libs
=yes
5665 # ldd complains unless libraries are executable
5666 postinstall_cmds
='chmod +x $lib'
5671 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5672 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5673 shlibpath_var
=LD_LIBRARY_PATH
5674 shlibpath_overrides_runpath
=yes
5675 if test "$with_gnu_ld" = yes; then
5681 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5683 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5684 soname_spec
='${libname}${release}.so$major'
5685 shlibpath_var
=LD_LIBRARY_PATH
5686 case $host_vendor in
5688 shlibpath_overrides_runpath
=no
5693 shlibpath_overrides_runpath
=no
5694 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
5701 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5702 soname_spec
='${libname}${release}.so$major'
5703 shlibpath_var
=LD_LIBRARY_PATH
5710 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5711 soname_spec
='${libname}${release}.so$major'
5712 shlibpath_var
=LD_LIBRARY_PATH
5716 if test -d /usr
/nec
;then
5718 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
5719 soname_spec
='$libname.so.$major'
5720 shlibpath_var
=LD_LIBRARY_PATH
5728 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5729 echo "${ECHO_T}$dynamic_linker" >&6
5730 test "$dynamic_linker" = no
&& can_build_shared
=no
5734 ## FIXME: this should be a separate macro
5736 # Report the final consequences.
5737 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5738 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5739 echo "$as_me:$LINENO: result: $can_build_shared" >&5
5740 echo "${ECHO_T}$can_build_shared" >&6
5744 ## FIXME: this should be a separate macro
5746 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5747 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5748 test "$can_build_shared" = "no" && enable_shared
=no
5750 # On AIX, shared libraries and static libraries use the same namespace, and
5751 # are all built from PIC.
5754 test "$enable_shared" = yes && enable_static
=no
5755 if test -n "$RANLIB"; then
5756 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
5757 postinstall_cmds
='$RANLIB $lib'
5762 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
5763 test "$enable_shared" = yes && enable_static
=no
5767 echo "$as_me:$LINENO: result: $enable_shared" >&5
5768 echo "${ECHO_T}$enable_shared" >&6
5772 ## FIXME: this should be a separate macro
5774 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5775 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5776 # Make sure either enable_shared or enable_static is yes.
5777 test "$enable_shared" = yes || enable_static
=yes
5778 echo "$as_me:$LINENO: result: $enable_static" >&5
5779 echo "${ECHO_T}$enable_static" >&6
5783 if test "$hardcode_action" = relink
; then
5784 # Fast installation is not supported
5785 enable_fast_install
=no
5786 elif test "$shlibpath_overrides_runpath" = yes ||
5787 test "$enable_shared" = no
; then
5788 # Fast installation is not necessary
5789 enable_fast_install
=needless
5792 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
5793 if test "$GCC" = yes; then
5794 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5797 if test "x$enable_dlopen" != xyes
; then
5798 enable_dlopen
=unknown
5799 enable_dlopen_self
=unknown
5800 enable_dlopen_self_static
=unknown
5807 lt_cv_dlopen
="load_add_on"
5809 lt_cv_dlopen_self
=yes
5812 cygwin
* | mingw
* | pw32
*)
5813 lt_cv_dlopen
="LoadLibrary"
5818 echo "$as_me:$LINENO: checking for shl_load" >&5
5819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5820 if test "${ac_cv_func_shl_load+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5825 #include "confdefs.h"
5826 /* System header to define __stub macros and hopefully few prototypes,
5827 which can conflict with char shl_load (); below. */
5829 /* Override any gcc2 internal prototype to avoid an error. */
5833 /* We use char because int might match the return type of a gcc2
5834 builtin and then its argument prototype would still apply. */
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5860 rm -f conftest.
$ac_objext conftest
$ac_exeext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862 (eval $ac_link) 2>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try
='test -s conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_func_shl_load
=yes
5874 echo "$as_me: failed program was:" >&5
5875 cat conftest.
$ac_ext >&5
5876 ac_cv_func_shl_load
=no
5878 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5880 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5881 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5882 if test $ac_cv_func_shl_load = yes; then
5883 lt_cv_dlopen
="shl_load"
5885 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_check_lib_save_LIBS
=$LIBS
5892 cat >conftest.
$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 #include "confdefs.h"
5896 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5903 #ifdef F77_DUMMY_MAIN
5907 int F77_DUMMY_MAIN() { return 1; }
5917 rm -f conftest.
$ac_objext conftest
$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try
='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_lib_dld_shl_load
=yes
5931 echo "$as_me: failed program was:" >&5
5932 cat conftest.
$ac_ext >&5
5933 ac_cv_lib_dld_shl_load
=no
5935 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5936 LIBS
=$ac_check_lib_save_LIBS
5938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5940 if test $ac_cv_lib_dld_shl_load = yes; then
5941 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
5943 echo "$as_me:$LINENO: checking for dlopen" >&5
5944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5945 if test "${ac_cv_func_dlopen+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 cat >conftest.
$ac_ext <<_ACEOF
5949 #line $LINENO "configure"
5950 #include "confdefs.h"
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char dlopen (); below. */
5954 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5963 #ifdef F77_DUMMY_MAIN
5967 int F77_DUMMY_MAIN() { return 1; }
5972 /* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5985 rm -f conftest.
$ac_objext conftest
$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try
='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_cv_func_dlopen
=yes
5999 echo "$as_me: failed program was:" >&5
6000 cat conftest.
$ac_ext >&5
6001 ac_cv_func_dlopen
=no
6003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6005 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6007 if test $ac_cv_func_dlopen = yes; then
6008 lt_cv_dlopen
="dlopen"
6010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_check_lib_save_LIBS
=$LIBS
6017 cat >conftest.
$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6019 #include "confdefs.h"
6021 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6028 #ifdef F77_DUMMY_MAIN
6032 int F77_DUMMY_MAIN() { return 1; }
6042 rm -f conftest.
$ac_objext conftest
$ac_exeext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try
='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_lib_dl_dlopen
=yes
6056 echo "$as_me: failed program was:" >&5
6057 cat conftest.
$ac_ext >&5
6058 ac_cv_lib_dl_dlopen
=no
6060 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6061 LIBS
=$ac_check_lib_save_LIBS
6063 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6065 if test $ac_cv_lib_dl_dlopen = yes; then
6066 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
6068 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6069 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6070 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_check_lib_save_LIBS
=$LIBS
6075 cat >conftest.
$ac_ext <<_ACEOF
6076 #line $LINENO "configure"
6077 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6086 #ifdef F77_DUMMY_MAIN
6090 int F77_DUMMY_MAIN() { return 1; }
6100 rm -f conftest.
$ac_objext conftest
$ac_exeext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102 (eval $ac_link) 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try
='test -s conftest$ac_exeext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_lib_svld_dlopen
=yes
6114 echo "$as_me: failed program was:" >&5
6115 cat conftest.
$ac_ext >&5
6116 ac_cv_lib_svld_dlopen
=no
6118 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6119 LIBS
=$ac_check_lib_save_LIBS
6121 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6123 if test $ac_cv_lib_svld_dlopen = yes; then
6124 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
6126 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6127 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6128 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 ac_check_lib_save_LIBS
=$LIBS
6133 cat >conftest.
$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6135 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6144 #ifdef F77_DUMMY_MAIN
6148 int F77_DUMMY_MAIN() { return 1; }
6158 rm -f conftest.
$ac_objext conftest
$ac_exeext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160 (eval $ac_link) 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try
='test -s conftest$ac_exeext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_lib_dld_dld_link
=yes
6172 echo "$as_me: failed program was:" >&5
6173 cat conftest.
$ac_ext >&5
6174 ac_cv_lib_dld_dld_link
=no
6176 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6177 LIBS
=$ac_check_lib_save_LIBS
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6180 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6181 if test $ac_cv_lib_dld_dld_link = yes; then
6182 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
6203 if test "x$lt_cv_dlopen" != xno
; then
6209 case $lt_cv_dlopen in
6211 save_CPPFLAGS
="$CPPFLAGS"
6212 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
6214 save_LDFLAGS
="$LDFLAGS"
6215 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
6218 LIBS
="$lt_cv_dlopen_libs $LIBS"
6220 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6221 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6222 if test "${lt_cv_dlopen_self+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 if test "$cross_compiling" = yes; then :
6226 lt_cv_dlopen_self
=cross
6228 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
6229 lt_status
=$lt_dlunknown
6230 cat > conftest.
$ac_ext <<EOF
6231 #line 6231 "configure"
6232 #include "confdefs.h"
6241 # define LT_DLGLOBAL RTLD_GLOBAL
6244 # define LT_DLGLOBAL DL_GLOBAL
6246 # define LT_DLGLOBAL 0
6250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6251 find out it does not work in some platform. */
6252 #ifndef LT_DLLAZY_OR_NOW
6254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6257 # define LT_DLLAZY_OR_NOW DL_LAZY
6260 # define LT_DLLAZY_OR_NOW RTLD_NOW
6263 # define LT_DLLAZY_OR_NOW DL_NOW
6265 # define LT_DLLAZY_OR_NOW 0
6273 extern "C" void exit (int);
6276 void fnord() { int i=42;}
6279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6280 int status = $lt_dlunknown;
6284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6286 /* dlclose (self); */
6292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
6297 (.
/conftest
; exit; ) 2>/dev
/null
6300 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
6301 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
6302 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
6305 # compilation failed
6306 lt_cv_dlopen_self
=no
6313 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6314 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6316 if test "x$lt_cv_dlopen_self" = xyes
; then
6317 LDFLAGS
="$LDFLAGS $link_static_flag"
6318 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6319 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6320 if test "${lt_cv_dlopen_self_static+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 if test "$cross_compiling" = yes; then :
6324 lt_cv_dlopen_self_static
=cross
6326 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
6327 lt_status
=$lt_dlunknown
6328 cat > conftest.
$ac_ext <<EOF
6329 #line 6329 "configure"
6330 #include "confdefs.h"
6339 # define LT_DLGLOBAL RTLD_GLOBAL
6342 # define LT_DLGLOBAL DL_GLOBAL
6344 # define LT_DLGLOBAL 0
6348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6349 find out it does not work in some platform. */
6350 #ifndef LT_DLLAZY_OR_NOW
6352 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6355 # define LT_DLLAZY_OR_NOW DL_LAZY
6358 # define LT_DLLAZY_OR_NOW RTLD_NOW
6361 # define LT_DLLAZY_OR_NOW DL_NOW
6363 # define LT_DLLAZY_OR_NOW 0
6371 extern "C" void exit (int);
6374 void fnord() { int i=42;}
6377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6378 int status = $lt_dlunknown;
6382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6384 /* dlclose (self); */
6390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391 (eval $ac_link) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
6395 (.
/conftest
; exit; ) 2>/dev
/null
6398 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
6399 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
6400 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
6403 # compilation failed
6404 lt_cv_dlopen_self_static
=no
6411 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6412 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6415 CPPFLAGS
="$save_CPPFLAGS"
6416 LDFLAGS
="$save_LDFLAGS"
6421 case $lt_cv_dlopen_self in
6422 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
6423 *) enable_dlopen_self
=unknown
;;
6426 case $lt_cv_dlopen_self_static in
6427 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
6428 *) enable_dlopen_self_static
=unknown
;;
6433 ## FIXME: this should be a separate macro
6435 if test "$enable_shared" = yes && test "$GCC" = yes; then
6436 case $archive_cmds in
6438 # FIXME: we may have to deal with multi-command sequences.
6441 # Test whether the compiler implicitly links with -lc since on some
6442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6443 # to ld, don't add -lc before -lgcc.
6444 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6445 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6446 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 echo 'static int dummy;' > conftest.
$ac_ext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453 (eval $ac_compile) 2>&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; then
6459 libobjs
=conftest.
$ac_objext
6461 wl
=$lt_cv_prog_cc_wl
6467 save_allow_undefined_flag
=$allow_undefined_flag
6468 allow_undefined_flag
=
6469 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6470 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6475 lt_cv_archive_cmds_need_lc
=no
6477 lt_cv_archive_cmds_need_lc
=yes
6479 allow_undefined_flag
=$save_allow_undefined_flag
6481 cat conftest.err
1>&5
6485 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6486 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6490 need_lc
=${lt_cv_archive_cmds_need_lc-yes}
6494 ## FIXME: this should be a separate macro
6496 # The second clause should only fire when bootstrapping the
6497 # libtool distribution, otherwise you forgot to ship ltmain.sh
6498 # with your package, and you will get complaints that there are
6499 # no rules to generate ltmain.sh.
6500 if test -f "$ltmain"; then
6503 # If there is no Makefile yet, we rely on a make rule to execute
6504 # `config.status --recheck' to rerun these tests and create the
6505 # libtool script then.
6506 test -f Makefile
&& make "$ltmain"
6509 if test -f "$ltmain"; then
6510 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6513 echo creating
$ofile
6515 # Now quote all the things that may contain metacharacters while being
6516 # careful not to overquote the AC_SUBSTed values. We take copies of the
6517 # variables and quote the copies for generation of the libtool script.
6518 for var
in echo old_CC old_CFLAGS \
6519 AR AR_FLAGS CC LD LN_S NM SHELL \
6520 reload_flag reload_cmds wl \
6521 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6522 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6523 library_names_spec soname_spec \
6524 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6525 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6526 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6527 old_striplib striplib file_magic_cmd export_symbols_cmds \
6528 deplibs_check_method allow_undefined_flag no_undefined_flag \
6529 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6530 global_symbol_to_c_name_address \
6531 hardcode_libdir_flag_spec hardcode_libdir_separator \
6532 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6533 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms
; do
6536 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6537 old_postinstall_cmds | old_postuninstall_cmds | \
6538 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6539 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6540 postinstall_cmds | postuninstall_cmds | \
6541 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
6542 # Double-quote double-evaled strings.
6543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6551 cat <<__EOF__ > "${ofile}T"
6554 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6555 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6556 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6558 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6559 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6561 # This program is free software; you can redistribute it and/or modify
6562 # it under the terms of the GNU General Public License as published by
6563 # the Free Software Foundation; either version 2 of the License, or
6564 # (at your option) any later version.
6566 # This program is distributed in the hope that it will be useful, but
6567 # WITHOUT ANY WARRANTY; without even the implied warranty of
6568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6569 # General Public License for more details.
6571 # You should have received a copy of the GNU General Public License
6572 # along with this program; if not, write to the Free Software
6573 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6575 # As a special exception to the GNU General Public License, if you
6576 # distribute this file as part of a program that contains a
6577 # configuration script generated by Autoconf, you may include it under
6578 # the same distribution terms that you use for the rest of that program.
6580 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6581 Xsed="sed -e s/^X//"
6583 # The HP-UX ksh and POSIX shell print the target directory to stdout
6585 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6587 # ### BEGIN LIBTOOL CONFIG
6589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6591 # Shell to use when invoking shell scripts.
6594 # Whether or not to build shared libraries.
6595 build_libtool_libs=$enable_shared
6597 # Whether or not to build static libraries.
6598 build_old_libs=$enable_static
6600 # Whether or not to add -lc for building shared libraries.
6601 build_libtool_need_lc=$need_lc
6603 # Whether or not to optimize for fast installation.
6604 fast_install=$enable_fast_install
6607 host_alias=$host_alias
6610 # An echo program that does not interpret backslashes.
6615 AR_FLAGS=$lt_AR_FLAGS
6617 # The default C compiler.
6620 # Is the compiler the GNU C compiler?
6623 # The linker used to build libraries.
6626 # Whether we need hard or soft links.
6629 # A BSD-compatible nm program.
6632 # A symbol stripping program
6635 # Used to examine libraries when file_magic_cmd begins "file"
6636 MAGIC_CMD=$MAGIC_CMD
6638 # Used on cygwin: DLL creation program.
6641 # Used on cygwin: object dumper.
6644 # Used on cygwin: assembler.
6647 # The name of the directory that contains temporary libtool files.
6650 # How to create reloadable object files.
6651 reload_flag=$lt_reload_flag
6652 reload_cmds=$lt_reload_cmds
6654 # How to pass a linker flag through the compiler.
6657 # Object file suffix (normally "o").
6660 # Old archive suffix (normally "a").
6663 # Executable file suffix (normally "").
6666 # Additional compiler flags for building library objects.
6667 pic_flag=$lt_pic_flag
6670 # Does compiler simultaneously support -c and -o options?
6671 compiler_c_o=$lt_compiler_c_o
6673 # Can we write directly to a .lo ?
6674 compiler_o_lo=$lt_compiler_o_lo
6676 # Must we lock files when doing compilation ?
6677 need_locks=$lt_need_locks
6679 # Do we need the lib prefix for modules?
6680 need_lib_prefix=$need_lib_prefix
6682 # Do we need a version for libraries?
6683 need_version=$need_version
6685 # Whether dlopen is supported.
6686 dlopen_support=$enable_dlopen
6688 # Whether dlopen of programs is supported.
6689 dlopen_self=$enable_dlopen_self
6691 # Whether dlopen of statically linked programs is supported.
6692 dlopen_self_static=$enable_dlopen_self_static
6694 # Compiler flag to prevent dynamic linking.
6695 link_static_flag=$lt_link_static_flag
6697 # Compiler flag to turn off builtin functions.
6698 no_builtin_flag=$lt_no_builtin_flag
6700 # Compiler flag to allow reflexive dlopens.
6701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6703 # Compiler flag to generate shared objects directly from archives.
6704 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6706 # Compiler flag to generate thread-safe objects.
6707 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6709 # Library versioning type.
6710 version_type=$version_type
6712 # Format of library name prefix.
6713 libname_spec=$lt_libname_spec
6715 # List of archive names. First name is the real one, the rest are links.
6716 # The last name is the one that the linker finds with -lNAME.
6717 library_names_spec=$lt_library_names_spec
6719 # The coded name of the library, if different from the real name.
6720 soname_spec=$lt_soname_spec
6722 # Commands used to build and install an old-style archive.
6724 old_archive_cmds=$lt_old_archive_cmds
6725 old_postinstall_cmds=$lt_old_postinstall_cmds
6726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6728 # Create an old-style archive from a shared archive.
6729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6731 # Create a temporary old-style archive to link instead of a shared archive.
6732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6734 # Commands used to build and install a shared archive.
6735 archive_cmds=$lt_archive_cmds
6736 archive_expsym_cmds=$lt_archive_expsym_cmds
6737 postinstall_cmds=$lt_postinstall_cmds
6738 postuninstall_cmds=$lt_postuninstall_cmds
6740 # Commands to strip libraries.
6741 old_striplib=$lt_old_striplib
6742 striplib=$lt_striplib
6744 # Method to check whether dependent libraries are shared objects.
6745 deplibs_check_method=$lt_deplibs_check_method
6747 # Command to use when deplibs_check_method == file_magic.
6748 file_magic_cmd=$lt_file_magic_cmd
6750 # Flag that allows shared libraries with undefined symbols to be built.
6751 allow_undefined_flag=$lt_allow_undefined_flag
6753 # Flag that forces no undefined symbols.
6754 no_undefined_flag=$lt_no_undefined_flag
6756 # Commands used to finish a libtool library installation in a directory.
6757 finish_cmds=$lt_finish_cmds
6759 # Same as above, but a single script fragment to be evaled but not shown.
6760 finish_eval=$lt_finish_eval
6762 # Take the output of nm and produce a listing of raw symbols and C names.
6763 global_symbol_pipe=$lt_global_symbol_pipe
6765 # Transform the output of nm in a proper C declaration
6766 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6768 # Transform the output of nm in a C name address pair
6769 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6771 # This is the shared library runtime path variable.
6772 runpath_var=$runpath_var
6774 # This is the shared library path variable.
6775 shlibpath_var=$shlibpath_var
6777 # Is shlibpath searched before the hard-coded library search path?
6778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6780 # How to hardcode a shared library path into an executable.
6781 hardcode_action=$hardcode_action
6783 # Whether we should hardcode library paths into libraries.
6784 hardcode_into_libs=$hardcode_into_libs
6786 # Flag to hardcode \$libdir into a binary during linking.
6787 # This must work even if \$libdir does not exist.
6788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6790 # Whether we need a single -rpath flag with a separated argument.
6791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6793 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6795 hardcode_direct=$hardcode_direct
6797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6799 hardcode_minus_L=$hardcode_minus_L
6801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6802 # the resulting binary.
6803 hardcode_shlibpath_var=$hardcode_shlibpath_var
6805 # Variables whose values should be saved in libtool wrapper scripts and
6806 # restored at relink time.
6807 variables_saved_for_relink="$variables_saved_for_relink"
6809 # Whether libtool must link a program against all its dependency libraries.
6810 link_all_deplibs=$link_all_deplibs
6812 # Compile-time system search path for libraries
6813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6815 # Run-time system search path for libraries
6816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6818 # Fix the shell variable \$srcfile for the compiler.
6819 fix_srcfile_path="$fix_srcfile_path"
6821 # Set to yes if exported symbols are required.
6822 always_export_symbols=$always_export_symbols
6824 # The commands to list exported symbols.
6825 export_symbols_cmds=$lt_export_symbols_cmds
6827 # The commands to extract the exported symbol list from a shared archive.
6828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6830 # Symbols that should not be listed in the preloaded symbols.
6831 exclude_expsyms=$lt_exclude_expsyms
6833 # Symbols that must always be exported.
6834 include_expsyms=$lt_include_expsyms
6836 # ### END LIBTOOL CONFIG
6842 cat <<\EOF
>> "${ofile}T"
6844 # AIX sometimes has problems with the GCC collect2 program. For some
6845 # reason, if we set the COLLECT_NAMES environment variable, the problems
6846 # vanish in a puff of smoke.
6847 if test "X${COLLECT_NAMES+set}" != Xset
; then
6849 export COLLECT_NAMES
6856 cygwin
* | mingw
* | pw32
* | os2
*)
6857 cat <<'EOF' >> "${ofile}T"
6858 # This is a source program that is used to create dlls on Windows
6859 # Don't remove nor modify the starting and closing comments
6860 # /* ltdll.c starts here */
6861 # #define WIN32_LEAN_AND_MEAN
6862 # #include <windows.h>
6863 # #undef WIN32_LEAN_AND_MEAN
6864 # #include <stdio.h>
6866 # #ifndef __CYGWIN__
6867 # # ifdef __CYGWIN32__
6868 # # define __CYGWIN__ __CYGWIN32__
6872 # #ifdef __cplusplus
6875 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6876 # #ifdef __cplusplus
6881 # #include <cygwin/cygwin_dll.h>
6882 # DECLARE_CYGWIN_DLL( DllMain );
6884 # HINSTANCE __hDllInstance_base;
6887 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6889 # __hDllInstance_base = hInst;
6892 # /* ltdll.c ends here */
6893 # This is a source program that is used to create import libraries
6894 # on Windows for dlls which lack them. Don't remove nor modify the
6895 # starting and closing comments
6896 # /* impgen.c starts here */
6897 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6899 # This file is part of GNU libtool.
6901 # This program is free software; you can redistribute it and/or modify
6902 # it under the terms of the GNU General Public License as published by
6903 # the Free Software Foundation; either version 2 of the License, or
6904 # (at your option) any later version.
6906 # This program is distributed in the hope that it will be useful,
6907 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6908 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6909 # GNU General Public License for more details.
6911 # You should have received a copy of the GNU General Public License
6912 # along with this program; if not, write to the Free Software
6913 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6916 # #include <stdio.h> /* for printf() */
6917 # #include <unistd.h> /* for open(), lseek(), read() */
6918 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6919 # #include <string.h> /* for strdup() */
6921 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6923 # #define O_BINARY 0
6926 # static unsigned int
6927 # pe_get16 (fd, offset)
6931 # unsigned char b[2];
6932 # lseek (fd, offset, SEEK_SET);
6934 # return b[0] + (b[1]<<8);
6937 # static unsigned int
6938 # pe_get32 (fd, offset)
6942 # unsigned char b[4];
6943 # lseek (fd, offset, SEEK_SET);
6945 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6948 # static unsigned int
6952 # unsigned char *b = ptr;
6953 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6962 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6963 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6964 # unsigned long name_rvas, nexp;
6965 # unsigned char *expdata, *erva;
6966 # char *filename, *dll_name;
6968 # filename = argv[1];
6970 # dll = open(filename, O_RDONLY|O_BINARY);
6974 # dll_name = filename;
6976 # for (i=0; filename[i]; i++)
6977 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6978 # dll_name = filename + i +1;
6980 # pe_header_offset = pe_get32 (dll, 0x3c);
6981 # opthdr_ofs = pe_header_offset + 4 + 20;
6982 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6984 # if (num_entries < 1) /* no exports */
6987 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6988 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6989 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6990 # secptr = (pe_header_offset + 4 + 20 +
6991 # pe_get16 (dll, pe_header_offset + 4 + 16));
6994 # for (i = 0; i < nsections; i++)
6997 # unsigned long secptr1 = secptr + 40 * i;
6998 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6999 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7000 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7001 # lseek(dll, secptr1, SEEK_SET);
7002 # read(dll, sname, 8);
7003 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7005 # expptr = fptr + (export_rva - vaddr);
7006 # if (export_rva + export_size > vaddr + vsize)
7007 # export_size = vsize - (export_rva - vaddr);
7012 # expdata = (unsigned char*)malloc(export_size);
7013 # lseek (dll, expptr, SEEK_SET);
7014 # read (dll, expdata, export_size);
7015 # erva = expdata - export_rva;
7017 # nexp = pe_as32 (expdata+24);
7018 # name_rvas = pe_as32 (expdata+32);
7020 # printf ("EXPORTS\n");
7021 # for (i = 0; i<nexp; i++)
7023 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7024 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7029 # /* impgen.c ends here */
7035 # We use sed instead of cat because bash on DJGPP gets confused if
7036 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7037 # text mode, it properly converts lines to CR/LF. This bash problem
7038 # is reportedly fixed, but why not run on old versions too?
7039 sed '$q' "$ltmain" >> "${ofile}T" ||
(rm -f "${ofile}T"; exit 1)
7041 mv -f "${ofile}T" "$ofile" || \
7042 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7052 # This can be used to rebuild libtool when needed
7053 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
7055 # Always use our own libtool.
7056 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7058 # Prevent multiple expansion
7067 ac_cpp
='$CPP $CPPFLAGS'
7068 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7073 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
7074 echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7076 if test "${ac_cv_prog_CC+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 if test -n "$CC"; then
7080 ac_cv_prog_CC
="$CC" # Let the user override the test.
7082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir
=.
7087 for ac_exec_ext
in '' $ac_executable_extensions; do
7088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 if test -n "$CC"; then
7100 echo "$as_me:$LINENO: result: $CC" >&5
7101 echo "${ECHO_T}$CC" >&6
7103 echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6
7108 if test -z "$ac_cv_prog_CC"; then
7110 # Extract the first word of "gcc", so it can be a program name with args.
7111 set dummy gcc
; ac_word
=$2
7112 echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 if test -n "$ac_ct_CC"; then
7118 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
7120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir
=.
7125 for ac_exec_ext
in '' $ac_executable_extensions; do
7126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_CC
="gcc"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
7137 if test -n "$ac_ct_CC"; then
7138 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7139 echo "${ECHO_T}$ac_ct_CC" >&6
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7150 if test -z "$CC"; then
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7153 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
7154 echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7156 if test "${ac_cv_prog_CC+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 if test -n "$CC"; then
7160 ac_cv_prog_CC
="$CC" # Let the user override the test.
7162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir
=.
7167 for ac_exec_ext
in '' $ac_executable_extensions; do
7168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_CC
="${ac_tool_prefix}cc"
7170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 if test -n "$CC"; then
7180 echo "$as_me:$LINENO: result: $CC" >&5
7181 echo "${ECHO_T}$CC" >&6
7183 echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7188 if test -z "$ac_cv_prog_CC"; then
7190 # Extract the first word of "cc", so it can be a program name with args.
7191 set dummy cc
; ac_word
=$2
7192 echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 if test -n "$ac_ct_CC"; then
7198 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
7200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir
=.
7205 for ac_exec_ext
in '' $ac_executable_extensions; do
7206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_CC
="cc"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
7217 if test -n "$ac_ct_CC"; then
7218 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7219 echo "${ECHO_T}$ac_ct_CC" >&6
7221 echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7231 if test -z "$CC"; then
7232 # Extract the first word of "cc", so it can be a program name with args.
7233 set dummy cc
; ac_word
=$2
7234 echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7236 if test "${ac_cv_prog_CC+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 if test -n "$CC"; then
7240 ac_cv_prog_CC
="$CC" # Let the user override the test.
7243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir
=.
7248 for ac_exec_ext
in '' $ac_executable_extensions; do
7249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7251 ac_prog_rejected
=yes
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 if test $ac_prog_rejected = yes; then
7262 # We found a bogon in the path, so make sure we never use it.
7263 set dummy
$ac_cv_prog_CC
7265 if test $# != 0; then
7266 # We chose a different compiler from the bogus one.
7267 # However, it has the same basename, so the bogon will be chosen
7268 # first if we set CC to just the basename; use the full file name.
7270 set dummy
"$as_dir/$ac_word" ${1+"$@"}
7278 if test -n "$CC"; then
7279 echo "$as_me:$LINENO: result: $CC" >&5
7280 echo "${ECHO_T}$CC" >&6
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7287 if test -z "$CC"; then
7288 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7292 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_CC+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 if test -n "$CC"; then
7299 ac_cv_prog_CC
="$CC" # Let the user override the test.
7301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir
=.
7306 for ac_exec_ext
in '' $ac_executable_extensions; do
7307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 if test -n "$CC"; then
7319 echo "$as_me:$LINENO: result: $CC" >&5
7320 echo "${ECHO_T}$CC" >&6
7322 echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7326 test -n "$CC" && break
7329 if test -z "$CC"; then
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy
$ac_prog; ac_word
=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 if test -n "$ac_ct_CC"; then
7341 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
7343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir
=.
7348 for ac_exec_ext
in '' $ac_executable_extensions; do
7349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_ac_ct_CC
="$ac_prog"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
7360 if test -n "$ac_ct_CC"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7362 echo "${ECHO_T}$ac_ct_CC" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7368 test -n "$ac_ct_CC" && break
7377 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7378 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7379 { (exit 1); exit 1; }; }
7381 # Provide some information about the compiler.
7382 echo "$as_me:$LINENO:" \
7383 "checking for C compiler version" >&5
7384 ac_compiler
=`set X $ac_compile; echo $2`
7385 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7386 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7391 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }
7395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7396 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }
7401 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 cat >conftest.
$ac_ext <<_ACEOF
7407 #line $LINENO "configure"
7408 #include "confdefs.h"
7410 #ifdef F77_DUMMY_MAIN
7414 int F77_DUMMY_MAIN() { return 1; }
7427 rm -f conftest.
$ac_objext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429 (eval $ac_compile) 2>&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try
='test -s conftest.$ac_objext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7441 echo "$as_me: failed program was:" >&5
7442 cat conftest.
$ac_ext >&5
7445 rm -f conftest.
$ac_objext conftest.
$ac_ext
7446 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
7449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7451 GCC
=`test $ac_compiler_gnu = yes && echo yes`
7452 ac_test_CFLAGS
=${CFLAGS+set}
7453 ac_save_CFLAGS
=$CFLAGS
7455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7457 if test "${ac_cv_prog_cc_g+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 cat >conftest.
$ac_ext <<_ACEOF
7461 #line $LINENO "configure"
7462 #include "confdefs.h"
7464 #ifdef F77_DUMMY_MAIN
7468 int F77_DUMMY_MAIN() { return 1; }
7478 rm -f conftest.
$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7496 rm -f conftest.
$ac_objext conftest.
$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7500 if test "$ac_test_CFLAGS" = set; then
7501 CFLAGS
=$ac_save_CFLAGS
7502 elif test $ac_cv_prog_cc_g = yes; then
7503 if test "$GCC" = yes; then
7509 if test "$GCC" = yes; then
7515 # Some people use a C++ compiler to compile C. Since we use `exit',
7516 # in C++ we need to declare it. In case someone uses the same compiler
7517 # for both compiling C and C++ we need to have the C++ compiler decide
7518 # the declaration of exit, since it's the most demanding environment.
7519 cat >conftest.
$ac_ext <<_ACEOF
7524 rm -f conftest.
$ac_objext
7525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try
='test -s conftest.$ac_objext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 for ac_declaration
in \
7538 '#include <stdlib.h>' \
7539 'extern "C" void std::exit (int) throw (); using std::exit;' \
7540 'extern "C" void std::exit (int); using std::exit;' \
7541 'extern "C" void exit (int) throw ();' \
7542 'extern "C" void exit (int);' \
7545 cat >conftest.
$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7547 #include "confdefs.h"
7550 #ifdef F77_DUMMY_MAIN
7554 int F77_DUMMY_MAIN() { return 1; }
7564 rm -f conftest.
$ac_objext
7565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7566 (eval $ac_compile) 2>&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try
='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.
$ac_ext >&5
7582 rm -f conftest.
$ac_objext conftest.
$ac_ext
7583 cat >conftest.
$ac_ext <<_ACEOF
7584 #line $LINENO "configure"
7585 #include "confdefs.h"
7587 #ifdef F77_DUMMY_MAIN
7591 int F77_DUMMY_MAIN() { return 1; }
7601 rm -f conftest.
$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } &&
7607 { ac_try
='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7615 echo "$as_me: failed program was:" >&5
7616 cat conftest.
$ac_ext >&5
7618 rm -f conftest.
$ac_objext conftest.
$ac_ext
7621 if test -n "$ac_declaration"; then
7622 echo '#ifdef __cplusplus' >>confdefs.h
7623 echo $ac_declaration >>confdefs.h
7624 echo '#endif' >>confdefs.h
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.
$ac_ext >&5
7631 rm -f conftest.
$ac_objext conftest.
$ac_ext
7633 ac_cpp
='$CPP $CPPFLAGS'
7634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7638 # Find a good install program. We prefer a C program (faster),
7639 # so one script is as good as another. But avoid the broken or
7640 # incompatible versions:
7641 # SysV /etc/install, /usr/sbin/install
7642 # SunOS /usr/etc/install
7643 # IRIX /sbin/install
7645 # AmigaOS /C/install, which installs bootblocks on floppy discs
7646 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7647 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7648 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7649 # ./install, which can be erroneously created by make from ./install.sh.
7650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7652 if test -z "$INSTALL"; then
7653 if test "${ac_cv_path_install+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir
=.
7661 # Account for people who put trailing slashes in PATH elements.
7663 .
/ | .
// |
/cC
/* | \
7664 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7667 # OSF1 and SCO ODT 3.0 have their own names for install.
7668 # Don't use installbsd from OSF since it installs stuff as root
7670 for ac_prog
in ginstall scoinst
install; do
7671 for ac_exec_ext
in '' $ac_executable_extensions; do
7672 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7673 if test $ac_prog = install &&
7674 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7675 # AIX install. It has an incompatible calling convention.
7677 elif test $ac_prog = install &&
7678 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7679 # program-specific install script used by HP pwplus--don't use.
7682 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL
=$ac_cv_path_install
7697 # As a last resort, use the slow shell script. We don't cache a
7698 # path for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the path is relative.
7701 INSTALL
=$ac_install_sh
7704 echo "$as_me:$LINENO: result: $INSTALL" >&5
7705 echo "${ECHO_T}$INSTALL" >&6
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7713 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7716 if test "$GCC" = yes ; then
7717 OLDCFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
7718 CFLAGS
="$OLDCFLAGS -fexceptions"
7719 echo "$as_me:$LINENO: checking whether gcc accepts -fexceptions" >&5
7720 echo $ECHO_N "checking whether gcc accepts -fexceptions... $ECHO_C" >&6
7721 cat >conftest.
$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 #include "confdefs.h"
7725 #ifdef F77_DUMMY_MAIN
7729 int F77_DUMMY_MAIN() { return 1; }
7739 rm -f conftest.
$ac_objext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try
='test -s conftest.$ac_objext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 echo "$as_me:$LINENO: result: yes" >&5
7752 echo "${ECHO_T}yes" >&6
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.
$ac_ext >&5
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; CFLAGS
="$OLDCFLAGS"
7759 rm -f conftest.
$ac_objext conftest.
$ac_ext
7762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7764 if test "${ac_cv_header_stdc+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.
$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7779 egrep -v '^ *\+' conftest.er1
>conftest.err
7781 cat conftest.err
>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } >/dev
/null
; then
7784 if test -s conftest.err
; then
7785 ac_cpp_err
=$ac_c_preproc_warn_flag
7792 if test -z "$ac_cpp_err"; then
7793 ac_cv_header_stdc
=yes
7795 echo "$as_me: failed program was:" >&5
7796 cat conftest.
$ac_ext >&5
7797 ac_cv_header_stdc
=no
7799 rm -f conftest.err conftest.
$ac_ext
7801 if test $ac_cv_header_stdc = yes; then
7802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7803 cat >conftest.
$ac_ext <<_ACEOF
7804 #line $LINENO "configure"
7805 #include "confdefs.h"
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 egrep "memchr" >/dev
/null
2>&1; then
7813 ac_cv_header_stdc
=no
7819 if test $ac_cv_header_stdc = yes; then
7820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7821 cat >conftest.
$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7823 #include "confdefs.h"
7827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7828 egrep "free" >/dev
/null
2>&1; then
7831 ac_cv_header_stdc
=no
7837 if test $ac_cv_header_stdc = yes; then
7838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7839 if test "$cross_compiling" = yes; then
7842 cat >conftest.
$ac_ext <<_ACEOF
7843 #line $LINENO "configure"
7844 #include "confdefs.h"
7846 #if ((' ' & 0x0FF) == 0x020)
7847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7850 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7851 || ('j' <= (c) && (c) <= 'r') \
7852 || ('s' <= (c) && (c) <= 'z'))
7853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7861 for (i = 0; i < 256; i++)
7862 if (XOR (islower (i), ISLOWER (i))
7863 || toupper (i) != TOUPPER (i))
7868 rm -f conftest
$ac_exeext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7881 echo "$as_me: program exited with status $ac_status" >&5
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.
$ac_ext >&5
7885 ac_cv_header_stdc
=no
7887 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7893 if test $ac_cv_header_stdc = yes; then
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define STDC_HEADERS 1
7903 for ac_header
in fcntl.h unistd.h
7905 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo "$as_me:$LINENO: checking for $ac_header" >&5
7908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915 # Is the header compilable?
7916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7918 cat >conftest.
$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 #include "confdefs.h"
7921 $ac_includes_default
7922 #include <$ac_header>
7924 rm -f conftest.
$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926 (eval $ac_compile) 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try
='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 ac_header_compiler
=yes
7938 echo "$as_me: failed program was:" >&5
7939 cat conftest.
$ac_ext >&5
7940 ac_header_compiler
=no
7942 rm -f conftest.
$ac_objext conftest.
$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7944 echo "${ECHO_T}$ac_header_compiler" >&6
7946 # Is the header present?
7947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7949 cat >conftest.
$ac_ext <<_ACEOF
7950 #line $LINENO "configure"
7951 #include "confdefs.h"
7952 #include <$ac_header>
7954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7957 egrep -v '^ *\+' conftest.er1
>conftest.err
7959 cat conftest.err
>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } >/dev
/null
; then
7962 if test -s conftest.err
; then
7963 ac_cpp_err
=$ac_c_preproc_warn_flag
7970 if test -z "$ac_cpp_err"; then
7971 ac_header_preproc
=yes
7973 echo "$as_me: failed program was:" >&5
7974 cat conftest.
$ac_ext >&5
7975 ac_header_preproc
=no
7977 rm -f conftest.err conftest.
$ac_ext
7978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7979 echo "${ECHO_T}$ac_header_preproc" >&6
7981 # So? What about this header?
7982 case $ac_header_compiler:$ac_header_preproc in
7984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7996 echo "$as_me:$LINENO: checking for $ac_header" >&5
7997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 eval "$as_ac_Header=$ac_header_preproc"
8003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8008 cat >>confdefs.h
<<_ACEOF
8009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8018 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8019 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8020 if test "${ac_cv_c_bigendian+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 ac_cv_c_bigendian
=unknown
8024 # See if sys/param.h defines the BYTE_ORDER macro.
8025 cat >conftest.
$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 #include "confdefs.h"
8028 #include <sys/types.h>
8029 #include <sys/param.h>
8030 #ifdef F77_DUMMY_MAIN
8034 int F77_DUMMY_MAIN() { return 1; }
8040 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8047 rm -f conftest.
$ac_objext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049 (eval $ac_compile) 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try
='test -s conftest.$ac_objext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 # It does; now see whether it defined to BIG_ENDIAN or not.
8060 cat >conftest.
$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063 #include <sys/types.h>
8064 #include <sys/param.h>
8065 #ifdef F77_DUMMY_MAIN
8069 int F77_DUMMY_MAIN() { return 1; }
8075 #if BYTE_ORDER != BIG_ENDIAN
8082 rm -f conftest.
$ac_objext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8084 (eval $ac_compile) 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try
='test -s conftest.$ac_objext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 ac_cv_c_bigendian
=yes
8096 echo "$as_me: failed program was:" >&5
8097 cat conftest.
$ac_ext >&5
8098 ac_cv_c_bigendian
=no
8100 rm -f conftest.
$ac_objext conftest.
$ac_ext
8102 echo "$as_me: failed program was:" >&5
8103 cat conftest.
$ac_ext >&5
8105 rm -f conftest.
$ac_objext conftest.
$ac_ext
8106 if test $ac_cv_c_bigendian = unknown
; then
8107 if test "$cross_compiling" = yes; then
8108 echo $ac_n "cross-compiling... " 2>&6
8110 cat >conftest.
$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 #include "confdefs.h"
8114 /* Are we little or big endian? From Harbison&Steele. */
8118 char c[sizeof (long)];
8121 exit (u.c[sizeof (long) - 1] == 1);
8124 rm -f conftest
$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_c_bigendian
=no
8137 echo "$as_me: program exited with status $ac_status" >&5
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.
$ac_ext >&5
8141 ac_cv_c_bigendian
=yes
8143 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8148 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8149 if test $ac_cv_c_bigendian = unknown
; then
8150 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8151 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8153 cat >conftest.c
<<EOF
8154 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8155 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8156 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8157 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8158 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8159 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8160 int main() { _ascii (); _ebcdic (); return 0; }
8162 if test -f conftest.c
; then
8163 if ${CC-cc} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8164 if test `grep -l BIGenDianSyS conftest.o` ; then
8165 echo $ac_n ' big endian probe OK, ' 1>&6
8166 ac_cv_c_bigendian
=yes
8168 if test `grep -l LiTTleEnDian conftest.o` ; then
8169 echo $ac_n ' little endian probe OK, ' 1>&6
8170 if test $ac_cv_c_bigendian = yes ; then
8171 ac_cv_c_bigendian
=unknown
;
8173 ac_cv_c_bigendian
=no
8176 echo $ac_n 'guessing bigendian ... ' >&6
8179 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8182 if test $ac_cv_c_bigendian = yes; then
8184 cat >>confdefs.h
<<\_ACEOF
8185 #define WORDS_BIGENDIAN 1
8193 cat >>confdefs.h
<<_ACEOF
8194 #define BYTEORDER $BYTEORDER
8197 if test $ac_cv_c_bigendian = unknown
; then
8198 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
8199 echo "$as_me: error: unknown endianess - sorry" >&2;}
8200 { (exit please pre-set ac_cv_c_bigendian
); exit please pre-set ac_cv_c_bigendian
; }; }
8204 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8205 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8206 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 ac_cv_prog_cc_stdc
=no
8211 cat >conftest.
$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8213 #include "confdefs.h"
8216 #include <sys/types.h>
8217 #include <sys/stat.h>
8218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8219 struct buf { int x; };
8220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8221 static char *e (p, i)
8227 static char *f (char * (*g) (char **, int), char **p, ...)
8232 s = g (p, va_arg (v,int));
8236 int test (int i, double x);
8237 struct s1 {int (*f) (int a);};
8238 struct s2 {int (*f) (double a);};
8239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8242 #ifdef F77_DUMMY_MAIN
8246 int F77_DUMMY_MAIN() { return 1; }
8251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8256 # Don't try gcc -ansi; that turns off useful extensions and
8257 # breaks some systems' header files.
8258 # AIX -qlanglvl=ansi
8259 # Ultrix and OSF/1 -std1
8260 # HP-UX 10.20 and later -Ae
8261 # HP-UX older versions -Aa -D_HPUX_SOURCE
8262 # SVR4 -Xc -D__EXTENSIONS__
8263 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8265 CC
="$ac_save_CC $ac_arg"
8266 rm -f conftest.
$ac_objext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8268 (eval $ac_compile) 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try
='test -s conftest.$ac_objext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_prog_cc_stdc
=$ac_arg
8281 echo "$as_me: failed program was:" >&5
8282 cat conftest.
$ac_ext >&5
8284 rm -f conftest.
$ac_objext
8286 rm -f conftest.
$ac_ext conftest.
$ac_objext
8291 case "x$ac_cv_prog_cc_stdc" in
8293 echo "$as_me:$LINENO: result: none needed" >&5
8294 echo "${ECHO_T}none needed" >&6 ;;
8296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8298 CC
="$CC $ac_cv_prog_cc_stdc" ;;
8301 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8302 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8303 if test "${ac_cv_c_const+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 cat >conftest.
$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 #include "confdefs.h"
8310 #ifdef F77_DUMMY_MAIN
8314 int F77_DUMMY_MAIN() { return 1; }
8319 /* FIXME: Include the comments suggested by Paul. */
8321 /* Ultrix mips cc rejects this. */
8322 typedef int charset[2];
8324 /* SunOS 4.1.1 cc rejects this. */
8325 char const *const *ccp;
8327 /* NEC SVR4.0.2 mips cc rejects this. */
8328 struct point {int x, y;};
8329 static struct point const zero = {0,0};
8330 /* AIX XL C 1.02.0.0 rejects this.
8331 It does not let you subtract one const X* pointer from another in
8332 an arm of an if-expression whose if-part is not a constant
8334 const char *g = "string";
8335 ccp = &g + (g ? g-g : 0);
8336 /* HPUX 7.0 cc rejects these. */
8339 ccp = (char const *const *) p;
8340 { /* SCO 3.2v4 cc rejects this. */
8342 char const *s = 0 ? (char *) 0 : (char const *) 0;
8346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8348 const int *foo = &x[0];
8351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8352 typedef const int *iptr;
8356 { /* AIX XL C 1.02.0.0 rejects this saying
8357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8358 struct s { int j; const int *ap[3]; };
8359 struct s *b; b->j = 5;
8361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8370 rm -f conftest.
$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try
='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8384 echo "$as_me: failed program was:" >&5
8385 cat conftest.
$ac_ext >&5
8388 rm -f conftest.
$ac_objext conftest.
$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8391 echo "${ECHO_T}$ac_cv_c_const" >&6
8392 if test $ac_cv_c_const = no
; then
8394 cat >>confdefs.h
<<\_ACEOF
8400 echo "$as_me:$LINENO: checking for off_t" >&5
8401 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8402 if test "${ac_cv_type_off_t+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 cat >conftest.
$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8407 #include "confdefs.h"
8408 $ac_includes_default
8409 #ifdef F77_DUMMY_MAIN
8413 int F77_DUMMY_MAIN() { return 1; }
8426 rm -f conftest.
$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try
='test -s conftest.$ac_objext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_type_off_t
=yes
8440 echo "$as_me: failed program was:" >&5
8441 cat conftest.
$ac_ext >&5
8444 rm -f conftest.
$ac_objext conftest.
$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8447 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8448 if test $ac_cv_type_off_t = yes; then
8452 cat >>confdefs.h
<<_ACEOF
8458 echo "$as_me:$LINENO: checking for size_t" >&5
8459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8460 if test "${ac_cv_type_size_t+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 cat >conftest.
$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 #include "confdefs.h"
8466 $ac_includes_default
8467 #ifdef F77_DUMMY_MAIN
8471 int F77_DUMMY_MAIN() { return 1; }
8478 if (sizeof (size_t))
8484 rm -f conftest.
$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try
='test -s conftest.$ac_objext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_type_size_t
=yes
8498 echo "$as_me: failed program was:" >&5
8499 cat conftest.
$ac_ext >&5
8500 ac_cv_type_size_t
=no
8502 rm -f conftest.
$ac_objext conftest.
$ac_ext
8504 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8505 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8506 if test $ac_cv_type_size_t = yes; then
8510 cat >>confdefs.h
<<_ACEOF
8511 #define size_t unsigned
8518 echo "$as_me:$LINENO: checking for working memcmp" >&5
8519 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8520 if test "${ac_cv_func_memcmp_working+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 if test "$cross_compiling" = yes; then
8524 ac_cv_func_memcmp_working
=no
8526 cat >conftest.
$ac_ext <<_ACEOF
8527 #line $LINENO "configure"
8528 #include "confdefs.h"
8530 #ifdef F77_DUMMY_MAIN
8534 int F77_DUMMY_MAIN() { return 1; }
8540 /* Some versions of memcmp are not 8-bit clean. */
8541 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8542 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8545 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8546 or more and with at least one buffer not starting on a 4-byte boundary.
8547 William Lewis provided this test program. */
8552 for (i = 0; i < 4; i++)
8556 strcpy (a, "--------01111111");
8557 strcpy (b, "--------10000000");
8558 if (memcmp (a, b, 16) >= 0)
8568 rm -f conftest
$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_func_memcmp_working
=yes
8581 echo "$as_me: program exited with status $ac_status" >&5
8582 echo "$as_me: failed program was:" >&5
8583 cat conftest.
$ac_ext >&5
8585 ac_cv_func_memcmp_working
=no
8587 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8591 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8592 test $ac_cv_func_memcmp_working = no
&& LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
8596 for ac_header
in stdlib.h unistd.h
8598 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo "$as_me:$LINENO: checking for $ac_header" >&5
8601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608 # Is the header compilable?
8609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8611 cat >conftest.
$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 #include "confdefs.h"
8614 $ac_includes_default
8615 #include <$ac_header>
8617 rm -f conftest.
$ac_objext
8618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619 (eval $ac_compile) 2>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try
='test -s conftest.$ac_objext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_header_compiler
=yes
8631 echo "$as_me: failed program was:" >&5
8632 cat conftest.
$ac_ext >&5
8633 ac_header_compiler
=no
8635 rm -f conftest.
$ac_objext conftest.
$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8637 echo "${ECHO_T}$ac_header_compiler" >&6
8639 # Is the header present?
8640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8642 cat >conftest.
$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 #include "confdefs.h"
8645 #include <$ac_header>
8647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8650 egrep -v '^ *\+' conftest.er1
>conftest.err
8652 cat conftest.err
>&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } >/dev
/null
; then
8655 if test -s conftest.err
; then
8656 ac_cpp_err
=$ac_c_preproc_warn_flag
8663 if test -z "$ac_cpp_err"; then
8664 ac_header_preproc
=yes
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.
$ac_ext >&5
8668 ac_header_preproc
=no
8670 rm -f conftest.err conftest.
$ac_ext
8671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8672 echo "${ECHO_T}$ac_header_preproc" >&6
8674 # So? What about this header?
8675 case $ac_header_compiler:$ac_header_preproc in
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8689 echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 eval "$as_ac_Header=$ac_header_preproc"
8696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8701 cat >>confdefs.h
<<_ACEOF
8702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8710 for ac_func
in getpagesize
8712 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8713 echo "$as_me:$LINENO: checking for $ac_func" >&5
8714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8715 if eval "test \"\${$as_ac_var+set}\" = set"; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 cat >conftest.
$ac_ext <<_ACEOF
8719 #line $LINENO "configure"
8720 #include "confdefs.h"
8721 /* System header to define __stub macros and hopefully few prototypes,
8722 which can conflict with char $ac_func (); below. */
8724 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8733 #ifdef F77_DUMMY_MAIN
8737 int F77_DUMMY_MAIN() { return 1; }
8742 /* The GNU C library defines this for functions which it implements
8743 to always fail with ENOSYS. Some functions are actually named
8744 something starting with __ and the normal name is an alias. */
8745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8755 rm -f conftest.
$ac_objext conftest
$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try
='test -s conftest$ac_exeext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 eval "$as_ac_var=yes"
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8771 eval "$as_ac_var=no"
8773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8777 if test `eval echo '${'$as_ac_var'}'` = yes; then
8778 cat >>confdefs.h
<<_ACEOF
8779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8785 echo "$as_me:$LINENO: checking for working mmap" >&5
8786 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8787 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 if test "$cross_compiling" = yes; then
8791 ac_cv_func_mmap_fixed_mapped
=no
8793 cat >conftest.
$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8795 #include "confdefs.h"
8796 $ac_includes_default
8797 /* malloc might have been renamed as rpl_malloc. */
8800 /* Thanks to Mike Haertel and Jim Avera for this test.
8801 Here is a matrix of mmap possibilities:
8802 mmap private not fixed
8803 mmap private fixed at somewhere currently unmapped
8804 mmap private fixed at somewhere already mapped
8805 mmap shared not fixed
8806 mmap shared fixed at somewhere currently unmapped
8807 mmap shared fixed at somewhere already mapped
8808 For private mappings, we should verify that changes cannot be read()
8809 back from the file, nor mmap's back from the file at a different
8810 address. (There have been systems where private was not correctly
8811 implemented like the infamous i386 svr4.0, and systems where the
8812 VM page cache was not coherent with the file system buffer cache
8813 like early versions of FreeBSD and possibly contemporary NetBSD.)
8814 For shared mappings, we should conversely verify that changes get
8815 propagated back to all the places they're supposed to be.
8817 Grep wants private fixed already mapped.
8818 The main things grep needs to know about mmap are:
8819 * does it exist and is it safe to write into the mmap'd area
8820 * how to use it (BSD variants) */
8823 #include <sys/mman.h>
8825 #if !STDC_HEADERS && !HAVE_STDLIB_H
8829 /* This mess was copied from the GNU getpagesize.h. */
8830 #if !HAVE_GETPAGESIZE
8831 /* Assume that all systems that can run configure have sys/param.h. */
8832 # if !HAVE_SYS_PARAM_H
8833 # define HAVE_SYS_PARAM_H 1
8836 # ifdef _SC_PAGESIZE
8837 # define getpagesize() sysconf(_SC_PAGESIZE)
8838 # else /* no _SC_PAGESIZE */
8839 # if HAVE_SYS_PARAM_H
8840 # include <sys/param.h>
8841 # ifdef EXEC_PAGESIZE
8842 # define getpagesize() EXEC_PAGESIZE
8843 # else /* no EXEC_PAGESIZE */
8845 # define getpagesize() NBPG * CLSIZE
8848 # endif /* no CLSIZE */
8849 # else /* no NBPG */
8851 # define getpagesize() NBPC
8852 # else /* no NBPC */
8854 # define getpagesize() PAGESIZE
8855 # endif /* PAGESIZE */
8856 # endif /* no NBPC */
8857 # endif /* no NBPG */
8858 # endif /* no EXEC_PAGESIZE */
8859 # else /* no HAVE_SYS_PARAM_H */
8860 # define getpagesize() 8192 /* punt totally */
8861 # endif /* no HAVE_SYS_PARAM_H */
8862 # endif /* no _SC_PAGESIZE */
8864 #endif /* no HAVE_GETPAGESIZE */
8869 char *data, *data2, *data3;
8873 pagesize = getpagesize ();
8875 /* First, make a file with some known garbage in it. */
8876 data = (char *) malloc (pagesize);
8879 for (i = 0; i < pagesize; ++i)
8880 *(data + i) = rand ();
8882 fd = creat ("conftest.mmap", 0600);
8885 if (write (fd, data, pagesize) != pagesize)
8889 /* Next, try to mmap the file at a fixed address which already has
8890 something else allocated at it. If we can, also make sure that
8891 we see the same garbage. */
8892 fd = open ("conftest.mmap", O_RDWR);
8895 data2 = (char *) malloc (2 * pagesize);
8898 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8899 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8900 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8902 for (i = 0; i < pagesize; ++i)
8903 if (*(data + i) != *(data2 + i))
8906 /* Finally, make sure that changes to the mapped area do not
8907 percolate back to the file as seen by read(). (This is a bug on
8908 some variants of i386 svr4.0.) */
8909 for (i = 0; i < pagesize; ++i)
8910 *(data2 + i) = *(data2 + i) + 1;
8911 data3 = (char *) malloc (pagesize);
8914 if (read (fd, data3, pagesize) != pagesize)
8916 for (i = 0; i < pagesize; ++i)
8917 if (*(data + i) != *(data3 + i))
8923 rm -f conftest
$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925 (eval $ac_link) 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_func_mmap_fixed_mapped
=yes
8936 echo "$as_me: program exited with status $ac_status" >&5
8937 echo "$as_me: failed program was:" >&5
8938 cat conftest.
$ac_ext >&5
8940 ac_cv_func_mmap_fixed_mapped
=no
8942 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8945 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8946 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8949 cat >>confdefs.h
<<\_ACEOF
8957 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
8966 for ac_func
in memmove bcopy
8968 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8969 echo "$as_me:$LINENO: checking for $ac_func" >&5
8970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_var+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.
$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 #include "confdefs.h"
8977 /* System header to define __stub macros and hopefully few prototypes,
8978 which can conflict with char $ac_func (); below. */
8980 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8989 #ifdef F77_DUMMY_MAIN
8993 int F77_DUMMY_MAIN() { return 1; }
8998 /* The GNU C library defines this for functions which it implements
8999 to always fail with ENOSYS. Some functions are actually named
9000 something starting with __ and the normal name is an alias. */
9001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 rm -f conftest.
$ac_objext conftest
$ac_exeext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try
='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 eval "$as_ac_var=yes"
9025 echo "$as_me: failed program was:" >&5
9026 cat conftest.
$ac_ext >&5
9027 eval "$as_ac_var=no"
9029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9033 if test `eval echo '${'$as_ac_var'}'` = yes; then
9034 cat >>confdefs.h
<<_ACEOF
9035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9043 cat >>confdefs.h
<<\_ACEOF
9048 cat >>confdefs.h
<<\_ACEOF
9053 cat >>confdefs.h
<<\_ACEOF
9054 #define XML_CONTEXT_BYTES 1024
9058 ac_config_files
="$ac_config_files Makefile"
9060 cat >confcache
<<\_ACEOF
9061 # This file is a shell script that caches the results of configure
9062 # tests run on this system so they can be shared between configure
9063 # scripts and configure runs, see configure's option --config-cache.
9064 # It is not useful on other systems. If it contains results you don't
9065 # want to keep, you may remove or edit it.
9067 # config.status only pays attention to the cache file if you give it
9068 # the --recheck option to rerun configure.
9070 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9076 # The following way of writing the cache mishandles newlines in values,
9077 # but we know of no workaround that is simple, portable, and efficient.
9078 # So, don't put newlines in cache variables' values.
9079 # Ultrix sh set writes to stderr and can't be redirected directly,
9080 # and sets the high bit in the cache file unless we assign to the vars.
9083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9085 # `set' does not quote correctly, so add quotes (double-quote
9086 # substitution turns \\\\ into \\, and sed turns \\ into \).
9089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9092 # `set' quotes correctly as required by POSIX, so do not add quotes.
9094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9103 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9105 if cmp -s $cache_file confcache
; then :; else
9106 if test -w $cache_file; then
9107 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9108 cat confcache
>$cache_file
9110 echo "not updating unwritable cache $cache_file"
9115 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9116 # Let make expand exec_prefix.
9117 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9119 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9120 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9121 # trailing colons and then remove the whole line if VPATH becomes empty
9122 # (actually we leave an empty line to preserve line numbers).
9123 if test "x$srcdir" = x.
; then
9124 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9125 s/:*\$(srcdir):*/:/;
9126 s/:*\${srcdir}:*/:/;
9128 s/^\([^=]*=[ ]*\):*/\1/;
9134 DEFS
=-DHAVE_CONFIG_H
9137 : ${CONFIG_STATUS=./config.status}
9138 ac_clean_files_save
=$ac_clean_files
9139 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9140 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9141 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9142 cat >$CONFIG_STATUS <<_ACEOF
9144 # Generated by $as_me.
9145 # Run this file to recreate the current configuration.
9146 # Compiler output produced by configure, useful for debugging
9147 # configure, is in config.log if it exists.
9150 SHELL=\${CONFIG_SHELL-$SHELL}
9153 cat >>$CONFIG_STATUS <<\_ACEOF
9155 ## --------------------- ##
9156 ## M4sh Initialization. ##
9157 ## --------------------- ##
9159 # Be Bourne compatible
9160 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9163 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9168 # Support unset when possible.
9169 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
9175 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
9176 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
9177 { LANG
=C
; export LANG
; }
9178 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9179 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
9180 { LC_ALL
=C
; export LC_ALL
; }
9181 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9182 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
9183 { LC_TIME
=C
; export LC_TIME
; }
9184 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9185 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
9186 { LC_CTYPE
=C
; export LC_CTYPE
; }
9187 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9188 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
9189 { LANGUAGE
=C
; export LANGUAGE
; }
9190 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9191 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
9192 { LC_COLLATE
=C
; export LC_COLLATE
; }
9193 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9194 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
9195 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
9196 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9197 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
9198 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
9201 # Name of the executable.
9202 as_me
=`(basename "$0") 2>/dev/null ||
9203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9204 X"$0" : 'X\(//\)$' \| \
9205 X"$0" : 'X\(/\)$' \| \
9206 . : '\(.\)' 2>/dev/null ||
9208 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9209 /^X\/\(\/\/\)$/{ s//\1/; q; }
9210 /^X\/\(\/\).*/{ s//\1/; q; }
9213 # PATH needs CR, and LINENO needs CR and PATH.
9214 # Avoid depending upon Character Ranges.
9215 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9216 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9217 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9218 as_cr_digits
='0123456789'
9219 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9221 # The user is always right.
9222 if test "${PATH_SEPARATOR+set}" != set; then
9223 echo "#! /bin/sh" >conftest.sh
9224 echo "exit 0" >>conftest.sh
9225 chmod +x conftest.sh
9226 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9237 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9238 test "x$as_lineno_1" != "x$as_lineno_2" &&
9239 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9240 # Find who we are. Look in the path if we contain no path at all
9243 *[\\/]* ) as_myself
=$0 ;;
9244 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9248 test -z "$as_dir" && as_dir
=.
9249 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9254 # We did not find ourselves, most probably we were run as `sh COMMAND'
9255 # in which case we are not to be found in the path.
9256 if test "x$as_myself" = x
; then
9259 if test ! -f "$as_myself"; then
9260 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9261 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9262 { (exit 1); exit 1; }; }
9264 case $CONFIG_SHELL in
9266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9267 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9270 test -z "$as_dir" && as_dir
=.
9271 for as_base
in sh bash ksh sh5
; do
9274 if ("$as_dir/$as_base" -c '
9277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9278 test "x$as_lineno_1" != "x$as_lineno_2" &&
9279 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9280 CONFIG_SHELL
=$as_dir/$as_base
9282 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9290 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9291 # uniformly replaced by the line number. The first 'sed' inserts a
9292 # line-number line before each line; the second 'sed' does the real
9293 # work. The second script uses 'N' to pair each line-number line
9294 # with the numbered line, and appends trailing '-' during
9295 # substitution so that $LINENO is not a special case at line end.
9296 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9297 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9298 sed '=' <$as_myself |
9303 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9306 s,^['$as_cr_digits']*\n,,
9308 chmod +x
$as_me.lineno ||
9309 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9310 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9311 { (exit 1); exit 1; }; }
9313 # Don't try to exec as it changes $[0], causing all sort of problems
9314 # (the dirname of $[0] is not the place where we might find the
9315 # original and so on. Autoconf is especially sensible to this).
9317 # Exit status is that of the last command.
9322 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9323 *c
*,-n*) ECHO_N
= ECHO_C
='
9325 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9326 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9329 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9335 rm -f conf$$ conf$$.exe conf$$.
file
9337 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9338 # We could just check for DJGPP; but this test a) works b) is more generic
9339 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9340 if test -f conf$$.exe
; then
9341 # Don't use ln at all; we don't have any links
9346 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9351 rm -f conf$$ conf$$.exe conf$$.
file
9353 as_executable_p
="test -f"
9355 # Sed expression to map a string onto a valid CPP name.
9356 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9358 # Sed expression to map a string onto a valid variable name.
9359 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9363 # We need space, tab and new line, in precisely that order.
9369 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9373 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9374 # report actual input values of CONFIG_FILES etc. instead of their
9375 # values after options handling. Logging --version etc. is OK.
9379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9380 ## Running $as_me. ##
9385 This file was extended by expat $as_me 1.95.5, which was
9386 generated by GNU Autoconf 2.53. Invocation command line was
9388 CONFIG_FILES = $CONFIG_FILES
9389 CONFIG_HEADERS = $CONFIG_HEADERS
9390 CONFIG_LINKS = $CONFIG_LINKS
9391 CONFIG_COMMANDS = $CONFIG_COMMANDS
9395 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9399 # Files that config.status was made for.
9400 if test -n "$ac_config_files"; then
9401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9404 if test -n "$ac_config_headers"; then
9405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9408 if test -n "$ac_config_links"; then
9409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9412 if test -n "$ac_config_commands"; then
9413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9416 cat >>$CONFIG_STATUS <<\_ACEOF
9419 \`$as_me' instantiates files from templates according to the
9420 current configuration.
9422 Usage: $0 [OPTIONS] [FILE]...
9424 -h, --help print this help, then exit
9425 -V, --version print version number, then exit
9426 -d, --debug don't remove temporary files
9427 --recheck update $as_me by reconfiguring in the same conditions
9428 --file=FILE[:TEMPLATE]
9429 instantiate the configuration file FILE
9430 --header=FILE[:TEMPLATE]
9431 instantiate the configuration header FILE
9433 Configuration files:
9436 Configuration headers:
9439 Report bugs to <bug-autoconf@gnu.org>."
9442 cat >>$CONFIG_STATUS <<_ACEOF
9444 expat config.status 1.95.5
9445 configured by $0, generated by GNU Autoconf 2.53,
9446 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9448 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9449 Free Software Foundation, Inc.
9450 This config.status script is free software; the Free Software Foundation
9451 gives unlimited permission to copy, distribute and modify it."
9456 cat >>$CONFIG_STATUS <<\_ACEOF
9457 # If no file are specified by the user, then we need to provide default
9458 # value. By we need to know if files were specified by the user.
9464 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9465 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9467 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9471 *) # This is not an option, so the user has probably given explicit
9473 ac_need_defaults
=false
;;
9477 # Handling of the options.
9479 cat >>$CONFIG_STATUS <<_ACEOF
9480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9481 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9482 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9484 cat >>$CONFIG_STATUS <<\_ACEOF
9485 --version |
--vers* |
-V )
9486 echo "$ac_cs_version"; exit 0 ;;
9488 # Conflict between --help and --header
9489 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9490 Try \`$0 --help' for more information." >&5
9491 echo "$as_me: error: ambiguous option: $1
9492 Try \`$0 --help' for more information." >&2;}
9493 { (exit 1); exit 1; }; };;
9494 --help |
--hel |
-h )
9495 echo "$ac_cs_usage"; exit 0 ;;
9496 --debug |
--d* |
-d )
9498 --file |
--fil |
--fi |
--f )
9500 CONFIG_FILES
="$CONFIG_FILES $1"
9501 ac_need_defaults
=false
;;
9502 --header |
--heade |
--head |
--hea )
9504 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9505 ac_need_defaults
=false
;;
9508 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9509 Try \`$0 --help' for more information." >&5
9510 echo "$as_me: error: unrecognized option: $1
9511 Try \`$0 --help' for more information." >&2;}
9512 { (exit 1); exit 1; }; } ;;
9514 *) ac_config_targets
="$ac_config_targets $1" ;;
9526 cat >>$CONFIG_STATUS <<\_ACEOF
9527 for ac_config_target
in $ac_config_targets
9529 case "$ac_config_target" in
9530 # Handling of arguments.
9531 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9532 "expat_config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS expat_config.h" ;;
9533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9535 { (exit 1); exit 1; }; };;
9539 # If the user did not use the arguments to specify the items to instantiate,
9540 # then the envvar interface is used. Set only those that are not.
9541 # We use the long form for the default assignment because of an extremely
9542 # bizarre bug on SunOS 4.1.3.
9543 if $ac_need_defaults; then
9544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9548 # Create a temporary directory, and hook for its removal unless debugging.
9551 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9552 trap '{ (exit 1); exit 1; }' 1 2 13 15
9555 # Create a (secure) tmp directory for tmp files.
9558 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9559 test -n "$tmp" && test -d "$tmp"
9562 tmp
=$TMPDIR/cs$$
-$RANDOM
9563 (umask 077 && mkdir
$tmp)
9566 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9567 { (exit 1); exit 1; }
9572 cat >>$CONFIG_STATUS <<_ACEOF
9575 # CONFIG_FILES section.
9578 # No need to generate the scripts if there are no CONFIG_FILES.
9579 # This happens for instance when ./config.status config.h
9580 if test -n "\$CONFIG_FILES"; then
9581 # Protect against being on the right side of a sed subst in config.status.
9582 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9583 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9584 s,@SHELL@,$SHELL,;t t
9585 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9586 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9587 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9588 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9589 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9590 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9591 s,@exec_prefix@,$exec_prefix,;t t
9592 s,@prefix@,$prefix,;t t
9593 s,@program_transform_name@,$program_transform_name,;t t
9594 s,@bindir@,$bindir,;t t
9595 s,@sbindir@,$sbindir,;t t
9596 s,@libexecdir@,$libexecdir,;t t
9597 s,@datadir@,$datadir,;t t
9598 s,@sysconfdir@,$sysconfdir,;t t
9599 s,@sharedstatedir@,$sharedstatedir,;t t
9600 s,@localstatedir@,$localstatedir,;t t
9601 s,@libdir@,$libdir,;t t
9602 s,@includedir@,$includedir,;t t
9603 s,@oldincludedir@,$oldincludedir,;t t
9604 s,@infodir@,$infodir,;t t
9605 s,@mandir@,$mandir,;t t
9606 s,@build_alias@,$build_alias,;t t
9607 s,@host_alias@,$host_alias,;t t
9608 s,@target_alias@,$target_alias,;t t
9610 s,@ECHO_C@,$ECHO_C,;t t
9611 s,@ECHO_N@,$ECHO_N,;t t
9612 s,@ECHO_T@,$ECHO_T,;t t
9614 s,@build@,$build,;t t
9615 s,@build_cpu@,$build_cpu,;t t
9616 s,@build_vendor@,$build_vendor,;t t
9617 s,@build_os@,$build_os,;t t
9619 s,@host_cpu@,$host_cpu,;t t
9620 s,@host_vendor@,$host_vendor,;t t
9621 s,@host_os@,$host_os,;t t
9623 s,@CFLAGS@,$CFLAGS,;t t
9624 s,@LDFLAGS@,$LDFLAGS,;t t
9625 s,@CPPFLAGS@,$CPPFLAGS,;t t
9626 s,@ac_ct_CC@,$ac_ct_CC,;t t
9627 s,@EXEEXT@,$EXEEXT,;t t
9628 s,@OBJEXT@,$OBJEXT,;t t
9631 s,@RANLIB@,$RANLIB,;t t
9632 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9633 s,@STRIP@,$STRIP,;t t
9634 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9636 s,@LIBTOOL@,$LIBTOOL,;t t
9637 s,@LIBCURRENT@,$LIBCURRENT,;t t
9638 s,@LIBREVISION@,$LIBREVISION,;t t
9639 s,@LIBAGE@,$LIBAGE,;t t
9640 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9641 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9642 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9643 s,@LIBOBJS@,$LIBOBJS,;t t
9644 s,@FILEMAP@,$FILEMAP,;t t
9649 cat >>$CONFIG_STATUS <<\_ACEOF
9650 # Split the substitutions into bite-sized pieces for seds with
9651 # small command number limits, like on Digital OSF/1 and HP-UX.
9653 ac_sed_frag
=1 # Number of current file.
9654 ac_beg
=1 # First line for current file.
9655 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9658 while $ac_more_lines; do
9659 if test $ac_beg -gt 1; then
9660 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9662 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9664 if test ! -s $tmp/subs.frag
; then
9667 # The purpose of the label and of the branching condition is to
9668 # speed up the sed processing (if there are no `@' at all, there
9669 # is no need to browse any of the substitutions).
9670 # These are the two extra sed commands mentioned above.
9672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9673 if test -z "$ac_sed_cmds"; then
9674 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9676 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9678 ac_sed_frag
=`expr $ac_sed_frag + 1`
9680 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9683 if test -z "$ac_sed_cmds"; then
9686 fi # test -n "$CONFIG_FILES"
9689 cat >>$CONFIG_STATUS <<\_ACEOF
9690 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9693 - |
*:- |
*:-:* ) # input from stdin
9695 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9696 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9697 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9698 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9699 * ) ac_file_in
=$ac_file.
in ;;
9702 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9703 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9705 X"$ac_file" : 'X\(//\)[^/]' \| \
9706 X"$ac_file" : 'X\(//\)$' \| \
9707 X"$ac_file" : 'X\(/\)' \| \
9708 . : '\(.\)' 2>/dev/null ||
9710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9712 /^X\(\/\/\)$/{ s//\1/; q; }
9713 /^X\(\/\).*/{ s//\1/; q; }
9716 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9720 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9721 case $as_mkdir_dir in
9722 # Skip DOS drivespec
9723 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9725 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9726 test -d "$as_incr_dir" ||
9727 mkdir
"$as_incr_dir" ||
9728 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9729 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9730 { (exit 1); exit 1; }; }
9737 if test "$ac_dir" != .
; then
9738 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9739 # A "../" for each directory in $ac_dir_suffix.
9740 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9742 ac_dir_suffix
= ac_top_builddir
=
9746 .
) # No --srcdir option. We are building in place.
9748 if test -z "$ac_top_builddir"; then
9751 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9753 [\\/]* | ?
:[\\/]* ) # Absolute path.
9754 ac_srcdir
=$srcdir$ac_dir_suffix;
9755 ac_top_srcdir
=$srcdir ;;
9757 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9758 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9760 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9762 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9763 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9764 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9765 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9769 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9770 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9773 if test x
"$ac_file" != x-
; then
9774 { echo "$as_me:$LINENO: creating $ac_file" >&5
9775 echo "$as_me: creating $ac_file" >&6;}
9778 # Let's still pretend it is `configure' which instantiates (i.e., don't
9779 # use $as_me), people would be surprised to read:
9780 # /* config.h. Generated by config.status. */
9781 if test x
"$ac_file" = x-
; then
9784 configure_input
="$ac_file. "
9786 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9787 sed 's,.*/,,'` by configure."
9789 # First look for the input files in the build tree, otherwise in the
9791 ac_file_inputs
=`IFS=:
9792 for f in $ac_file_in; do
9794 -) echo $tmp/stdin ;;
9796 # Absolute (can't be DOS-style, as IFS=:)
9797 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9798 echo "$as_me: error: cannot find input file: $f" >&2;}
9799 { (exit 1); exit 1; }; }
9802 if test -f "$f"; then
9805 elif test -f "$srcdir/$f"; then
9810 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9811 echo "$as_me: error: cannot find input file: $f" >&2;}
9812 { (exit 1); exit 1; }; }
9815 done` ||
{ (exit 1); exit 1; }
9817 cat >>$CONFIG_STATUS <<_ACEOF
9821 cat >>$CONFIG_STATUS <<\_ACEOF
9823 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9824 s
,@configure_input@
,$configure_input,;t t
9825 s
,@srcdir@
,$ac_srcdir,;t t
9826 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9827 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9828 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9829 s
,@builddir@
,$ac_builddir,;t t
9830 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9831 s
,@top_builddir@
,$ac_top_builddir,;t t
9832 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9833 s
,@INSTALL@
,$ac_INSTALL,;t t
9834 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9836 if test x"$ac_file" != x-; then
9837 mv $tmp/out $ac_file
9845 cat >>$CONFIG_STATUS <<\_ACEOF
9848 # CONFIG_HEADER section.
9851 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9852 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9854 # ac_d sets the value in "#define NAME VALUE" lines.
9855 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9856 ac_dB
='[ ].*$,\1#\2'
9859 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9860 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9861 ac_uB
='$,\1#\2define\3'
9865 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9866 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9868 - |
*:- |
*:-:* ) # input from stdin
9870 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9871 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9872 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9873 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9874 * ) ac_file_in
=$ac_file.
in ;;
9877 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9878 echo "$as_me: creating $ac_file" >&6;}
9880 # First look for the input files in the build tree, otherwise in the
9882 ac_file_inputs
=`IFS=:
9883 for f in $ac_file_in; do
9885 -) echo $tmp/stdin ;;
9887 # Absolute (can't be DOS-style, as IFS=:)
9888 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9889 echo "$as_me: error: cannot find input file: $f" >&2;}
9890 { (exit 1); exit 1; }; }
9893 if test -f "$f"; then
9896 elif test -f "$srcdir/$f"; then
9901 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9902 echo "$as_me: error: cannot find input file: $f" >&2;}
9903 { (exit 1); exit 1; }; }
9906 done` ||
{ (exit 1); exit 1; }
9907 # Remove the trailing spaces.
9908 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9912 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9913 # `conftest.undefs', that substitutes the proper values into
9914 # config.h.in to produce config.h. The first handles `#define'
9915 # templates, and the second `#undef' templates.
9916 # And first: Protect against being on the right side of a sed subst in
9917 # config.status. Protect against being in an unquoted here document
9919 rm -f conftest.defines conftest.undefs
9920 # Using a here document instead of a string reduces the quoting nightmare.
9921 # Putting comments in sed scripts is not portable.
9923 # `end' is used to avoid that the second main sed command (meant for
9924 # 0-ary CPP macros) applies to n-ary macro definitions.
9925 # See the Autoconf documentation for `clear'.
9926 cat >confdef2sed.
sed <<\_ACEOF
9931 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9933 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9936 # If some macros were called several times there might be several times
9937 # the same #defines, which is useless. Nevertheless, we may not want to
9938 # sort them, since we want the *last* AC-DEFINE to be honored.
9939 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9940 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9941 rm -f confdef2sed.sed
9943 # This sed command replaces #undef with comments. This is necessary, for
9944 # example, in the case of _POSIX_SOURCE, which is predefined and required
9945 # on some systems where configure will not decide to define it.
9946 cat >>conftest.undefs <<\_ACEOF
9947 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9950 # Break up conftest.defines because some shells have a limit on the size
9951 # of here documents, and old seds have small limits too (100 cmds).
9952 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9953 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9954 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9955 echo ' :' >>$CONFIG_STATUS
9957 while grep . conftest.defines >/dev/null
9959 # Write a limited-size here document to $tmp/defines.sed.
9960 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9961 # Speed up: don't consider the non `#define' lines.
9962 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9963 # Work around the forget-to-reset-the-flag bug.
9964 echo 't clr' >>$CONFIG_STATUS
9965 echo ': clr' >>$CONFIG_STATUS
9966 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9968 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9972 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9973 rm -f conftest.defines
9974 mv conftest.
tail conftest.defines
9976 rm -f conftest.defines
9977 echo ' fi # egrep' >>$CONFIG_STATUS
9978 echo >>$CONFIG_STATUS
9980 # Break up conftest.undefs because some shells have a limit on the size
9981 # of here documents, and old seds have small limits too (100 cmds).
9982 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9984 while grep . conftest.undefs
>/dev
/null
9986 # Write a limited-size here document to $tmp/undefs.sed.
9987 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9988 # Speed up: don't consider the non
`#undef'
9989 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9990 # Work around the forget-to-reset-the-flag bug.
9991 echo 't clr' >>$CONFIG_STATUS
9992 echo ': clr' >>$CONFIG_STATUS
9993 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9995 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9999 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10000 rm -f conftest.undefs
10001 mv conftest.tail conftest.undefs
10003 rm -f conftest.undefs
10005 cat >>$CONFIG_STATUS <<\_ACEOF
10006 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10007 # use $as_me), people would be surprised to read:
10008 # /* config.h. Generated by config.status. */
10009 if test x
"$ac_file" = x-
; then
10010 echo "/* Generated by configure. */" >$tmp/config.h
10012 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10014 cat $tmp/in >>$tmp/config.h
10016 if test x
"$ac_file" != x-
; then
10017 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
10018 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10019 echo "$as_me: $ac_file is unchanged" >&6;}
10021 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10023 X"$ac_file" : 'X\(//\)[^/]' \| \
10024 X"$ac_file" : 'X\(//\)$' \| \
10025 X"$ac_file" : 'X\(/\)' \| \
10026 . : '\(.\)' 2>/dev/null ||
10028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10030 /^X\(\/\/\)$/{ s//\1/; q; }
10031 /^X\(\/\).*/{ s//\1/; q; }
10033 { case "$ac_dir" in
10034 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10038 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10039 case $as_mkdir_dir in
10040 # Skip DOS drivespec
10041 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10043 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10044 test -d "$as_incr_dir" ||
10045 mkdir
"$as_incr_dir" ||
10046 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10047 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10048 { (exit 1); exit 1; }; }
10054 mv $tmp/config.h
$ac_file
10058 rm -f $tmp/config.h
10063 cat >>$CONFIG_STATUS <<\_ACEOF
10065 { (exit 0); exit 0; }
10067 chmod +x
$CONFIG_STATUS
10068 ac_clean_files
=$ac_clean_files_save
10071 # configure is writing to config.log, and then calls config.status.
10072 # config.status does its own redirection, appending to config.log.
10073 # Unfortunately, on DOS this fails, as config.log is still kept open
10074 # by configure, so config.status won't be able to write to it; its
10075 # output is simply discarded. So we exec the FD to /dev/null,
10076 # effectively closing config.log, so it can be properly (re)opened and
10077 # appended to by config.status. When coming back to configure, we
10078 # need to make the FD available again.
10079 if test "$no_create" != yes; then
10082 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10085 # would make configure fail if this is the last instruction.
10086 $ac_cs_success ||
{ (exit 1); exit 1; }
10090 abs_srcdir
="`cd $srcdir && pwd`"
10091 abs_builddir
="`pwd`"
10092 if test "$abs_srcdir" != "$abs_builddir"; then