missing project/build files
[client-tools.git] / src / external / 3rd / library / libxml / configure
blob9c22abb955136bd131de5130fd290c57b6306206
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
25 case X$ECHO in
26 X*--fallback-echo)
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
30 esac
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
35 shift
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
42 else
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
49 shift
50 cat <<EOF
52 EOF
53 exit 0
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68 then
69 break
71 done
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
78 else
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
83 # So, first we look for a working echo in the user's PATH.
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
91 echo="$dir/echo"
92 break
94 done
95 IFS="$save_ifs"
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
103 echo='print -r'
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
110 export CONFIG_SHELL
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112 else
113 # Try using printf.
114 echo='printf %s\n'
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
118 # Cool, printf works
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 export CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
127 export SHELL
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
134 else
135 # maybe with a smaller string...
136 prev=:
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140 then
141 break
143 prev="$cmd"
144 done
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 else
151 # Oops. We lost completely, so just stick with echo.
152 echo=echo
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170 as_expr=expr
171 else
172 as_expr=false
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182 emulate sh
183 NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185 set -o posix
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191 as_unset=unset
192 else
193 as_unset=false
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
232 s/.*/./; q'`
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
246 chmod +x conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248 PATH_SEPARATOR=';'
249 else
250 PATH_SEPARATOR=:
252 rm -f conftest.sh
256 as_lineno_1=$LINENO
257 as_lineno_2=$LINENO
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
262 # relative or not.
263 case $0 in
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
268 IFS=$as_save_IFS
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
274 esac
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
278 as_myself=$0
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
284 case $CONFIG_SHELL in
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
289 IFS=$as_save_IFS
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
292 case $as_dir in
294 if ("$as_dir/$as_base" -c '
295 as_lineno_1=$LINENO
296 as_lineno_2=$LINENO
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
301 export CONFIG_SHELL
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303 fi;;
304 esac
305 done
306 done
308 esac
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
319 sed '
321 s,$,-,
322 : loop
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324 t loop
325 s,-$,,
326 s,^['$as_cr_digits']*\n,,
327 ' >$as_me.lineno &&
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
335 . ./$as_me.lineno
336 # Exit status is that of the last command.
337 exit
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T=' ' ;;
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349 as_expr=expr
350 else
351 as_expr=false
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
361 as_ln_s='cp -p'
362 else
363 as_ln_s='ln -s'
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366 as_ln_s=ln
367 else
368 as_ln_s='cp -p'
370 rm -f conf$$ conf$$.exe conf$$.file
372 as_executable_p="test -f"
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
385 IFS=" $as_nl"
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
396 exec 6>&1
399 # Initializations.
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
420 ac_unique_file="entities.c"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
423 #include <stdio.h>
424 #if HAVE_SYS_TYPES_H
425 # include <sys/types.h>
426 #endif
427 #if HAVE_SYS_STAT_H
428 # include <sys/stat.h>
429 #endif
430 #if STDC_HEADERS
431 # include <stdlib.h>
432 # include <stddef.h>
433 #else
434 # if HAVE_STDLIB_H
435 # include <stdlib.h>
436 # endif
437 #endif
438 #if HAVE_STRING_H
439 # if !STDC_HEADERS && HAVE_MEMORY_H
440 # include <memory.h>
441 # endif
442 # include <string.h>
443 #endif
444 #if HAVE_STRINGS_H
445 # include <strings.h>
446 #endif
447 #if HAVE_INTTYPES_H
448 # include <inttypes.h>
449 #else
450 # if HAVE_STDINT_H
451 # include <stdint.h>
452 # endif
453 #endif
454 #if HAVE_UNISTD_H
455 # include <unistd.h>
456 #endif"
459 # Initialize some variables set by options.
460 ac_init_help=
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
464 cache_file=/dev/null
465 exec_prefix=NONE
466 no_create=
467 no_recursion=
468 prefix=NONE
469 program_prefix=NONE
470 program_suffix=NONE
471 program_transform_name=s,x,x,
472 silent=
473 site=
474 srcdir=
475 verbose=
476 x_includes=NONE
477 x_libraries=NONE
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
497 ac_prev=
498 for ac_option
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
503 ac_prev=
504 continue
507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509 # Accept the important Cygnus configure options, so we can diagnose typos.
511 case $ac_option in
513 -bindir | --bindir | --bindi | --bind | --bin | --bi)
514 ac_prev=bindir ;;
515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516 bindir=$ac_optarg ;;
518 -build | --build | --buil | --bui | --bu)
519 ac_prev=build_alias ;;
520 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521 build_alias=$ac_optarg ;;
523 -cache-file | --cache-file | --cache-fil | --cache-fi \
524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525 ac_prev=cache_file ;;
526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528 cache_file=$ac_optarg ;;
530 --config-cache | -C)
531 cache_file=config.cache ;;
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534 ac_prev=datadir ;;
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536 | --da=*)
537 datadir=$ac_optarg ;;
539 -disable-* | --disable-*)
540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541 # Reject names that are not valid shell variable names.
542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544 { (exit 1); exit 1; }; }
545 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546 eval "enable_$ac_feature=no" ;;
548 -enable-* | --enable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "enable_$ac_feature='$ac_optarg'" ;;
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix=$ac_optarg ;;
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
572 with_gas=yes ;;
574 -help | --help | --hel | --he | -h)
575 ac_init_help=long ;;
576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577 ac_init_help=recursive ;;
578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579 ac_init_help=short ;;
581 -host | --host | --hos | --ho)
582 ac_prev=host_alias ;;
583 -host=* | --host=* | --hos=* | --ho=*)
584 host_alias=$ac_optarg ;;
586 -includedir | --includedir | --includedi | --included | --include \
587 | --includ | --inclu | --incl | --inc)
588 ac_prev=includedir ;;
589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590 | --includ=* | --inclu=* | --incl=* | --inc=*)
591 includedir=$ac_optarg ;;
593 -infodir | --infodir | --infodi | --infod | --info | --inf)
594 ac_prev=infodir ;;
595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596 infodir=$ac_optarg ;;
598 -libdir | --libdir | --libdi | --libd)
599 ac_prev=libdir ;;
600 -libdir=* | --libdir=* | --libdi=* | --libd=*)
601 libdir=$ac_optarg ;;
603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604 | --libexe | --libex | --libe)
605 ac_prev=libexecdir ;;
606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607 | --libexe=* | --libex=* | --libe=*)
608 libexecdir=$ac_optarg ;;
610 -localstatedir | --localstatedir | --localstatedi | --localstated \
611 | --localstate | --localstat | --localsta | --localst \
612 | --locals | --local | --loca | --loc | --lo)
613 ac_prev=localstatedir ;;
614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617 localstatedir=$ac_optarg ;;
619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620 ac_prev=mandir ;;
621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622 mandir=$ac_optarg ;;
624 -nfp | --nfp | --nf)
625 # Obsolete; use --without-fp.
626 with_fp=no ;;
628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629 | --no-cr | --no-c | -n)
630 no_create=yes ;;
632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634 no_recursion=yes ;;
636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638 | --oldin | --oldi | --old | --ol | --o)
639 ac_prev=oldincludedir ;;
640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643 oldincludedir=$ac_optarg ;;
645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646 ac_prev=prefix ;;
647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648 prefix=$ac_optarg ;;
650 -program-prefix | --program-prefix | --program-prefi | --program-pref \
651 | --program-pre | --program-pr | --program-p)
652 ac_prev=program_prefix ;;
653 -program-prefix=* | --program-prefix=* | --program-prefi=* \
654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655 program_prefix=$ac_optarg ;;
657 -program-suffix | --program-suffix | --program-suffi | --program-suff \
658 | --program-suf | --program-su | --program-s)
659 ac_prev=program_suffix ;;
660 -program-suffix=* | --program-suffix=* | --program-suffi=* \
661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662 program_suffix=$ac_optarg ;;
664 -program-transform-name | --program-transform-name \
665 | --program-transform-nam | --program-transform-na \
666 | --program-transform-n | --program-transform- \
667 | --program-transform | --program-transfor \
668 | --program-transfo | --program-transf \
669 | --program-trans | --program-tran \
670 | --progr-tra | --program-tr | --program-t)
671 ac_prev=program_transform_name ;;
672 -program-transform-name=* | --program-transform-name=* \
673 | --program-transform-nam=* | --program-transform-na=* \
674 | --program-transform-n=* | --program-transform-=* \
675 | --program-transform=* | --program-transfor=* \
676 | --program-transfo=* | --program-transf=* \
677 | --program-trans=* | --program-tran=* \
678 | --progr-tra=* | --program-tr=* | --program-t=*)
679 program_transform_name=$ac_optarg ;;
681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682 | -silent | --silent | --silen | --sile | --sil)
683 silent=yes ;;
685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686 ac_prev=sbindir ;;
687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688 | --sbi=* | --sb=*)
689 sbindir=$ac_optarg ;;
691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693 | --sharedst | --shareds | --shared | --share | --shar \
694 | --sha | --sh)
695 ac_prev=sharedstatedir ;;
696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699 | --sha=* | --sh=*)
700 sharedstatedir=$ac_optarg ;;
702 -site | --site | --sit)
703 ac_prev=site ;;
704 -site=* | --site=* | --sit=*)
705 site=$ac_optarg ;;
707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708 ac_prev=srcdir ;;
709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710 srcdir=$ac_optarg ;;
712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713 | --syscon | --sysco | --sysc | --sys | --sy)
714 ac_prev=sysconfdir ;;
715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717 sysconfdir=$ac_optarg ;;
719 -target | --target | --targe | --targ | --tar | --ta | --t)
720 ac_prev=target_alias ;;
721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722 target_alias=$ac_optarg ;;
724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
725 verbose=yes ;;
727 -version | --version | --versio | --versi | --vers | -V)
728 ac_init_version=: ;;
730 -with-* | --with-*)
731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732 # Reject names that are not valid shell variable names.
733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 { echo "$as_me: error: invalid package name: $ac_package" >&2
735 { (exit 1); exit 1; }; }
736 ac_package=`echo $ac_package| sed 's/-/_/g'`
737 case $ac_option in
738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739 *) ac_optarg=yes ;;
740 esac
741 eval "with_$ac_package='$ac_optarg'" ;;
743 -without-* | --without-*)
744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package | sed 's/-/_/g'`
750 eval "with_$ac_package=no" ;;
752 --x)
753 # Obsolete; use --with-x.
754 with_x=yes ;;
756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757 | --x-incl | --x-inc | --x-in | --x-i)
758 ac_prev=x_includes ;;
759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761 x_includes=$ac_optarg ;;
763 -x-libraries | --x-libraries | --x-librarie | --x-librari \
764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765 ac_prev=x_libraries ;;
766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768 x_libraries=$ac_optarg ;;
770 -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772 { (exit 1); exit 1; }; }
775 *=*)
776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780 { (exit 1); exit 1; }; }
781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782 eval "$ac_envvar='$ac_optarg'"
783 export $ac_envvar ;;
786 # FIXME: should be removed in autoconf 3.0.
787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
793 esac
794 done
796 if test -n "$ac_prev"; then
797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798 { echo "$as_me: error: missing argument to $ac_option" >&2
799 { (exit 1); exit 1; }; }
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
805 eval ac_val=$`echo $ac_var`
806 case $ac_val in
807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809 { (exit 1); exit 1; }; };;
810 esac
811 done
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815 localstatedir libdir includedir oldincludedir infodir mandir
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
828 build=$build_alias
829 host=$host_alias
830 target=$target_alias
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834 if test "x$build_alias" = x; then
835 cross_compiling=maybe
836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837 If a cross compiler is detected then cross compile mode will be used." >&2
838 elif test "x$build_alias" != "x$host_alias"; then
839 cross_compiling=yes
843 ac_tool_prefix=
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846 test "$silent" = yes && exec 6>/dev/null
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855 X"$0" : 'X\(//\)[^/]' \| \
856 X"$0" : 'X\(//\)$' \| \
857 X"$0" : 'X\(/\)' \| \
858 . : '\(.\)' 2>/dev/null ||
859 echo X"$0" |
860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862 /^X\(\/\/\)$/{ s//\1/; q; }
863 /^X\(\/\).*/{ s//\1/; q; }
864 s/.*/./; q'`
865 srcdir=$ac_confdir
866 if test ! -r $srcdir/$ac_unique_file; then
867 srcdir=..
869 else
870 ac_srcdir_defaulted=no
872 if test ! -r $srcdir/$ac_unique_file; then
873 if test "$ac_srcdir_defaulted" = yes; then
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875 { (exit 1); exit 1; }; }
876 else
877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878 { (exit 1); exit 1; }; }
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
895 ac_env_CC_value=$CC
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
916 # Report the --help message.
918 if test "$ac_init_help" = "long"; then
919 # Omit some internal or obsolete options to make the list less imposing.
920 # This message is too long to be a string in the A/UX 3.1 sh.
921 cat <<_ACEOF
922 \`configure' configures this package to adapt to many kinds of systems.
924 Usage: $0 [OPTION]... [VAR=VALUE]...
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE. See below for descriptions of some of the useful variables.
929 Defaults for the options are specified in brackets.
931 Configuration:
932 -h, --help display this help and exit
933 --help=short display options specific to this package
934 --help=recursive display the short help of all the included packages
935 -V, --version display version information and exit
936 -q, --quiet, --silent do not print \`checking...' messages
937 --cache-file=FILE cache test results in FILE [disabled]
938 -C, --config-cache alias for \`--cache-file=config.cache'
939 -n, --no-create do not create output files
940 --srcdir=DIR find the sources in DIR [configure dir or \`..']
942 _ACEOF
944 cat <<_ACEOF
945 Installation directories:
946 --prefix=PREFIX install architecture-independent files in PREFIX
947 [$ac_default_prefix]
948 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
949 [PREFIX]
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
956 For better control, use the options below.
958 Fine tuning of the installation directories:
959 --bindir=DIR user executables [EPREFIX/bin]
960 --sbindir=DIR system admin executables [EPREFIX/sbin]
961 --libexecdir=DIR program executables [EPREFIX/libexec]
962 --datadir=DIR read-only architecture-independent data [PREFIX/share]
963 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
964 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
965 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
966 --libdir=DIR object code libraries [EPREFIX/lib]
967 --includedir=DIR C header files [PREFIX/include]
968 --oldincludedir=DIR C header files for non-gcc [/usr/include]
969 --infodir=DIR info documentation [PREFIX/info]
970 --mandir=DIR man documentation [PREFIX/man]
971 _ACEOF
973 cat <<\_ACEOF
975 Program names:
976 --program-prefix=PREFIX prepend PREFIX to installed program names
977 --program-suffix=SUFFIX append SUFFIX to installed program names
978 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
980 System types:
981 --build=BUILD configure for building on BUILD [guessed]
982 --host=HOST cross-compile to build programs to run on HOST [BUILD]
983 _ACEOF
986 if test -n "$ac_init_help"; then
988 cat <<\_ACEOF
990 Optional Features:
991 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
992 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
993 --enable-shared=PKGS build shared libraries default=yes
994 --enable-static=PKGS build static libraries default=yes
995 --enable-fast-install=PKGS optimize for fast installation default=yes
996 --disable-libtool-lock avoid locking (might break parallel builds)
997 --enable-maintainer-mode enable make rules and dependencies not useful
998 (and sometimes confusing) to the casual installer
1000 Optional Packages:
1001 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1002 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1003 --with-html-dir=PATH path to installed docs
1004 --with-gnu-ld assume the C compiler uses GNU ld default=no
1005 --with-pic try to use only PIC/non-PIC objects default=use both
1006 --with-zlib=DIR use libz in DIR
1007 --with-python=DIR Build Python bindings if found
1008 --with-readline=DIR use readline in DIR
1009 --with-threads Add multithread support(off)
1010 --with-thread-alloc Add per-thread memory(off)
1011 --with-history Add history support to xmllint shell(off)
1012 --with-ftp Add the FTP support (on)
1013 --with-http Add the HTTP support (on)
1014 --with-html Add the HTML support (on)
1015 --with-catalog Add the Catalog support (on)
1016 --with-docbook Add Docbook SGML support (on)
1017 --with-xpath Add the XPATH support (on)
1018 --with-xptr Add the XPointer support (on)
1019 --with-c14n Add the Canonicalization support (on)
1020 --with-xinclude Add the XInclude support (on)
1021 --with-iconv=DIR Add ICONV support (on)
1022 --with-schemas Add experimental Schemas support (off)
1023 --with-regexps Add Regular Expressions support (on)
1024 --with-debug Add the debugging module (on)
1025 --with-mem-debug Add the memory debugging module (off)
1027 Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CPP C preprocessor
1036 Use these variables to override the choices made by `configure' or to help
1037 it to find libraries and programs with nonstandard names/locations.
1039 _ACEOF
1042 if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
1044 ac_popdir=`pwd`
1045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046 test -d $ac_dir || continue
1047 ac_builddir=.
1049 if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053 else
1054 ac_dir_suffix= ac_top_builddir=
1057 case $srcdir in
1058 .) # No --srcdir option. We are building in place.
1059 ac_srcdir=.
1060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
1062 else
1063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064 fi ;;
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071 esac
1072 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1073 # absolute.
1074 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1075 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1076 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1077 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1079 cd $ac_dir
1080 # Check for guested configure; otherwise get Cygnus style configure.
1081 if test -f $ac_srcdir/configure.gnu; then
1082 echo
1083 $SHELL $ac_srcdir/configure.gnu --help=recursive
1084 elif test -f $ac_srcdir/configure; then
1085 echo
1086 $SHELL $ac_srcdir/configure --help=recursive
1087 elif test -f $ac_srcdir/configure.ac ||
1088 test -f $ac_srcdir/configure.in; then
1089 echo
1090 $ac_configure --help
1091 else
1092 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1094 cd $ac_popdir
1095 done
1098 test -n "$ac_init_help" && exit 0
1099 if $ac_init_version; then
1100 cat <<\_ACEOF
1102 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1103 Free Software Foundation, Inc.
1104 This configure script is free software; the Free Software Foundation
1105 gives unlimited permission to copy, distribute and modify it.
1106 _ACEOF
1107 exit 0
1109 exec 5>config.log
1110 cat >&5 <<_ACEOF
1111 This file contains any messages produced by compilers while
1112 running configure, to aid debugging if configure makes a mistake.
1114 It was created by $as_me, which was
1115 generated by GNU Autoconf 2.53. Invocation command line was
1117 $ $0 $@
1119 _ACEOF
1121 cat <<_ASUNAME
1122 ## --------- ##
1123 ## Platform. ##
1124 ## --------- ##
1126 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1127 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1128 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1129 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1130 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1132 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1133 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1135 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1136 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1137 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1138 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1139 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1140 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1141 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1143 _ASUNAME
1145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1146 for as_dir in $PATH
1148 IFS=$as_save_IFS
1149 test -z "$as_dir" && as_dir=.
1150 echo "PATH: $as_dir"
1151 done
1153 } >&5
1155 cat >&5 <<_ACEOF
1158 ## ----------- ##
1159 ## Core tests. ##
1160 ## ----------- ##
1162 _ACEOF
1165 # Keep a trace of the command line.
1166 # Strip out --no-create and --no-recursion so they do not pile up.
1167 # Also quote any args containing shell meta-characters.
1168 ac_configure_args=
1169 ac_sep=
1170 for ac_arg
1172 case $ac_arg in
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n ) continue ;;
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 continue ;;
1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1180 esac
1181 case " $ac_configure_args " in
1182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1183 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1184 ac_sep=" " ;;
1185 esac
1186 # Get rid of the leading space.
1187 done
1189 # When interrupted or exit'd, cleanup temporary files, and complete
1190 # config.log. We remove comments because anyway the quotes in there
1191 # would cause problems or look ugly.
1192 # WARNING: Be sure not to use single quotes in there, as some shells,
1193 # such as our DU 5.0 friend, will then `close' the trap.
1194 trap 'exit_status=$?
1195 # Save into config.log some information that might help in debugging.
1197 echo
1198 cat <<\_ASBOX
1199 ## ---------------- ##
1200 ## Cache variables. ##
1201 ## ---------------- ##
1202 _ASBOX
1203 echo
1204 # The following way of writing the cache mishandles newlines in values,
1206 (set) 2>&1 |
1207 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1208 *ac_space=\ *)
1209 sed -n \
1210 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1214 sed -n \
1215 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1217 esac;
1219 echo
1220 if test -s confdefs.h; then
1221 cat <<\_ASBOX
1222 ## ----------- ##
1223 ## confdefs.h. ##
1224 ## ----------- ##
1225 _ASBOX
1226 echo
1227 sed "/^$/d" confdefs.h
1228 echo
1230 test "$ac_signal" != 0 &&
1231 echo "$as_me: caught signal $ac_signal"
1232 echo "$as_me: exit $exit_status"
1233 } >&5
1234 rm -f core core.* *.core &&
1235 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236 exit $exit_status
1238 for ac_signal in 1 2 13 15; do
1239 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 done
1241 ac_signal=0
1243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1244 rm -rf conftest* confdefs.h
1245 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 echo >confdefs.h
1248 # Predefined preprocessor variables.
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 _ACEOF
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 _ACEOF
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 _ACEOF
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 _ACEOF
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 _ACEOF
1275 # Let the site file select an alternate cache file if it wants to.
1276 # Prefer explicitly selected file to automatically selected ones.
1277 if test -z "$CONFIG_SITE"; then
1278 if test "x$prefix" != xNONE; then
1279 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280 else
1281 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284 for ac_site_file in $CONFIG_SITE; do
1285 if test -r "$ac_site_file"; then
1286 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1287 echo "$as_me: loading site script $ac_site_file" >&6;}
1288 sed 's/^/| /' "$ac_site_file" >&5
1289 . "$ac_site_file"
1291 done
1293 if test -r "$cache_file"; then
1294 # Some versions of bash will fail to source /dev/null (special
1295 # files actually), so we avoid doing that.
1296 if test -f "$cache_file"; then
1297 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1298 echo "$as_me: loading cache $cache_file" >&6;}
1299 case $cache_file in
1300 [\\/]* | ?:[\\/]* ) . $cache_file;;
1301 *) . ./$cache_file;;
1302 esac
1304 else
1305 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1306 echo "$as_me: creating cache $cache_file" >&6;}
1307 >$cache_file
1310 # Check that the precious variables saved in the cache have kept the same
1311 # value.
1312 ac_cache_corrupted=false
1313 for ac_var in `(set) 2>&1 |
1314 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1316 eval ac_new_set=\$ac_env_${ac_var}_set
1317 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1318 eval ac_new_val="\$ac_env_${ac_var}_value"
1319 case $ac_old_set,$ac_new_set in
1320 set,)
1321 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1323 ac_cache_corrupted=: ;;
1324 ,set)
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1327 ac_cache_corrupted=: ;;
1328 ,);;
1330 if test "x$ac_old_val" != "x$ac_new_val"; then
1331 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1333 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1334 echo "$as_me: former value: $ac_old_val" >&2;}
1335 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1336 echo "$as_me: current value: $ac_new_val" >&2;}
1337 ac_cache_corrupted=:
1338 fi;;
1339 esac
1340 # Pass precious variables to config.status.
1341 if test "$ac_new_set" = set; then
1342 case $ac_new_val in
1343 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1344 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1345 *) ac_arg=$ac_var=$ac_new_val ;;
1346 esac
1347 case " $ac_configure_args " in
1348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1349 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 esac
1352 done
1353 if $ac_cache_corrupted; then
1354 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1355 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1356 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1357 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1358 { (exit 1); exit 1; }; }
1361 ac_ext=c
1362 ac_cpp='$CPP $CPPFLAGS'
1363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 ac_config_headers="$ac_config_headers config.h"
1387 ac_config_commands="$ac_config_commands default-1"
1389 ac_aux_dir=
1390 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1391 if test -f $ac_dir/install-sh; then
1392 ac_aux_dir=$ac_dir
1393 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 break
1395 elif test -f $ac_dir/install.sh; then
1396 ac_aux_dir=$ac_dir
1397 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 break
1399 elif test -f $ac_dir/shtool; then
1400 ac_aux_dir=$ac_dir
1401 ac_install_sh="$ac_aux_dir/shtool install -c"
1402 break
1404 done
1405 if test -z "$ac_aux_dir"; then
1406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1408 { (exit 1); exit 1; }; }
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414 # Make sure we can run config.sub.
1415 $ac_config_sub sun4 >/dev/null 2>&1 ||
1416 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1418 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: checking build system type" >&5
1421 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1422 if test "${ac_cv_build+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425 ac_cv_build_alias=$build_alias
1426 test -z "$ac_cv_build_alias" &&
1427 ac_cv_build_alias=`$ac_config_guess`
1428 test -z "$ac_cv_build_alias" &&
1429 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1431 { (exit 1); exit 1; }; }
1432 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1435 { (exit 1); exit 1; }; }
1438 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1439 echo "${ECHO_T}$ac_cv_build" >&6
1440 build=$ac_cv_build
1441 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446 echo "$as_me:$LINENO: checking host system type" >&5
1447 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1448 if test "${ac_cv_host+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451 ac_cv_host_alias=$host_alias
1452 test -z "$ac_cv_host_alias" &&
1453 ac_cv_host_alias=$ac_cv_build_alias
1454 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1455 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1457 { (exit 1); exit 1; }; }
1460 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1461 echo "${ECHO_T}$ac_cv_host" >&6
1462 host=$ac_cv_host
1463 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469 LIBXML_MAJOR_VERSION=2
1470 LIBXML_MINOR_VERSION=4
1471 LIBXML_MICRO_VERSION=28
1472 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION
1473 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
1475 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
1484 VERSION=${LIBXML_VERSION}
1486 am__api_version="1.4"
1487 # Find a good install program. We prefer a C program (faster),
1488 # so one script is as good as another. But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # ./install, which can be erroneously created by make from ./install.sh.
1499 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1500 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1501 if test -z "$INSTALL"; then
1502 if test "${ac_cv_path_install+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 for as_dir in $PATH
1508 IFS=$as_save_IFS
1509 test -z "$as_dir" && as_dir=.
1510 # Account for people who put trailing slashes in PATH elements.
1511 case $as_dir/ in
1512 ./ | .// | /cC/* | \
1513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1514 /usr/ucb/* ) ;;
1516 # OSF1 and SCO ODT 3.0 have their own names for install.
1517 # Don't use installbsd from OSF since it installs stuff as root
1518 # by default.
1519 for ac_prog in ginstall scoinst install; do
1520 for ac_exec_ext in '' $ac_executable_extensions; do
1521 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1522 if test $ac_prog = install &&
1523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1524 # AIX install. It has an incompatible calling convention.
1526 elif test $ac_prog = install &&
1527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1528 # program-specific install script used by HP pwplus--don't use.
1530 else
1531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1532 break 3
1535 done
1536 done
1538 esac
1539 done
1543 if test "${ac_cv_path_install+set}" = set; then
1544 INSTALL=$ac_cv_path_install
1545 else
1546 # As a last resort, use the slow shell script. We don't cache a
1547 # path for INSTALL within a source directory, because that will
1548 # break other packages using the cache if that directory is
1549 # removed, or if the path is relative.
1550 INSTALL=$ac_install_sh
1553 echo "$as_me:$LINENO: result: $INSTALL" >&5
1554 echo "${ECHO_T}$INSTALL" >&6
1556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1557 # It thinks the first close brace ends the variable substitution.
1558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1564 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1565 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1566 # Just in case
1567 sleep 1
1568 echo timestamp > conftestfile
1569 # Do `set' in a subshell so we don't clobber the current shell's
1570 # arguments. Must try -L first in case configure is actually a
1571 # symlink; some systems play weird games with the mod time of symlinks
1572 # (eg FreeBSD returns the mod time of the symlink's containing
1573 # directory).
1574 if (
1575 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1576 if test "$*" = "X"; then
1577 # -L didn't work.
1578 set X `ls -t $srcdir/configure conftestfile`
1580 if test "$*" != "X $srcdir/configure conftestfile" \
1581 && test "$*" != "X conftestfile $srcdir/configure"; then
1583 # If neither matched, then we have a broken ls. This can happen
1584 # if, for instance, CONFIG_SHELL is bash and it inherits a
1585 # broken ls alias from the environment. This has actually
1586 # happened. Such a system could not be considered "sane".
1587 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1588 alias in your environment" >&5
1589 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1590 alias in your environment" >&2;}
1591 { (exit 1); exit 1; }; }
1594 test "$2" = conftestfile
1596 then
1597 # Ok.
1599 else
1600 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1601 Check your system clock" >&5
1602 echo "$as_me: error: newly created file is older than distributed files!
1603 Check your system clock" >&2;}
1604 { (exit 1); exit 1; }; }
1606 rm -f conftest*
1607 echo "$as_me:$LINENO: result: yes" >&5
1608 echo "${ECHO_T}yes" >&6
1609 test "$program_prefix" != NONE &&
1610 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1611 # Use a double $ so make ignores it.
1612 test "$program_suffix" != NONE &&
1613 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1614 # Double any \ or $. echo might interpret backslashes.
1615 # By default was `s,x,x', remove it if useless.
1616 cat <<\_ACEOF >conftest.sed
1617 s/[\\$]/&&/g;s/;s,x,x,$//
1618 _ACEOF
1619 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1620 rm conftest.sed
1622 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1623 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1624 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1625 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 cat >conftest.make <<\_ACEOF
1629 all:
1630 @echo 'ac_maketemp="${MAKE}"'
1631 _ACEOF
1632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1633 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1634 if test -n "$ac_maketemp"; then
1635 eval ac_cv_prog_make_${ac_make}_set=yes
1636 else
1637 eval ac_cv_prog_make_${ac_make}_set=no
1639 rm -f conftest.make
1641 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1642 echo "$as_me:$LINENO: result: yes" >&5
1643 echo "${ECHO_T}yes" >&6
1644 SET_MAKE=
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 SET_MAKE="MAKE=${MAKE-make}"
1652 PACKAGE=libxml2
1654 VERSION=$VERSION
1656 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1657 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1658 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1659 { (exit 1); exit 1; }; }
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE "$PACKAGE"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define VERSION "$VERSION"
1669 _ACEOF
1673 missing_dir=`cd $ac_aux_dir && pwd`
1674 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1675 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1676 # Run test in a subshell; some versions of sh will print an error if
1677 # an executable is not found, even if stderr is redirected.
1678 # Redirect stdin to placate older versions of autoconf. Sigh.
1679 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1680 ACLOCAL=aclocal-${am__api_version}
1681 echo "$as_me:$LINENO: result: found" >&5
1682 echo "${ECHO_T}found" >&6
1683 else
1684 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1685 echo "$as_me:$LINENO: result: missing" >&5
1686 echo "${ECHO_T}missing" >&6
1689 echo "$as_me:$LINENO: checking for working autoconf" >&5
1690 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1691 # Run test in a subshell; some versions of sh will print an error if
1692 # an executable is not found, even if stderr is redirected.
1693 # Redirect stdin to placate older versions of autoconf. Sigh.
1694 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1695 AUTOCONF=autoconf
1696 echo "$as_me:$LINENO: result: found" >&5
1697 echo "${ECHO_T}found" >&6
1698 else
1699 AUTOCONF="$missing_dir/missing autoconf"
1700 echo "$as_me:$LINENO: result: missing" >&5
1701 echo "${ECHO_T}missing" >&6
1704 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1705 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1706 # Run test in a subshell; some versions of sh will print an error if
1707 # an executable is not found, even if stderr is redirected.
1708 # Redirect stdin to placate older versions of autoconf. Sigh.
1709 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1710 AUTOMAKE=automake-${am__api_version}
1711 echo "$as_me:$LINENO: result: found" >&5
1712 echo "${ECHO_T}found" >&6
1713 else
1714 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1715 echo "$as_me:$LINENO: result: missing" >&5
1716 echo "${ECHO_T}missing" >&6
1719 echo "$as_me:$LINENO: checking for working autoheader" >&5
1720 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1721 # Run test in a subshell; some versions of sh will print an error if
1722 # an executable is not found, even if stderr is redirected.
1723 # Redirect stdin to placate older versions of autoconf. Sigh.
1724 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1725 AUTOHEADER=autoheader
1726 echo "$as_me:$LINENO: result: found" >&5
1727 echo "${ECHO_T}found" >&6
1728 else
1729 AUTOHEADER="$missing_dir/missing autoheader"
1730 echo "$as_me:$LINENO: result: missing" >&5
1731 echo "${ECHO_T}missing" >&6
1734 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1735 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1736 # Run test in a subshell; some versions of sh will print an error if
1737 # an executable is not found, even if stderr is redirected.
1738 # Redirect stdin to placate older versions of autoconf. Sigh.
1739 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1740 MAKEINFO=makeinfo
1741 echo "$as_me:$LINENO: result: found" >&5
1742 echo "${ECHO_T}found" >&6
1743 else
1744 MAKEINFO="$missing_dir/missing makeinfo"
1745 echo "$as_me:$LINENO: result: missing" >&5
1746 echo "${ECHO_T}missing" >&6
1752 # Check whether --with-html-dir or --without-html-dir was given.
1753 if test "${with_html_dir+set}" = set; then
1754 withval="$with_html_dir"
1758 ac_ext=c
1759 ac_cpp='$CPP $CPPFLAGS'
1760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1763 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1785 done
1786 done
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1800 if test -z "$ac_cv_prog_CC"; then
1801 ac_ct_CC=$CC
1802 # Extract the first word of "gcc", so it can be a program name with args.
1803 set dummy gcc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$ac_ct_CC"; then
1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_CC="gcc"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1823 done
1824 done
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 CC=$ac_ct_CC
1838 else
1839 CC="$ac_cv_prog_CC"
1842 if test -z "$CC"; then
1843 if test -n "$ac_tool_prefix"; then
1844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_CC="${ac_tool_prefix}cc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1865 done
1866 done
1870 CC=$ac_cv_prog_CC
1871 if test -n "$CC"; then
1872 echo "$as_me:$LINENO: result: $CC" >&5
1873 echo "${ECHO_T}$CC" >&6
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1880 if test -z "$ac_cv_prog_CC"; then
1881 ac_ct_CC=$CC
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$ac_ct_CC"; then
1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_CC="cc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1903 done
1904 done
1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909 if test -n "$ac_ct_CC"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911 echo "${ECHO_T}$ac_ct_CC" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 CC=$ac_ct_CC
1918 else
1919 CC="$ac_cv_prog_CC"
1923 if test -z "$CC"; then
1924 # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1933 else
1934 ac_prog_rejected=no
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1943 ac_prog_rejected=yes
1944 continue
1946 ac_cv_prog_CC="cc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1950 done
1951 done
1953 if test $ac_prog_rejected = yes; then
1954 # We found a bogon in the path, so make sure we never use it.
1955 set dummy $ac_cv_prog_CC
1956 shift
1957 if test $# != 0; then
1958 # We chose a different compiler from the bogus one.
1959 # However, it has the same basename, so the bogon will be chosen
1960 # first if we set CC to just the basename; use the full file name.
1961 shift
1962 set dummy "$as_dir/$ac_word" ${1+"$@"}
1963 shift
1964 ac_cv_prog_CC="$@"
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in cl
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2004 done
2005 done
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2013 else
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2018 test -n "$CC" && break
2019 done
2021 if test -z "$CC"; then
2022 ac_ct_CC=$CC
2023 for ac_prog in cl
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2046 done
2047 done
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$ac_ct_CC" && break
2061 done
2063 CC=$ac_ct_CC
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2071 { (exit 1); exit 1; }; }
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO:" \
2075 "checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2078 (eval $ac_compiler --version </dev/null >&5) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2083 (eval $ac_compiler -v </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2088 (eval $ac_compiler -V </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line $LINENO "configure"
2095 #include "confdefs.h"
2097 #ifdef F77_DUMMY_MAIN
2098 # ifdef __cplusplus
2099 extern "C"
2100 # endif
2101 int F77_DUMMY_MAIN() { return 1; }
2102 #endif
2104 main ()
2108 return 0;
2110 _ACEOF
2111 ac_clean_files_save=$ac_clean_files
2112 ac_clean_files="$ac_clean_files a.out a.exe"
2113 # Try to create an executable without -o first, disregard a.out.
2114 # It will help us diagnose broken compilers, and finding out an intuition
2115 # of exeext.
2116 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2117 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2118 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120 (eval $ac_link_default) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 # Find the output, starting from the most likely. This scheme is
2125 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # resort.
2128 # Be careful to initialize this variable, since it used to be cached.
2129 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130 ac_cv_exeext=
2131 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2132 ls a.out conftest 2>/dev/null;
2133 ls a.* conftest.* 2>/dev/null`; do
2134 case $ac_file in
2135 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2136 a.out ) # We found the default executable, but exeext='' is most
2137 # certainly right.
2138 break;;
2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2141 export ac_cv_exeext
2142 break;;
2143 * ) break;;
2144 esac
2145 done
2146 else
2147 echo "$as_me: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2150 echo "$as_me: error: C compiler cannot create executables" >&2;}
2151 { (exit 77); exit 77; }; }
2154 ac_exeext=$ac_cv_exeext
2155 echo "$as_me:$LINENO: result: $ac_file" >&5
2156 echo "${ECHO_T}$ac_file" >&6
2158 # Check the compiler produces executables we can run. If not, either
2159 # the compiler is broken, or we cross compile.
2160 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2161 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2162 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2163 # If not cross compiling, check that we can run a simple program.
2164 if test "$cross_compiling" != yes; then
2165 if { ac_try='./$ac_file'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 (eval $ac_try) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; }; then
2171 cross_compiling=no
2172 else
2173 if test "$cross_compiling" = maybe; then
2174 cross_compiling=yes
2175 else
2176 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2177 If you meant to cross compile, use \`--host'." >&5
2178 echo "$as_me: error: cannot run C compiled programs.
2179 If you meant to cross compile, use \`--host'." >&2;}
2180 { (exit 1); exit 1; }; }
2184 echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6
2187 rm -f a.out a.exe conftest$ac_cv_exeext
2188 ac_clean_files=$ac_clean_files_save
2189 # Check the compiler produces executables we can run. If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194 echo "${ECHO_T}$cross_compiling" >&6
2196 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199 (eval $ac_link) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2204 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2205 # work properly (i.e., refer to `conftest.exe'), while it won't with
2206 # `rm'.
2207 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2208 case $ac_file in
2209 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211 export ac_cv_exeext
2212 break;;
2213 * ) break;;
2214 esac
2215 done
2216 else
2217 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2218 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2219 { (exit 1); exit 1; }; }
2222 rm -f conftest$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224 echo "${ECHO_T}$ac_cv_exeext" >&6
2226 rm -f conftest.$ac_ext
2227 EXEEXT=$ac_cv_exeext
2228 ac_exeext=$EXEEXT
2229 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2231 if test "${ac_cv_objext+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2236 #include "confdefs.h"
2238 #ifdef F77_DUMMY_MAIN
2239 # ifdef __cplusplus
2240 extern "C"
2241 # endif
2242 int F77_DUMMY_MAIN() { return 1; }
2243 #endif
2245 main ()
2249 return 0;
2251 _ACEOF
2252 rm -f conftest.o conftest.obj
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; then
2258 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2259 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2262 break;;
2263 esac
2264 done
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2270 { (exit 1); exit 1; }; }
2273 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2275 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2276 echo "${ECHO_T}$ac_cv_objext" >&6
2277 OBJEXT=$ac_cv_objext
2278 ac_objext=$OBJEXT
2279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2288 #ifdef F77_DUMMY_MAIN
2289 # ifdef __cplusplus
2290 extern "C"
2291 # endif
2292 int F77_DUMMY_MAIN() { return 1; }
2293 #endif
2295 main ()
2297 #ifndef __GNUC__
2298 choke me
2299 #endif
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_compiler_gnu=yes
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 ac_compiler_gnu=no
2323 rm -f conftest.$ac_objext conftest.$ac_ext
2324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2327 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2328 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2329 GCC=`test $ac_compiler_gnu = yes && echo yes`
2330 ac_test_CFLAGS=${CFLAGS+set}
2331 ac_save_CFLAGS=$CFLAGS
2332 CFLAGS="-g"
2333 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2334 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cc_g+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2342 #ifdef F77_DUMMY_MAIN
2343 # ifdef __cplusplus
2344 extern "C"
2345 # endif
2346 int F77_DUMMY_MAIN() { return 1; }
2347 #endif
2349 main ()
2353 return 0;
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_g=yes
2369 else
2370 echo "$as_me: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 ac_cv_prog_cc_g=no
2374 rm -f conftest.$ac_objext conftest.$ac_ext
2376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2378 if test "$ac_test_CFLAGS" = set; then
2379 CFLAGS=$ac_save_CFLAGS
2380 elif test $ac_cv_prog_cc_g = yes; then
2381 if test "$GCC" = yes; then
2382 CFLAGS="-g -O2"
2383 else
2384 CFLAGS="-g"
2386 else
2387 if test "$GCC" = yes; then
2388 CFLAGS="-O2"
2389 else
2390 CFLAGS=
2393 # Some people use a C++ compiler to compile C. Since we use `exit',
2394 # in C++ we need to declare it. In case someone uses the same compiler
2395 # for both compiling C and C++ we need to have the C++ compiler decide
2396 # the declaration of exit, since it's the most demanding environment.
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #ifndef __cplusplus
2399 choke me
2400 #endif
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 for ac_declaration in \
2416 '#include <stdlib.h>' \
2417 'extern "C" void std::exit (int) throw (); using std::exit;' \
2418 'extern "C" void std::exit (int); using std::exit;' \
2419 'extern "C" void exit (int) throw ();' \
2420 'extern "C" void exit (int);' \
2421 'void exit (int);'
2423 cat >conftest.$ac_ext <<_ACEOF
2424 #line $LINENO "configure"
2425 #include "confdefs.h"
2426 #include <stdlib.h>
2427 $ac_declaration
2428 #ifdef F77_DUMMY_MAIN
2429 # ifdef __cplusplus
2430 extern "C"
2431 # endif
2432 int F77_DUMMY_MAIN() { return 1; }
2433 #endif
2435 main ()
2437 exit (42);
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 continue
2460 rm -f conftest.$ac_objext conftest.$ac_ext
2461 cat >conftest.$ac_ext <<_ACEOF
2462 #line $LINENO "configure"
2463 #include "confdefs.h"
2464 $ac_declaration
2465 #ifdef F77_DUMMY_MAIN
2466 # ifdef __cplusplus
2467 extern "C"
2468 # endif
2469 int F77_DUMMY_MAIN() { return 1; }
2470 #endif
2472 main ()
2474 exit (42);
2476 return 0;
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 break
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 done
2498 rm -f conftest*
2499 if test -n "$ac_declaration"; then
2500 echo '#ifdef __cplusplus' >>confdefs.h
2501 echo $ac_declaration >>confdefs.h
2502 echo '#endif' >>confdefs.h
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2509 rm -f conftest.$ac_objext conftest.$ac_ext
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516 # Find a good install program. We prefer a C program (faster),
2517 # so one script is as good as another. But avoid the broken or
2518 # incompatible versions:
2519 # SysV /etc/install, /usr/sbin/install
2520 # SunOS /usr/etc/install
2521 # IRIX /sbin/install
2522 # AIX /bin/install
2523 # AmigaOS /C/install, which installs bootblocks on floppy discs
2524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527 # ./install, which can be erroneously created by make from ./install.sh.
2528 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2529 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2530 if test -z "$INSTALL"; then
2531 if test "${ac_cv_path_install+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 # Account for people who put trailing slashes in PATH elements.
2540 case $as_dir/ in
2541 ./ | .// | /cC/* | \
2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543 /usr/ucb/* ) ;;
2545 # OSF1 and SCO ODT 3.0 have their own names for install.
2546 # Don't use installbsd from OSF since it installs stuff as root
2547 # by default.
2548 for ac_prog in ginstall scoinst install; do
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2551 if test $ac_prog = install &&
2552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553 # AIX install. It has an incompatible calling convention.
2555 elif test $ac_prog = install &&
2556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # program-specific install script used by HP pwplus--don't use.
2559 else
2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 break 3
2564 done
2565 done
2567 esac
2568 done
2572 if test "${ac_cv_path_install+set}" = set; then
2573 INSTALL=$ac_cv_path_install
2574 else
2575 # As a last resort, use the slow shell script. We don't cache a
2576 # path for INSTALL within a source directory, because that will
2577 # break other packages using the cache if that directory is
2578 # removed, or if the path is relative.
2579 INSTALL=$ac_install_sh
2582 echo "$as_me:$LINENO: result: $INSTALL" >&5
2583 echo "${ECHO_T}$INSTALL" >&6
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2599 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2600 # On Suns, sometimes $CPP names a directory.
2601 if test -n "$CPP" && test -d "$CPP"; then
2602 CPP=
2604 if test -z "$CPP"; then
2605 if test "${ac_cv_prog_CPP+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 # Double quotes because CPP needs to be expanded
2609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2611 ac_preproc_ok=false
2612 for ac_c_preproc_warn_flag in '' yes
2614 # Use a header file that comes with gcc, so configuring glibc
2615 # with a fresh cross-compiler works.
2616 # On the NeXT, cc -E runs the code through the compiler's parser,
2617 # not just through cpp. "Syntax error" is here to catch this case.
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2621 #include <assert.h>
2622 Syntax error
2623 _ACEOF
2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626 ac_status=$?
2627 egrep -v '^ *\+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } >/dev/null; then
2632 if test -s conftest.err; then
2633 ac_cpp_err=$ac_c_preproc_warn_flag
2634 else
2635 ac_cpp_err=
2637 else
2638 ac_cpp_err=yes
2640 if test -z "$ac_cpp_err"; then
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 # Broken: fails on valid input.
2646 continue
2648 rm -f conftest.err conftest.$ac_ext
2650 # OK, works on sane cases. Now check whether non-existent headers
2651 # can be detected and how.
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655 #include <ac_nonexistent.h>
2656 _ACEOF
2657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659 ac_status=$?
2660 egrep -v '^ *\+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } >/dev/null; then
2665 if test -s conftest.err; then
2666 ac_cpp_err=$ac_c_preproc_warn_flag
2667 else
2668 ac_cpp_err=
2670 else
2671 ac_cpp_err=yes
2673 if test -z "$ac_cpp_err"; then
2674 # Broken: success on invalid input.
2675 continue
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 # Passes both tests.
2680 ac_preproc_ok=:
2681 break
2683 rm -f conftest.err conftest.$ac_ext
2685 done
2686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2687 rm -f conftest.err conftest.$ac_ext
2688 if $ac_preproc_ok; then
2689 break
2692 done
2693 ac_cv_prog_CPP=$CPP
2696 CPP=$ac_cv_prog_CPP
2697 else
2698 ac_cv_prog_CPP=$CPP
2700 echo "$as_me:$LINENO: result: $CPP" >&5
2701 echo "${ECHO_T}$CPP" >&6
2702 ac_preproc_ok=false
2703 for ac_c_preproc_warn_flag in '' yes
2705 # Use a header file that comes with gcc, so configuring glibc
2706 # with a fresh cross-compiler works.
2707 # On the NeXT, cc -E runs the code through the compiler's parser,
2708 # not just through cpp. "Syntax error" is here to catch this case.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2711 #include "confdefs.h"
2712 #include <assert.h>
2713 Syntax error
2714 _ACEOF
2715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2717 ac_status=$?
2718 egrep -v '^ *\+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } >/dev/null; then
2723 if test -s conftest.err; then
2724 ac_cpp_err=$ac_c_preproc_warn_flag
2725 else
2726 ac_cpp_err=
2728 else
2729 ac_cpp_err=yes
2731 if test -z "$ac_cpp_err"; then
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2736 # Broken: fails on valid input.
2737 continue
2739 rm -f conftest.err conftest.$ac_ext
2741 # OK, works on sane cases. Now check whether non-existent headers
2742 # can be detected and how.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 #line $LINENO "configure"
2745 #include "confdefs.h"
2746 #include <ac_nonexistent.h>
2747 _ACEOF
2748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750 ac_status=$?
2751 egrep -v '^ *\+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } >/dev/null; then
2756 if test -s conftest.err; then
2757 ac_cpp_err=$ac_c_preproc_warn_flag
2758 else
2759 ac_cpp_err=
2761 else
2762 ac_cpp_err=yes
2764 if test -z "$ac_cpp_err"; then
2765 # Broken: success on invalid input.
2766 continue
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 # Passes both tests.
2771 ac_preproc_ok=:
2772 break
2774 rm -f conftest.err conftest.$ac_ext
2776 done
2777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2778 rm -f conftest.err conftest.$ac_ext
2779 if $ac_preproc_ok; then
2781 else
2782 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2783 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2784 { (exit 1); exit 1; }; }
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793 # Extract the first word of "rm", so it can be a program name with args.
2794 set dummy rm; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_path_RM+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 case $RM in
2801 [\\/]* | ?:[\\/]*)
2802 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2819 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2821 esac
2823 RM=$ac_cv_path_RM
2825 if test -n "$RM"; then
2826 echo "$as_me:$LINENO: result: $RM" >&5
2827 echo "${ECHO_T}$RM" >&6
2828 else
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 # Extract the first word of "mv", so it can be a program name with args.
2834 set dummy mv; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_path_MV+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 case $MV in
2841 [\\/]* | ?:[\\/]*)
2842 ac_cv_path_MV="$MV" # Let the user override the test with a path.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2859 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
2861 esac
2863 MV=$ac_cv_path_MV
2865 if test -n "$MV"; then
2866 echo "$as_me:$LINENO: result: $MV" >&5
2867 echo "${ECHO_T}$MV" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 # Extract the first word of "tar", so it can be a program name with args.
2874 set dummy tar; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_path_TAR+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 case $TAR in
2881 [\\/]* | ?:[\\/]*)
2882 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2899 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
2901 esac
2903 TAR=$ac_cv_path_TAR
2905 if test -n "$TAR"; then
2906 echo "$as_me:$LINENO: result: $TAR" >&5
2907 echo "${ECHO_T}$TAR" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2918 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2919 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2920 if test "${am_cv_prog_cc_stdc+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 am_cv_prog_cc_stdc=no
2924 ac_save_CC="$CC"
2925 # Don't try gcc -ansi; that turns off useful extensions and
2926 # breaks some systems' header files.
2927 # AIX -qlanglvl=ansi
2928 # Ultrix and OSF/1 -std1
2929 # HP-UX -Aa -D_HPUX_SOURCE
2930 # SVR4 -Xc -D__EXTENSIONS__
2931 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2933 CC="$ac_save_CC $ac_arg"
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2936 #include "confdefs.h"
2937 #include <stdarg.h>
2938 #include <stdio.h>
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2945 char **p;
2946 int i;
2948 return p[i];
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2952 char *s;
2953 va_list v;
2954 va_start (v,p);
2955 s = g (p, va_arg (v,int));
2956 va_end (v);
2957 return s;
2959 int test (int i, double x);
2960 struct s1 {int (*f) (int a);};
2961 struct s2 {int (*f) (double a);};
2962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2963 int argc;
2964 char **argv;
2966 #ifdef F77_DUMMY_MAIN
2967 # ifdef __cplusplus
2968 extern "C"
2969 # endif
2970 int F77_DUMMY_MAIN() { return 1; }
2971 #endif
2973 main ()
2976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2979 return 0;
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 am_cv_prog_cc_stdc="$ac_arg"; break
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 rm -f conftest.$ac_objext conftest.$ac_ext
3000 done
3001 CC="$ac_save_CC"
3005 if test -z "$am_cv_prog_cc_stdc"; then
3006 echo "$as_me:$LINENO: result: none needed" >&5
3007 echo "${ECHO_T}none needed" >&6
3008 else
3009 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3010 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3012 case "x$am_cv_prog_cc_stdc" in
3013 x|xno) ;;
3014 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3015 esac
3018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3029 inttypes.h stdint.h unistd.h
3031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3032 echo "$as_me:$LINENO: checking for $ac_header" >&5
3033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 cat >conftest.$ac_ext <<_ACEOF
3038 #line $LINENO "configure"
3039 #include "confdefs.h"
3040 $ac_includes_default
3042 #include <$ac_header>
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 eval "$as_ac_Header=yes"
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 eval "$as_ac_Header=no"
3062 rm -f conftest.$ac_objext conftest.$ac_ext
3064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3067 cat >>confdefs.h <<_ACEOF
3068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3069 _ACEOF
3073 done
3078 echo "$as_me:$LINENO: checking for function prototypes" >&5
3079 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3080 if test "$am_cv_prog_cc_stdc" != no; then
3081 echo "$as_me:$LINENO: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6
3084 cat >>confdefs.h <<\_ACEOF
3085 #define PROTOTYPES 1
3086 _ACEOF
3088 U= ANSI2KNR=
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3092 U=_ ANSI2KNR=./ansi2knr
3093 # Ensure some checks needed by ansi2knr itself.
3094 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3096 if test "${ac_cv_header_stdc+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 #include "confdefs.h"
3102 #include <stdlib.h>
3103 #include <stdarg.h>
3104 #include <string.h>
3105 #include <float.h>
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110 ac_status=$?
3111 egrep -v '^ *\+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev/null; then
3116 if test -s conftest.err; then
3117 ac_cpp_err=$ac_c_preproc_warn_flag
3118 else
3119 ac_cpp_err=
3121 else
3122 ac_cpp_err=yes
3124 if test -z "$ac_cpp_err"; then
3125 ac_cv_header_stdc=yes
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 ac_cv_header_stdc=no
3131 rm -f conftest.err conftest.$ac_ext
3133 if test $ac_cv_header_stdc = yes; then
3134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3135 cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 #include "confdefs.h"
3138 #include <string.h>
3140 _ACEOF
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 egrep "memchr" >/dev/null 2>&1; then
3144 else
3145 ac_cv_header_stdc=no
3147 rm -f conftest*
3151 if test $ac_cv_header_stdc = yes; then
3152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 #include "confdefs.h"
3156 #include <stdlib.h>
3158 _ACEOF
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "free" >/dev/null 2>&1; then
3162 else
3163 ac_cv_header_stdc=no
3165 rm -f conftest*
3169 if test $ac_cv_header_stdc = yes; then
3170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3171 if test "$cross_compiling" = yes; then
3173 else
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 #include "confdefs.h"
3177 #include <ctype.h>
3178 #if ((' ' & 0x0FF) == 0x020)
3179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3181 #else
3182 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3183 || ('j' <= (c) && (c) <= 'r') \
3184 || ('s' <= (c) && (c) <= 'z'))
3185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3186 #endif
3188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3190 main ()
3192 int i;
3193 for (i = 0; i < 256; i++)
3194 if (XOR (islower (i), ISLOWER (i))
3195 || toupper (i) != TOUPPER (i))
3196 exit(2);
3197 exit (0);
3199 _ACEOF
3200 rm -f conftest$ac_exeext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3202 (eval $ac_link) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3212 else
3213 echo "$as_me: program exited with status $ac_status" >&5
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216 ( exit $ac_status )
3217 ac_cv_header_stdc=no
3219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3223 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3224 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3225 if test $ac_cv_header_stdc = yes; then
3227 cat >>confdefs.h <<\_ACEOF
3228 #define STDC_HEADERS 1
3229 _ACEOF
3234 for ac_header in string.h
3236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3238 echo "$as_me:$LINENO: checking for $ac_header" >&5
3239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3245 else
3246 # Is the header compilable?
3247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 #include "confdefs.h"
3252 $ac_includes_default
3253 #include <$ac_header>
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -s conftest.$ac_objext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3267 ac_header_compiler=yes
3268 else
3269 echo "$as_me: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 ac_header_compiler=no
3273 rm -f conftest.$ac_objext conftest.$ac_ext
3274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3275 echo "${ECHO_T}$ac_header_compiler" >&6
3277 # Is the header present?
3278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 #include "confdefs.h"
3283 #include <$ac_header>
3284 _ACEOF
3285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 ac_status=$?
3288 egrep -v '^ *\+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 else
3296 ac_cpp_err=
3298 else
3299 ac_cpp_err=yes
3301 if test -z "$ac_cpp_err"; then
3302 ac_header_preproc=yes
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 ac_header_preproc=no
3308 rm -f conftest.err conftest.$ac_ext
3309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3310 echo "${ECHO_T}$ac_header_preproc" >&6
3312 # So? What about this header?
3313 case $ac_header_compiler:$ac_header_preproc in
3314 yes:no )
3315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3319 no:yes )
3320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3326 esac
3327 echo "$as_me:$LINENO: checking for $ac_header" >&5
3328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 eval "$as_ac_Header=$ac_header_preproc"
3334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3339 cat >>confdefs.h <<_ACEOF
3340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3341 _ACEOF
3345 done
3349 test "x$U" != "x" && { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3350 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3351 { (exit 1); exit 1; }; }
3353 # Check whether --enable-shared or --disable-shared was given.
3354 if test "${enable_shared+set}" = set; then
3355 enableval="$enable_shared"
3356 p=${PACKAGE-default}
3357 case $enableval in
3358 yes) enable_shared=yes ;;
3359 no) enable_shared=no ;;
3361 enable_shared=no
3362 # Look at the argument we got. We use all the common list separators.
3363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3364 for pkg in $enableval; do
3365 if test "X$pkg" = "X$p"; then
3366 enable_shared=yes
3368 done
3369 IFS="$ac_save_ifs"
3371 esac
3372 else
3373 enable_shared=yes
3375 # Check whether --enable-static or --disable-static was given.
3376 if test "${enable_static+set}" = set; then
3377 enableval="$enable_static"
3378 p=${PACKAGE-default}
3379 case $enableval in
3380 yes) enable_static=yes ;;
3381 no) enable_static=no ;;
3383 enable_static=no
3384 # Look at the argument we got. We use all the common list separators.
3385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3386 for pkg in $enableval; do
3387 if test "X$pkg" = "X$p"; then
3388 enable_static=yes
3390 done
3391 IFS="$ac_save_ifs"
3393 esac
3394 else
3395 enable_static=yes
3397 # Check whether --enable-fast-install or --disable-fast-install was given.
3398 if test "${enable_fast_install+set}" = set; then
3399 enableval="$enable_fast_install"
3400 p=${PACKAGE-default}
3401 case $enableval in
3402 yes) enable_fast_install=yes ;;
3403 no) enable_fast_install=no ;;
3405 enable_fast_install=no
3406 # Look at the argument we got. We use all the common list separators.
3407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3408 for pkg in $enableval; do
3409 if test "X$pkg" = "X$p"; then
3410 enable_fast_install=yes
3412 done
3413 IFS="$ac_save_ifs"
3415 esac
3416 else
3417 enable_fast_install=yes
3419 # Find the correct PATH separator. Usually this is `:', but
3420 # DJGPP uses `;' like DOS.
3421 if test "X${PATH_SEPARATOR+set}" != Xset; then
3422 UNAME=${UNAME-`uname 2>/dev/null`}
3423 case X$UNAME in
3424 *-DOS) lt_cv_sys_path_separator=';' ;;
3425 *) lt_cv_sys_path_separator=':' ;;
3426 esac
3427 PATH_SEPARATOR=$lt_cv_sys_path_separator
3431 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3432 if test "${with_gnu_ld+set}" = set; then
3433 withval="$with_gnu_ld"
3434 test "$withval" = no || with_gnu_ld=yes
3435 else
3436 with_gnu_ld=no
3438 ac_prog=ld
3439 if test "$GCC" = yes; then
3440 # Check if gcc -print-prog-name=ld gives a path.
3441 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3442 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3443 case $host in
3444 *-*-mingw*)
3445 # gcc leaves a trailing carriage return which upsets mingw
3446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3449 esac
3450 case $ac_prog in
3451 # Accept absolute paths.
3452 [\\/]* | [A-Za-z]:[\\/]*)
3453 re_direlt='/[^/][^/]*/\.\./'
3454 # Canonicalize the path of ld
3455 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3457 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3458 done
3459 test -z "$LD" && LD="$ac_prog"
3462 # If it fails, then pretend we aren't using GCC.
3463 ac_prog=ld
3466 # If it is relative, then search for the first ld in PATH.
3467 with_gnu_ld=unknown
3469 esac
3470 elif test "$with_gnu_ld" = yes; then
3471 echo "$as_me:$LINENO: checking for GNU ld" >&5
3472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3473 else
3474 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3477 if test "${lt_cv_path_LD+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 if test -z "$LD"; then
3481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3482 for ac_dir in $PATH; do
3483 test -z "$ac_dir" && ac_dir=.
3484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485 lt_cv_path_LD="$ac_dir/$ac_prog"
3486 # Check to see if the program is GNU ld. I'd rather use --version,
3487 # but apparently some GNU ld's only accept -v.
3488 # Break only if it was the GNU/non-GNU ld that we prefer.
3489 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3490 test "$with_gnu_ld" != no && break
3491 else
3492 test "$with_gnu_ld" != yes && break
3495 done
3496 IFS="$ac_save_ifs"
3497 else
3498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3502 LD="$lt_cv_path_LD"
3503 if test -n "$LD"; then
3504 echo "$as_me:$LINENO: result: $LD" >&5
3505 echo "${ECHO_T}$LD" >&6
3506 else
3507 echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6
3510 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3511 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3512 { (exit 1); exit 1; }; }
3513 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3514 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3515 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3519 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3520 lt_cv_prog_gnu_ld=yes
3521 else
3522 lt_cv_prog_gnu_ld=no
3525 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3526 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3527 with_gnu_ld=$lt_cv_prog_gnu_ld
3530 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3531 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3532 if test "${lt_cv_ld_reload_flag+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 lt_cv_ld_reload_flag='-r'
3537 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3538 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3539 reload_flag=$lt_cv_ld_reload_flag
3540 test -n "$reload_flag" && reload_flag=" $reload_flag"
3542 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3543 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3544 if test "${lt_cv_path_NM+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test -n "$NM"; then
3548 # Let the user override the test.
3549 lt_cv_path_NM="$NM"
3550 else
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3552 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3553 test -z "$ac_dir" && ac_dir=.
3554 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3555 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3556 # Check to see if the nm accepts a BSD-compat flag.
3557 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3558 # nm: unknown option "B" ignored
3559 # Tru64's nm complains that /dev/null is an invalid object file
3560 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3561 lt_cv_path_NM="$tmp_nm -B"
3562 break
3563 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3564 lt_cv_path_NM="$tmp_nm -p"
3565 break
3566 else
3567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3568 continue # so that we can try to find one that supports BSD flags
3571 done
3572 IFS="$ac_save_ifs"
3573 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3577 NM="$lt_cv_path_NM"
3578 echo "$as_me:$LINENO: result: $NM" >&5
3579 echo "${ECHO_T}$NM" >&6
3581 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3582 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3583 LN_S=$as_ln_s
3584 if test "$LN_S" = "ln -s"; then
3585 echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3589 echo "${ECHO_T}no, using $LN_S" >&6
3592 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3593 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3594 if test "${lt_cv_deplibs_check_method+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 lt_cv_file_magic_cmd='$MAGIC_CMD'
3598 lt_cv_file_magic_test_file=
3599 lt_cv_deplibs_check_method='unknown'
3600 # Need to set the preceding variable on all platforms that support
3601 # interlibrary dependencies.
3602 # 'none' -- dependencies not supported.
3603 # `unknown' -- same as none, but documents that we really don't know.
3604 # 'pass_all' -- all dependencies passed with no checks.
3605 # 'test_compile' -- check by making test program.
3606 # 'file_magic [[regex]]' -- check by looking for files in library path
3607 # which responds to the $file_magic_cmd with a given egrep regex.
3608 # If you have `file' or equivalent on your system and you're not sure
3609 # whether `pass_all' will *always* work, you probably want this one.
3611 case $host_os in
3612 aix4* | aix5*)
3613 lt_cv_deplibs_check_method=pass_all
3616 beos*)
3617 lt_cv_deplibs_check_method=pass_all
3620 bsdi4*)
3621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3622 lt_cv_file_magic_cmd='/usr/bin/file -L'
3623 lt_cv_file_magic_test_file=/shlib/libc.so
3626 cygwin* | mingw* | pw32*)
3627 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3628 lt_cv_file_magic_cmd='$OBJDUMP -f'
3631 darwin* | rhapsody*)
3632 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3633 lt_cv_file_magic_cmd='/usr/bin/file -L'
3634 case "$host_os" in
3635 rhapsody* | darwin1.[012])
3636 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3638 *) # Darwin 1.3 on
3639 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3641 esac
3644 freebsd*)
3645 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3646 case $host_cpu in
3647 i*86 )
3648 # Not sure whether the presence of OpenBSD here was a mistake.
3649 # Let's accept both of them until this is cleared up.
3650 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3651 lt_cv_file_magic_cmd=/usr/bin/file
3652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3654 esac
3655 else
3656 lt_cv_deplibs_check_method=pass_all
3660 gnu*)
3661 lt_cv_deplibs_check_method=pass_all
3664 hpux10.20*|hpux11*)
3665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3666 lt_cv_file_magic_cmd=/usr/bin/file
3667 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3670 irix5* | irix6*)
3671 case $host_os in
3672 irix5*)
3673 # this will be overridden with pass_all, but let us keep it just in case
3674 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3677 case $LD in
3678 *-32|*"-32 ") libmagic=32-bit;;
3679 *-n32|*"-n32 ") libmagic=N32;;
3680 *-64|*"-64 ") libmagic=64-bit;;
3681 *) libmagic=never-match;;
3682 esac
3683 # this will be overridden with pass_all, but let us keep it just in case
3684 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3686 esac
3687 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3688 lt_cv_deplibs_check_method=pass_all
3691 # This must be Linux ELF.
3692 linux-gnu*)
3693 case $host_cpu in
3694 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3695 lt_cv_deplibs_check_method=pass_all ;;
3697 # glibc up to 2.1.1 does not perform some relocations on ARM
3698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3699 esac
3700 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3703 netbsd*)
3704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3705 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3706 else
3707 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3711 newos6*)
3712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3713 lt_cv_file_magic_cmd=/usr/bin/file
3714 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3717 openbsd*)
3718 lt_cv_file_magic_cmd=/usr/bin/file
3719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3722 else
3723 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3727 osf3* | osf4* | osf5*)
3728 # this will be overridden with pass_all, but let us keep it just in case
3729 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3730 lt_cv_file_magic_test_file=/shlib/libc.so
3731 lt_cv_deplibs_check_method=pass_all
3734 sco3.2v5*)
3735 lt_cv_deplibs_check_method=pass_all
3738 solaris*)
3739 lt_cv_deplibs_check_method=pass_all
3740 lt_cv_file_magic_test_file=/lib/libc.so
3743 sysv5uw[78]* | sysv4*uw2*)
3744 lt_cv_deplibs_check_method=pass_all
3747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3748 case $host_vendor in
3749 motorola)
3750 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]'
3751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3753 ncr)
3754 lt_cv_deplibs_check_method=pass_all
3756 sequent)
3757 lt_cv_file_magic_cmd='/bin/file'
3758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3760 sni)
3761 lt_cv_file_magic_cmd='/bin/file'
3762 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3763 lt_cv_file_magic_test_file=/lib/libc.so
3765 esac
3767 esac
3770 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3771 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3772 file_magic_cmd=$lt_cv_file_magic_cmd
3773 deplibs_check_method=$lt_cv_deplibs_check_method
3781 # Check for command to grab the raw symbol name followed by C symbol from nm.
3782 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3783 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3784 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3788 # These are sane defaults that work on at least a few old systems.
3789 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3791 # Character class describing NM global symbol codes.
3792 symcode='[BCDEGRST]'
3794 # Regexp to match symbols that can be accessed directly from C.
3795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3797 # Transform the above into a raw symbol and a C symbol.
3798 symxfrm='\1 \2\3 \3'
3800 # Transform an extracted symbol line into a proper C declaration
3801 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3803 # Transform an extracted symbol line into symbol name and symbol address
3804 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'"
3806 # Define system-specific variables.
3807 case $host_os in
3808 aix*)
3809 symcode='[BCDT]'
3811 cygwin* | mingw* | pw32*)
3812 symcode='[ABCDGISTW]'
3814 hpux*) # Its linker distinguishes data from code symbols
3815 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3816 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'"
3818 irix*)
3819 symcode='[BCDEGRST]'
3821 solaris* | sysv5*)
3822 symcode='[BDT]'
3824 sysv4)
3825 symcode='[DFNSTU]'
3827 esac
3829 # Handle CRLF in mingw tool chain
3830 opt_cr=
3831 case $host_os in
3832 mingw*)
3833 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3835 esac
3837 # If we're using GNU nm, then use its standard symbol codes.
3838 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3839 symcode='[ABCDGISTW]'
3842 # Try without a prefix undercore, then with it.
3843 for ac_symprfx in "" "_"; do
3845 # Write the raw and C identifiers.
3846 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3848 # Check to see that the pipe works correctly.
3849 pipe_works=no
3850 rm -f conftest*
3851 cat > conftest.$ac_ext <<EOF
3852 #ifdef __cplusplus
3853 extern "C" {
3854 #endif
3855 char nm_test_var;
3856 void nm_test_func(){}
3857 #ifdef __cplusplus
3859 #endif
3860 int main(){nm_test_var='a';nm_test_func();return(0);}
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; then
3868 # Now try to grab the symbols.
3869 nlist=conftest.nm
3870 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3871 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && test -s "$nlist"; then
3875 # Try sorting and uniquifying the output.
3876 if sort "$nlist" | uniq > "$nlist"T; then
3877 mv -f "$nlist"T "$nlist"
3878 else
3879 rm -f "$nlist"T
3882 # Make sure that we snagged all the symbols we need.
3883 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3884 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3885 cat <<EOF > conftest.$ac_ext
3886 #ifdef __cplusplus
3887 extern "C" {
3888 #endif
3891 # Now generate the symbol file.
3892 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3894 cat <<EOF >> conftest.$ac_ext
3895 #if defined (__STDC__) && __STDC__
3896 # define lt_ptr void *
3897 #else
3898 # define lt_ptr char *
3899 # define const
3900 #endif
3902 /* The mapping between symbol names and symbols. */
3903 const struct {
3904 const char *name;
3905 lt_ptr address;
3907 lt_preloaded_symbols[] =
3910 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3911 cat <<\EOF >> conftest.$ac_ext
3912 {0, (lt_ptr) 0}
3915 #ifdef __cplusplus
3917 #endif
3919 # Now try linking the two files.
3920 mv conftest.$ac_objext conftstm.$ac_objext
3921 save_LIBS="$LIBS"
3922 save_CFLAGS="$CFLAGS"
3923 LIBS="conftstm.$ac_objext"
3924 CFLAGS="$CFLAGS$no_builtin_flag"
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } && test -s conftest; then
3930 pipe_works=yes
3932 LIBS="$save_LIBS"
3933 CFLAGS="$save_CFLAGS"
3934 else
3935 echo "cannot find nm_test_func in $nlist" >&5
3937 else
3938 echo "cannot find nm_test_var in $nlist" >&5
3940 else
3941 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3943 else
3944 echo "$progname: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3947 rm -f conftest* conftst*
3949 # Do not use the global_symbol_pipe unless it works.
3950 if test "$pipe_works" = yes; then
3951 break
3952 else
3953 lt_cv_sys_global_symbol_pipe=
3955 done
3959 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3960 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3961 global_symbol_to_cdecl=
3962 global_symbol_to_c_name_address=
3963 else
3964 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3965 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3967 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3968 then
3969 echo "$as_me:$LINENO: result: failed" >&5
3970 echo "${ECHO_T}failed" >&6
3971 else
3972 echo "$as_me:$LINENO: result: ok" >&5
3973 echo "${ECHO_T}ok" >&6
3977 for ac_header in dlfcn.h
3979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3981 echo "$as_me:$LINENO: checking for $ac_header" >&5
3982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 else
3989 # Is the header compilable?
3990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3993 #line $LINENO "configure"
3994 #include "confdefs.h"
3995 $ac_includes_default
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000 (eval $ac_compile) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_header_compiler=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4014 ac_header_compiler=no
4016 rm -f conftest.$ac_objext conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4018 echo "${ECHO_T}$ac_header_compiler" >&6
4020 # Is the header present?
4021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4025 #include "confdefs.h"
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 egrep -v '^ *\+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 else
4039 ac_cpp_err=
4041 else
4042 ac_cpp_err=yes
4044 if test -z "$ac_cpp_err"; then
4045 ac_header_preproc=yes
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4049 ac_header_preproc=no
4051 rm -f conftest.err conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4053 echo "${ECHO_T}$ac_header_preproc" >&6
4055 # So? What about this header?
4056 case $ac_header_compiler:$ac_header_preproc in
4057 yes:no )
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4062 no:yes )
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4069 esac
4070 echo "$as_me:$LINENO: checking for $ac_header" >&5
4071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 eval "$as_ac_Header=$ac_header_preproc"
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4088 done
4094 # Only perform the check for file, if the check method requires it
4095 case $deplibs_check_method in
4096 file_magic*)
4097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4098 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4099 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4100 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 case $MAGIC_CMD in
4105 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4107 ?:/*)
4108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4111 ac_save_MAGIC_CMD="$MAGIC_CMD"
4112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4113 ac_dummy="/usr/bin:$PATH"
4114 for ac_dir in $ac_dummy; do
4115 test -z "$ac_dir" && ac_dir=.
4116 if test -f $ac_dir/${ac_tool_prefix}file; then
4117 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4118 if test -n "$file_magic_test_file"; then
4119 case $deplibs_check_method in
4120 "file_magic "*)
4121 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4124 egrep "$file_magic_regex" > /dev/null; then
4126 else
4127 cat <<EOF 1>&2
4129 *** Warning: the command libtool uses to detect shared libraries,
4130 *** $file_magic_cmd, produces output that libtool cannot recognize.
4131 *** The result is that libtool may fail to recognize shared libraries
4132 *** as such. This will affect the creation of libtool libraries that
4133 *** depend on shared libraries, but programs linked with such libtool
4134 *** libraries will work regardless of this problem. Nevertheless, you
4135 *** may want to report the problem to your system manager and/or to
4136 *** bug-libtool@gnu.org
4139 fi ;;
4140 esac
4142 break
4144 done
4145 IFS="$ac_save_ifs"
4146 MAGIC_CMD="$ac_save_MAGIC_CMD"
4148 esac
4151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4152 if test -n "$MAGIC_CMD"; then
4153 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4154 echo "${ECHO_T}$MAGIC_CMD" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4160 if test -z "$lt_cv_path_MAGIC_CMD"; then
4161 if test -n "$ac_tool_prefix"; then
4162 echo "$as_me:$LINENO: checking for file" >&5
4163 echo $ECHO_N "checking for file... $ECHO_C" >&6
4164 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 case $MAGIC_CMD in
4169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4171 ?:/*)
4172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4175 ac_save_MAGIC_CMD="$MAGIC_CMD"
4176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4177 ac_dummy="/usr/bin:$PATH"
4178 for ac_dir in $ac_dummy; do
4179 test -z "$ac_dir" && ac_dir=.
4180 if test -f $ac_dir/file; then
4181 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4182 if test -n "$file_magic_test_file"; then
4183 case $deplibs_check_method in
4184 "file_magic "*)
4185 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4188 egrep "$file_magic_regex" > /dev/null; then
4190 else
4191 cat <<EOF 1>&2
4193 *** Warning: the command libtool uses to detect shared libraries,
4194 *** $file_magic_cmd, produces output that libtool cannot recognize.
4195 *** The result is that libtool may fail to recognize shared libraries
4196 *** as such. This will affect the creation of libtool libraries that
4197 *** depend on shared libraries, but programs linked with such libtool
4198 *** libraries will work regardless of this problem. Nevertheless, you
4199 *** may want to report the problem to your system manager and/or to
4200 *** bug-libtool@gnu.org
4203 fi ;;
4204 esac
4206 break
4208 done
4209 IFS="$ac_save_ifs"
4210 MAGIC_CMD="$ac_save_MAGIC_CMD"
4212 esac
4215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4216 if test -n "$MAGIC_CMD"; then
4217 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4218 echo "${ECHO_T}$MAGIC_CMD" >&6
4219 else
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4224 else
4225 MAGIC_CMD=:
4231 esac
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_RANLIB+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4260 RANLIB=$ac_cv_prog_RANLIB
4261 if test -n "$RANLIB"; then
4262 echo "$as_me:$LINENO: result: $RANLIB" >&5
4263 echo "${ECHO_T}$RANLIB" >&6
4264 else
4265 echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4270 if test -z "$ac_cv_prog_RANLIB"; then
4271 ac_ct_RANLIB=$RANLIB
4272 # Extract the first word of "ranlib", so it can be a program name with args.
4273 set dummy ranlib; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 if test -n "$ac_ct_RANLIB"; then
4280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_ac_ct_RANLIB="ranlib"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4296 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4300 if test -n "$ac_ct_RANLIB"; then
4301 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4302 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4303 else
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4308 RANLIB=$ac_ct_RANLIB
4309 else
4310 RANLIB="$ac_cv_prog_RANLIB"
4313 if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4315 set dummy ${ac_tool_prefix}strip; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_STRIP+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 if test -n "$STRIP"; then
4322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4340 STRIP=$ac_cv_prog_STRIP
4341 if test -n "$STRIP"; then
4342 echo "$as_me:$LINENO: result: $STRIP" >&5
4343 echo "${ECHO_T}$STRIP" >&6
4344 else
4345 echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4350 if test -z "$ac_cv_prog_STRIP"; then
4351 ac_ct_STRIP=$STRIP
4352 # Extract the first word of "strip", so it can be a program name with args.
4353 set dummy strip; ac_word=$2
4354 echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 if test -n "$ac_ct_STRIP"; then
4360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_ac_ct_STRIP="strip"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4376 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4380 if test -n "$ac_ct_STRIP"; then
4381 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4382 echo "${ECHO_T}$ac_ct_STRIP" >&6
4383 else
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4388 STRIP=$ac_ct_STRIP
4389 else
4390 STRIP="$ac_cv_prog_STRIP"
4394 enable_dlopen=no
4395 enable_win32_dll=no
4397 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4398 if test "${enable_libtool_lock+set}" = set; then
4399 enableval="$enable_libtool_lock"
4402 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4404 # Some flags need to be propagated to the compiler or linker for good
4405 # libtool support.
4406 case $host in
4407 *-*-irix6*)
4408 # Find out which ABI we are using.
4409 echo '#line 4409 "configure"' > conftest.$ac_ext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; then
4415 case `/usr/bin/file conftest.$ac_objext` in
4416 *32-bit*)
4417 LD="${LD-ld} -32"
4419 *N32*)
4420 LD="${LD-ld} -n32"
4422 *64-bit*)
4423 LD="${LD-ld} -64"
4425 esac
4427 rm -rf conftest*
4430 *-*-sco3.2v5*)
4431 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4432 SAVE_CFLAGS="$CFLAGS"
4433 CFLAGS="$CFLAGS -belf"
4434 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4435 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4436 if test "${lt_cv_cc_needs_belf+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 #include "confdefs.h"
4451 #ifdef F77_DUMMY_MAIN
4452 # ifdef __cplusplus
4453 extern "C"
4454 # endif
4455 int F77_DUMMY_MAIN() { return 1; }
4456 #endif
4458 main ()
4462 return 0;
4464 _ACEOF
4465 rm -f conftest.$ac_objext conftest$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -s conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 lt_cv_cc_needs_belf=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4481 lt_cv_cc_needs_belf=no
4483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4484 ac_ext=c
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4492 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4493 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4494 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4495 CFLAGS="$SAVE_CFLAGS"
4500 esac
4502 # Sed substitution that helps us do robust quoting. It backslashifies
4503 # metacharacters that are still active within double-quoted strings.
4504 Xsed='sed -e s/^X//'
4505 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4507 # Same as above, but do not quote variable references.
4508 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4510 # Sed substitution to delay expansion of an escaped shell variable in a
4511 # double_quote_subst'ed string.
4512 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4514 # Constants:
4515 rm="rm -f"
4517 # Global variables:
4518 default_ofile=libtool
4519 can_build_shared=yes
4521 # All known linkers require a `.a' archive for static linking (except M$VC,
4522 # which needs '.lib').
4523 libext=a
4524 ltmain="$ac_aux_dir/ltmain.sh"
4525 ofile="$default_ofile"
4526 with_gnu_ld="$lt_cv_prog_gnu_ld"
4527 need_locks="$enable_libtool_lock"
4529 old_CC="$CC"
4530 old_CFLAGS="$CFLAGS"
4532 # Set sane defaults for various variables
4533 test -z "$AR" && AR=ar
4534 test -z "$AR_FLAGS" && AR_FLAGS=cru
4535 test -z "$AS" && AS=as
4536 test -z "$CC" && CC=cc
4537 test -z "$DLLTOOL" && DLLTOOL=dlltool
4538 test -z "$LD" && LD=ld
4539 test -z "$LN_S" && LN_S="ln -s"
4540 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4541 test -z "$NM" && NM=nm
4542 test -z "$OBJDUMP" && OBJDUMP=objdump
4543 test -z "$RANLIB" && RANLIB=:
4544 test -z "$STRIP" && STRIP=:
4545 test -z "$ac_objext" && ac_objext=o
4547 if test x"$host" != x"$build"; then
4548 ac_tool_prefix=${host_alias}-
4549 else
4550 ac_tool_prefix=
4553 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4554 case $host_os in
4555 linux-gnu*) ;;
4556 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4557 esac
4559 case $host_os in
4560 aix3*)
4561 # AIX sometimes has problems with the GCC collect2 program. For some
4562 # reason, if we set the COLLECT_NAMES environment variable, the problems
4563 # vanish in a puff of smoke.
4564 if test "X${COLLECT_NAMES+set}" != Xset; then
4565 COLLECT_NAMES=
4566 export COLLECT_NAMES
4569 esac
4571 # Determine commands to create old-style static archives.
4572 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4573 old_postinstall_cmds='chmod 644 $oldlib'
4574 old_postuninstall_cmds=
4576 if test -n "$RANLIB"; then
4577 case $host_os in
4578 openbsd*)
4579 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4582 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4584 esac
4585 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4588 # Allow CC to be a program name with arguments.
4589 set dummy $CC
4590 compiler="$2"
4592 echo "$as_me:$LINENO: checking for objdir" >&5
4593 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4594 rm -f .libs 2>/dev/null
4595 mkdir .libs 2>/dev/null
4596 if test -d .libs; then
4597 objdir=.libs
4598 else
4599 # MS-DOS does not allow filenames that begin with a dot.
4600 objdir=_libs
4602 rmdir .libs 2>/dev/null
4603 echo "$as_me:$LINENO: result: $objdir" >&5
4604 echo "${ECHO_T}$objdir" >&6
4608 # Check whether --with-pic or --without-pic was given.
4609 if test "${with_pic+set}" = set; then
4610 withval="$with_pic"
4611 pic_mode="$withval"
4612 else
4613 pic_mode=default
4615 test -z "$pic_mode" && pic_mode=default
4617 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4618 # in isolation, and that seeing it set (from the cache) indicates that
4619 # the associated values are set (in the cache) correctly too.
4620 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4621 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4622 if test "${lt_cv_prog_cc_pic+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 lt_cv_prog_cc_pic=
4626 lt_cv_prog_cc_shlib=
4627 lt_cv_prog_cc_wl=
4628 lt_cv_prog_cc_static=
4629 lt_cv_prog_cc_no_builtin=
4630 lt_cv_prog_cc_can_build_shared=$can_build_shared
4632 if test "$GCC" = yes; then
4633 lt_cv_prog_cc_wl='-Wl,'
4634 lt_cv_prog_cc_static='-static'
4636 case $host_os in
4637 aix*)
4638 # Below there is a dirty hack to force normal static linking with -ldl
4639 # The problem is because libdl dynamically linked with both libc and
4640 # libC (AIX C++ library), which obviously doesn't included in libraries
4641 # list by gcc. This cause undefined symbols with -static flags.
4642 # This hack allows C programs to be linked with "-static -ldl", but
4643 # not sure about C++ programs.
4644 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4646 amigaos*)
4647 # FIXME: we need at least 68020 code to build shared libraries, but
4648 # adding the `-m68020' flag to GCC prevents building anything better,
4649 # like `-m68040'.
4650 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4652 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4653 # PIC is the default for these OSes.
4655 darwin* | rhapsody*)
4656 # PIC is the default on this platform
4657 # Common symbols not allowed in MH_DYLIB files
4658 lt_cv_prog_cc_pic='-fno-common'
4660 cygwin* | mingw* | pw32* | os2*)
4661 # This hack is so that the source file can tell whether it is being
4662 # built for inclusion in a dll (and should export symbols for example).
4663 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4665 sysv4*MP*)
4666 if test -d /usr/nec; then
4667 lt_cv_prog_cc_pic=-Kconform_pic
4671 lt_cv_prog_cc_pic='-fPIC'
4673 esac
4674 else
4675 # PORTME Check for PIC flags for the system compiler.
4676 case $host_os in
4677 aix3* | aix4* | aix5*)
4678 lt_cv_prog_cc_wl='-Wl,'
4679 # All AIX code is PIC.
4680 if test "$host_cpu" = ia64; then
4681 # AIX 5 now supports IA64 processor
4682 lt_cv_prog_cc_static='-Bstatic'
4683 else
4684 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4688 hpux9* | hpux10* | hpux11*)
4689 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4690 lt_cv_prog_cc_wl='-Wl,'
4691 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4692 lt_cv_prog_cc_pic='+Z'
4695 irix5* | irix6*)
4696 lt_cv_prog_cc_wl='-Wl,'
4697 lt_cv_prog_cc_static='-non_shared'
4698 # PIC (with -KPIC) is the default.
4701 cygwin* | mingw* | pw32* | os2*)
4702 # This hack is so that the source file can tell whether it is being
4703 # built for inclusion in a dll (and should export symbols for example).
4704 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4707 newsos6)
4708 lt_cv_prog_cc_pic='-KPIC'
4709 lt_cv_prog_cc_static='-Bstatic'
4712 osf3* | osf4* | osf5*)
4713 # All OSF/1 code is PIC.
4714 lt_cv_prog_cc_wl='-Wl,'
4715 lt_cv_prog_cc_static='-non_shared'
4718 sco3.2v5*)
4719 lt_cv_prog_cc_pic='-Kpic'
4720 lt_cv_prog_cc_static='-dn'
4721 lt_cv_prog_cc_shlib='-belf'
4724 solaris*)
4725 lt_cv_prog_cc_pic='-KPIC'
4726 lt_cv_prog_cc_static='-Bstatic'
4727 lt_cv_prog_cc_wl='-Wl,'
4730 sunos4*)
4731 lt_cv_prog_cc_pic='-PIC'
4732 lt_cv_prog_cc_static='-Bstatic'
4733 lt_cv_prog_cc_wl='-Qoption ld '
4736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4737 lt_cv_prog_cc_pic='-KPIC'
4738 lt_cv_prog_cc_static='-Bstatic'
4739 if test "x$host_vendor" = xsni; then
4740 lt_cv_prog_cc_wl='-LD'
4741 else
4742 lt_cv_prog_cc_wl='-Wl,'
4746 uts4*)
4747 lt_cv_prog_cc_pic='-pic'
4748 lt_cv_prog_cc_static='-Bstatic'
4751 sysv4*MP*)
4752 if test -d /usr/nec ;then
4753 lt_cv_prog_cc_pic='-Kconform_pic'
4754 lt_cv_prog_cc_static='-Bstatic'
4759 lt_cv_prog_cc_can_build_shared=no
4761 esac
4766 if test -z "$lt_cv_prog_cc_pic"; then
4767 echo "$as_me:$LINENO: result: none" >&5
4768 echo "${ECHO_T}none" >&6
4769 else
4770 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4771 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4773 # Check to make sure the pic_flag actually works.
4774 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4775 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4776 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 save_CFLAGS="$CFLAGS"
4780 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 #include "confdefs.h"
4785 #ifdef F77_DUMMY_MAIN
4786 # ifdef __cplusplus
4787 extern "C"
4788 # endif
4789 int F77_DUMMY_MAIN() { return 1; }
4790 #endif
4792 main ()
4796 return 0;
4798 _ACEOF
4799 rm -f conftest.$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -s conftest.$ac_objext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 case $host_os in
4812 hpux9* | hpux10* | hpux11*)
4813 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4814 # they create non-PIC objects. So, if there were any warnings, we
4815 # assume that PIC is not supported.
4816 if test -s conftest.err; then
4817 lt_cv_prog_cc_pic_works=no
4818 else
4819 lt_cv_prog_cc_pic_works=yes
4823 lt_cv_prog_cc_pic_works=yes
4825 esac
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 lt_cv_prog_cc_pic_works=no
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834 CFLAGS="$save_CFLAGS"
4839 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4840 lt_cv_prog_cc_pic=
4841 lt_cv_prog_cc_can_build_shared=no
4842 else
4843 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4846 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4847 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4850 # Check for any special shared library compilation flags.
4851 if test -n "$lt_cv_prog_cc_shlib"; then
4852 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4853 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4854 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4855 else
4856 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4857 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4858 lt_cv_prog_cc_can_build_shared=no
4862 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4863 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4864 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 lt_cv_prog_cc_static_works=no
4868 save_LDFLAGS="$LDFLAGS"
4869 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 #line $LINENO "configure"
4872 #include "confdefs.h"
4874 #ifdef F77_DUMMY_MAIN
4875 # ifdef __cplusplus
4876 extern "C"
4877 # endif
4878 int F77_DUMMY_MAIN() { return 1; }
4879 #endif
4881 main ()
4885 return 0;
4887 _ACEOF
4888 rm -f conftest.$ac_objext conftest$ac_exeext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890 (eval $ac_link) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 lt_cv_prog_cc_static_works=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4906 LDFLAGS="$save_LDFLAGS"
4911 # Belt *and* braces to stop my trousers falling down:
4912 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4913 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4914 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4916 pic_flag="$lt_cv_prog_cc_pic"
4917 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4918 wl="$lt_cv_prog_cc_wl"
4919 link_static_flag="$lt_cv_prog_cc_static"
4920 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4921 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4924 # Check to see if options -o and -c are simultaneously supported by compiler
4925 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4927 if test "${lt_cv_compiler_c_o+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4931 $rm -r conftest 2>/dev/null
4932 mkdir conftest
4933 cd conftest
4934 echo "int some_variable = 0;" > conftest.$ac_ext
4935 mkdir out
4936 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4937 # that will create temporary files in the current directory regardless of
4938 # the output directory. Thus, making CWD read-only will cause this test
4939 # to fail, enabling locking or at least warning the user not to do parallel
4940 # builds.
4941 chmod -w .
4942 save_CFLAGS="$CFLAGS"
4943 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4944 compiler_c_o=no
4945 if { (eval echo configure:4945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4946 # The compiler can only warn and ignore the option if not recognized
4947 # So say no if there are warnings
4948 if test -s out/conftest.err; then
4949 lt_cv_compiler_c_o=no
4950 else
4951 lt_cv_compiler_c_o=yes
4953 else
4954 # Append any errors to the config.log.
4955 cat out/conftest.err 1>&5
4956 lt_cv_compiler_c_o=no
4958 CFLAGS="$save_CFLAGS"
4959 chmod u+w .
4960 $rm conftest* out/*
4961 rmdir out
4962 cd ..
4963 rmdir conftest
4964 $rm -r conftest 2>/dev/null
4968 compiler_c_o=$lt_cv_compiler_c_o
4969 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4970 echo "${ECHO_T}$compiler_c_o" >&6
4972 if test x"$compiler_c_o" = x"yes"; then
4973 # Check to see if we can write to a .lo
4974 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4975 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4976 if test "${lt_cv_compiler_o_lo+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4980 lt_cv_compiler_o_lo=no
4981 save_CFLAGS="$CFLAGS"
4982 CFLAGS="$CFLAGS -c -o conftest.lo"
4983 save_objext="$ac_objext"
4984 ac_objext=lo
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 #include "confdefs.h"
4989 #ifdef F77_DUMMY_MAIN
4990 # ifdef __cplusplus
4991 extern "C"
4992 # endif
4993 int F77_DUMMY_MAIN() { return 1; }
4994 #endif
4996 main ()
4998 int some_variable = 0;
5000 return 0;
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 # The compiler can only warn and ignore the option if not recognized
5016 # So say no if there are warnings
5017 if test -s conftest.err; then
5018 lt_cv_compiler_o_lo=no
5019 else
5020 lt_cv_compiler_o_lo=yes
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 rm -f conftest.$ac_objext conftest.$ac_ext
5028 ac_objext="$save_objext"
5029 CFLAGS="$save_CFLAGS"
5033 compiler_o_lo=$lt_cv_compiler_o_lo
5034 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5035 echo "${ECHO_T}$compiler_o_lo" >&6
5036 else
5037 compiler_o_lo=no
5040 # Check to see if we can do hard links to lock some files if needed
5041 hard_links="nottested"
5042 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5043 # do not overwrite the value of need_locks provided by the user
5044 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5045 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5046 hard_links=yes
5047 $rm conftest*
5048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5049 touch conftest.a
5050 ln conftest.a conftest.b 2>&5 || hard_links=no
5051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5052 echo "$as_me:$LINENO: result: $hard_links" >&5
5053 echo "${ECHO_T}$hard_links" >&6
5054 if test "$hard_links" = no; then
5055 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5056 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5057 need_locks=warn
5059 else
5060 need_locks=no
5063 if test "$GCC" = yes; then
5064 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5065 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5066 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5067 echo "int some_variable = 0;" > conftest.$ac_ext
5068 save_CFLAGS="$CFLAGS"
5069 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5070 compiler_rtti_exceptions=no
5071 cat >conftest.$ac_ext <<_ACEOF
5072 #line $LINENO "configure"
5073 #include "confdefs.h"
5075 #ifdef F77_DUMMY_MAIN
5076 # ifdef __cplusplus
5077 extern "C"
5078 # endif
5079 int F77_DUMMY_MAIN() { return 1; }
5080 #endif
5082 main ()
5084 int some_variable = 0;
5086 return 0;
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 # The compiler can only warn and ignore the option if not recognized
5102 # So say no if there are warnings
5103 if test -s conftest.err; then
5104 compiler_rtti_exceptions=no
5105 else
5106 compiler_rtti_exceptions=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5114 CFLAGS="$save_CFLAGS"
5115 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5116 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5118 if test "$compiler_rtti_exceptions" = "yes"; then
5119 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5120 else
5121 no_builtin_flag=' -fno-builtin'
5125 # See if the linker supports building shared libraries.
5126 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5127 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5129 allow_undefined_flag=
5130 no_undefined_flag=
5131 need_lib_prefix=unknown
5132 need_version=unknown
5133 # when you set need_version to no, make sure it does not cause -set_version
5134 # flags to be left without arguments
5135 archive_cmds=
5136 archive_expsym_cmds=
5137 old_archive_from_new_cmds=
5138 old_archive_from_expsyms_cmds=
5139 export_dynamic_flag_spec=
5140 whole_archive_flag_spec=
5141 thread_safe_flag_spec=
5142 hardcode_into_libs=no
5143 hardcode_libdir_flag_spec=
5144 hardcode_libdir_separator=
5145 hardcode_direct=no
5146 hardcode_minus_L=no
5147 hardcode_shlibpath_var=unsupported
5148 runpath_var=
5149 link_all_deplibs=unknown
5150 always_export_symbols=no
5151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5152 # include_expsyms should be a list of space-separated symbols to be *always*
5153 # included in the symbol list
5154 include_expsyms=
5155 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5156 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5157 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5158 # as well as any symbol that contains `d'.
5159 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5160 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5161 # platforms (ab)use it in PIC code, but their linkers get confused if
5162 # the symbol is explicitly referenced. Since portable code cannot
5163 # rely on this symbol name, it's probably fine to never include it in
5164 # preloaded symbol tables.
5165 extract_expsyms_cmds=
5167 case $host_os in
5168 cygwin* | mingw* | pw32*)
5169 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5170 # When not using gcc, we currently assume that we are using
5171 # Microsoft Visual C++.
5172 if test "$GCC" != yes; then
5173 with_gnu_ld=no
5176 openbsd*)
5177 with_gnu_ld=no
5179 esac
5181 ld_shlibs=yes
5182 if test "$with_gnu_ld" = yes; then
5183 # If archive_cmds runs LD, not CC, wlarc should be empty
5184 wlarc='${wl}'
5186 # See if GNU ld supports shared libraries.
5187 case $host_os in
5188 aix3* | aix4* | aix5*)
5189 # On AIX, the GNU linker is very broken
5190 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5191 ld_shlibs=no
5192 cat <<EOF 1>&2
5194 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5195 *** to be unable to reliably create shared libraries on AIX.
5196 *** Therefore, libtool is disabling shared libraries support. If you
5197 *** really care for shared libraries, you may want to modify your PATH
5198 *** so that a non-GNU linker is found, and then restart.
5203 amigaos*)
5204 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)'
5205 hardcode_libdir_flag_spec='-L$libdir'
5206 hardcode_minus_L=yes
5208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5209 # that the semantics of dynamic libraries on AmigaOS, at least up
5210 # to version 4, is to share data among multiple programs linked
5211 # with the same dynamic library. Since this doesn't match the
5212 # behavior of shared libraries on other platforms, we can use
5213 # them.
5214 ld_shlibs=no
5217 beos*)
5218 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5219 allow_undefined_flag=unsupported
5220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5221 # support --undefined. This deserves some investigation. FIXME
5222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5223 else
5224 ld_shlibs=no
5228 cygwin* | mingw* | pw32*)
5229 # hardcode_libdir_flag_spec is actually meaningless, as there is
5230 # no search path for DLLs.
5231 hardcode_libdir_flag_spec='-L$libdir'
5232 allow_undefined_flag=unsupported
5233 always_export_symbols=yes
5235 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5236 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5237 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5238 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5239 else $CC -o impgen impgen.c ; fi)~
5240 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5242 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5244 # cygwin and mingw dlls have different entry points and sets of symbols
5245 # to exclude.
5246 # FIXME: what about values for MSVC?
5247 dll_entry=__cygwin_dll_entry@12
5248 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5249 case $host_os in
5250 mingw*)
5251 # mingw values
5252 dll_entry=_DllMainCRTStartup@12
5253 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5255 esac
5257 # mingw and cygwin differ, and it's simplest to just exclude the union
5258 # of the two symbol sets.
5259 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5261 # recent cygwin and mingw systems supply a stub DllMain which the user
5262 # can override, but on older systems we have to supply one (in ltdll.c)
5263 if test "x$lt_cv_need_dllmain" = "xyes"; then
5264 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5265 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~
5266 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5267 else
5268 ltdll_obj=
5269 ltdll_cmds=
5272 # Extract the symbol export list from an `--export-all' def file,
5273 # then regenerate the def file from the symbol export list, so that
5274 # the compiled dll only exports the symbol export list.
5275 # Be careful not to strip the DATA tag left be newer dlltools.
5276 export_symbols_cmds="$ltdll_cmds"'
5277 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5278 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5280 # If the export-symbols file already is a .def file (1st line
5281 # is EXPORTS), use it as is.
5282 # If DATA tags from a recent dlltool are present, honour them!
5283 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5284 cp $export_symbols $output_objdir/$soname-def;
5285 else
5286 echo EXPORTS > $output_objdir/$soname-def;
5287 _lt_hint=1;
5288 cat $export_symbols | while read symbol; do
5289 set dummy \$symbol;
5290 case \$# in
5291 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5292 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5293 esac;
5294 _lt_hint=`expr 1 + \$_lt_hint`;
5295 done;
5297 '"$ltdll_cmds"'
5298 $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~
5299 $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~
5300 $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~
5301 $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~
5302 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5305 netbsd*)
5306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5307 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5308 wlarc=
5309 else
5310 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5311 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5315 solaris* | sysv5*)
5316 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5317 ld_shlibs=no
5318 cat <<EOF 1>&2
5320 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5321 *** create shared libraries on Solaris systems. Therefore, libtool
5322 *** is disabling shared libraries support. We urge you to upgrade GNU
5323 *** binutils to release 2.9.1 or newer. Another option is to modify
5324 *** your PATH or compiler configuration so that the native linker is
5325 *** used, and then restart.
5328 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5331 else
5332 ld_shlibs=no
5336 sunos4*)
5337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5338 wlarc=
5339 hardcode_direct=yes
5340 hardcode_shlibpath_var=no
5344 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5347 else
5348 ld_shlibs=no
5351 esac
5353 if test "$ld_shlibs" = yes; then
5354 runpath_var=LD_RUN_PATH
5355 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5356 export_dynamic_flag_spec='${wl}--export-dynamic'
5357 case $host_os in
5358 cygwin* | mingw* | pw32*)
5359 # dlltool doesn't understand --whole-archive et. al.
5360 whole_archive_flag_spec=
5363 # ancient GNU ld didn't support --whole-archive et. al.
5364 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5365 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5366 else
5367 whole_archive_flag_spec=
5370 esac
5372 else
5373 # PORTME fill in a description of your system's linker (not GNU ld)
5374 case $host_os in
5375 aix3*)
5376 allow_undefined_flag=unsupported
5377 always_export_symbols=yes
5378 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'
5379 # Note: this linker hardcodes the directories in LIBPATH if there
5380 # are no directories specified by -L.
5381 hardcode_minus_L=yes
5382 if test "$GCC" = yes && test -z "$link_static_flag"; then
5383 # Neither direct hardcoding nor static linking is supported with a
5384 # broken collect2.
5385 hardcode_direct=unsupported
5389 aix4* | aix5*)
5390 if test "$host_cpu" = ia64; then
5391 # On IA64, the linker does run time linking by default, so we don't
5392 # have to do anything special.
5393 aix_use_runtimelinking=no
5394 exp_sym_flag='-Bexport'
5395 no_entry_flag=""
5396 else
5397 aix_use_runtimelinking=no
5399 # Test if we are trying to use run time linking or normal
5400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5401 # need to do runtime linking.
5402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5403 for ld_flag in $LDFLAGS; do
5404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5405 aix_use_runtimelinking=yes
5406 break
5408 done
5409 esac
5411 exp_sym_flag='-bexport'
5412 no_entry_flag='-bnoentry'
5415 # When large executables or shared objects are built, AIX ld can
5416 # have problems creating the table of contents. If linking a library
5417 # or program results in "error TOC overflow" add -mminimal-toc to
5418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5421 hardcode_direct=yes
5422 archive_cmds=''
5423 hardcode_libdir_separator=':'
5424 if test "$GCC" = yes; then
5425 case $host_os in aix4.[012]|aix4.[012].*)
5426 collect2name=`${CC} -print-prog-name=collect2`
5427 if test -f "$collect2name" && \
5428 strings "$collect2name" | grep resolve_lib_name >/dev/null
5429 then
5430 # We have reworked collect2
5431 hardcode_direct=yes
5432 else
5433 # We have old collect2
5434 hardcode_direct=unsupported
5435 # It fails to find uninstalled libraries when the uninstalled
5436 # path is not listed in the libpath. Setting hardcode_minus_L
5437 # to unsupported forces relinking
5438 hardcode_minus_L=yes
5439 hardcode_libdir_flag_spec='-L$libdir'
5440 hardcode_libdir_separator=
5442 esac
5444 shared_flag='-shared'
5445 else
5446 # not using gcc
5447 if test "$host_cpu" = ia64; then
5448 shared_flag='${wl}-G'
5449 else
5450 if test "$aix_use_runtimelinking" = yes; then
5451 shared_flag='${wl}-G'
5452 else
5453 shared_flag='${wl}-bM:SRE'
5458 # It seems that -bexpall can do strange things, so it is better to
5459 # generate a list of symbols to export.
5460 always_export_symbols=yes
5461 if test "$aix_use_runtimelinking" = yes; then
5462 # Warning - without using the other runtime loading flags (-brtl),
5463 # -berok will link without error, but may produce a broken library.
5464 allow_undefined_flag='-berok'
5465 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5466 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"
5467 else
5468 if test "$host_cpu" = ia64; then
5469 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5470 allow_undefined_flag="-z nodefs"
5471 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"
5472 else
5473 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5474 # Warning - without using the other run time loading flags,
5475 # -berok will link without error, but may produce a broken library.
5476 allow_undefined_flag='${wl}-berok'
5477 # This is a bit strange, but is similar to how AIX traditionally builds
5478 # it's shared libraries.
5479 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'
5484 amigaos*)
5485 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)'
5486 hardcode_libdir_flag_spec='-L$libdir'
5487 hardcode_minus_L=yes
5488 # see comment about different semantics on the GNU ld section
5489 ld_shlibs=no
5492 cygwin* | mingw* | pw32*)
5493 # When not using gcc, we currently assume that we are using
5494 # Microsoft Visual C++.
5495 # hardcode_libdir_flag_spec is actually meaningless, as there is
5496 # no search path for DLLs.
5497 hardcode_libdir_flag_spec=' '
5498 allow_undefined_flag=unsupported
5499 # Tell ltmain to make .lib files, not .a files.
5500 libext=lib
5501 # FIXME: Setting linknames here is a bad hack.
5502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5503 # The linker will automatically build a .lib file if we build a DLL.
5504 old_archive_from_new_cmds='true'
5505 # FIXME: Should let the user specify the lib program.
5506 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5507 fix_srcfile_path='`cygpath -w "$srcfile"`'
5510 darwin* | rhapsody*)
5511 case "$host_os" in
5512 rhapsody* | darwin1.[012])
5513 allow_undefined_flag='-undefined suppress'
5515 *) # Darwin 1.3 on
5516 allow_undefined_flag='-flat_namespace -undefined suppress'
5518 esac
5519 # FIXME: Relying on posixy $() will cause problems for
5520 # cross-compilation, but unfortunately the echo tests do not
5521 # yet detect zsh echo's removal of \ escapes.
5522 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'
5523 # We need to add '_' to the symbols in $export_symbols first
5524 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5525 hardcode_direct=yes
5526 hardcode_shlibpath_var=no
5527 whole_archive_flag_spec='-all_load $convenience'
5530 freebsd1*)
5531 ld_shlibs=no
5534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5535 # support. Future versions do this automatically, but an explicit c++rt0.o
5536 # does not break anything, and helps significantly (at the cost of a little
5537 # extra space).
5538 freebsd2.2*)
5539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5540 hardcode_libdir_flag_spec='-R$libdir'
5541 hardcode_direct=yes
5542 hardcode_shlibpath_var=no
5545 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5546 freebsd2*)
5547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5548 hardcode_direct=yes
5549 hardcode_minus_L=yes
5550 hardcode_shlibpath_var=no
5553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5554 freebsd*)
5555 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5556 hardcode_libdir_flag_spec='-R$libdir'
5557 hardcode_direct=yes
5558 hardcode_shlibpath_var=no
5561 hpux9* | hpux10* | hpux11*)
5562 case $host_os in
5563 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' ;;
5564 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5565 esac
5566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5567 hardcode_libdir_separator=:
5568 hardcode_direct=yes
5569 hardcode_minus_L=yes # Not in the search PATH, but as the default
5570 # location of the library.
5571 export_dynamic_flag_spec='${wl}-E'
5574 irix5* | irix6*)
5575 if test "$GCC" = yes; then
5576 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'
5577 else
5578 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'
5580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5581 hardcode_libdir_separator=:
5582 link_all_deplibs=yes
5585 netbsd*)
5586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5588 else
5589 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5591 hardcode_libdir_flag_spec='-R$libdir'
5592 hardcode_direct=yes
5593 hardcode_shlibpath_var=no
5596 newsos6)
5597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5598 hardcode_direct=yes
5599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5600 hardcode_libdir_separator=:
5601 hardcode_shlibpath_var=no
5604 openbsd*)
5605 hardcode_direct=yes
5606 hardcode_shlibpath_var=no
5607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5610 export_dynamic_flag_spec='${wl}-E'
5611 else
5612 case "$host_os" in
5613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5615 hardcode_libdir_flag_spec='-R$libdir'
5618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5621 esac
5625 os2*)
5626 hardcode_libdir_flag_spec='-L$libdir'
5627 hardcode_minus_L=yes
5628 allow_undefined_flag=unsupported
5629 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'
5630 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5633 osf3*)
5634 if test "$GCC" = yes; then
5635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5636 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'
5637 else
5638 allow_undefined_flag=' -expect_unresolved \*'
5639 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'
5641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5642 hardcode_libdir_separator=:
5645 osf4* | osf5*) # as osf3* with the addition of -msym flag
5646 if test "$GCC" = yes; then
5647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5648 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'
5649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5650 else
5651 allow_undefined_flag=' -expect_unresolved \*'
5652 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'
5653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5654 $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'
5656 #Both c and cxx compiler support -rpath directly
5657 hardcode_libdir_flag_spec='-rpath $libdir'
5659 hardcode_libdir_separator=:
5662 sco3.2v5*)
5663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5664 hardcode_shlibpath_var=no
5665 runpath_var=LD_RUN_PATH
5666 hardcode_runpath_var=yes
5667 export_dynamic_flag_spec='${wl}-Bexport'
5670 solaris*)
5671 # gcc --version < 3.0 without binutils cannot create self contained
5672 # shared libraries reliably, requiring libgcc.a to resolve some of
5673 # the object symbols generated in some cases. Libraries that use
5674 # assert need libgcc.a to resolve __eprintf, for example. Linking
5675 # a copy of libgcc.a into every shared library to guarantee resolving
5676 # such symbols causes other problems: According to Tim Van Holder
5677 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5678 # (to the application) exception stack for one thing.
5679 no_undefined_flag=' -z defs'
5680 if test "$GCC" = yes; then
5681 case `$CC --version 2>/dev/null` in
5682 [12].*)
5683 cat <<EOF 1>&2
5685 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5686 *** create self contained shared libraries on Solaris systems, without
5687 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5688 *** -no-undefined support, which will at least allow you to build shared
5689 *** libraries. However, you may find that when you link such libraries
5690 *** into an application without using GCC, you have to manually add
5691 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5692 *** upgrade to a newer version of GCC. Another option is to rebuild your
5693 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5696 no_undefined_flag=
5698 esac
5700 # $CC -shared without GNU ld will not create a library from C++
5701 # object files and a static libstdc++, better avoid it by now
5702 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5705 hardcode_libdir_flag_spec='-R$libdir'
5706 hardcode_shlibpath_var=no
5707 case $host_os in
5708 solaris2.[0-5] | solaris2.[0-5].*) ;;
5709 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5711 esac
5712 link_all_deplibs=yes
5715 sunos4*)
5716 if test "x$host_vendor" = xsequent; then
5717 # Use $CC to link under sequent, because it throws in some extra .o
5718 # files that make .init and .fini sections work.
5719 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5720 else
5721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5723 hardcode_libdir_flag_spec='-L$libdir'
5724 hardcode_direct=yes
5725 hardcode_minus_L=yes
5726 hardcode_shlibpath_var=no
5729 sysv4)
5730 if test "x$host_vendor" = xsno; then
5731 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5732 hardcode_direct=yes # is this really true???
5733 else
5734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5735 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5737 runpath_var='LD_RUN_PATH'
5738 hardcode_shlibpath_var=no
5741 sysv4.3*)
5742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5743 hardcode_shlibpath_var=no
5744 export_dynamic_flag_spec='-Bexport'
5747 sysv5*)
5748 no_undefined_flag=' -z text'
5749 # $CC -shared without GNU ld will not create a library from C++
5750 # object files and a static libstdc++, better avoid it by now
5751 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5752 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5754 hardcode_libdir_flag_spec=
5755 hardcode_shlibpath_var=no
5756 runpath_var='LD_RUN_PATH'
5759 uts4*)
5760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5761 hardcode_libdir_flag_spec='-L$libdir'
5762 hardcode_shlibpath_var=no
5765 dgux*)
5766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5767 hardcode_libdir_flag_spec='-L$libdir'
5768 hardcode_shlibpath_var=no
5771 sysv4*MP*)
5772 if test -d /usr/nec; then
5773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5774 hardcode_shlibpath_var=no
5775 runpath_var=LD_RUN_PATH
5776 hardcode_runpath_var=yes
5777 ld_shlibs=yes
5781 sysv4.2uw2*)
5782 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5783 hardcode_direct=yes
5784 hardcode_minus_L=no
5785 hardcode_shlibpath_var=no
5786 hardcode_runpath_var=yes
5787 runpath_var=LD_RUN_PATH
5790 sysv5uw7* | unixware7*)
5791 no_undefined_flag='${wl}-z ${wl}text'
5792 if test "$GCC" = yes; then
5793 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5794 else
5795 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5797 runpath_var='LD_RUN_PATH'
5798 hardcode_shlibpath_var=no
5802 ld_shlibs=no
5804 esac
5806 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5807 echo "${ECHO_T}$ld_shlibs" >&6
5808 test "$ld_shlibs" = no && can_build_shared=no
5810 # Check hardcoding attributes.
5811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5813 hardcode_action=
5814 if test -n "$hardcode_libdir_flag_spec" || \
5815 test -n "$runpath_var"; then
5817 # We can hardcode non-existant directories.
5818 if test "$hardcode_direct" != no &&
5819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5820 # have to relink, otherwise we might link with an installed library
5821 # when we should be linking with a yet-to-be-installed one
5822 ## test "$hardcode_shlibpath_var" != no &&
5823 test "$hardcode_minus_L" != no; then
5824 # Linking always hardcodes the temporary library directory.
5825 hardcode_action=relink
5826 else
5827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5828 hardcode_action=immediate
5830 else
5831 # We cannot hardcode anything, or else we can only hardcode existing
5832 # directories.
5833 hardcode_action=unsupported
5835 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5836 echo "${ECHO_T}$hardcode_action" >&6
5838 striplib=
5839 old_striplib=
5840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5845 echo "$as_me:$LINENO: result: yes" >&5
5846 echo "${ECHO_T}yes" >&6
5847 else
5848 echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6
5852 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5853 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5855 # PORTME Fill in your ld.so characteristics
5856 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5858 library_names_spec=
5859 libname_spec='lib$name'
5860 soname_spec=
5861 postinstall_cmds=
5862 postuninstall_cmds=
5863 finish_cmds=
5864 finish_eval=
5865 shlibpath_var=
5866 shlibpath_overrides_runpath=unknown
5867 version_type=none
5868 dynamic_linker="$host_os ld.so"
5869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5872 case $host_os in
5873 aix3*)
5874 version_type=linux
5875 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5876 shlibpath_var=LIBPATH
5878 # AIX has no versioning support, so we append a major version to the name.
5879 soname_spec='${libname}${release}.so$major'
5882 aix4* | aix5*)
5883 version_type=linux
5884 if test "$host_cpu" = ia64; then
5885 # AIX 5 supports IA64
5886 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5887 shlibpath_var=LD_LIBRARY_PATH
5888 else
5889 # With GCC up to 2.95.x, collect2 would create an import file
5890 # for dependence libraries. The import file would start with
5891 # the line `#! .'. This would cause the generated library to
5892 # depend on `.', always an invalid library. This was fixed in
5893 # development snapshots of GCC prior to 3.0.
5894 case $host_os in
5895 aix4 | aix4.[01] | aix4.[01].*)
5896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5897 echo ' yes '
5898 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5900 else
5901 can_build_shared=no
5904 esac
5905 # AIX (on Power*) has no versioning support, so currently we can
5906 # not hardcode correct soname into executable. Probably we can
5907 # add versioning support to collect2, so additional links can
5908 # be useful in future.
5909 if test "$aix_use_runtimelinking" = yes; then
5910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5911 # instead of lib<name>.a to let people know that these are not
5912 # typical AIX shared libraries.
5913 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5914 else
5915 # We preserve .a as extension for shared libraries through AIX4.2
5916 # and later when we are not doing run time linking.
5917 library_names_spec='${libname}${release}.a $libname.a'
5918 soname_spec='${libname}${release}.so$major'
5920 shlibpath_var=LIBPATH
5924 amigaos*)
5925 library_names_spec='$libname.ixlibrary $libname.a'
5926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5927 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'
5930 beos*)
5931 library_names_spec='${libname}.so'
5932 dynamic_linker="$host_os ld.so"
5933 shlibpath_var=LIBRARY_PATH
5936 bsdi4*)
5937 version_type=linux
5938 need_version=no
5939 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5940 soname_spec='${libname}${release}.so$major'
5941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5942 shlibpath_var=LD_LIBRARY_PATH
5943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5945 export_dynamic_flag_spec=-rdynamic
5946 # the default ld.so.conf also contains /usr/contrib/lib and
5947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5948 # libtool to hard-code these into programs
5951 cygwin* | mingw* | pw32*)
5952 version_type=windows
5953 need_version=no
5954 need_lib_prefix=no
5955 case $GCC,$host_os in
5956 yes,cygwin*)
5957 library_names_spec='$libname.dll.a'
5958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5959 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5960 dldir=$destdir/`dirname \$dlpath`~
5961 test -d \$dldir || mkdir -p \$dldir~
5962 $install_prog .libs/$dlname \$dldir/$dlname'
5963 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5964 dlpath=$dir/\$dldll~
5965 $rm \$dlpath'
5967 yes,mingw*)
5968 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5971 yes,pw32*)
5972 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5975 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5977 esac
5978 dynamic_linker='Win32 ld.exe'
5979 # FIXME: first we should search . and the directory the executable is in
5980 shlibpath_var=PATH
5983 darwin* | rhapsody*)
5984 dynamic_linker="$host_os dyld"
5985 version_type=darwin
5986 need_lib_prefix=no
5987 need_version=no
5988 # FIXME: Relying on posixy $() will cause problems for
5989 # cross-compilation, but unfortunately the echo tests do not
5990 # yet detect zsh echo's removal of \ escapes.
5991 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)'
5992 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5993 shlibpath_overrides_runpath=yes
5994 shlibpath_var=DYLD_LIBRARY_PATH
5997 freebsd1*)
5998 dynamic_linker=no
6001 freebsd*)
6002 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6003 version_type=freebsd-$objformat
6004 case $version_type in
6005 freebsd-elf*)
6006 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6007 need_version=no
6008 need_lib_prefix=no
6010 freebsd-*)
6011 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6012 need_version=yes
6014 esac
6015 shlibpath_var=LD_LIBRARY_PATH
6016 case $host_os in
6017 freebsd2*)
6018 shlibpath_overrides_runpath=yes
6021 shlibpath_overrides_runpath=no
6022 hardcode_into_libs=yes
6024 esac
6027 gnu*)
6028 version_type=linux
6029 need_lib_prefix=no
6030 need_version=no
6031 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6032 soname_spec='${libname}${release}.so$major'
6033 shlibpath_var=LD_LIBRARY_PATH
6034 hardcode_into_libs=yes
6037 hpux9* | hpux10* | hpux11*)
6038 # Give a soname corresponding to the major version so that dld.sl refuses to
6039 # link against other versions.
6040 dynamic_linker="$host_os dld.sl"
6041 version_type=sunos
6042 need_lib_prefix=no
6043 need_version=no
6044 shlibpath_var=SHLIB_PATH
6045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6046 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6047 soname_spec='${libname}${release}.sl$major'
6048 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6049 postinstall_cmds='chmod 555 $lib'
6052 irix5* | irix6*)
6053 version_type=irix
6054 need_lib_prefix=no
6055 need_version=no
6056 soname_spec='${libname}${release}.so$major'
6057 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6058 case $host_os in
6059 irix5*)
6060 libsuff= shlibsuff=
6063 case $LD in # libtool.m4 will add one of these switches to LD
6064 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6065 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6066 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6067 *) libsuff= shlibsuff= libmagic=never-match;;
6068 esac
6070 esac
6071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6072 shlibpath_overrides_runpath=no
6073 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6074 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6077 # No shared lib support for Linux oldld, aout, or coff.
6078 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6079 dynamic_linker=no
6082 # This must be Linux ELF.
6083 linux-gnu*)
6084 version_type=linux
6085 need_lib_prefix=no
6086 need_version=no
6087 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6088 soname_spec='${libname}${release}.so$major'
6089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6090 shlibpath_var=LD_LIBRARY_PATH
6091 shlibpath_overrides_runpath=no
6092 # This implies no fast_install, which is unacceptable.
6093 # Some rework will be needed to allow for fast_install
6094 # before this can be enabled.
6095 hardcode_into_libs=yes
6097 # We used to test for /lib/ld.so.1 and disable shared libraries on
6098 # powerpc, because MkLinux only supported shared libraries with the
6099 # GNU dynamic linker. Since this was broken with cross compilers,
6100 # most powerpc-linux boxes support dynamic linking these days and
6101 # people can always --disable-shared, the test was removed, and we
6102 # assume the GNU/Linux dynamic linker is in use.
6103 dynamic_linker='GNU/Linux ld.so'
6106 netbsd*)
6107 version_type=sunos
6108 need_lib_prefix=no
6109 need_version=no
6110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6111 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6113 dynamic_linker='NetBSD (a.out) ld.so'
6114 else
6115 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6116 soname_spec='${libname}${release}.so$major'
6117 dynamic_linker='NetBSD ld.elf_so'
6119 shlibpath_var=LD_LIBRARY_PATH
6120 shlibpath_overrides_runpath=yes
6121 hardcode_into_libs=yes
6124 newsos6)
6125 version_type=linux
6126 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6127 shlibpath_var=LD_LIBRARY_PATH
6128 shlibpath_overrides_runpath=yes
6131 openbsd*)
6132 version_type=sunos
6133 need_lib_prefix=no
6134 need_version=no
6135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6136 case "$host_os" in
6137 openbsd2.[89] | openbsd2.[89].*)
6138 shlibpath_overrides_runpath=no
6141 shlibpath_overrides_runpath=yes
6143 esac
6144 else
6145 shlibpath_overrides_runpath=yes
6147 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6149 shlibpath_var=LD_LIBRARY_PATH
6152 os2*)
6153 libname_spec='$name'
6154 need_lib_prefix=no
6155 library_names_spec='$libname.dll $libname.a'
6156 dynamic_linker='OS/2 ld.exe'
6157 shlibpath_var=LIBPATH
6160 osf3* | osf4* | osf5*)
6161 version_type=osf
6162 need_version=no
6163 soname_spec='${libname}${release}.so'
6164 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6165 shlibpath_var=LD_LIBRARY_PATH
6166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6170 sco3.2v5*)
6171 version_type=osf
6172 soname_spec='${libname}${release}.so$major'
6173 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6174 shlibpath_var=LD_LIBRARY_PATH
6177 solaris*)
6178 version_type=linux
6179 need_lib_prefix=no
6180 need_version=no
6181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6182 soname_spec='${libname}${release}.so$major'
6183 shlibpath_var=LD_LIBRARY_PATH
6184 shlibpath_overrides_runpath=yes
6185 hardcode_into_libs=yes
6186 # ldd complains unless libraries are executable
6187 postinstall_cmds='chmod +x $lib'
6190 sunos4*)
6191 version_type=sunos
6192 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6194 shlibpath_var=LD_LIBRARY_PATH
6195 shlibpath_overrides_runpath=yes
6196 if test "$with_gnu_ld" = yes; then
6197 need_lib_prefix=no
6199 need_version=yes
6202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6203 version_type=linux
6204 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6205 soname_spec='${libname}${release}.so$major'
6206 shlibpath_var=LD_LIBRARY_PATH
6207 case $host_vendor in
6208 sni)
6209 shlibpath_overrides_runpath=no
6211 motorola)
6212 need_lib_prefix=no
6213 need_version=no
6214 shlibpath_overrides_runpath=no
6215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6217 esac
6220 uts4*)
6221 version_type=linux
6222 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6223 soname_spec='${libname}${release}.so$major'
6224 shlibpath_var=LD_LIBRARY_PATH
6227 dgux*)
6228 version_type=linux
6229 need_lib_prefix=no
6230 need_version=no
6231 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6232 soname_spec='${libname}${release}.so$major'
6233 shlibpath_var=LD_LIBRARY_PATH
6236 sysv4*MP*)
6237 if test -d /usr/nec ;then
6238 version_type=linux
6239 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6240 soname_spec='$libname.so.$major'
6241 shlibpath_var=LD_LIBRARY_PATH
6246 dynamic_linker=no
6248 esac
6249 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6250 echo "${ECHO_T}$dynamic_linker" >&6
6251 test "$dynamic_linker" = no && can_build_shared=no
6253 # Report the final consequences.
6254 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6255 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6256 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6257 echo "${ECHO_T}$can_build_shared" >&6
6259 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6260 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6261 test "$can_build_shared" = "no" && enable_shared=no
6263 # On AIX, shared libraries and static libraries use the same namespace, and
6264 # are all built from PIC.
6265 case "$host_os" in
6266 aix3*)
6267 test "$enable_shared" = yes && enable_static=no
6268 if test -n "$RANLIB"; then
6269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6270 postinstall_cmds='$RANLIB $lib'
6274 aix4*)
6275 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6276 test "$enable_shared" = yes && enable_static=no
6279 esac
6280 echo "$as_me:$LINENO: result: $enable_shared" >&5
6281 echo "${ECHO_T}$enable_shared" >&6
6283 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6284 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6285 # Make sure either enable_shared or enable_static is yes.
6286 test "$enable_shared" = yes || enable_static=yes
6287 echo "$as_me:$LINENO: result: $enable_static" >&5
6288 echo "${ECHO_T}$enable_static" >&6
6290 if test "$hardcode_action" = relink; then
6291 # Fast installation is not supported
6292 enable_fast_install=no
6293 elif test "$shlibpath_overrides_runpath" = yes ||
6294 test "$enable_shared" = no; then
6295 # Fast installation is not necessary
6296 enable_fast_install=needless
6299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6300 if test "$GCC" = yes; then
6301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6304 if test "x$enable_dlopen" != xyes; then
6305 enable_dlopen=unknown
6306 enable_dlopen_self=unknown
6307 enable_dlopen_self_static=unknown
6308 else
6309 lt_cv_dlopen=no
6310 lt_cv_dlopen_libs=
6312 case $host_os in
6313 beos*)
6314 lt_cv_dlopen="load_add_on"
6315 lt_cv_dlopen_libs=
6316 lt_cv_dlopen_self=yes
6319 cygwin* | mingw* | pw32*)
6320 lt_cv_dlopen="LoadLibrary"
6321 lt_cv_dlopen_libs=
6325 echo "$as_me:$LINENO: checking for shl_load" >&5
6326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6327 if test "${ac_cv_func_shl_load+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char shl_load (); below. */
6335 #include <assert.h>
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 #ifdef __cplusplus
6338 extern "C"
6339 #endif
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6342 char shl_load ();
6343 char (*f) ();
6345 #ifdef F77_DUMMY_MAIN
6346 # ifdef __cplusplus
6347 extern "C"
6348 # endif
6349 int F77_DUMMY_MAIN() { return 1; }
6350 #endif
6352 main ()
6354 /* The GNU C library defines this for functions which it implements
6355 to always fail with ENOSYS. Some functions are actually named
6356 something starting with __ and the normal name is an alias. */
6357 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6358 choke me
6359 #else
6360 f = shl_load;
6361 #endif
6364 return 0;
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 ac_cv_func_shl_load=yes
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6383 ac_cv_func_shl_load=no
6385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6389 if test $ac_cv_func_shl_load = yes; then
6390 lt_cv_dlopen="shl_load"
6391 else
6392 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397 ac_check_lib_save_LIBS=$LIBS
6398 LIBS="-ldld $LIBS"
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6403 /* Override any gcc2 internal prototype to avoid an error. */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6409 char shl_load ();
6410 #ifdef F77_DUMMY_MAIN
6411 # ifdef __cplusplus
6412 extern "C"
6413 # endif
6414 int F77_DUMMY_MAIN() { return 1; }
6415 #endif
6417 main ()
6419 shl_load ();
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_cv_lib_dld_shl_load=yes
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 ac_cv_lib_dld_shl_load=no
6442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443 LIBS=$ac_check_lib_save_LIBS
6445 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6446 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6447 if test $ac_cv_lib_dld_shl_load = yes; then
6448 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6449 else
6450 echo "$as_me:$LINENO: checking for dlopen" >&5
6451 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6452 if test "${ac_cv_func_dlopen+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459 which can conflict with char dlopen (); below. */
6460 #include <assert.h>
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467 char dlopen ();
6468 char (*f) ();
6470 #ifdef F77_DUMMY_MAIN
6471 # ifdef __cplusplus
6472 extern "C"
6473 # endif
6474 int F77_DUMMY_MAIN() { return 1; }
6475 #endif
6477 main ()
6479 /* The GNU C library defines this for functions which it implements
6480 to always fail with ENOSYS. Some functions are actually named
6481 something starting with __ and the normal name is an alias. */
6482 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6483 choke me
6484 #else
6485 f = dlopen;
6486 #endif
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_func_dlopen=yes
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_func_dlopen=no
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6512 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6513 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6514 if test $ac_cv_func_dlopen = yes; then
6515 lt_cv_dlopen="dlopen"
6516 else
6517 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6518 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 ac_check_lib_save_LIBS=$LIBS
6523 LIBS="-ldl $LIBS"
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6528 /* Override any gcc2 internal prototype to avoid an error. */
6529 #ifdef __cplusplus
6530 extern "C"
6531 #endif
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char dlopen ();
6535 #ifdef F77_DUMMY_MAIN
6536 # ifdef __cplusplus
6537 extern "C"
6538 # endif
6539 int F77_DUMMY_MAIN() { return 1; }
6540 #endif
6542 main ()
6544 dlopen ();
6546 return 0;
6548 _ACEOF
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_lib_dl_dlopen=yes
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 ac_cv_lib_dl_dlopen=no
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_check_lib_save_LIBS
6570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6571 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6572 if test $ac_cv_lib_dl_dlopen = yes; then
6573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6574 else
6575 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6576 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6577 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lsvld $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 #include "confdefs.h"
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 #ifdef __cplusplus
6588 extern "C"
6589 #endif
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6592 char dlopen ();
6593 #ifdef F77_DUMMY_MAIN
6594 # ifdef __cplusplus
6595 extern "C"
6596 # endif
6597 int F77_DUMMY_MAIN() { return 1; }
6598 #endif
6600 main ()
6602 dlopen ();
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -s conftest$ac_exeext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 ac_cv_lib_svld_dlopen=yes
6620 else
6621 echo "$as_me: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 ac_cv_lib_svld_dlopen=no
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_check_lib_save_LIBS
6628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6630 if test $ac_cv_lib_svld_dlopen = yes; then
6631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6632 else
6633 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 ac_check_lib_save_LIBS=$LIBS
6639 LIBS="-ldld $LIBS"
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6642 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char dld_link ();
6651 #ifdef F77_DUMMY_MAIN
6652 # ifdef __cplusplus
6653 extern "C"
6654 # endif
6655 int F77_DUMMY_MAIN() { return 1; }
6656 #endif
6658 main ()
6660 dld_link ();
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -s conftest$ac_exeext'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6677 ac_cv_lib_dld_dld_link=yes
6678 else
6679 echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6681 ac_cv_lib_dld_dld_link=no
6683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684 LIBS=$ac_check_lib_save_LIBS
6686 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6688 if test $ac_cv_lib_dld_dld_link = yes; then
6689 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6708 esac
6710 if test "x$lt_cv_dlopen" != xno; then
6711 enable_dlopen=yes
6712 else
6713 enable_dlopen=no
6716 case $lt_cv_dlopen in
6717 dlopen)
6718 save_CPPFLAGS="$CPPFLAGS"
6719 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6721 save_LDFLAGS="$LDFLAGS"
6722 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6724 save_LIBS="$LIBS"
6725 LIBS="$lt_cv_dlopen_libs $LIBS"
6727 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6728 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6729 if test "${lt_cv_dlopen_self+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 if test "$cross_compiling" = yes; then :
6733 lt_cv_dlopen_self=cross
6734 else
6735 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6736 lt_status=$lt_dlunknown
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6738 "configure"
6739 #include "confdefs.h"
6741 #if HAVE_DLFCN_H
6742 #include <dlfcn.h>
6743 #endif
6745 #include <stdio.h>
6747 #ifdef RTLD_GLOBAL
6748 # define LT_DLGLOBAL RTLD_GLOBAL
6749 #else
6750 # ifdef DL_GLOBAL
6751 # define LT_DLGLOBAL DL_GLOBAL
6752 # else
6753 # define LT_DLGLOBAL 0
6754 # endif
6755 #endif
6757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6758 find out it does not work in some platform. */
6759 #ifndef LT_DLLAZY_OR_NOW
6760 # ifdef RTLD_LAZY
6761 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6762 # else
6763 # ifdef DL_LAZY
6764 # define LT_DLLAZY_OR_NOW DL_LAZY
6765 # else
6766 # ifdef RTLD_NOW
6767 # define LT_DLLAZY_OR_NOW RTLD_NOW
6768 # else
6769 # ifdef DL_NOW
6770 # define LT_DLLAZY_OR_NOW DL_NOW
6771 # else
6772 # define LT_DLLAZY_OR_NOW 0
6773 # endif
6774 # endif
6775 # endif
6776 # endif
6777 #endif
6779 #ifdef __cplusplus
6780 extern "C" void exit (int);
6781 #endif
6783 void fnord() { int i=42;}
6784 int main ()
6786 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6787 int status = $lt_dlunknown;
6789 if (self)
6791 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6792 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6793 /* dlclose (self); */
6796 exit (status);
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6804 (./conftest; exit; ) 2>/dev/null
6805 lt_status=$?
6806 case x$lt_status in
6807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6809 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6810 esac
6811 else :
6812 # compilation failed
6813 lt_cv_dlopen_self=no
6816 rm -fr conftest*
6820 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6821 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6823 if test "x$lt_cv_dlopen_self" = xyes; then
6824 LDFLAGS="$LDFLAGS $link_static_flag"
6825 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6826 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6827 if test "${lt_cv_dlopen_self_static+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 if test "$cross_compiling" = yes; then :
6831 lt_cv_dlopen_self_static=cross
6832 else
6833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6834 lt_status=$lt_dlunknown
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6836 "configure"
6837 #include "confdefs.h"
6839 #if HAVE_DLFCN_H
6840 #include <dlfcn.h>
6841 #endif
6843 #include <stdio.h>
6845 #ifdef RTLD_GLOBAL
6846 # define LT_DLGLOBAL RTLD_GLOBAL
6847 #else
6848 # ifdef DL_GLOBAL
6849 # define LT_DLGLOBAL DL_GLOBAL
6850 # else
6851 # define LT_DLGLOBAL 0
6852 # endif
6853 #endif
6855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6856 find out it does not work in some platform. */
6857 #ifndef LT_DLLAZY_OR_NOW
6858 # ifdef RTLD_LAZY
6859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6860 # else
6861 # ifdef DL_LAZY
6862 # define LT_DLLAZY_OR_NOW DL_LAZY
6863 # else
6864 # ifdef RTLD_NOW
6865 # define LT_DLLAZY_OR_NOW RTLD_NOW
6866 # else
6867 # ifdef DL_NOW
6868 # define LT_DLLAZY_OR_NOW DL_NOW
6869 # else
6870 # define LT_DLLAZY_OR_NOW 0
6871 # endif
6872 # endif
6873 # endif
6874 # endif
6875 #endif
6877 #ifdef __cplusplus
6878 extern "C" void exit (int);
6879 #endif
6881 void fnord() { int i=42;}
6882 int main ()
6884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6885 int status = $lt_dlunknown;
6887 if (self)
6889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6891 /* dlclose (self); */
6894 exit (status);
6897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6902 (./conftest; exit; ) 2>/dev/null
6903 lt_status=$?
6904 case x$lt_status in
6905 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6906 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6907 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6908 esac
6909 else :
6910 # compilation failed
6911 lt_cv_dlopen_self_static=no
6914 rm -fr conftest*
6918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6919 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6922 CPPFLAGS="$save_CPPFLAGS"
6923 LDFLAGS="$save_LDFLAGS"
6924 LIBS="$save_LIBS"
6926 esac
6928 case $lt_cv_dlopen_self in
6929 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6930 *) enable_dlopen_self=unknown ;;
6931 esac
6933 case $lt_cv_dlopen_self_static in
6934 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6935 *) enable_dlopen_self_static=unknown ;;
6936 esac
6940 if test "$enable_shared" = yes && test "$GCC" = yes; then
6941 case $archive_cmds in
6942 *'~'*)
6943 # FIXME: we may have to deal with multi-command sequences.
6945 '$CC '*)
6946 # Test whether the compiler implicitly links with -lc since on some
6947 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6948 # to ld, don't add -lc before -lgcc.
6949 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6951 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 $rm conftest*
6955 echo 'static int dummy;' > conftest.$ac_ext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; then
6962 soname=conftest
6963 lib=conftest
6964 libobjs=conftest.$ac_objext
6965 deplibs=
6966 wl=$lt_cv_prog_cc_wl
6967 compiler_flags=-v
6968 linker_flags=-v
6969 verstring=
6970 output_objdir=.
6971 libname=conftest
6972 save_allow_undefined_flag=$allow_undefined_flag
6973 allow_undefined_flag=
6974 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6975 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }
6979 then
6980 lt_cv_archive_cmds_need_lc=no
6981 else
6982 lt_cv_archive_cmds_need_lc=yes
6984 allow_undefined_flag=$save_allow_undefined_flag
6985 else
6986 cat conftest.err 1>&5
6990 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6991 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6993 esac
6995 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6997 # The second clause should only fire when bootstrapping the
6998 # libtool distribution, otherwise you forgot to ship ltmain.sh
6999 # with your package, and you will get complaints that there are
7000 # no rules to generate ltmain.sh.
7001 if test -f "$ltmain"; then
7003 else
7004 # If there is no Makefile yet, we rely on a make rule to execute
7005 # `config.status --recheck' to rerun these tests and create the
7006 # libtool script then.
7007 test -f Makefile && make "$ltmain"
7010 if test -f "$ltmain"; then
7011 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7012 $rm -f "${ofile}T"
7014 echo creating $ofile
7016 # Now quote all the things that may contain metacharacters while being
7017 # careful not to overquote the AC_SUBSTed values. We take copies of the
7018 # variables and quote the copies for generation of the libtool script.
7019 for var in echo old_CC old_CFLAGS \
7020 AR AR_FLAGS CC LD LN_S NM SHELL \
7021 reload_flag reload_cmds wl \
7022 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7023 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7024 library_names_spec soname_spec \
7025 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7026 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7027 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7028 old_striplib striplib file_magic_cmd export_symbols_cmds \
7029 deplibs_check_method allow_undefined_flag no_undefined_flag \
7030 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7031 global_symbol_to_c_name_address \
7032 hardcode_libdir_flag_spec hardcode_libdir_separator \
7033 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7034 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7036 case $var in
7037 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7038 old_postinstall_cmds | old_postuninstall_cmds | \
7039 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7040 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7041 postinstall_cmds | postuninstall_cmds | \
7042 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7043 # Double-quote double-evaled strings.
7044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7047 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7049 esac
7050 done
7052 cat <<__EOF__ > "${ofile}T"
7053 #! $SHELL
7055 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7056 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7057 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7059 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7060 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7062 # This program is free software; you can redistribute it and/or modify
7063 # it under the terms of the GNU General Public License as published by
7064 # the Free Software Foundation; either version 2 of the License, or
7065 # (at your option) any later version.
7067 # This program is distributed in the hope that it will be useful, but
7068 # WITHOUT ANY WARRANTY; without even the implied warranty of
7069 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7070 # General Public License for more details.
7072 # You should have received a copy of the GNU General Public License
7073 # along with this program; if not, write to the Free Software
7074 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7076 # As a special exception to the GNU General Public License, if you
7077 # distribute this file as part of a program that contains a
7078 # configuration script generated by Autoconf, you may include it under
7079 # the same distribution terms that you use for the rest of that program.
7081 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7082 Xsed="sed -e s/^X//"
7084 # The HP-UX ksh and POSIX shell print the target directory to stdout
7085 # if CDPATH is set.
7086 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7088 # ### BEGIN LIBTOOL CONFIG
7090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7092 # Shell to use when invoking shell scripts.
7093 SHELL=$lt_SHELL
7095 # Whether or not to build shared libraries.
7096 build_libtool_libs=$enable_shared
7098 # Whether or not to build static libraries.
7099 build_old_libs=$enable_static
7101 # Whether or not to add -lc for building shared libraries.
7102 build_libtool_need_lc=$need_lc
7104 # Whether or not to optimize for fast installation.
7105 fast_install=$enable_fast_install
7107 # The host system.
7108 host_alias=$host_alias
7109 host=$host
7111 # An echo program that does not interpret backslashes.
7112 echo=$lt_echo
7114 # The archiver.
7115 AR=$lt_AR
7116 AR_FLAGS=$lt_AR_FLAGS
7118 # The default C compiler.
7119 CC=$lt_CC
7121 # Is the compiler the GNU C compiler?
7122 with_gcc=$GCC
7124 # The linker used to build libraries.
7125 LD=$lt_LD
7127 # Whether we need hard or soft links.
7128 LN_S=$lt_LN_S
7130 # A BSD-compatible nm program.
7131 NM=$lt_NM
7133 # A symbol stripping program
7134 STRIP=$STRIP
7136 # Used to examine libraries when file_magic_cmd begins "file"
7137 MAGIC_CMD=$MAGIC_CMD
7139 # Used on cygwin: DLL creation program.
7140 DLLTOOL="$DLLTOOL"
7142 # Used on cygwin: object dumper.
7143 OBJDUMP="$OBJDUMP"
7145 # Used on cygwin: assembler.
7146 AS="$AS"
7148 # The name of the directory that contains temporary libtool files.
7149 objdir=$objdir
7151 # How to create reloadable object files.
7152 reload_flag=$lt_reload_flag
7153 reload_cmds=$lt_reload_cmds
7155 # How to pass a linker flag through the compiler.
7156 wl=$lt_wl
7158 # Object file suffix (normally "o").
7159 objext="$ac_objext"
7161 # Old archive suffix (normally "a").
7162 libext="$libext"
7164 # Executable file suffix (normally "").
7165 exeext="$exeext"
7167 # Additional compiler flags for building library objects.
7168 pic_flag=$lt_pic_flag
7169 pic_mode=$pic_mode
7171 # Does compiler simultaneously support -c and -o options?
7172 compiler_c_o=$lt_compiler_c_o
7174 # Can we write directly to a .lo ?
7175 compiler_o_lo=$lt_compiler_o_lo
7177 # Must we lock files when doing compilation ?
7178 need_locks=$lt_need_locks
7180 # Do we need the lib prefix for modules?
7181 need_lib_prefix=$need_lib_prefix
7183 # Do we need a version for libraries?
7184 need_version=$need_version
7186 # Whether dlopen is supported.
7187 dlopen_support=$enable_dlopen
7189 # Whether dlopen of programs is supported.
7190 dlopen_self=$enable_dlopen_self
7192 # Whether dlopen of statically linked programs is supported.
7193 dlopen_self_static=$enable_dlopen_self_static
7195 # Compiler flag to prevent dynamic linking.
7196 link_static_flag=$lt_link_static_flag
7198 # Compiler flag to turn off builtin functions.
7199 no_builtin_flag=$lt_no_builtin_flag
7201 # Compiler flag to allow reflexive dlopens.
7202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7204 # Compiler flag to generate shared objects directly from archives.
7205 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7207 # Compiler flag to generate thread-safe objects.
7208 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7210 # Library versioning type.
7211 version_type=$version_type
7213 # Format of library name prefix.
7214 libname_spec=$lt_libname_spec
7216 # List of archive names. First name is the real one, the rest are links.
7217 # The last name is the one that the linker finds with -lNAME.
7218 library_names_spec=$lt_library_names_spec
7220 # The coded name of the library, if different from the real name.
7221 soname_spec=$lt_soname_spec
7223 # Commands used to build and install an old-style archive.
7224 RANLIB=$lt_RANLIB
7225 old_archive_cmds=$lt_old_archive_cmds
7226 old_postinstall_cmds=$lt_old_postinstall_cmds
7227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7229 # Create an old-style archive from a shared archive.
7230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7232 # Create a temporary old-style archive to link instead of a shared archive.
7233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7235 # Commands used to build and install a shared archive.
7236 archive_cmds=$lt_archive_cmds
7237 archive_expsym_cmds=$lt_archive_expsym_cmds
7238 postinstall_cmds=$lt_postinstall_cmds
7239 postuninstall_cmds=$lt_postuninstall_cmds
7241 # Commands to strip libraries.
7242 old_striplib=$lt_old_striplib
7243 striplib=$lt_striplib
7245 # Method to check whether dependent libraries are shared objects.
7246 deplibs_check_method=$lt_deplibs_check_method
7248 # Command to use when deplibs_check_method == file_magic.
7249 file_magic_cmd=$lt_file_magic_cmd
7251 # Flag that allows shared libraries with undefined symbols to be built.
7252 allow_undefined_flag=$lt_allow_undefined_flag
7254 # Flag that forces no undefined symbols.
7255 no_undefined_flag=$lt_no_undefined_flag
7257 # Commands used to finish a libtool library installation in a directory.
7258 finish_cmds=$lt_finish_cmds
7260 # Same as above, but a single script fragment to be evaled but not shown.
7261 finish_eval=$lt_finish_eval
7263 # Take the output of nm and produce a listing of raw symbols and C names.
7264 global_symbol_pipe=$lt_global_symbol_pipe
7266 # Transform the output of nm in a proper C declaration
7267 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7269 # Transform the output of nm in a C name address pair
7270 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7272 # This is the shared library runtime path variable.
7273 runpath_var=$runpath_var
7275 # This is the shared library path variable.
7276 shlibpath_var=$shlibpath_var
7278 # Is shlibpath searched before the hard-coded library search path?
7279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7281 # How to hardcode a shared library path into an executable.
7282 hardcode_action=$hardcode_action
7284 # Whether we should hardcode library paths into libraries.
7285 hardcode_into_libs=$hardcode_into_libs
7287 # Flag to hardcode \$libdir into a binary during linking.
7288 # This must work even if \$libdir does not exist.
7289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7291 # Whether we need a single -rpath flag with a separated argument.
7292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7294 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7295 # resulting binary.
7296 hardcode_direct=$hardcode_direct
7298 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7299 # resulting binary.
7300 hardcode_minus_L=$hardcode_minus_L
7302 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7303 # the resulting binary.
7304 hardcode_shlibpath_var=$hardcode_shlibpath_var
7306 # Variables whose values should be saved in libtool wrapper scripts and
7307 # restored at relink time.
7308 variables_saved_for_relink="$variables_saved_for_relink"
7310 # Whether libtool must link a program against all its dependency libraries.
7311 link_all_deplibs=$link_all_deplibs
7313 # Compile-time system search path for libraries
7314 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7316 # Run-time system search path for libraries
7317 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7319 # Fix the shell variable \$srcfile for the compiler.
7320 fix_srcfile_path="$fix_srcfile_path"
7322 # Set to yes if exported symbols are required.
7323 always_export_symbols=$always_export_symbols
7325 # The commands to list exported symbols.
7326 export_symbols_cmds=$lt_export_symbols_cmds
7328 # The commands to extract the exported symbol list from a shared archive.
7329 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7331 # Symbols that should not be listed in the preloaded symbols.
7332 exclude_expsyms=$lt_exclude_expsyms
7334 # Symbols that must always be exported.
7335 include_expsyms=$lt_include_expsyms
7337 # ### END LIBTOOL CONFIG
7339 __EOF__
7341 case $host_os in
7342 aix3*)
7343 cat <<\EOF >> "${ofile}T"
7345 # AIX sometimes has problems with the GCC collect2 program. For some
7346 # reason, if we set the COLLECT_NAMES environment variable, the problems
7347 # vanish in a puff of smoke.
7348 if test "X${COLLECT_NAMES+set}" != Xset; then
7349 COLLECT_NAMES=
7350 export COLLECT_NAMES
7354 esac
7356 case $host_os in
7357 cygwin* | mingw* | pw32* | os2*)
7358 cat <<'EOF' >> "${ofile}T"
7359 # This is a source program that is used to create dlls on Windows
7360 # Don't remove nor modify the starting and closing comments
7361 # /* ltdll.c starts here */
7362 # #define WIN32_LEAN_AND_MEAN
7363 # #include <windows.h>
7364 # #undef WIN32_LEAN_AND_MEAN
7365 # #include <stdio.h>
7367 # #ifndef __CYGWIN__
7368 # # ifdef __CYGWIN32__
7369 # # define __CYGWIN__ __CYGWIN32__
7370 # # endif
7371 # #endif
7373 # #ifdef __cplusplus
7374 # extern "C" {
7375 # #endif
7376 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7377 # #ifdef __cplusplus
7379 # #endif
7381 # #ifdef __CYGWIN__
7382 # #include <cygwin/cygwin_dll.h>
7383 # DECLARE_CYGWIN_DLL( DllMain );
7384 # #endif
7385 # HINSTANCE __hDllInstance_base;
7387 # BOOL APIENTRY
7388 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7390 # __hDllInstance_base = hInst;
7391 # return TRUE;
7393 # /* ltdll.c ends here */
7394 # This is a source program that is used to create import libraries
7395 # on Windows for dlls which lack them. Don't remove nor modify the
7396 # starting and closing comments
7397 # /* impgen.c starts here */
7398 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7400 # This file is part of GNU libtool.
7402 # This program is free software; you can redistribute it and/or modify
7403 # it under the terms of the GNU General Public License as published by
7404 # the Free Software Foundation; either version 2 of the License, or
7405 # (at your option) any later version.
7407 # This program is distributed in the hope that it will be useful,
7408 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7409 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7410 # GNU General Public License for more details.
7412 # You should have received a copy of the GNU General Public License
7413 # along with this program; if not, write to the Free Software
7414 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7415 # */
7417 # #include <stdio.h> /* for printf() */
7418 # #include <unistd.h> /* for open(), lseek(), read() */
7419 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7420 # #include <string.h> /* for strdup() */
7422 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7423 # #ifndef O_BINARY
7424 # #define O_BINARY 0
7425 # #endif
7427 # static unsigned int
7428 # pe_get16 (fd, offset)
7429 # int fd;
7430 # int offset;
7432 # unsigned char b[2];
7433 # lseek (fd, offset, SEEK_SET);
7434 # read (fd, b, 2);
7435 # return b[0] + (b[1]<<8);
7438 # static unsigned int
7439 # pe_get32 (fd, offset)
7440 # int fd;
7441 # int offset;
7443 # unsigned char b[4];
7444 # lseek (fd, offset, SEEK_SET);
7445 # read (fd, b, 4);
7446 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7449 # static unsigned int
7450 # pe_as32 (ptr)
7451 # void *ptr;
7453 # unsigned char *b = ptr;
7454 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7457 # int
7458 # main (argc, argv)
7459 # int argc;
7460 # char *argv[];
7462 # int dll;
7463 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7464 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7465 # unsigned long name_rvas, nexp;
7466 # unsigned char *expdata, *erva;
7467 # char *filename, *dll_name;
7469 # filename = argv[1];
7471 # dll = open(filename, O_RDONLY|O_BINARY);
7472 # if (dll < 1)
7473 # return 1;
7475 # dll_name = filename;
7477 # for (i=0; filename[i]; i++)
7478 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7479 # dll_name = filename + i +1;
7481 # pe_header_offset = pe_get32 (dll, 0x3c);
7482 # opthdr_ofs = pe_header_offset + 4 + 20;
7483 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7485 # if (num_entries < 1) /* no exports */
7486 # return 1;
7488 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7489 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7490 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7491 # secptr = (pe_header_offset + 4 + 20 +
7492 # pe_get16 (dll, pe_header_offset + 4 + 16));
7494 # expptr = 0;
7495 # for (i = 0; i < nsections; i++)
7497 # char sname[8];
7498 # unsigned long secptr1 = secptr + 40 * i;
7499 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7500 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7501 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7502 # lseek(dll, secptr1, SEEK_SET);
7503 # read(dll, sname, 8);
7504 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7506 # expptr = fptr + (export_rva - vaddr);
7507 # if (export_rva + export_size > vaddr + vsize)
7508 # export_size = vsize - (export_rva - vaddr);
7509 # break;
7513 # expdata = (unsigned char*)malloc(export_size);
7514 # lseek (dll, expptr, SEEK_SET);
7515 # read (dll, expdata, export_size);
7516 # erva = expdata - export_rva;
7518 # nexp = pe_as32 (expdata+24);
7519 # name_rvas = pe_as32 (expdata+32);
7521 # printf ("EXPORTS\n");
7522 # for (i = 0; i<nexp; i++)
7524 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7525 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7528 # return 0;
7530 # /* impgen.c ends here */
7534 esac
7536 # We use sed instead of cat because bash on DJGPP gets confused if
7537 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7538 # text mode, it properly converts lines to CR/LF. This bash problem
7539 # is reportedly fixed, but why not run on old versions too?
7540 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7542 mv -f "${ofile}T" "$ofile" || \
7543 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7544 chmod +x "$ofile"
7551 # This can be used to rebuild libtool when needed
7552 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7554 # Always use our own libtool.
7555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7557 # Prevent multiple expansion
7561 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7562 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7563 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7564 if test "${enable_maintainer_mode+set}" = set; then
7565 enableval="$enable_maintainer_mode"
7566 USE_MAINTAINER_MODE=$enableval
7567 else
7568 USE_MAINTAINER_MODE=no
7570 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7571 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7574 if test $USE_MAINTAINER_MODE = yes; then
7575 MAINTAINER_MODE_TRUE=
7576 MAINTAINER_MODE_FALSE='#'
7577 else
7578 MAINTAINER_MODE_TRUE='#'
7579 MAINTAINER_MODE_FALSE=
7581 MAINT=$MAINTAINER_MODE_TRUE
7585 _cppflags="${CPPFLAGS}"
7586 _ldflags="${LDFLAGS}"
7590 # Check whether --with-zlib or --without-zlib was given.
7591 if test "${with_zlib+set}" = set; then
7592 withval="$with_zlib"
7594 if test "$withval" != "no" -a "$withval" != "yes"; then
7595 Z_DIR=$withval
7596 CPPFLAGS="${CPPFLAGS} -I$withval/include"
7597 LDFLAGS="${LDFLAGS} -L$withval/lib"
7601 if test "$with_zlib" = "no"; then
7602 echo "Disabling compression support"
7603 else
7605 for ac_header in zlib.h
7607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo "$as_me:$LINENO: checking for $ac_header" >&5
7610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616 else
7617 # Is the header compilable?
7618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7620 cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7622 #include "confdefs.h"
7623 $ac_includes_default
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_header_compiler=yes
7639 else
7640 echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_header_compiler=no
7644 rm -f conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7646 echo "${ECHO_T}$ac_header_compiler" >&6
7648 # Is the header present?
7649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7652 #line $LINENO "configure"
7653 #include "confdefs.h"
7654 #include <$ac_header>
7655 _ACEOF
7656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7658 ac_status=$?
7659 egrep -v '^ *\+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } >/dev/null; then
7664 if test -s conftest.err; then
7665 ac_cpp_err=$ac_c_preproc_warn_flag
7666 else
7667 ac_cpp_err=
7669 else
7670 ac_cpp_err=yes
7672 if test -z "$ac_cpp_err"; then
7673 ac_header_preproc=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 ac_header_preproc=no
7679 rm -f conftest.err conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681 echo "${ECHO_T}$ac_header_preproc" >&6
7683 # So? What about this header?
7684 case $ac_header_compiler:$ac_header_preproc in
7685 yes:no )
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7690 no:yes )
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7697 esac
7698 echo "$as_me:$LINENO: checking for $ac_header" >&5
7699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 eval "$as_ac_Header=$ac_header_preproc"
7705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710 cat >>confdefs.h <<_ACEOF
7711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7713 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
7714 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
7715 if test "${ac_cv_lib_z_gzread+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-lz $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7722 #include "confdefs.h"
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730 char gzread ();
7731 #ifdef F77_DUMMY_MAIN
7732 # ifdef __cplusplus
7733 extern "C"
7734 # endif
7735 int F77_DUMMY_MAIN() { return 1; }
7736 #endif
7738 main ()
7740 gzread ();
7742 return 0;
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_lib_z_gzread=yes
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 ac_cv_lib_z_gzread=no
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
7767 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
7768 if test $ac_cv_lib_z_gzread = yes; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_LIBZ 1
7772 _ACEOF
7774 if test "x${Z_DIR}" != "x"; then
7775 Z_CFLAGS="-I${Z_DIR}/include"
7776 Z_LIBS="-L${Z_DIR}/lib -lz"
7777 case ${host} in
7778 *-*-solaris*)
7779 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
7781 esac
7782 else
7783 Z_LIBS="-lz"
7789 done
7796 CPPFLAGS=${_cppflags}
7797 LDFLAGS=${_ldflags}
7804 ac_header_dirent=no
7805 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7806 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7807 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7808 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 cat >conftest.$ac_ext <<_ACEOF
7813 #line $LINENO "configure"
7814 #include "confdefs.h"
7815 #include <sys/types.h>
7816 #include <$ac_hdr>
7818 #ifdef F77_DUMMY_MAIN
7819 # ifdef __cplusplus
7820 extern "C"
7821 # endif
7822 int F77_DUMMY_MAIN() { return 1; }
7823 #endif
7825 main ()
7827 if ((DIR *) 0)
7828 return 0;
7830 return 0;
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -s conftest.$ac_objext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 eval "$as_ac_Header=yes"
7846 else
7847 echo "$as_me: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 eval "$as_ac_Header=no"
7851 rm -f conftest.$ac_objext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7858 _ACEOF
7860 ac_header_dirent=$ac_hdr; break
7863 done
7864 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7865 if test $ac_header_dirent = dirent.h; then
7866 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7867 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7868 if test "${ac_cv_search_opendir+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 ac_func_search_save_LIBS=$LIBS
7872 ac_cv_search_opendir=no
7873 cat >conftest.$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7875 #include "confdefs.h"
7877 /* Override any gcc2 internal prototype to avoid an error. */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char opendir ();
7884 #ifdef F77_DUMMY_MAIN
7885 # ifdef __cplusplus
7886 extern "C"
7887 # endif
7888 int F77_DUMMY_MAIN() { return 1; }
7889 #endif
7891 main ()
7893 opendir ();
7895 return 0;
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest$ac_exeext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_search_opendir="none required"
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 if test "$ac_cv_search_opendir" = no; then
7917 for ac_lib in dir; do
7918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7919 cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7921 #include "confdefs.h"
7923 /* Override any gcc2 internal prototype to avoid an error. */
7924 #ifdef __cplusplus
7925 extern "C"
7926 #endif
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7929 char opendir ();
7930 #ifdef F77_DUMMY_MAIN
7931 # ifdef __cplusplus
7932 extern "C"
7933 # endif
7934 int F77_DUMMY_MAIN() { return 1; }
7935 #endif
7937 main ()
7939 opendir ();
7941 return 0;
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -s conftest$ac_exeext'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 (eval $ac_try) 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 ac_cv_search_opendir="-l$ac_lib"
7957 break
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7963 done
7965 LIBS=$ac_func_search_save_LIBS
7967 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7968 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7969 if test "$ac_cv_search_opendir" != no; then
7970 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7974 else
7975 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7977 if test "${ac_cv_search_opendir+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 ac_func_search_save_LIBS=$LIBS
7981 ac_cv_search_opendir=no
7982 cat >conftest.$ac_ext <<_ACEOF
7983 #line $LINENO "configure"
7984 #include "confdefs.h"
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char opendir ();
7993 #ifdef F77_DUMMY_MAIN
7994 # ifdef __cplusplus
7995 extern "C"
7996 # endif
7997 int F77_DUMMY_MAIN() { return 1; }
7998 #endif
8000 main ()
8002 opendir ();
8004 return 0;
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_search_opendir="none required"
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8025 if test "$ac_cv_search_opendir" = no; then
8026 for ac_lib in x; do
8027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8028 cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8030 #include "confdefs.h"
8032 /* Override any gcc2 internal prototype to avoid an error. */
8033 #ifdef __cplusplus
8034 extern "C"
8035 #endif
8036 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8038 char opendir ();
8039 #ifdef F77_DUMMY_MAIN
8040 # ifdef __cplusplus
8041 extern "C"
8042 # endif
8043 int F77_DUMMY_MAIN() { return 1; }
8044 #endif
8046 main ()
8048 opendir ();
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055 (eval $ac_link) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_search_opendir="-l$ac_lib"
8066 break
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8072 done
8074 LIBS=$ac_func_search_save_LIBS
8076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8078 if test "$ac_cv_search_opendir" != no; then
8079 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8087 if test "${ac_cv_header_stdc+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 #include "confdefs.h"
8093 #include <stdlib.h>
8094 #include <stdarg.h>
8095 #include <string.h>
8096 #include <float.h>
8098 _ACEOF
8099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8101 ac_status=$?
8102 egrep -v '^ *\+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } >/dev/null; then
8107 if test -s conftest.err; then
8108 ac_cpp_err=$ac_c_preproc_warn_flag
8109 else
8110 ac_cpp_err=
8112 else
8113 ac_cpp_err=yes
8115 if test -z "$ac_cpp_err"; then
8116 ac_cv_header_stdc=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8120 ac_cv_header_stdc=no
8122 rm -f conftest.err conftest.$ac_ext
8124 if test $ac_cv_header_stdc = yes; then
8125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8126 cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 #include "confdefs.h"
8129 #include <string.h>
8131 _ACEOF
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 egrep "memchr" >/dev/null 2>&1; then
8135 else
8136 ac_cv_header_stdc=no
8138 rm -f conftest*
8142 if test $ac_cv_header_stdc = yes; then
8143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144 cat >conftest.$ac_ext <<_ACEOF
8145 #line $LINENO "configure"
8146 #include "confdefs.h"
8147 #include <stdlib.h>
8149 _ACEOF
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 egrep "free" >/dev/null 2>&1; then
8153 else
8154 ac_cv_header_stdc=no
8156 rm -f conftest*
8160 if test $ac_cv_header_stdc = yes; then
8161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162 if test "$cross_compiling" = yes; then
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 #include "confdefs.h"
8168 #include <ctype.h>
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 #else
8173 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8174 || ('j' <= (c) && (c) <= 'r') \
8175 || ('s' <= (c) && (c) <= 'z'))
8176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8177 #endif
8179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8181 main ()
8183 int i;
8184 for (i = 0; i < 256; i++)
8185 if (XOR (islower (i), ISLOWER (i))
8186 || toupper (i) != TOUPPER (i))
8187 exit(2);
8188 exit (0);
8190 _ACEOF
8191 rm -f conftest$ac_exeext
8192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8193 (eval $ac_link) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8203 else
8204 echo "$as_me: program exited with status $ac_status" >&5
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 ( exit $ac_status )
8208 ac_cv_header_stdc=no
8210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8216 if test $ac_cv_header_stdc = yes; then
8218 cat >>confdefs.h <<\_ACEOF
8219 #define STDC_HEADERS 1
8220 _ACEOF
8225 for ac_header in fcntl.h
8227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8229 echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236 else
8237 # Is the header compilable?
8238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243 $ac_includes_default
8244 #include <$ac_header>
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_header_compiler=yes
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 ac_header_compiler=no
8264 rm -f conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6
8268 # Is the header present?
8269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 #include "confdefs.h"
8274 #include <$ac_header>
8275 _ACEOF
8276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8278 ac_status=$?
8279 egrep -v '^ *\+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } >/dev/null; then
8284 if test -s conftest.err; then
8285 ac_cpp_err=$ac_c_preproc_warn_flag
8286 else
8287 ac_cpp_err=
8289 else
8290 ac_cpp_err=yes
8292 if test -z "$ac_cpp_err"; then
8293 ac_header_preproc=yes
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8297 ac_header_preproc=no
8299 rm -f conftest.err conftest.$ac_ext
8300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8301 echo "${ECHO_T}$ac_header_preproc" >&6
8303 # So? What about this header?
8304 case $ac_header_compiler:$ac_header_preproc in
8305 yes:no )
8306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8310 no:yes )
8311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8317 esac
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 eval "$as_ac_Header=$ac_header_preproc"
8325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8330 cat >>confdefs.h <<_ACEOF
8331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8332 _ACEOF
8336 done
8339 for ac_header in unistd.h
8341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343 echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 else
8351 # Is the header compilable?
8352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 #include "confdefs.h"
8357 $ac_includes_default
8358 #include <$ac_header>
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_header_compiler=yes
8373 else
8374 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 ac_header_compiler=no
8378 rm -f conftest.$ac_objext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8380 echo "${ECHO_T}$ac_header_compiler" >&6
8382 # Is the header present?
8383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 #include "confdefs.h"
8388 #include <$ac_header>
8389 _ACEOF
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392 ac_status=$?
8393 egrep -v '^ *\+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } >/dev/null; then
8398 if test -s conftest.err; then
8399 ac_cpp_err=$ac_c_preproc_warn_flag
8400 else
8401 ac_cpp_err=
8403 else
8404 ac_cpp_err=yes
8406 if test -z "$ac_cpp_err"; then
8407 ac_header_preproc=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 ac_header_preproc=no
8413 rm -f conftest.err conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8415 echo "${ECHO_T}$ac_header_preproc" >&6
8417 # So? What about this header?
8418 case $ac_header_compiler:$ac_header_preproc in
8419 yes:no )
8420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8424 no:yes )
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8431 esac
8432 echo "$as_me:$LINENO: checking for $ac_header" >&5
8433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437 eval "$as_ac_Header=$ac_header_preproc"
8439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8446 _ACEOF
8450 done
8453 for ac_header in ctype.h
8455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8457 echo "$as_me:$LINENO: checking for $ac_header" >&5
8458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 else
8465 # Is the header compilable?
8466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8471 $ac_includes_default
8472 #include <$ac_header>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_header_compiler=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 ac_header_compiler=no
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 #include <$ac_header>
8503 _ACEOF
8504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506 ac_status=$?
8507 egrep -v '^ *\+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } >/dev/null; then
8512 if test -s conftest.err; then
8513 ac_cpp_err=$ac_c_preproc_warn_flag
8514 else
8515 ac_cpp_err=
8517 else
8518 ac_cpp_err=yes
8520 if test -z "$ac_cpp_err"; then
8521 ac_header_preproc=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 ac_header_preproc=no
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8531 # So? What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8533 yes:no )
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8538 no:yes )
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8545 esac
8546 echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 eval "$as_ac_Header=$ac_header_preproc"
8553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 _ACEOF
8564 done
8567 for ac_header in dirent.h
8569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571 echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 else
8579 # Is the header compilable?
8580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 $ac_includes_default
8586 #include <$ac_header>
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_header_compiler=yes
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 ac_header_compiler=no
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 #include "confdefs.h"
8616 #include <$ac_header>
8617 _ACEOF
8618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8620 ac_status=$?
8621 egrep -v '^ *\+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } >/dev/null; then
8626 if test -s conftest.err; then
8627 ac_cpp_err=$ac_c_preproc_warn_flag
8628 else
8629 ac_cpp_err=
8631 else
8632 ac_cpp_err=yes
8634 if test -z "$ac_cpp_err"; then
8635 ac_header_preproc=yes
8636 else
8637 echo "$as_me: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 ac_header_preproc=no
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc in
8647 yes:no )
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8652 no:yes )
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8659 esac
8660 echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 eval "$as_ac_Header=$ac_header_preproc"
8667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672 cat >>confdefs.h <<_ACEOF
8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8674 _ACEOF
8678 done
8681 for ac_header in errno.h
8683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685 echo "$as_me:$LINENO: checking for $ac_header" >&5
8686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8692 else
8693 # Is the header compilable?
8694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 #include "confdefs.h"
8699 $ac_includes_default
8700 #include <$ac_header>
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_header_compiler=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_header_compiler=no
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8722 echo "${ECHO_T}$ac_header_compiler" >&6
8724 # Is the header present?
8725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8728 #line $LINENO "configure"
8729 #include "confdefs.h"
8730 #include <$ac_header>
8731 _ACEOF
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8734 ac_status=$?
8735 egrep -v '^ *\+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 else
8743 ac_cpp_err=
8745 else
8746 ac_cpp_err=yes
8748 if test -z "$ac_cpp_err"; then
8749 ac_header_preproc=yes
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8753 ac_header_preproc=no
8755 rm -f conftest.err conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8757 echo "${ECHO_T}$ac_header_preproc" >&6
8759 # So? What about this header?
8760 case $ac_header_compiler:$ac_header_preproc in
8761 yes:no )
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8766 no:yes )
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8773 esac
8774 echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 eval "$as_ac_Header=$ac_header_preproc"
8781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 _ACEOF
8792 done
8795 for ac_header in malloc.h
8797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799 echo "$as_me:$LINENO: checking for $ac_header" >&5
8800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8806 else
8807 # Is the header compilable?
8808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813 $ac_includes_default
8814 #include <$ac_header>
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818 (eval $ac_compile) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_header_compiler=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8832 ac_header_compiler=no
8834 rm -f conftest.$ac_objext conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8836 echo "${ECHO_T}$ac_header_compiler" >&6
8838 # Is the header present?
8839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8844 #include <$ac_header>
8845 _ACEOF
8846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8848 ac_status=$?
8849 egrep -v '^ *\+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } >/dev/null; then
8854 if test -s conftest.err; then
8855 ac_cpp_err=$ac_c_preproc_warn_flag
8856 else
8857 ac_cpp_err=
8859 else
8860 ac_cpp_err=yes
8862 if test -z "$ac_cpp_err"; then
8863 ac_header_preproc=yes
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 ac_header_preproc=no
8869 rm -f conftest.err conftest.$ac_ext
8870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8871 echo "${ECHO_T}$ac_header_preproc" >&6
8873 # So? What about this header?
8874 case $ac_header_compiler:$ac_header_preproc in
8875 yes:no )
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8880 no:yes )
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8887 esac
8888 echo "$as_me:$LINENO: checking for $ac_header" >&5
8889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 eval "$as_ac_Header=$ac_header_preproc"
8895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8900 cat >>confdefs.h <<_ACEOF
8901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8902 _ACEOF
8906 done
8909 for ac_header in stdarg.h
8911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913 echo "$as_me:$LINENO: checking for $ac_header" >&5
8914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920 else
8921 # Is the header compilable?
8922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #include <$ac_header>
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_header_compiler=no
8948 rm -f conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8958 #include <$ac_header>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962 ac_status=$?
8963 egrep -v '^ *\+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8970 else
8971 ac_cpp_err=
8973 else
8974 ac_cpp_err=yes
8976 if test -z "$ac_cpp_err"; then
8977 ac_header_preproc=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_header_preproc=no
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8987 # So? What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8989 yes:no )
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8994 no:yes )
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9001 esac
9002 echo "$as_me:$LINENO: checking for $ac_header" >&5
9003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 eval "$as_ac_Header=$ac_header_preproc"
9009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9014 cat >>confdefs.h <<_ACEOF
9015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016 _ACEOF
9020 done
9023 for ac_header in sys/stat.h
9025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9027 echo "$as_me:$LINENO: checking for $ac_header" >&5
9028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034 else
9035 # Is the header compilable?
9036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9041 $ac_includes_default
9042 #include <$ac_header>
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_header_compiler=yes
9057 else
9058 echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9060 ac_header_compiler=no
9062 rm -f conftest.$ac_objext conftest.$ac_ext
9063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9064 echo "${ECHO_T}$ac_header_compiler" >&6
9066 # Is the header present?
9067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line $LINENO "configure"
9071 #include "confdefs.h"
9072 #include <$ac_header>
9073 _ACEOF
9074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9076 ac_status=$?
9077 egrep -v '^ *\+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } >/dev/null; then
9082 if test -s conftest.err; then
9083 ac_cpp_err=$ac_c_preproc_warn_flag
9084 else
9085 ac_cpp_err=
9087 else
9088 ac_cpp_err=yes
9090 if test -z "$ac_cpp_err"; then
9091 ac_header_preproc=yes
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9095 ac_header_preproc=no
9097 rm -f conftest.err conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9099 echo "${ECHO_T}$ac_header_preproc" >&6
9101 # So? What about this header?
9102 case $ac_header_compiler:$ac_header_preproc in
9103 yes:no )
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9108 no:yes )
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9115 esac
9116 echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 eval "$as_ac_Header=$ac_header_preproc"
9123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9130 _ACEOF
9134 done
9137 for ac_header in sys/types.h
9139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148 else
9149 # Is the header compilable?
9150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9153 #line $LINENO "configure"
9154 #include "confdefs.h"
9155 $ac_includes_default
9156 #include <$ac_header>
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160 (eval $ac_compile) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -s conftest.$ac_objext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_header_compiler=yes
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9174 ac_header_compiler=no
9176 rm -f conftest.$ac_objext conftest.$ac_ext
9177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9178 echo "${ECHO_T}$ac_header_compiler" >&6
9180 # Is the header present?
9181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9184 #line $LINENO "configure"
9185 #include "confdefs.h"
9186 #include <$ac_header>
9187 _ACEOF
9188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9190 ac_status=$?
9191 egrep -v '^ *\+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } >/dev/null; then
9196 if test -s conftest.err; then
9197 ac_cpp_err=$ac_c_preproc_warn_flag
9198 else
9199 ac_cpp_err=
9201 else
9202 ac_cpp_err=yes
9204 if test -z "$ac_cpp_err"; then
9205 ac_header_preproc=yes
9206 else
9207 echo "$as_me: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9209 ac_header_preproc=no
9211 rm -f conftest.err conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9213 echo "${ECHO_T}$ac_header_preproc" >&6
9215 # So? What about this header?
9216 case $ac_header_compiler:$ac_header_preproc in
9217 yes:no )
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9222 no:yes )
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9229 esac
9230 echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 eval "$as_ac_Header=$ac_header_preproc"
9237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9242 cat >>confdefs.h <<_ACEOF
9243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244 _ACEOF
9248 done
9251 for ac_header in time.h
9253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255 echo "$as_me:$LINENO: checking for $ac_header" >&5
9256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9262 else
9263 # Is the header compilable?
9264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 #include "confdefs.h"
9269 $ac_includes_default
9270 #include <$ac_header>
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -s conftest.$ac_objext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_header_compiler=yes
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9288 ac_header_compiler=no
9290 rm -f conftest.$ac_objext conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9292 echo "${ECHO_T}$ac_header_compiler" >&6
9294 # Is the header present?
9295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9299 #include "confdefs.h"
9300 #include <$ac_header>
9301 _ACEOF
9302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9304 ac_status=$?
9305 egrep -v '^ *\+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } >/dev/null; then
9310 if test -s conftest.err; then
9311 ac_cpp_err=$ac_c_preproc_warn_flag
9312 else
9313 ac_cpp_err=
9315 else
9316 ac_cpp_err=yes
9318 if test -z "$ac_cpp_err"; then
9319 ac_header_preproc=yes
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9323 ac_header_preproc=no
9325 rm -f conftest.err conftest.$ac_ext
9326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9327 echo "${ECHO_T}$ac_header_preproc" >&6
9329 # So? What about this header?
9330 case $ac_header_compiler:$ac_header_preproc in
9331 yes:no )
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9336 no:yes )
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9343 esac
9344 echo "$as_me:$LINENO: checking for $ac_header" >&5
9345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349 eval "$as_ac_Header=$ac_header_preproc"
9351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9356 cat >>confdefs.h <<_ACEOF
9357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9358 _ACEOF
9362 done
9365 for ac_header in ansidecl.h
9367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9369 echo "$as_me:$LINENO: checking for $ac_header" >&5
9370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9376 else
9377 # Is the header compilable?
9378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9383 $ac_includes_default
9384 #include <$ac_header>
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -s conftest.$ac_objext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_header_compiler=yes
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9402 ac_header_compiler=no
9404 rm -f conftest.$ac_objext conftest.$ac_ext
9405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9406 echo "${ECHO_T}$ac_header_compiler" >&6
9408 # Is the header present?
9409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 #include "confdefs.h"
9414 #include <$ac_header>
9415 _ACEOF
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9418 ac_status=$?
9419 egrep -v '^ *\+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null; then
9424 if test -s conftest.err; then
9425 ac_cpp_err=$ac_c_preproc_warn_flag
9426 else
9427 ac_cpp_err=
9429 else
9430 ac_cpp_err=yes
9432 if test -z "$ac_cpp_err"; then
9433 ac_header_preproc=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 ac_header_preproc=no
9439 rm -f conftest.err conftest.$ac_ext
9440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441 echo "${ECHO_T}$ac_header_preproc" >&6
9443 # So? What about this header?
9444 case $ac_header_compiler:$ac_header_preproc in
9445 yes:no )
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9450 no:yes )
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9457 esac
9458 echo "$as_me:$LINENO: checking for $ac_header" >&5
9459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463 eval "$as_ac_Header=$ac_header_preproc"
9465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9470 cat >>confdefs.h <<_ACEOF
9471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 _ACEOF
9476 done
9479 for ac_header in ieeefp.h
9481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9483 echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9490 else
9491 # Is the header compilable?
9492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9497 $ac_includes_default
9498 #include <$ac_header>
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_header_compiler=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 ac_header_compiler=no
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520 echo "${ECHO_T}$ac_header_compiler" >&6
9522 # Is the header present?
9523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9526 #line $LINENO "configure"
9527 #include "confdefs.h"
9528 #include <$ac_header>
9529 _ACEOF
9530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
9533 egrep -v '^ *\+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 else
9541 ac_cpp_err=
9543 else
9544 ac_cpp_err=yes
9546 if test -z "$ac_cpp_err"; then
9547 ac_header_preproc=yes
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9551 ac_header_preproc=no
9553 rm -f conftest.err conftest.$ac_ext
9554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9555 echo "${ECHO_T}$ac_header_preproc" >&6
9557 # So? What about this header?
9558 case $ac_header_compiler:$ac_header_preproc in
9559 yes:no )
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9564 no:yes )
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9571 esac
9572 echo "$as_me:$LINENO: checking for $ac_header" >&5
9573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 eval "$as_ac_Header=$ac_header_preproc"
9579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9586 _ACEOF
9590 done
9593 for ac_header in nan.h
9595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9597 echo "$as_me:$LINENO: checking for $ac_header" >&5
9598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9604 else
9605 # Is the header compilable?
9606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 #include "confdefs.h"
9611 $ac_includes_default
9612 #include <$ac_header>
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616 (eval $ac_compile) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_header_compiler=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 ac_header_compiler=no
9632 rm -f conftest.$ac_objext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9634 echo "${ECHO_T}$ac_header_compiler" >&6
9636 # Is the header present?
9637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9640 #line $LINENO "configure"
9641 #include "confdefs.h"
9642 #include <$ac_header>
9643 _ACEOF
9644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9646 ac_status=$?
9647 egrep -v '^ *\+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } >/dev/null; then
9652 if test -s conftest.err; then
9653 ac_cpp_err=$ac_c_preproc_warn_flag
9654 else
9655 ac_cpp_err=
9657 else
9658 ac_cpp_err=yes
9660 if test -z "$ac_cpp_err"; then
9661 ac_header_preproc=yes
9662 else
9663 echo "$as_me: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9665 ac_header_preproc=no
9667 rm -f conftest.err conftest.$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9669 echo "${ECHO_T}$ac_header_preproc" >&6
9671 # So? What about this header?
9672 case $ac_header_compiler:$ac_header_preproc in
9673 yes:no )
9674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9678 no:yes )
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9685 esac
9686 echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 eval "$as_ac_Header=$ac_header_preproc"
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9698 cat >>confdefs.h <<_ACEOF
9699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9700 _ACEOF
9704 done
9707 for ac_header in math.h
9709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9711 echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9718 else
9719 # Is the header compilable?
9720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 #include "confdefs.h"
9725 $ac_includes_default
9726 #include <$ac_header>
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730 (eval $ac_compile) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_header_compiler=yes
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 cat conftest.$ac_ext >&5
9744 ac_header_compiler=no
9746 rm -f conftest.$ac_objext conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9748 echo "${ECHO_T}$ac_header_compiler" >&6
9750 # Is the header present?
9751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 #include "confdefs.h"
9756 #include <$ac_header>
9757 _ACEOF
9758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9760 ac_status=$?
9761 egrep -v '^ *\+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } >/dev/null; then
9766 if test -s conftest.err; then
9767 ac_cpp_err=$ac_c_preproc_warn_flag
9768 else
9769 ac_cpp_err=
9771 else
9772 ac_cpp_err=yes
9774 if test -z "$ac_cpp_err"; then
9775 ac_header_preproc=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
9779 ac_header_preproc=no
9781 rm -f conftest.err conftest.$ac_ext
9782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc in
9787 yes:no )
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9792 no:yes )
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9799 esac
9800 echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805 eval "$as_ac_Header=$ac_header_preproc"
9807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9814 _ACEOF
9818 done
9821 for ac_header in fp_class.h
9823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9825 echo "$as_me:$LINENO: checking for $ac_header" >&5
9826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9832 else
9833 # Is the header compilable?
9834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9838 #include "confdefs.h"
9839 $ac_includes_default
9840 #include <$ac_header>
9841 _ACEOF
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844 (eval $ac_compile) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_header_compiler=yes
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 ac_header_compiler=no
9860 rm -f conftest.$ac_objext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6
9864 # Is the header present?
9865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9870 #include <$ac_header>
9871 _ACEOF
9872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9874 ac_status=$?
9875 egrep -v '^ *\+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } >/dev/null; then
9880 if test -s conftest.err; then
9881 ac_cpp_err=$ac_c_preproc_warn_flag
9882 else
9883 ac_cpp_err=
9885 else
9886 ac_cpp_err=yes
9888 if test -z "$ac_cpp_err"; then
9889 ac_header_preproc=yes
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 ac_header_preproc=no
9895 rm -f conftest.err conftest.$ac_ext
9896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9897 echo "${ECHO_T}$ac_header_preproc" >&6
9899 # So? What about this header?
9900 case $ac_header_compiler:$ac_header_preproc in
9901 yes:no )
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9906 no:yes )
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9913 esac
9914 echo "$as_me:$LINENO: checking for $ac_header" >&5
9915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 eval "$as_ac_Header=$ac_header_preproc"
9921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9926 cat >>confdefs.h <<_ACEOF
9927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9928 _ACEOF
9932 done
9935 for ac_header in float.h
9937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9939 echo "$as_me:$LINENO: checking for $ac_header" >&5
9940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9946 else
9947 # Is the header compilable?
9948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9951 #line $LINENO "configure"
9952 #include "confdefs.h"
9953 $ac_includes_default
9954 #include <$ac_header>
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -s conftest.$ac_objext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_header_compiler=yes
9969 else
9970 echo "$as_me: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9972 ac_header_compiler=no
9974 rm -f conftest.$ac_objext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9976 echo "${ECHO_T}$ac_header_compiler" >&6
9978 # Is the header present?
9979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9983 #include "confdefs.h"
9984 #include <$ac_header>
9985 _ACEOF
9986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9988 ac_status=$?
9989 egrep -v '^ *\+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } >/dev/null; then
9994 if test -s conftest.err; then
9995 ac_cpp_err=$ac_c_preproc_warn_flag
9996 else
9997 ac_cpp_err=
9999 else
10000 ac_cpp_err=yes
10002 if test -z "$ac_cpp_err"; then
10003 ac_header_preproc=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 ac_header_preproc=no
10009 rm -f conftest.err conftest.$ac_ext
10010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10011 echo "${ECHO_T}$ac_header_preproc" >&6
10013 # So? What about this header?
10014 case $ac_header_compiler:$ac_header_preproc in
10015 yes:no )
10016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10020 no:yes )
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10027 esac
10028 echo "$as_me:$LINENO: checking for $ac_header" >&5
10029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033 eval "$as_ac_Header=$ac_header_preproc"
10035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10040 cat >>confdefs.h <<_ACEOF
10041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10042 _ACEOF
10046 done
10049 for ac_header in stdlib.h
10051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10053 echo "$as_me:$LINENO: checking for $ac_header" >&5
10054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10060 else
10061 # Is the header compilable?
10062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line $LINENO "configure"
10066 #include "confdefs.h"
10067 $ac_includes_default
10068 #include <$ac_header>
10069 _ACEOF
10070 rm -f conftest.$ac_objext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072 (eval $ac_compile) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -s conftest.$ac_objext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_header_compiler=yes
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 ac_header_compiler=no
10088 rm -f conftest.$ac_objext conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10090 echo "${ECHO_T}$ac_header_compiler" >&6
10092 # Is the header present?
10093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10096 #line $LINENO "configure"
10097 #include "confdefs.h"
10098 #include <$ac_header>
10099 _ACEOF
10100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10102 ac_status=$?
10103 egrep -v '^ *\+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } >/dev/null; then
10108 if test -s conftest.err; then
10109 ac_cpp_err=$ac_c_preproc_warn_flag
10110 else
10111 ac_cpp_err=
10113 else
10114 ac_cpp_err=yes
10116 if test -z "$ac_cpp_err"; then
10117 ac_header_preproc=yes
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 ac_header_preproc=no
10123 rm -f conftest.err conftest.$ac_ext
10124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10125 echo "${ECHO_T}$ac_header_preproc" >&6
10127 # So? What about this header?
10128 case $ac_header_compiler:$ac_header_preproc in
10129 yes:no )
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10134 no:yes )
10135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10141 esac
10142 echo "$as_me:$LINENO: checking for $ac_header" >&5
10143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 eval "$as_ac_Header=$ac_header_preproc"
10149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10154 cat >>confdefs.h <<_ACEOF
10155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10156 _ACEOF
10160 done
10163 for ac_header in sys/socket.h
10165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10166 echo "$as_me:$LINENO: checking for $ac_header" >&5
10167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10173 #include "confdefs.h"
10174 #if HAVE_SYS_TYPES_H
10175 # include <sys/types.h>
10176 # endif
10179 #include <$ac_header>
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -s conftest.$ac_objext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 eval "$as_ac_Header=yes"
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 eval "$as_ac_Header=no"
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10206 _ACEOF
10210 done
10213 for ac_header in netinet/in.h
10215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10216 echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 cat >conftest.$ac_ext <<_ACEOF
10222 #line $LINENO "configure"
10223 #include "confdefs.h"
10224 #if HAVE_SYS_TYPES_H
10225 # include <sys/types.h>
10226 # endif
10229 #include <$ac_header>
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -s conftest.$ac_objext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 eval "$as_ac_Header=yes"
10244 else
10245 echo "$as_me: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 eval "$as_ac_Header=no"
10249 rm -f conftest.$ac_objext conftest.$ac_ext
10251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10254 cat >>confdefs.h <<_ACEOF
10255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10256 _ACEOF
10260 done
10263 for ac_header in arpa/inet.h
10265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10266 echo "$as_me:$LINENO: checking for $ac_header" >&5
10267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10273 #include "confdefs.h"
10274 #if HAVE_SYS_TYPES_H
10275 # include <sys/types.h>
10276 # endif
10277 #if HAVE_ARPA_INET_H
10278 # include <arpa/inet.h>
10279 # endif
10282 #include <$ac_header>
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 eval "$as_ac_Header=yes"
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 eval "$as_ac_Header=no"
10302 rm -f conftest.$ac_objext conftest.$ac_ext
10304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10307 cat >>confdefs.h <<_ACEOF
10308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10309 _ACEOF
10313 done
10316 for ac_header in netdb.h
10318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320 echo "$as_me:$LINENO: checking for $ac_header" >&5
10321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10327 else
10328 # Is the header compilable?
10329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10332 #line $LINENO "configure"
10333 #include "confdefs.h"
10334 $ac_includes_default
10335 #include <$ac_header>
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_header_compiler=yes
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 ac_header_compiler=no
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10357 echo "${ECHO_T}$ac_header_compiler" >&6
10359 # Is the header present?
10360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10362 cat >conftest.$ac_ext <<_ACEOF
10363 #line $LINENO "configure"
10364 #include "confdefs.h"
10365 #include <$ac_header>
10366 _ACEOF
10367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10369 ac_status=$?
10370 egrep -v '^ *\+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } >/dev/null; then
10375 if test -s conftest.err; then
10376 ac_cpp_err=$ac_c_preproc_warn_flag
10377 else
10378 ac_cpp_err=
10380 else
10381 ac_cpp_err=yes
10383 if test -z "$ac_cpp_err"; then
10384 ac_header_preproc=yes
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 cat conftest.$ac_ext >&5
10388 ac_header_preproc=no
10390 rm -f conftest.err conftest.$ac_ext
10391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10392 echo "${ECHO_T}$ac_header_preproc" >&6
10394 # So? What about this header?
10395 case $ac_header_compiler:$ac_header_preproc in
10396 yes:no )
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10401 no:yes )
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10408 esac
10409 echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 eval "$as_ac_Header=$ac_header_preproc"
10416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10421 cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10423 _ACEOF
10427 done
10430 for ac_header in sys/time.h
10432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10434 echo "$as_me:$LINENO: checking for $ac_header" >&5
10435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10441 else
10442 # Is the header compilable?
10443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10445 cat >conftest.$ac_ext <<_ACEOF
10446 #line $LINENO "configure"
10447 #include "confdefs.h"
10448 $ac_includes_default
10449 #include <$ac_header>
10450 _ACEOF
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_header_compiler=yes
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 ac_header_compiler=no
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10471 echo "${ECHO_T}$ac_header_compiler" >&6
10473 # Is the header present?
10474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10478 #include "confdefs.h"
10479 #include <$ac_header>
10480 _ACEOF
10481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10483 ac_status=$?
10484 egrep -v '^ *\+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } >/dev/null; then
10489 if test -s conftest.err; then
10490 ac_cpp_err=$ac_c_preproc_warn_flag
10491 else
10492 ac_cpp_err=
10494 else
10495 ac_cpp_err=yes
10497 if test -z "$ac_cpp_err"; then
10498 ac_header_preproc=yes
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 ac_header_preproc=no
10504 rm -f conftest.err conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10506 echo "${ECHO_T}$ac_header_preproc" >&6
10508 # So? What about this header?
10509 case $ac_header_compiler:$ac_header_preproc in
10510 yes:no )
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10515 no:yes )
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10522 esac
10523 echo "$as_me:$LINENO: checking for $ac_header" >&5
10524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 eval "$as_ac_Header=$ac_header_preproc"
10530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537 _ACEOF
10541 done
10544 for ac_header in sys/select.h
10546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548 echo "$as_me:$LINENO: checking for $ac_header" >&5
10549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10555 else
10556 # Is the header compilable?
10557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 #include "confdefs.h"
10562 $ac_includes_default
10563 #include <$ac_header>
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -s conftest.$ac_objext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_header_compiler=yes
10578 else
10579 echo "$as_me: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 ac_header_compiler=no
10583 rm -f conftest.$ac_objext conftest.$ac_ext
10584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10585 echo "${ECHO_T}$ac_header_compiler" >&6
10587 # Is the header present?
10588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10592 #include "confdefs.h"
10593 #include <$ac_header>
10594 _ACEOF
10595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10597 ac_status=$?
10598 egrep -v '^ *\+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null; then
10603 if test -s conftest.err; then
10604 ac_cpp_err=$ac_c_preproc_warn_flag
10605 else
10606 ac_cpp_err=
10608 else
10609 ac_cpp_err=yes
10611 if test -z "$ac_cpp_err"; then
10612 ac_header_preproc=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 ac_header_preproc=no
10618 rm -f conftest.err conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10620 echo "${ECHO_T}$ac_header_preproc" >&6
10622 # So? What about this header?
10623 case $ac_header_compiler:$ac_header_preproc in
10624 yes:no )
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10629 no:yes )
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10636 esac
10637 echo "$as_me:$LINENO: checking for $ac_header" >&5
10638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642 eval "$as_ac_Header=$ac_header_preproc"
10644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10649 cat >>confdefs.h <<_ACEOF
10650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651 _ACEOF
10655 done
10658 for ac_header in sys/mman.h
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10669 else
10670 # Is the header compilable?
10671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 #include "confdefs.h"
10676 $ac_includes_default
10677 #include <$ac_header>
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_header_compiler=yes
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 ac_header_compiler=no
10697 rm -f conftest.$ac_objext conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10699 echo "${ECHO_T}$ac_header_compiler" >&6
10701 # Is the header present?
10702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 #include "confdefs.h"
10707 #include <$ac_header>
10708 _ACEOF
10709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10711 ac_status=$?
10712 egrep -v '^ *\+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } >/dev/null; then
10717 if test -s conftest.err; then
10718 ac_cpp_err=$ac_c_preproc_warn_flag
10719 else
10720 ac_cpp_err=
10722 else
10723 ac_cpp_err=yes
10725 if test -z "$ac_cpp_err"; then
10726 ac_header_preproc=yes
10727 else
10728 echo "$as_me: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10730 ac_header_preproc=no
10732 rm -f conftest.err conftest.$ac_ext
10733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10734 echo "${ECHO_T}$ac_header_preproc" >&6
10736 # So? What about this header?
10737 case $ac_header_compiler:$ac_header_preproc in
10738 yes:no )
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10743 no:yes )
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10750 esac
10751 echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 eval "$as_ac_Header=$ac_header_preproc"
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10763 cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765 _ACEOF
10769 done
10772 for ac_header in sys/timeb.h
10774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10776 echo "$as_me:$LINENO: checking for $ac_header" >&5
10777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10783 else
10784 # Is the header compilable?
10785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10787 cat >conftest.$ac_ext <<_ACEOF
10788 #line $LINENO "configure"
10789 #include "confdefs.h"
10790 $ac_includes_default
10791 #include <$ac_header>
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_header_compiler=yes
10806 else
10807 echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_header_compiler=no
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10819 #line $LINENO "configure"
10820 #include "confdefs.h"
10821 #include <$ac_header>
10822 _ACEOF
10823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10825 ac_status=$?
10826 egrep -v '^ *\+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } >/dev/null; then
10831 if test -s conftest.err; then
10832 ac_cpp_err=$ac_c_preproc_warn_flag
10833 else
10834 ac_cpp_err=
10836 else
10837 ac_cpp_err=yes
10839 if test -z "$ac_cpp_err"; then
10840 ac_header_preproc=yes
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 ac_header_preproc=no
10846 rm -f conftest.err conftest.$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10848 echo "${ECHO_T}$ac_header_preproc" >&6
10850 # So? What about this header?
10851 case $ac_header_compiler:$ac_header_preproc in
10852 yes:no )
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10857 no:yes )
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10864 esac
10865 echo "$as_me:$LINENO: checking for $ac_header" >&5
10866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 eval "$as_ac_Header=$ac_header_preproc"
10872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10877 cat >>confdefs.h <<_ACEOF
10878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10879 _ACEOF
10883 done
10886 for ac_header in signal.h
10888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10890 echo "$as_me:$LINENO: checking for $ac_header" >&5
10891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10897 else
10898 # Is the header compilable?
10899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10901 cat >conftest.$ac_ext <<_ACEOF
10902 #line $LINENO "configure"
10903 #include "confdefs.h"
10904 $ac_includes_default
10905 #include <$ac_header>
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_header_compiler=yes
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10923 ac_header_compiler=no
10925 rm -f conftest.$ac_objext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10927 echo "${ECHO_T}$ac_header_compiler" >&6
10929 # Is the header present?
10930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10935 #include <$ac_header>
10936 _ACEOF
10937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10939 ac_status=$?
10940 egrep -v '^ *\+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } >/dev/null; then
10945 if test -s conftest.err; then
10946 ac_cpp_err=$ac_c_preproc_warn_flag
10947 else
10948 ac_cpp_err=
10950 else
10951 ac_cpp_err=yes
10953 if test -z "$ac_cpp_err"; then
10954 ac_header_preproc=yes
10955 else
10956 echo "$as_me: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958 ac_header_preproc=no
10960 rm -f conftest.err conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10962 echo "${ECHO_T}$ac_header_preproc" >&6
10964 # So? What about this header?
10965 case $ac_header_compiler:$ac_header_preproc in
10966 yes:no )
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10971 no:yes )
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10978 esac
10979 echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 eval "$as_ac_Header=$ac_header_preproc"
10986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993 _ACEOF
10997 done
11000 for ac_header in arpa/nameser.h
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008 cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11011 #if HAVE_SYS_TYPES_H
11012 # include <sys/types.h>
11013 # endif
11016 #include <$ac_header>
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 eval "$as_ac_Header=yes"
11031 else
11032 echo "$as_me: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 eval "$as_ac_Header=no"
11036 rm -f conftest.$ac_objext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11041 cat >>confdefs.h <<_ACEOF
11042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11043 _ACEOF
11047 done
11050 for ac_header in resolv.h
11052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11053 echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11060 #include "confdefs.h"
11061 #if HAVE_SYS_TYPES_H
11062 # include <sys/types.h>
11063 # endif
11064 #if HAVE_NETINET_IN_H
11065 # include <netinet/in.h>
11066 # endif
11067 #if HAVE_ARPA_NAMESER_H
11068 # include <arpa/nameser.h>
11069 # endif
11072 #include <$ac_header>
11073 _ACEOF
11074 rm -f conftest.$ac_objext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076 (eval $ac_compile) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -s conftest.$ac_objext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 eval "$as_ac_Header=yes"
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11090 eval "$as_ac_Header=no"
11092 rm -f conftest.$ac_objext conftest.$ac_ext
11094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097 cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099 _ACEOF
11103 done
11106 if test "x$with_html_dir" = "x" ; then
11107 HTML_DIR='$(prefix)/doc'
11108 else
11109 HTML_DIR=$with_html_dir
11115 for ac_func in strftime
11117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11118 echo "$as_me:$LINENO: checking for $ac_func" >&5
11119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11120 if eval "test \"\${$as_ac_var+set}\" = set"; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123 cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 #include "confdefs.h"
11126 /* System header to define __stub macros and hopefully few prototypes,
11127 which can conflict with char $ac_func (); below. */
11128 #include <assert.h>
11129 /* Override any gcc2 internal prototype to avoid an error. */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 /* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135 char $ac_func ();
11136 char (*f) ();
11138 #ifdef F77_DUMMY_MAIN
11139 # ifdef __cplusplus
11140 extern "C"
11141 # endif
11142 int F77_DUMMY_MAIN() { return 1; }
11143 #endif
11145 main ()
11147 /* The GNU C library defines this for functions which it implements
11148 to always fail with ENOSYS. Some functions are actually named
11149 something starting with __ and the normal name is an alias. */
11150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11151 choke me
11152 #else
11153 f = $ac_func;
11154 #endif
11157 return 0;
11159 _ACEOF
11160 rm -f conftest.$ac_objext conftest$ac_exeext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11162 (eval $ac_link) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -s conftest$ac_exeext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 eval "$as_ac_var=yes"
11173 else
11174 echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 eval "$as_ac_var=no"
11178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11182 if test `eval echo '${'$as_ac_var'}'` = yes; then
11183 cat >>confdefs.h <<_ACEOF
11184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11185 _ACEOF
11187 else
11188 # strftime is in -lintl on SCO UNIX.
11189 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11190 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
11191 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 ac_check_lib_save_LIBS=$LIBS
11195 LIBS="-lintl $LIBS"
11196 cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 #include "confdefs.h"
11200 /* Override any gcc2 internal prototype to avoid an error. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 /* We use char because int might match the return type of a gcc2
11205 builtin and then its argument prototype would still apply. */
11206 char strftime ();
11207 #ifdef F77_DUMMY_MAIN
11208 # ifdef __cplusplus
11209 extern "C"
11210 # endif
11211 int F77_DUMMY_MAIN() { return 1; }
11212 #endif
11214 main ()
11216 strftime ();
11218 return 0;
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest$ac_exeext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_lib_intl_strftime=yes
11234 else
11235 echo "$as_me: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 ac_cv_lib_intl_strftime=no
11239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11240 LIBS=$ac_check_lib_save_LIBS
11242 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11243 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
11244 if test $ac_cv_lib_intl_strftime = yes; then
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_STRFTIME 1
11247 _ACEOF
11249 LIBS="-lintl $LIBS"
11253 done
11258 for ac_func in strdup strndup strerror
11260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11261 echo "$as_me:$LINENO: checking for $ac_func" >&5
11262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11263 if eval "test \"\${$as_ac_var+set}\" = set"; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 cat >conftest.$ac_ext <<_ACEOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11269 /* System header to define __stub macros and hopefully few prototypes,
11270 which can conflict with char $ac_func (); below. */
11271 #include <assert.h>
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char $ac_func ();
11279 char (*f) ();
11281 #ifdef F77_DUMMY_MAIN
11282 # ifdef __cplusplus
11283 extern "C"
11284 # endif
11285 int F77_DUMMY_MAIN() { return 1; }
11286 #endif
11288 main ()
11290 /* The GNU C library defines this for functions which it implements
11291 to always fail with ENOSYS. Some functions are actually named
11292 something starting with __ and the normal name is an alias. */
11293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11294 choke me
11295 #else
11296 f = $ac_func;
11297 #endif
11300 return 0;
11302 _ACEOF
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -s conftest$ac_exeext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 eval "$as_ac_var=yes"
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11319 eval "$as_ac_var=no"
11321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11325 if test `eval echo '${'$as_ac_var'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11328 _ACEOF
11331 done
11338 for ac_func in finite isnand fp_class class fpclass
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_var+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 cat >conftest.$ac_ext <<_ACEOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349 /* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char $ac_func (); below. */
11351 #include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char $ac_func ();
11359 char (*f) ();
11361 #ifdef F77_DUMMY_MAIN
11362 # ifdef __cplusplus
11363 extern "C"
11364 # endif
11365 int F77_DUMMY_MAIN() { return 1; }
11366 #endif
11368 main ()
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11374 choke me
11375 #else
11376 f = $ac_func;
11377 #endif
11380 return 0;
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 eval "$as_ac_var=yes"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 eval "$as_ac_var=no"
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11411 done
11417 for ac_func in strftime localtime gettimeofday ftime
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11422 if eval "test \"\${$as_ac_var+set}\" = set"; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 cat >conftest.$ac_ext <<_ACEOF
11426 #line $LINENO "configure"
11427 #include "confdefs.h"
11428 /* System header to define __stub macros and hopefully few prototypes,
11429 which can conflict with char $ac_func (); below. */
11430 #include <assert.h>
11431 /* Override any gcc2 internal prototype to avoid an error. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 /* We use char because int might match the return type of a gcc2
11436 builtin and then its argument prototype would still apply. */
11437 char $ac_func ();
11438 char (*f) ();
11440 #ifdef F77_DUMMY_MAIN
11441 # ifdef __cplusplus
11442 extern "C"
11443 # endif
11444 int F77_DUMMY_MAIN() { return 1; }
11445 #endif
11447 main ()
11449 /* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11453 choke me
11454 #else
11455 f = $ac_func;
11456 #endif
11459 return 0;
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464 (eval $ac_link) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -s conftest$ac_exeext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 eval "$as_ac_var=yes"
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478 eval "$as_ac_var=no"
11480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11484 if test `eval echo '${'$as_ac_var'}'` = yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11487 _ACEOF
11490 done
11495 for ac_func in stat _stat signal
11497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11500 if eval "test \"\${$as_ac_var+set}\" = set"; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 #line $LINENO "configure"
11505 #include "confdefs.h"
11506 /* System header to define __stub macros and hopefully few prototypes,
11507 which can conflict with char $ac_func (); below. */
11508 #include <assert.h>
11509 /* Override any gcc2 internal prototype to avoid an error. */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 /* We use char because int might match the return type of a gcc2
11514 builtin and then its argument prototype would still apply. */
11515 char $ac_func ();
11516 char (*f) ();
11518 #ifdef F77_DUMMY_MAIN
11519 # ifdef __cplusplus
11520 extern "C"
11521 # endif
11522 int F77_DUMMY_MAIN() { return 1; }
11523 #endif
11525 main ()
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11531 choke me
11532 #else
11533 f = $ac_func;
11534 #endif
11537 return 0;
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -s conftest$ac_exeext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 eval "$as_ac_var=yes"
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 eval "$as_ac_var=no"
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 _ACEOF
11568 done
11579 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
11581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 echo "$as_me:$LINENO: checking for $ac_func" >&5
11583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11584 if eval "test \"\${$as_ac_var+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11589 #include "confdefs.h"
11590 /* System header to define __stub macros and hopefully few prototypes,
11591 which can conflict with char $ac_func (); below. */
11592 #include <assert.h>
11593 /* Override any gcc2 internal prototype to avoid an error. */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 /* We use char because int might match the return type of a gcc2
11598 builtin and then its argument prototype would still apply. */
11599 char $ac_func ();
11600 char (*f) ();
11602 #ifdef F77_DUMMY_MAIN
11603 # ifdef __cplusplus
11604 extern "C"
11605 # endif
11606 int F77_DUMMY_MAIN() { return 1; }
11607 #endif
11609 main ()
11611 /* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11615 choke me
11616 #else
11617 f = $ac_func;
11618 #endif
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -s conftest$ac_exeext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 eval "$as_ac_var=yes"
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 eval "$as_ac_var=no"
11642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11646 if test `eval echo '${'$as_ac_var'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 _ACEOF
11651 else
11652 NEED_TRIO=1
11654 done
11657 echo "$as_me:$LINENO: checking for gethostent" >&5
11658 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
11659 if test "${ac_cv_func_gethostent+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 cat >conftest.$ac_ext <<_ACEOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11665 /* System header to define __stub macros and hopefully few prototypes,
11666 which can conflict with char gethostent (); below. */
11667 #include <assert.h>
11668 /* Override any gcc2 internal prototype to avoid an error. */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 /* We use char because int might match the return type of a gcc2
11673 builtin and then its argument prototype would still apply. */
11674 char gethostent ();
11675 char (*f) ();
11677 #ifdef F77_DUMMY_MAIN
11678 # ifdef __cplusplus
11679 extern "C"
11680 # endif
11681 int F77_DUMMY_MAIN() { return 1; }
11682 #endif
11684 main ()
11686 /* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689 #if defined (__stub_gethostent) || defined (__stub___gethostent)
11690 choke me
11691 #else
11692 f = gethostent;
11693 #endif
11696 return 0;
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701 (eval $ac_link) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_cv_func_gethostent=yes
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 ac_cv_func_gethostent=no
11717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
11720 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
11721 if test $ac_cv_func_gethostent = yes; then
11723 else
11725 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
11726 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
11727 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lnsl $LIBS"
11732 cat >conftest.$ac_ext <<_ACEOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11736 /* Override any gcc2 internal prototype to avoid an error. */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 /* We use char because int might match the return type of a gcc2
11741 builtin and then its argument prototype would still apply. */
11742 char gethostent ();
11743 #ifdef F77_DUMMY_MAIN
11744 # ifdef __cplusplus
11745 extern "C"
11746 # endif
11747 int F77_DUMMY_MAIN() { return 1; }
11748 #endif
11750 main ()
11752 gethostent ();
11754 return 0;
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_lib_nsl_gethostent=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 ac_cv_lib_nsl_gethostent=no
11775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11778 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
11779 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
11780 if test $ac_cv_lib_nsl_gethostent = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_LIBNSL 1
11783 _ACEOF
11785 LIBS="-lnsl $LIBS"
11791 echo "$as_me:$LINENO: checking for setsockopt" >&5
11792 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
11793 if test "${ac_cv_func_setsockopt+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11798 #include "confdefs.h"
11799 /* System header to define __stub macros and hopefully few prototypes,
11800 which can conflict with char setsockopt (); below. */
11801 #include <assert.h>
11802 /* Override any gcc2 internal prototype to avoid an error. */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 /* We use char because int might match the return type of a gcc2
11807 builtin and then its argument prototype would still apply. */
11808 char setsockopt ();
11809 char (*f) ();
11811 #ifdef F77_DUMMY_MAIN
11812 # ifdef __cplusplus
11813 extern "C"
11814 # endif
11815 int F77_DUMMY_MAIN() { return 1; }
11816 #endif
11818 main ()
11820 /* The GNU C library defines this for functions which it implements
11821 to always fail with ENOSYS. Some functions are actually named
11822 something starting with __ and the normal name is an alias. */
11823 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
11824 choke me
11825 #else
11826 f = setsockopt;
11827 #endif
11830 return 0;
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_func_setsockopt=yes
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 ac_cv_func_setsockopt=no
11851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11853 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
11854 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
11855 if test $ac_cv_func_setsockopt = yes; then
11857 else
11859 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
11860 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
11861 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lsocket $LIBS"
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11870 /* Override any gcc2 internal prototype to avoid an error. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 /* We use char because int might match the return type of a gcc2
11875 builtin and then its argument prototype would still apply. */
11876 char setsockopt ();
11877 #ifdef F77_DUMMY_MAIN
11878 # ifdef __cplusplus
11879 extern "C"
11880 # endif
11881 int F77_DUMMY_MAIN() { return 1; }
11882 #endif
11884 main ()
11886 setsockopt ();
11888 return 0;
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_cv_lib_socket_setsockopt=yes
11904 else
11905 echo "$as_me: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 ac_cv_lib_socket_setsockopt=no
11909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11912 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
11913 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
11914 if test $ac_cv_lib_socket_setsockopt = yes; then
11915 cat >>confdefs.h <<_ACEOF
11916 #define HAVE_LIBSOCKET 1
11917 _ACEOF
11919 LIBS="-lsocket $LIBS"
11925 echo "$as_me:$LINENO: checking for connect" >&5
11926 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11927 if test "${ac_cv_func_connect+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 else
11930 cat >conftest.$ac_ext <<_ACEOF
11931 #line $LINENO "configure"
11932 #include "confdefs.h"
11933 /* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char connect (); below. */
11935 #include <assert.h>
11936 /* Override any gcc2 internal prototype to avoid an error. */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 /* We use char because int might match the return type of a gcc2
11941 builtin and then its argument prototype would still apply. */
11942 char connect ();
11943 char (*f) ();
11945 #ifdef F77_DUMMY_MAIN
11946 # ifdef __cplusplus
11947 extern "C"
11948 # endif
11949 int F77_DUMMY_MAIN() { return 1; }
11950 #endif
11952 main ()
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined (__stub_connect) || defined (__stub___connect)
11958 choke me
11959 #else
11960 f = connect;
11961 #endif
11964 return 0;
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969 (eval $ac_link) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -s conftest$ac_exeext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_func_connect=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11983 ac_cv_func_connect=no
11985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11987 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11988 echo "${ECHO_T}$ac_cv_func_connect" >&6
11989 if test $ac_cv_func_connect = yes; then
11991 else
11993 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11994 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11995 if test "${ac_cv_lib_inet_connect+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998 ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-linet $LIBS"
12000 cat >conftest.$ac_ext <<_ACEOF
12001 #line $LINENO "configure"
12002 #include "confdefs.h"
12004 /* Override any gcc2 internal prototype to avoid an error. */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010 char connect ();
12011 #ifdef F77_DUMMY_MAIN
12012 # ifdef __cplusplus
12013 extern "C"
12014 # endif
12015 int F77_DUMMY_MAIN() { return 1; }
12016 #endif
12018 main ()
12020 connect ();
12022 return 0;
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027 (eval $ac_link) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -s conftest$ac_exeext'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_cv_lib_inet_connect=yes
12038 else
12039 echo "$as_me: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 ac_cv_lib_inet_connect=no
12043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
12047 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
12048 if test $ac_cv_lib_inet_connect = yes; then
12049 cat >>confdefs.h <<_ACEOF
12050 #define HAVE_LIBINET 1
12051 _ACEOF
12053 LIBS="-linet $LIBS"
12060 echo "$as_me:$LINENO: checking for type of socket length (socklen_t)" >&5
12061 echo $ECHO_N "checking for type of socket length (socklen_t)... $ECHO_C" >&6
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12063 "configure"
12064 #include "confdefs.h"
12066 #include <stddef.h>
12067 #include <sys/types.h>
12068 #include <sys/socket.h>
12069 int main() {
12071 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
12072 ; return 0; }
12074 if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12075 rm -rf conftest*
12077 echo "$as_me:$LINENO: result: socklen_t *" >&5
12078 echo "${ECHO_T}socklen_t *" >&6
12079 SOCKLEN_T=socklen_t
12080 else
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12083 rm -rf conftest*
12085 cat > conftest.$ac_ext <<EOF
12086 #line 12086 "configure"
12087 #include "confdefs.h"
12089 #include <stddef.h>
12090 #include <sys/types.h>
12091 #include <sys/socket.h>
12092 int main() {
12094 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
12095 ; return 0; }
12097 if { (eval echo configure:12097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12098 rm -rf conftest*
12100 echo "$as_me:$LINENO: result: size_t *" >&5
12101 echo "${ECHO_T}size_t *" >&6
12102 SOCKLEN_T=size_t
12103 else
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12106 rm -rf conftest*
12108 cat > conftest.$ac_ext <<EOF
12109 #line 12109 "configure"
12110 #include "confdefs.h"
12112 #include <stddef.h>
12113 #include <sys/types.h>
12114 #include <sys/socket.h>
12115 int main() {
12117 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
12118 ; return 0; }
12120 if { (eval echo configure:12120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12121 rm -rf conftest*
12123 echo "$as_me:$LINENO: result: int *" >&5
12124 echo "${ECHO_T}int *" >&6
12125 SOCKLEN_T=int
12126 else
12127 echo "configure: failed program was:" >&5
12128 cat conftest.$ac_ext >&5
12129 rm -rf conftest*
12131 { echo "$as_me:$LINENO: WARNING: could not determine" >&5
12132 echo "$as_me: WARNING: could not determine" >&2;}
12134 rm -f conftest*
12136 rm -f conftest*
12138 rm -f conftest*
12139 cat >>confdefs.h <<_ACEOF
12140 #define SOCKLEN_T $SOCKLEN_T
12141 _ACEOF
12144 echo "$as_me:$LINENO: checking for isnan" >&5
12145 echo $ECHO_N "checking for isnan... $ECHO_C" >&6
12146 if test "${ac_cv_func_isnan+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 #include "confdefs.h"
12152 /* System header to define __stub macros and hopefully few prototypes,
12153 which can conflict with char isnan (); below. */
12154 #include <assert.h>
12155 /* Override any gcc2 internal prototype to avoid an error. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 /* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12161 char isnan ();
12162 char (*f) ();
12164 #ifdef F77_DUMMY_MAIN
12165 # ifdef __cplusplus
12166 extern "C"
12167 # endif
12168 int F77_DUMMY_MAIN() { return 1; }
12169 #endif
12171 main ()
12173 /* The GNU C library defines this for functions which it implements
12174 to always fail with ENOSYS. Some functions are actually named
12175 something starting with __ and the normal name is an alias. */
12176 #if defined (__stub_isnan) || defined (__stub___isnan)
12177 choke me
12178 #else
12179 f = isnan;
12180 #endif
12183 return 0;
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_func_isnan=yes
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 ac_cv_func_isnan=no
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
12207 echo "${ECHO_T}$ac_cv_func_isnan" >&6
12208 if test $ac_cv_func_isnan = yes; then
12210 else
12211 echo "$as_me:$LINENO: checking for isnan in -lm" >&5
12212 echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6
12213 if test "${ac_cv_lib_m_isnan+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216 ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-lm $LIBS"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 #line $LINENO "configure"
12220 #include "confdefs.h"
12222 /* Override any gcc2 internal prototype to avoid an error. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 /* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12228 char isnan ();
12229 #ifdef F77_DUMMY_MAIN
12230 # ifdef __cplusplus
12231 extern "C"
12232 # endif
12233 int F77_DUMMY_MAIN() { return 1; }
12234 #endif
12236 main ()
12238 isnan ();
12240 return 0;
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245 (eval $ac_link) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -s conftest$ac_exeext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_lib_m_isnan=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 ac_cv_lib_m_isnan=no
12261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5
12265 echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6
12266 if test $ac_cv_lib_m_isnan = yes; then
12267 cat >>confdefs.h <<\_ACEOF
12268 #define HAVE_ISNAN 1
12269 _ACEOF
12276 echo "$as_me:$LINENO: checking for isinf" >&5
12277 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
12278 if test "${ac_cv_func_isinf+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281 cat >conftest.$ac_ext <<_ACEOF
12282 #line $LINENO "configure"
12283 #include "confdefs.h"
12284 /* System header to define __stub macros and hopefully few prototypes,
12285 which can conflict with char isinf (); below. */
12286 #include <assert.h>
12287 /* Override any gcc2 internal prototype to avoid an error. */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 /* We use char because int might match the return type of a gcc2
12292 builtin and then its argument prototype would still apply. */
12293 char isinf ();
12294 char (*f) ();
12296 #ifdef F77_DUMMY_MAIN
12297 # ifdef __cplusplus
12298 extern "C"
12299 # endif
12300 int F77_DUMMY_MAIN() { return 1; }
12301 #endif
12303 main ()
12305 /* The GNU C library defines this for functions which it implements
12306 to always fail with ENOSYS. Some functions are actually named
12307 something starting with __ and the normal name is an alias. */
12308 #if defined (__stub_isinf) || defined (__stub___isinf)
12309 choke me
12310 #else
12311 f = isinf;
12312 #endif
12315 return 0;
12317 _ACEOF
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12320 (eval $ac_link) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -s conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_func_isinf=yes
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12334 ac_cv_func_isinf=no
12336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12338 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
12339 echo "${ECHO_T}$ac_cv_func_isinf" >&6
12340 if test $ac_cv_func_isinf = yes; then
12341 cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_ISINF 1
12343 _ACEOF
12345 else
12346 echo "$as_me:$LINENO: checking for isinf in -lm" >&5
12347 echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6
12348 if test "${ac_cv_lib_m_isinf+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-lm $LIBS"
12353 cat >conftest.$ac_ext <<_ACEOF
12354 #line $LINENO "configure"
12355 #include "confdefs.h"
12357 /* Override any gcc2 internal prototype to avoid an error. */
12358 #ifdef __cplusplus
12359 extern "C"
12360 #endif
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12363 char isinf ();
12364 #ifdef F77_DUMMY_MAIN
12365 # ifdef __cplusplus
12366 extern "C"
12367 # endif
12368 int F77_DUMMY_MAIN() { return 1; }
12369 #endif
12371 main ()
12373 isinf ();
12375 return 0;
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -s conftest$ac_exeext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_cv_lib_m_isinf=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12394 ac_cv_lib_m_isinf=no
12396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12399 echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5
12400 echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6
12401 if test $ac_cv_lib_m_isinf = yes; then
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_ISINF 1
12404 _ACEOF
12411 XML_LIBDIR='-L${libdir}'
12412 XML_INCLUDEDIR='-I${includedir}/libxml2'
12414 XML_CFLAGS=""
12415 RDL_LIBS=""
12417 if test "${GCC}" != "yes" ; then
12418 case "${host}" in
12419 *-*-hpux* )
12420 CFLAGS="${CFLAGS} -Wp,-H30000"
12422 *-dec-osf* )
12423 CFLAGS="${CFLAGS} -ieee"
12425 esac
12426 else
12427 CFLAGS="${CFLAGS} -Wall"
12428 case "${host}" in
12429 alpha*-*-linux* )
12430 CFLAGS="${CFLAGS} -mieee"
12432 alpha*-*-osf* )
12433 CFLAGS="${CFLAGS} -mieee"
12435 esac
12437 case ${host} in
12438 *-*-solaris*)
12439 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
12441 hppa*-hp-mpeix)
12442 NEED_TRIO=1
12444 esac
12448 PYTHON=
12449 PYTHON_VERSION=
12450 PYTHON_INCLUDES=
12451 PYTHON_SITE_PACKAGES=
12453 # Check whether --with-python or --without-python was given.
12454 if test "${with_python+set}" = set; then
12455 withval="$with_python"
12458 if test "$with_python" != "no" ; then
12459 if test -x "$with_python/bin/python"
12460 then
12461 echo Found python in $with_python/bin/python
12462 PYTHON="$with_python/bin/python"
12463 else
12464 if test -x "$with_python"
12465 then
12466 echo Found python in $with_python
12467 PYTHON="$with_python"
12468 else
12469 # Extract the first word of "python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
12470 set dummy python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
12471 echo "$as_me:$LINENO: checking for $ac_word" >&5
12472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12473 if test "${ac_cv_path_PYTHON+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476 case $PYTHON in
12477 [\\/]* | ?:[\\/]*)
12478 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12492 done
12493 done
12496 esac
12498 PYTHON=$ac_cv_path_PYTHON
12500 if test -n "$PYTHON"; then
12501 echo "$as_me:$LINENO: result: $PYTHON" >&5
12502 echo "${ECHO_T}$PYTHON" >&6
12503 else
12504 echo "$as_me:$LINENO: result: no" >&5
12505 echo "${ECHO_T}no" >&6
12510 if test "$PYTHON" != ""
12511 then
12512 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
12513 echo Found Python version $PYTHON_VERSION
12515 if test "$PYTHON_VERSION" != ""
12516 then
12517 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
12518 -d $with_python/lib/python$PYTHON_VERSION/site-packages
12519 then
12520 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
12521 PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
12522 else
12523 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
12524 then
12525 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
12526 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
12527 else
12528 if test -r /usr/include/python$PYTHON_VERSION/Python.h
12529 then
12530 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
12531 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
12532 else
12533 echo could not find python$PYTHON_VERSION/Python.h
12536 if ! test -d "$PYTHON_SITE_PACKAGES"
12537 then
12538 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
12545 if test "$PYTHON_INCLUDES" != ""; then
12546 WITH_PYTHON_TRUE=
12547 WITH_PYTHON_FALSE='#'
12548 else
12549 WITH_PYTHON_TRUE='#'
12550 WITH_PYTHON_FALSE=
12552 if test "$PYTHON_INCLUDES" != ""
12553 then
12554 PYTHON_SUBDIR=python
12555 else
12556 PYTHON_SUBDIR=
12560 _cppflags="${CPPFLAGS}"
12561 _ldflags="${LDFLAGS}"
12564 # Check whether --with-readline or --without-readline was given.
12565 if test "${with_readline+set}" = set; then
12566 withval="$with_readline"
12568 if test "$withval" != "no" -a "$withval" != "yes"; then
12569 RDL_DIR=$withval
12570 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12571 LDFLAGS="${LDFLAGS} -L$withval/lib"
12576 if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
12577 if test "${with_mem_debug}" = "" ; then
12578 with_mem_debug="yes"
12580 if test "${with_docbook}" = "" ; then
12581 with_docbook="yes"
12583 if test "${with_xptr}" = "" ; then
12584 with_xptr="yes"
12586 if test "${with_schemas}" = "" ; then
12587 with_schemas="yes"
12589 CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls "
12593 if test "${NEED_TRIO}" = "1" ; then
12594 echo Adding trio library for string functions
12595 WITH_TRIO=1
12596 else
12597 WITH_TRIO=0
12601 if test "${NEED_TRIO}" = "1"; then
12602 WITH_TRIO_SOURCES_TRUE=
12603 WITH_TRIO_SOURCES_FALSE='#'
12604 else
12605 WITH_TRIO_SOURCES_TRUE='#'
12606 WITH_TRIO_SOURCES_FALSE=
12611 THREAD_LIBS=""
12612 WITH_THREADS=0
12613 THREAD_CFLAGS=""
12614 TEST_THREADS=""
12617 # Check whether --with-threads or --without-threads was given.
12618 if test "${with_threads+set}" = set; then
12619 withval="$with_threads"
12622 if test "$with_threads" = "yes" ; then
12623 echo Enabling multithreaded support
12625 if test "${ac_cv_header_pthread_h+set}" = set; then
12626 echo "$as_me:$LINENO: checking for pthread.h" >&5
12627 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12628 if test "${ac_cv_header_pthread_h+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12632 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12633 else
12634 # Is the header compilable?
12635 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12636 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12640 $ac_includes_default
12641 #include <pthread.h>
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 ac_header_compiler=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12659 ac_header_compiler=no
12661 rm -f conftest.$ac_objext conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12663 echo "${ECHO_T}$ac_header_compiler" >&6
12665 # Is the header present?
12666 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12667 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12670 #include "confdefs.h"
12671 #include <pthread.h>
12672 _ACEOF
12673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12675 ac_status=$?
12676 egrep -v '^ *\+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } >/dev/null; then
12681 if test -s conftest.err; then
12682 ac_cpp_err=$ac_c_preproc_warn_flag
12683 else
12684 ac_cpp_err=
12686 else
12687 ac_cpp_err=yes
12689 if test -z "$ac_cpp_err"; then
12690 ac_header_preproc=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 ac_header_preproc=no
12696 rm -f conftest.err conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12698 echo "${ECHO_T}$ac_header_preproc" >&6
12700 # So? What about this header?
12701 case $ac_header_compiler:$ac_header_preproc in
12702 yes:no )
12703 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
12704 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12706 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12707 no:yes )
12708 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
12709 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
12711 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12713 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12714 esac
12715 echo "$as_me:$LINENO: checking for pthread.h" >&5
12716 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12717 if test "${ac_cv_header_pthread_h+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720 ac_cv_header_pthread_h=$ac_header_preproc
12722 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12723 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12726 if test $ac_cv_header_pthread_h = yes; then
12727 echo "$as_me:$LINENO: checking for pthread_join in -lpthread" >&5
12728 echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6
12729 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732 ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lpthread $LIBS"
12734 cat >conftest.$ac_ext <<_ACEOF
12735 #line $LINENO "configure"
12736 #include "confdefs.h"
12738 /* Override any gcc2 internal prototype to avoid an error. */
12739 #ifdef __cplusplus
12740 extern "C"
12741 #endif
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12744 char pthread_join ();
12745 #ifdef F77_DUMMY_MAIN
12746 # ifdef __cplusplus
12747 extern "C"
12748 # endif
12749 int F77_DUMMY_MAIN() { return 1; }
12750 #endif
12752 main ()
12754 pthread_join ();
12756 return 0;
12758 _ACEOF
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761 (eval $ac_link) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_lib_pthread_pthread_join=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 ac_cv_lib_pthread_pthread_join=no
12777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12780 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_join" >&5
12781 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6
12782 if test $ac_cv_lib_pthread_pthread_join = yes; then
12784 THREAD_LIBS="-lpthread"
12785 cat >>confdefs.h <<\_ACEOF
12786 #define HAVE_LIBPTHREAD 1
12787 _ACEOF
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_PTHREAD_H 1
12791 _ACEOF
12793 WITH_THREADS="1"
12800 if test "$WITH_THREADS" = "1" ; then
12801 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
12802 TEST_THREADS="Threadtests"
12806 # Check whether --with-thread-alloc or --without-thread-alloc was given.
12807 if test "${with_thread_alloc+set}" = set; then
12808 withval="$with_thread_alloc"
12811 if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
12812 THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
12821 # Check whether --with-history or --without-history was given.
12822 if test "${with_history+set}" = set; then
12823 withval="$with_history"
12826 if test "$with_history" = "yes" ; then
12827 echo Enabling xmllint shell history
12828 unset tcap
12829 for termlib in ncurses curses termcap terminfo termlib; do
12830 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
12831 echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5
12832 echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6
12833 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836 ac_check_lib_save_LIBS=$LIBS
12837 LIBS="-l${termlib} $LIBS"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 #line $LINENO "configure"
12840 #include "confdefs.h"
12842 /* Override any gcc2 internal prototype to avoid an error. */
12843 #ifdef __cplusplus
12844 extern "C"
12845 #endif
12846 /* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848 char tputs ();
12849 #ifdef F77_DUMMY_MAIN
12850 # ifdef __cplusplus
12851 extern "C"
12852 # endif
12853 int F77_DUMMY_MAIN() { return 1; }
12854 #endif
12856 main ()
12858 tputs ();
12860 return 0;
12862 _ACEOF
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } &&
12869 { ac_try='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 eval "$as_ac_Lib=yes"
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12879 eval "$as_ac_Lib=no"
12881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12885 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12886 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12887 tcap="-l$termlib"
12890 test -n "$tcap" && break
12891 done
12893 if test "${ac_cv_header_readline_history_h+set}" = set; then
12894 echo "$as_me:$LINENO: checking for readline/history.h" >&5
12895 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
12896 if test "${ac_cv_header_readline_history_h+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
12900 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
12901 else
12902 # Is the header compilable?
12903 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
12904 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12907 #include "confdefs.h"
12908 $ac_includes_default
12909 #include <readline/history.h>
12910 _ACEOF
12911 rm -f conftest.$ac_objext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12913 (eval $ac_compile) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 ac_header_compiler=yes
12924 else
12925 echo "$as_me: failed program was:" >&5
12926 cat conftest.$ac_ext >&5
12927 ac_header_compiler=no
12929 rm -f conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12931 echo "${ECHO_T}$ac_header_compiler" >&6
12933 # Is the header present?
12934 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
12935 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 #include "confdefs.h"
12939 #include <readline/history.h>
12940 _ACEOF
12941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12943 ac_status=$?
12944 egrep -v '^ *\+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } >/dev/null; then
12949 if test -s conftest.err; then
12950 ac_cpp_err=$ac_c_preproc_warn_flag
12951 else
12952 ac_cpp_err=
12954 else
12955 ac_cpp_err=yes
12957 if test -z "$ac_cpp_err"; then
12958 ac_header_preproc=yes
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 ac_header_preproc=no
12964 rm -f conftest.err conftest.$ac_ext
12965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12966 echo "${ECHO_T}$ac_header_preproc" >&6
12968 # So? What about this header?
12969 case $ac_header_compiler:$ac_header_preproc in
12970 yes:no )
12971 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
12972 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
12974 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
12975 no:yes )
12976 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
12977 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
12979 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
12981 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
12982 esac
12983 echo "$as_me:$LINENO: checking for readline/history.h" >&5
12984 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
12985 if test "${ac_cv_header_readline_history_h+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988 ac_cv_header_readline_history_h=$ac_header_preproc
12990 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
12991 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
12994 if test $ac_cv_header_readline_history_h = yes; then
12995 echo "$as_me:$LINENO: checking for append_history in -lhistory" >&5
12996 echo $ECHO_N "checking for append_history in -lhistory... $ECHO_C" >&6
12997 if test "${ac_cv_lib_history_append_history+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-lhistory $LIBS"
13002 cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13006 /* Override any gcc2 internal prototype to avoid an error. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13012 char append_history ();
13013 #ifdef F77_DUMMY_MAIN
13014 # ifdef __cplusplus
13015 extern "C"
13016 # endif
13017 int F77_DUMMY_MAIN() { return 1; }
13018 #endif
13020 main ()
13022 append_history ();
13024 return 0;
13026 _ACEOF
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -s conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_lib_history_append_history=yes
13040 else
13041 echo "$as_me: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13043 ac_cv_lib_history_append_history=no
13045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13046 LIBS=$ac_check_lib_save_LIBS
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_history_append_history" >&5
13049 echo "${ECHO_T}$ac_cv_lib_history_append_history" >&6
13050 if test $ac_cv_lib_history_append_history = yes; then
13052 RDL_LIBS="-lhistory"
13053 cat >>confdefs.h <<\_ACEOF
13054 #define HAVE_LIBHISTORY 1
13055 _ACEOF
13062 if test "${ac_cv_header_readline_readline_h+set}" = set; then
13063 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
13064 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
13065 if test "${ac_cv_header_readline_readline_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
13069 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
13070 else
13071 # Is the header compilable?
13072 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
13073 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
13074 cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13077 $ac_includes_default
13078 #include <readline/readline.h>
13079 _ACEOF
13080 rm -f conftest.$ac_objext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 ac_header_compiler=yes
13093 else
13094 echo "$as_me: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13096 ac_header_compiler=no
13098 rm -f conftest.$ac_objext conftest.$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13100 echo "${ECHO_T}$ac_header_compiler" >&6
13102 # Is the header present?
13103 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
13104 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 #include "confdefs.h"
13108 #include <readline/readline.h>
13109 _ACEOF
13110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13112 ac_status=$?
13113 egrep -v '^ *\+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } >/dev/null; then
13118 if test -s conftest.err; then
13119 ac_cpp_err=$ac_c_preproc_warn_flag
13120 else
13121 ac_cpp_err=
13123 else
13124 ac_cpp_err=yes
13126 if test -z "$ac_cpp_err"; then
13127 ac_header_preproc=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 ac_header_preproc=no
13133 rm -f conftest.err conftest.$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13135 echo "${ECHO_T}$ac_header_preproc" >&6
13137 # So? What about this header?
13138 case $ac_header_compiler:$ac_header_preproc in
13139 yes:no )
13140 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13141 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
13143 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;};;
13144 no:yes )
13145 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
13146 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
13148 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
13149 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
13150 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;};;
13151 esac
13152 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
13153 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
13154 if test "${ac_cv_header_readline_readline_h+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 ac_cv_header_readline_readline_h=$ac_header_preproc
13159 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
13160 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
13163 if test $ac_cv_header_readline_readline_h = yes; then
13164 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13165 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
13166 if test "${ac_cv_lib_readline_readline+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169 ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-lreadline $tcap $LIBS"
13171 cat >conftest.$ac_ext <<_ACEOF
13172 #line $LINENO "configure"
13173 #include "confdefs.h"
13175 /* Override any gcc2 internal prototype to avoid an error. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 /* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13181 char readline ();
13182 #ifdef F77_DUMMY_MAIN
13183 # ifdef __cplusplus
13184 extern "C"
13185 # endif
13186 int F77_DUMMY_MAIN() { return 1; }
13187 #endif
13189 main ()
13191 readline ();
13193 return 0;
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_readline_readline=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 cat conftest.$ac_ext >&5
13212 ac_cv_lib_readline_readline=no
13214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS
13217 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13218 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
13219 if test $ac_cv_lib_readline_readline = yes; then
13221 RDL_LIBS="-lreadline $RDL_LIBS $tcap"
13222 cat >>confdefs.h <<\_ACEOF
13223 #define HAVE_LIBREADLINE 1
13224 _ACEOF
13231 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
13232 CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
13233 RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
13234 else
13235 CPPFLAGS=${_cppflags}
13237 LDFLAGS=${_ldflags}
13243 # Check whether --with-ftp or --without-ftp was given.
13244 if test "${with_ftp+set}" = set; then
13245 withval="$with_ftp"
13248 if test "$with_ftp" = "no" ; then
13249 echo Disabling FTP support
13250 WITH_FTP=0
13251 FTP_OBJ=
13252 else
13253 WITH_FTP=1
13254 FTP_OBJ=nanoftp.o
13260 # Check whether --with-http or --without-http was given.
13261 if test "${with_http+set}" = set; then
13262 withval="$with_http"
13265 if test "$with_http" = "no" ; then
13266 echo Disabling HTTP support
13267 WITH_HTTP=0
13268 HTTP_OBJ=
13269 else
13270 WITH_HTTP=1
13271 HTTP_OBJ=nanohttp.o
13277 # Check whether --with-html or --without-html was given.
13278 if test "${with_html+set}" = set; then
13279 withval="$with_html"
13282 if test "$with_html" = "no" ; then
13283 echo Disabling HTML support
13284 WITH_HTML=0
13285 HTML_OBJ=
13286 else
13287 WITH_HTML=1
13288 HTML_OBJ="HTMLparser.o HTMLtree.o"
13294 # Check whether --with-catalog or --without-catalog was given.
13295 if test "${with_catalog+set}" = set; then
13296 withval="$with_catalog"
13299 if test "$with_catalog" = "no" ; then
13300 echo Disabling Catalog support
13301 WITH_CATALOG=0
13302 CATALOG_OBJ=
13303 else
13304 WITH_CATALOG=1
13305 CATALOG_OBJ="catalog.o"
13311 # Check whether --with-docbook or --without-docbook was given.
13312 if test "${with_docbook+set}" = set; then
13313 withval="$with_docbook"
13316 if test "$with_docbook" = "no" ; then
13317 echo Disabling Docbook support
13318 WITH_DOCB=0
13319 DOCB_OBJ=
13320 else
13321 WITH_DOCB=1
13322 DOCB_OBJ="DOCBparser.o"
13329 # Check whether --with-xpath or --without-xpath was given.
13330 if test "${with_xpath+set}" = set; then
13331 withval="$with_xpath"
13334 if test "$with_xpath" = "no" ; then
13335 echo Disabling XPATH support
13336 with_xptr="no"
13337 with_c14n="no"
13338 with_xinclude="no"
13339 WITH_XPATH=0
13340 XPATH_OBJ=
13341 else
13342 WITH_XPATH=1
13343 XPATH_OBJ=xpath.o
13349 # Check whether --with-xptr or --without-xptr was given.
13350 if test "${with_xptr+set}" = set; then
13351 withval="$with_xptr"
13354 if test "$with_xptr" = "no" ; then
13355 echo Disabling XPointer support
13356 WITH_XPTR=0
13357 XPTR_OBJ=
13358 else
13359 WITH_XPTR=1
13360 XPTR_OBJ=xpointer.o
13366 # Check whether --with-c14n or --without-c14n was given.
13367 if test "${with_c14n+set}" = set; then
13368 withval="$with_c14n"
13371 if test "$with_c14n" = "no" ; then
13372 echo Disabling C14N support
13373 WITH_C14N=0
13374 C14N_OBJ=
13375 else
13376 WITH_C14N=1
13377 C14N_OBJ="c14n.c"
13383 # Check whether --with-xinclude or --without-xinclude was given.
13384 if test "${with_xinclude+set}" = set; then
13385 withval="$with_xinclude"
13388 if test "$with_xinclude" = "no" ; then
13389 echo Disabling XInclude support
13390 WITH_XINCLUDE=0
13391 XINCLUDE_OBJ=
13392 with_xinclude="no"
13393 else
13394 WITH_XINCLUDE=1
13395 XINCLUDE_OBJ=xinclude.o
13400 WITH_ICONV=0
13402 # Check whether --with-iconv or --without-iconv was given.
13403 if test "${with_iconv+set}" = set; then
13404 withval="$with_iconv"
13407 if test "$with_iconv" = "no" ; then
13408 echo Disabling ICONV support
13409 else
13410 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
13411 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
13412 # Export this since our headers include iconv.h
13413 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
13414 ICONV_LIBS="-L$with_iconv/lib"
13417 if test "${ac_cv_header_iconv_h+set}" = set; then
13418 echo "$as_me:$LINENO: checking for iconv.h" >&5
13419 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13420 if test "${ac_cv_header_iconv_h+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13424 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13425 else
13426 # Is the header compilable?
13427 echo "$as_me:$LINENO: checking iconv.h usability" >&5
13428 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 #include "confdefs.h"
13432 $ac_includes_default
13433 #include <iconv.h>
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437 (eval $ac_compile) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -s conftest.$ac_objext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_header_compiler=yes
13448 else
13449 echo "$as_me: failed program was:" >&5
13450 cat conftest.$ac_ext >&5
13451 ac_header_compiler=no
13453 rm -f conftest.$ac_objext conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13455 echo "${ECHO_T}$ac_header_compiler" >&6
13457 # Is the header present?
13458 echo "$as_me:$LINENO: checking iconv.h presence" >&5
13459 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13460 cat >conftest.$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13462 #include "confdefs.h"
13463 #include <iconv.h>
13464 _ACEOF
13465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13467 ac_status=$?
13468 egrep -v '^ *\+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } >/dev/null; then
13473 if test -s conftest.err; then
13474 ac_cpp_err=$ac_c_preproc_warn_flag
13475 else
13476 ac_cpp_err=
13478 else
13479 ac_cpp_err=yes
13481 if test -z "$ac_cpp_err"; then
13482 ac_header_preproc=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 ac_header_preproc=no
13488 rm -f conftest.err conftest.$ac_ext
13489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490 echo "${ECHO_T}$ac_header_preproc" >&6
13492 # So? What about this header?
13493 case $ac_header_compiler:$ac_header_preproc in
13494 yes:no )
13495 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13496 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13498 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
13499 no:yes )
13500 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13501 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13503 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13505 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
13506 esac
13507 echo "$as_me:$LINENO: checking for iconv.h" >&5
13508 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13509 if test "${ac_cv_header_iconv_h+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512 ac_cv_header_iconv_h=$ac_header_preproc
13514 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13515 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13518 if test $ac_cv_header_iconv_h = yes; then
13519 echo "$as_me:$LINENO: checking for iconv" >&5
13520 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
13521 cat >conftest.$ac_ext <<_ACEOF
13522 #line $LINENO "configure"
13523 #include "confdefs.h"
13524 #include <stdlib.h>
13525 #include <iconv.h>
13526 #ifdef F77_DUMMY_MAIN
13527 # ifdef __cplusplus
13528 extern "C"
13529 # endif
13530 int F77_DUMMY_MAIN() { return 1; }
13531 #endif
13533 main ()
13536 iconv_t cd = iconv_open ("","");
13537 iconv (cd, NULL, NULL, NULL, NULL);
13539 return 0;
13541 _ACEOF
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13544 (eval $ac_link) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6
13557 WITH_ICONV=1
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13562 echo "$as_me:$LINENO: result: no" >&5
13563 echo "${ECHO_T}no" >&6
13564 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
13565 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
13567 _ldflags="${LDFLAGS}"
13568 _libs="${LIBS}"
13569 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
13570 LIBS="${LIBS} -liconv"
13572 cat >conftest.$ac_ext <<_ACEOF
13573 #line $LINENO "configure"
13574 #include "confdefs.h"
13575 #include <stdlib.h>
13576 #include <iconv.h>
13577 #ifdef F77_DUMMY_MAIN
13578 # ifdef __cplusplus
13579 extern "C"
13580 # endif
13581 int F77_DUMMY_MAIN() { return 1; }
13582 #endif
13584 main ()
13587 iconv_t cd = iconv_open ("","");
13588 iconv (cd, NULL, NULL, NULL, NULL);
13590 return 0;
13592 _ACEOF
13593 rm -f conftest.$ac_objext conftest$ac_exeext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13595 (eval $ac_link) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -s conftest$ac_exeext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13606 echo "$as_me:$LINENO: result: yes" >&5
13607 echo "${ECHO_T}yes" >&6
13608 WITH_ICONV=1
13609 ICONV_LIBS="${ICONV_LIBS} -liconv"
13610 LIBS="${_libs}"
13611 LDFLAGS="${_ldflags}"
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13616 echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6
13618 LIBS="${_libs}"
13619 LDFLAGS="${_ldflags}"
13621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13628 M_LIBS="-lm"
13629 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
13633 # Check whether --with-schemas or --without-schemas was given.
13634 if test "${with_schemas+set}" = set; then
13635 withval="$with_schemas"
13638 if test "$with_schemas" = "yes" ; then
13639 echo Enabling Schemas support
13640 WITH_SCHEMAS=1
13641 TEST_SCHEMAS="Schemastests"
13642 with_regexps=yes
13643 else
13644 WITH_SCHEMAS=0
13645 TEST_SCHEMAS=
13651 # Check whether --with-regexps or --without-regexps was given.
13652 if test "${with_regexps+set}" = set; then
13653 withval="$with_regexps"
13656 if test "$with_regexps" = "no" ; then
13657 echo Disabling Regexps support
13658 WITH_REGEXPS=0
13659 TEST_REGEXPS=
13660 else
13661 WITH_REGEXPS=1
13662 TEST_REGEXPS="Regexptests Automatatests"
13668 # Check whether --with-debug or --without-debug was given.
13669 if test "${with_debug+set}" = set; then
13670 withval="$with_debug"
13673 if test "$with_debug" = "no" ; then
13674 echo Disabling DEBUG support
13675 WITH_DEBUG=0
13676 DEBUG_OBJ=
13677 else
13678 WITH_DEBUG=1
13679 DEBUG_OBJ=debugXML.o
13685 # Check whether --with-mem_debug or --without-mem_debug was given.
13686 if test "${with_mem_debug+set}" = set; then
13687 withval="$with_mem_debug"
13690 if test "$with_mem_debug" = "yes" ; then
13691 echo Enabling memory debug support
13692 WITH_MEM_DEBUG=1
13693 else
13694 WITH_MEM_DEBUG=0
13716 rm -f rm COPYING.LIB COPYING
13717 ln -s Copyright COPYING
13719 ac_config_files="$ac_config_files libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py"
13720 cat >confcache <<\_ACEOF
13721 # This file is a shell script that caches the results of configure
13722 # tests run on this system so they can be shared between configure
13723 # scripts and configure runs, see configure's option --config-cache.
13724 # It is not useful on other systems. If it contains results you don't
13725 # want to keep, you may remove or edit it.
13727 # config.status only pays attention to the cache file if you give it
13728 # the --recheck option to rerun configure.
13730 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13731 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13732 # following values.
13734 _ACEOF
13736 # The following way of writing the cache mishandles newlines in values,
13737 # but we know of no workaround that is simple, portable, and efficient.
13738 # So, don't put newlines in cache variables' values.
13739 # Ultrix sh set writes to stderr and can't be redirected directly,
13740 # and sets the high bit in the cache file unless we assign to the vars.
13742 (set) 2>&1 |
13743 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13744 *ac_space=\ *)
13745 # `set' does not quote correctly, so add quotes (double-quote
13746 # substitution turns \\\\ into \\, and sed turns \\ into \).
13747 sed -n \
13748 "s/'/'\\\\''/g;
13749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13752 # `set' quotes correctly as required by POSIX, so do not add quotes.
13753 sed -n \
13754 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13756 esac;
13758 sed '
13759 t clear
13760 : clear
13761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13762 t end
13763 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13764 : end' >>confcache
13765 if cmp -s $cache_file confcache; then :; else
13766 if test -w $cache_file; then
13767 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13768 cat confcache >$cache_file
13769 else
13770 echo "not updating unwritable cache $cache_file"
13773 rm -f confcache
13775 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13776 # Let make expand exec_prefix.
13777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13779 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13780 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13781 # trailing colons and then remove the whole line if VPATH becomes empty
13782 # (actually we leave an empty line to preserve line numbers).
13783 if test "x$srcdir" = x.; then
13784 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13785 s/:*\$(srcdir):*/:/;
13786 s/:*\${srcdir}:*/:/;
13787 s/:*@srcdir@:*/:/;
13788 s/^\([^=]*=[ ]*\):*/\1/;
13789 s/:*$//;
13790 s/^[^=]*=[ ]*$//;
13794 DEFS=-DHAVE_CONFIG_H
13797 : ${CONFIG_STATUS=./config.status}
13798 ac_clean_files_save=$ac_clean_files
13799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13802 cat >$CONFIG_STATUS <<_ACEOF
13803 #! $SHELL
13804 # Generated by $as_me.
13805 # Run this file to recreate the current configuration.
13806 # Compiler output produced by configure, useful for debugging
13807 # configure, is in config.log if it exists.
13809 debug=false
13810 SHELL=\${CONFIG_SHELL-$SHELL}
13811 _ACEOF
13813 cat >>$CONFIG_STATUS <<\_ACEOF
13815 ## --------------------- ##
13816 ## M4sh Initialization. ##
13817 ## --------------------- ##
13819 # Be Bourne compatible
13820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13821 emulate sh
13822 NULLCMD=:
13823 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13824 set -o posix
13827 # NLS nuisances.
13828 # Support unset when possible.
13829 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13830 as_unset=unset
13831 else
13832 as_unset=false
13835 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13836 { $as_unset LANG || test "${LANG+set}" != set; } ||
13837 { LANG=C; export LANG; }
13838 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13839 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13840 { LC_ALL=C; export LC_ALL; }
13841 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13842 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13843 { LC_TIME=C; export LC_TIME; }
13844 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13845 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13846 { LC_CTYPE=C; export LC_CTYPE; }
13847 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13848 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13849 { LANGUAGE=C; export LANGUAGE; }
13850 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13851 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13852 { LC_COLLATE=C; export LC_COLLATE; }
13853 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13854 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13855 { LC_NUMERIC=C; export LC_NUMERIC; }
13856 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13857 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13858 { LC_MESSAGES=C; export LC_MESSAGES; }
13861 # Name of the executable.
13862 as_me=`(basename "$0") 2>/dev/null ||
13863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13864 X"$0" : 'X\(//\)$' \| \
13865 X"$0" : 'X\(/\)$' \| \
13866 . : '\(.\)' 2>/dev/null ||
13867 echo X/"$0" |
13868 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13869 /^X\/\(\/\/\)$/{ s//\1/; q; }
13870 /^X\/\(\/\).*/{ s//\1/; q; }
13871 s/.*/./; q'`
13873 # PATH needs CR, and LINENO needs CR and PATH.
13874 # Avoid depending upon Character Ranges.
13875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13878 as_cr_digits='0123456789'
13879 as_cr_alnum=$as_cr_Letters$as_cr_digits
13881 # The user is always right.
13882 if test "${PATH_SEPARATOR+set}" != set; then
13883 echo "#! /bin/sh" >conftest.sh
13884 echo "exit 0" >>conftest.sh
13885 chmod +x conftest.sh
13886 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13887 PATH_SEPARATOR=';'
13888 else
13889 PATH_SEPARATOR=:
13891 rm -f conftest.sh
13895 as_lineno_1=$LINENO
13896 as_lineno_2=$LINENO
13897 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13898 test "x$as_lineno_1" != "x$as_lineno_2" &&
13899 test "x$as_lineno_3" = "x$as_lineno_2" || {
13900 # Find who we are. Look in the path if we contain no path at all
13901 # relative or not.
13902 case $0 in
13903 *[\\/]* ) as_myself=$0 ;;
13904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13907 IFS=$as_save_IFS
13908 test -z "$as_dir" && as_dir=.
13909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13910 done
13913 esac
13914 # We did not find ourselves, most probably we were run as `sh COMMAND'
13915 # in which case we are not to be found in the path.
13916 if test "x$as_myself" = x; then
13917 as_myself=$0
13919 if test ! -f "$as_myself"; then
13920 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13921 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13922 { (exit 1); exit 1; }; }
13924 case $CONFIG_SHELL in
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13929 IFS=$as_save_IFS
13930 test -z "$as_dir" && as_dir=.
13931 for as_base in sh bash ksh sh5; do
13932 case $as_dir in
13934 if ("$as_dir/$as_base" -c '
13935 as_lineno_1=$LINENO
13936 as_lineno_2=$LINENO
13937 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13938 test "x$as_lineno_1" != "x$as_lineno_2" &&
13939 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13940 CONFIG_SHELL=$as_dir/$as_base
13941 export CONFIG_SHELL
13942 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13943 fi;;
13944 esac
13945 done
13946 done
13948 esac
13950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13951 # uniformly replaced by the line number. The first 'sed' inserts a
13952 # line-number line before each line; the second 'sed' does the real
13953 # work. The second script uses 'N' to pair each line-number line
13954 # with the numbered line, and appends trailing '-' during
13955 # substitution so that $LINENO is not a special case at line end.
13956 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13957 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13958 sed '=' <$as_myself |
13959 sed '
13961 s,$,-,
13962 : loop
13963 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13964 t loop
13965 s,-$,,
13966 s,^['$as_cr_digits']*\n,,
13967 ' >$as_me.lineno &&
13968 chmod +x $as_me.lineno ||
13969 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13970 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13971 { (exit 1); exit 1; }; }
13973 # Don't try to exec as it changes $[0], causing all sort of problems
13974 # (the dirname of $[0] is not the place where we might find the
13975 # original and so on. Autoconf is especially sensible to this).
13976 . ./$as_me.lineno
13977 # Exit status is that of the last command.
13978 exit
13982 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13983 *c*,-n*) ECHO_N= ECHO_C='
13984 ' ECHO_T=' ' ;;
13985 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13986 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13987 esac
13989 if expr a : '\(a\)' >/dev/null 2>&1; then
13990 as_expr=expr
13991 else
13992 as_expr=false
13995 rm -f conf$$ conf$$.exe conf$$.file
13996 echo >conf$$.file
13997 if ln -s conf$$.file conf$$ 2>/dev/null; then
13998 # We could just check for DJGPP; but this test a) works b) is more generic
13999 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14000 if test -f conf$$.exe; then
14001 # Don't use ln at all; we don't have any links
14002 as_ln_s='cp -p'
14003 else
14004 as_ln_s='ln -s'
14006 elif ln conf$$.file conf$$ 2>/dev/null; then
14007 as_ln_s=ln
14008 else
14009 as_ln_s='cp -p'
14011 rm -f conf$$ conf$$.exe conf$$.file
14013 as_executable_p="test -f"
14015 # Sed expression to map a string onto a valid CPP name.
14016 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14018 # Sed expression to map a string onto a valid variable name.
14019 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14022 # IFS
14023 # We need space, tab and new line, in precisely that order.
14024 as_nl='
14026 IFS=" $as_nl"
14028 # CDPATH.
14029 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14031 exec 6>&1
14033 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14034 # report actual input values of CONFIG_FILES etc. instead of their
14035 # values after options handling. Logging --version etc. is OK.
14036 exec 5>>config.log
14038 echo
14039 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14040 ## Running $as_me. ##
14041 _ASBOX
14042 } >&5
14043 cat >&5 <<_CSEOF
14045 This file was extended by $as_me, which was
14046 generated by GNU Autoconf 2.53. Invocation command line was
14048 CONFIG_FILES = $CONFIG_FILES
14049 CONFIG_HEADERS = $CONFIG_HEADERS
14050 CONFIG_LINKS = $CONFIG_LINKS
14051 CONFIG_COMMANDS = $CONFIG_COMMANDS
14052 $ $0 $@
14054 _CSEOF
14055 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14056 echo >&5
14057 _ACEOF
14059 # Files that config.status was made for.
14060 if test -n "$ac_config_files"; then
14061 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14064 if test -n "$ac_config_headers"; then
14065 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14068 if test -n "$ac_config_links"; then
14069 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14072 if test -n "$ac_config_commands"; then
14073 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14076 cat >>$CONFIG_STATUS <<\_ACEOF
14078 ac_cs_usage="\
14079 \`$as_me' instantiates files from templates according to the
14080 current configuration.
14082 Usage: $0 [OPTIONS] [FILE]...
14084 -h, --help print this help, then exit
14085 -V, --version print version number, then exit
14086 -d, --debug don't remove temporary files
14087 --recheck update $as_me by reconfiguring in the same conditions
14088 --file=FILE[:TEMPLATE]
14089 instantiate the configuration file FILE
14090 --header=FILE[:TEMPLATE]
14091 instantiate the configuration header FILE
14093 Configuration files:
14094 $config_files
14096 Configuration headers:
14097 $config_headers
14099 Configuration commands:
14100 $config_commands
14102 Report bugs to <bug-autoconf@gnu.org>."
14103 _ACEOF
14105 cat >>$CONFIG_STATUS <<_ACEOF
14106 ac_cs_version="\\
14107 config.status
14108 configured by $0, generated by GNU Autoconf 2.53,
14109 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14112 Free Software Foundation, Inc.
14113 This config.status script is free software; the Free Software Foundation
14114 gives unlimited permission to copy, distribute and modify it."
14115 srcdir=$srcdir
14116 INSTALL="$INSTALL"
14117 _ACEOF
14119 cat >>$CONFIG_STATUS <<\_ACEOF
14120 # If no file are specified by the user, then we need to provide default
14121 # value. By we need to know if files were specified by the user.
14122 ac_need_defaults=:
14123 while test $# != 0
14125 case $1 in
14126 --*=*)
14127 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14128 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14129 shift
14130 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14131 shift
14133 -*);;
14134 *) # This is not an option, so the user has probably given explicit
14135 # arguments.
14136 ac_need_defaults=false;;
14137 esac
14139 case $1 in
14140 # Handling of the options.
14141 _ACEOF
14142 cat >>$CONFIG_STATUS <<_ACEOF
14143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14144 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14145 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14146 _ACEOF
14147 cat >>$CONFIG_STATUS <<\_ACEOF
14148 --version | --vers* | -V )
14149 echo "$ac_cs_version"; exit 0 ;;
14150 --he | --h)
14151 # Conflict between --help and --header
14152 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14153 Try \`$0 --help' for more information." >&5
14154 echo "$as_me: error: ambiguous option: $1
14155 Try \`$0 --help' for more information." >&2;}
14156 { (exit 1); exit 1; }; };;
14157 --help | --hel | -h )
14158 echo "$ac_cs_usage"; exit 0 ;;
14159 --debug | --d* | -d )
14160 debug=: ;;
14161 --file | --fil | --fi | --f )
14162 shift
14163 CONFIG_FILES="$CONFIG_FILES $1"
14164 ac_need_defaults=false;;
14165 --header | --heade | --head | --hea )
14166 shift
14167 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14168 ac_need_defaults=false;;
14170 # This is an error.
14171 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14172 Try \`$0 --help' for more information." >&5
14173 echo "$as_me: error: unrecognized option: $1
14174 Try \`$0 --help' for more information." >&2;}
14175 { (exit 1); exit 1; }; } ;;
14177 *) ac_config_targets="$ac_config_targets $1" ;;
14179 esac
14180 shift
14181 done
14183 _ACEOF
14185 cat >>$CONFIG_STATUS <<_ACEOF
14187 # INIT-COMMANDS section.
14192 _ACEOF
14196 cat >>$CONFIG_STATUS <<\_ACEOF
14197 for ac_config_target in $ac_config_targets
14199 case "$ac_config_target" in
14200 # Handling of arguments.
14201 "libxml.spec" ) CONFIG_FILES="$CONFIG_FILES libxml.spec" ;;
14202 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14203 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14204 "include/libxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
14205 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14206 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
14207 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14208 "python/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
14209 "include/libxml/xmlversion.h" ) CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
14210 "xml2-config" ) CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
14211 "libxml-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
14212 "xml2Conf.sh" ) CONFIG_FILES="$CONFIG_FILES xml2Conf.sh" ;;
14213 "python/setup.py" ) CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
14214 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14215 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14216 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14217 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14218 { (exit 1); exit 1; }; };;
14219 esac
14220 done
14222 # If the user did not use the arguments to specify the items to instantiate,
14223 # then the envvar interface is used. Set only those that are not.
14224 # We use the long form for the default assignment because of an extremely
14225 # bizarre bug on SunOS 4.1.3.
14226 if $ac_need_defaults; then
14227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14232 # Create a temporary directory, and hook for its removal unless debugging.
14233 $debug ||
14235 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14236 trap '{ (exit 1); exit 1; }' 1 2 13 15
14239 # Create a (secure) tmp directory for tmp files.
14240 : ${TMPDIR=/tmp}
14242 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14243 test -n "$tmp" && test -d "$tmp"
14244 } ||
14246 tmp=$TMPDIR/cs$$-$RANDOM
14247 (umask 077 && mkdir $tmp)
14248 } ||
14250 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14251 { (exit 1); exit 1; }
14254 _ACEOF
14256 cat >>$CONFIG_STATUS <<_ACEOF
14259 # CONFIG_FILES section.
14262 # No need to generate the scripts if there are no CONFIG_FILES.
14263 # This happens for instance when ./config.status config.h
14264 if test -n "\$CONFIG_FILES"; then
14265 # Protect against being on the right side of a sed subst in config.status.
14266 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14267 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14268 s,@SHELL@,$SHELL,;t t
14269 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14270 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14271 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14272 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14273 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14274 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14275 s,@exec_prefix@,$exec_prefix,;t t
14276 s,@prefix@,$prefix,;t t
14277 s,@program_transform_name@,$program_transform_name,;t t
14278 s,@bindir@,$bindir,;t t
14279 s,@sbindir@,$sbindir,;t t
14280 s,@libexecdir@,$libexecdir,;t t
14281 s,@datadir@,$datadir,;t t
14282 s,@sysconfdir@,$sysconfdir,;t t
14283 s,@sharedstatedir@,$sharedstatedir,;t t
14284 s,@localstatedir@,$localstatedir,;t t
14285 s,@libdir@,$libdir,;t t
14286 s,@includedir@,$includedir,;t t
14287 s,@oldincludedir@,$oldincludedir,;t t
14288 s,@infodir@,$infodir,;t t
14289 s,@mandir@,$mandir,;t t
14290 s,@build_alias@,$build_alias,;t t
14291 s,@host_alias@,$host_alias,;t t
14292 s,@target_alias@,$target_alias,;t t
14293 s,@DEFS@,$DEFS,;t t
14294 s,@ECHO_C@,$ECHO_C,;t t
14295 s,@ECHO_N@,$ECHO_N,;t t
14296 s,@ECHO_T@,$ECHO_T,;t t
14297 s,@LIBS@,$LIBS,;t t
14298 s,@build@,$build,;t t
14299 s,@build_cpu@,$build_cpu,;t t
14300 s,@build_vendor@,$build_vendor,;t t
14301 s,@build_os@,$build_os,;t t
14302 s,@host@,$host,;t t
14303 s,@host_cpu@,$host_cpu,;t t
14304 s,@host_vendor@,$host_vendor,;t t
14305 s,@host_os@,$host_os,;t t
14306 s,@LIBXML_MAJOR_VERSION@,$LIBXML_MAJOR_VERSION,;t t
14307 s,@LIBXML_MINOR_VERSION@,$LIBXML_MINOR_VERSION,;t t
14308 s,@LIBXML_MICRO_VERSION@,$LIBXML_MICRO_VERSION,;t t
14309 s,@LIBXML_VERSION@,$LIBXML_VERSION,;t t
14310 s,@LIBXML_VERSION_INFO@,$LIBXML_VERSION_INFO,;t t
14311 s,@LIBXML_VERSION_NUMBER@,$LIBXML_VERSION_NUMBER,;t t
14312 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14313 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14314 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14315 s,@PACKAGE@,$PACKAGE,;t t
14316 s,@VERSION@,$VERSION,;t t
14317 s,@ACLOCAL@,$ACLOCAL,;t t
14318 s,@AUTOCONF@,$AUTOCONF,;t t
14319 s,@AUTOMAKE@,$AUTOMAKE,;t t
14320 s,@AUTOHEADER@,$AUTOHEADER,;t t
14321 s,@MAKEINFO@,$MAKEINFO,;t t
14322 s,@SET_MAKE@,$SET_MAKE,;t t
14323 s,@CC@,$CC,;t t
14324 s,@CFLAGS@,$CFLAGS,;t t
14325 s,@LDFLAGS@,$LDFLAGS,;t t
14326 s,@CPPFLAGS@,$CPPFLAGS,;t t
14327 s,@ac_ct_CC@,$ac_ct_CC,;t t
14328 s,@EXEEXT@,$EXEEXT,;t t
14329 s,@OBJEXT@,$OBJEXT,;t t
14330 s,@CPP@,$CPP,;t t
14331 s,@RM@,$RM,;t t
14332 s,@MV@,$MV,;t t
14333 s,@TAR@,$TAR,;t t
14334 s,@U@,$U,;t t
14335 s,@ANSI2KNR@,$ANSI2KNR,;t t
14336 s,@LN_S@,$LN_S,;t t
14337 s,@ECHO@,$ECHO,;t t
14338 s,@RANLIB@,$RANLIB,;t t
14339 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14340 s,@STRIP@,$STRIP,;t t
14341 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14342 s,@LIBTOOL@,$LIBTOOL,;t t
14343 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14344 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14345 s,@MAINT@,$MAINT,;t t
14346 s,@Z_CFLAGS@,$Z_CFLAGS,;t t
14347 s,@Z_LIBS@,$Z_LIBS,;t t
14348 s,@HTML_DIR@,$HTML_DIR,;t t
14349 s,@PYTHON@,$PYTHON,;t t
14350 s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t
14351 s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t
14352 s,@PYTHON_SUBDIR@,$PYTHON_SUBDIR,;t t
14353 s,@WITH_TRIO_SOURCES_TRUE@,$WITH_TRIO_SOURCES_TRUE,;t t
14354 s,@WITH_TRIO_SOURCES_FALSE@,$WITH_TRIO_SOURCES_FALSE,;t t
14355 s,@WITH_TRIO@,$WITH_TRIO,;t t
14356 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
14357 s,@WITH_THREADS@,$WITH_THREADS,;t t
14358 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
14359 s,@TEST_THREADS@,$TEST_THREADS,;t t
14360 s,@WITH_FTP@,$WITH_FTP,;t t
14361 s,@FTP_OBJ@,$FTP_OBJ,;t t
14362 s,@WITH_HTTP@,$WITH_HTTP,;t t
14363 s,@HTTP_OBJ@,$HTTP_OBJ,;t t
14364 s,@WITH_HTML@,$WITH_HTML,;t t
14365 s,@HTML_OBJ@,$HTML_OBJ,;t t
14366 s,@WITH_CATALOG@,$WITH_CATALOG,;t t
14367 s,@CATALOG_OBJ@,$CATALOG_OBJ,;t t
14368 s,@WITH_DOCB@,$WITH_DOCB,;t t
14369 s,@DOCB_OBJ@,$DOCB_OBJ,;t t
14370 s,@WITH_XPATH@,$WITH_XPATH,;t t
14371 s,@XPATH_OBJ@,$XPATH_OBJ,;t t
14372 s,@WITH_XPTR@,$WITH_XPTR,;t t
14373 s,@XPTR_OBJ@,$XPTR_OBJ,;t t
14374 s,@WITH_C14N@,$WITH_C14N,;t t
14375 s,@C14N_OBJ@,$C14N_OBJ,;t t
14376 s,@WITH_XINCLUDE@,$WITH_XINCLUDE,;t t
14377 s,@XINCLUDE_OBJ@,$XINCLUDE_OBJ,;t t
14378 s,@WITH_ICONV@,$WITH_ICONV,;t t
14379 s,@WITH_SCHEMAS@,$WITH_SCHEMAS,;t t
14380 s,@TEST_SCHEMAS@,$TEST_SCHEMAS,;t t
14381 s,@WITH_REGEXPS@,$WITH_REGEXPS,;t t
14382 s,@TEST_REGEXPS@,$TEST_REGEXPS,;t t
14383 s,@WITH_DEBUG@,$WITH_DEBUG,;t t
14384 s,@DEBUG_OBJ@,$DEBUG_OBJ,;t t
14385 s,@WITH_MEM_DEBUG@,$WITH_MEM_DEBUG,;t t
14386 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
14387 s,@XML_LIBDIR@,$XML_LIBDIR,;t t
14388 s,@XML_LIBS@,$XML_LIBS,;t t
14389 s,@ICONV_LIBS@,$ICONV_LIBS,;t t
14390 s,@XML_INCLUDEDIR@,$XML_INCLUDEDIR,;t t
14391 s,@HAVE_ISNAN@,$HAVE_ISNAN,;t t
14392 s,@HAVE_ISINF@,$HAVE_ISINF,;t t
14393 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
14394 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
14395 s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
14396 s,@M_LIBS@,$M_LIBS,;t t
14397 s,@RDL_LIBS@,$RDL_LIBS,;t t
14398 CEOF
14400 _ACEOF
14402 cat >>$CONFIG_STATUS <<\_ACEOF
14403 # Split the substitutions into bite-sized pieces for seds with
14404 # small command number limits, like on Digital OSF/1 and HP-UX.
14405 ac_max_sed_lines=48
14406 ac_sed_frag=1 # Number of current file.
14407 ac_beg=1 # First line for current file.
14408 ac_end=$ac_max_sed_lines # Line after last line for current file.
14409 ac_more_lines=:
14410 ac_sed_cmds=
14411 while $ac_more_lines; do
14412 if test $ac_beg -gt 1; then
14413 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14414 else
14415 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14417 if test ! -s $tmp/subs.frag; then
14418 ac_more_lines=false
14419 else
14420 # The purpose of the label and of the branching condition is to
14421 # speed up the sed processing (if there are no `@' at all, there
14422 # is no need to browse any of the substitutions).
14423 # These are the two extra sed commands mentioned above.
14424 (echo ':t
14425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14426 if test -z "$ac_sed_cmds"; then
14427 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14428 else
14429 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14431 ac_sed_frag=`expr $ac_sed_frag + 1`
14432 ac_beg=$ac_end
14433 ac_end=`expr $ac_end + $ac_max_sed_lines`
14435 done
14436 if test -z "$ac_sed_cmds"; then
14437 ac_sed_cmds=cat
14439 fi # test -n "$CONFIG_FILES"
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<\_ACEOF
14443 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14445 case $ac_file in
14446 - | *:- | *:-:* ) # input from stdin
14447 cat >$tmp/stdin
14448 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14450 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14452 * ) ac_file_in=$ac_file.in ;;
14453 esac
14455 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14456 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14458 X"$ac_file" : 'X\(//\)[^/]' \| \
14459 X"$ac_file" : 'X\(//\)$' \| \
14460 X"$ac_file" : 'X\(/\)' \| \
14461 . : '\(.\)' 2>/dev/null ||
14462 echo X"$ac_file" |
14463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14465 /^X\(\/\/\)$/{ s//\1/; q; }
14466 /^X\(\/\).*/{ s//\1/; q; }
14467 s/.*/./; q'`
14468 { case "$ac_dir" in
14469 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14470 *) as_incr_dir=.;;
14471 esac
14472 as_dummy="$ac_dir"
14473 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14474 case $as_mkdir_dir in
14475 # Skip DOS drivespec
14476 ?:) as_incr_dir=$as_mkdir_dir ;;
14478 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14479 test -d "$as_incr_dir" ||
14480 mkdir "$as_incr_dir" ||
14481 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14482 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14483 { (exit 1); exit 1; }; }
14485 esac
14486 done; }
14488 ac_builddir=.
14490 if test "$ac_dir" != .; then
14491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14492 # A "../" for each directory in $ac_dir_suffix.
14493 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14494 else
14495 ac_dir_suffix= ac_top_builddir=
14498 case $srcdir in
14499 .) # No --srcdir option. We are building in place.
14500 ac_srcdir=.
14501 if test -z "$ac_top_builddir"; then
14502 ac_top_srcdir=.
14503 else
14504 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14505 fi ;;
14506 [\\/]* | ?:[\\/]* ) # Absolute path.
14507 ac_srcdir=$srcdir$ac_dir_suffix;
14508 ac_top_srcdir=$srcdir ;;
14509 *) # Relative path.
14510 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14511 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14512 esac
14513 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14514 # absolute.
14515 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14516 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14517 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14518 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14521 case $INSTALL in
14522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14523 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14524 esac
14526 if test x"$ac_file" != x-; then
14527 { echo "$as_me:$LINENO: creating $ac_file" >&5
14528 echo "$as_me: creating $ac_file" >&6;}
14529 rm -f "$ac_file"
14531 # Let's still pretend it is `configure' which instantiates (i.e., don't
14532 # use $as_me), people would be surprised to read:
14533 # /* config.h. Generated by config.status. */
14534 if test x"$ac_file" = x-; then
14535 configure_input=
14536 else
14537 configure_input="$ac_file. "
14539 configure_input=$configure_input"Generated from `echo $ac_file_in |
14540 sed 's,.*/,,'` by configure."
14542 # First look for the input files in the build tree, otherwise in the
14543 # src tree.
14544 ac_file_inputs=`IFS=:
14545 for f in $ac_file_in; do
14546 case $f in
14547 -) echo $tmp/stdin ;;
14548 [\\/$]*)
14549 # Absolute (can't be DOS-style, as IFS=:)
14550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14551 echo "$as_me: error: cannot find input file: $f" >&2;}
14552 { (exit 1); exit 1; }; }
14553 echo $f;;
14554 *) # Relative
14555 if test -f "$f"; then
14556 # Build tree
14557 echo $f
14558 elif test -f "$srcdir/$f"; then
14559 # Source tree
14560 echo $srcdir/$f
14561 else
14562 # /dev/null tree
14563 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14564 echo "$as_me: error: cannot find input file: $f" >&2;}
14565 { (exit 1); exit 1; }; }
14566 fi;;
14567 esac
14568 done` || { (exit 1); exit 1; }
14569 _ACEOF
14570 cat >>$CONFIG_STATUS <<_ACEOF
14571 sed "$ac_vpsub
14572 $extrasub
14573 _ACEOF
14574 cat >>$CONFIG_STATUS <<\_ACEOF
14576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14577 s,@configure_input@,$configure_input,;t t
14578 s,@srcdir@,$ac_srcdir,;t t
14579 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14580 s,@top_srcdir@,$ac_top_srcdir,;t t
14581 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14582 s,@builddir@,$ac_builddir,;t t
14583 s,@abs_builddir@,$ac_abs_builddir,;t t
14584 s,@top_builddir@,$ac_top_builddir,;t t
14585 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14586 s,@INSTALL@,$ac_INSTALL,;t t
14587 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14588 rm -f $tmp/stdin
14589 if test x"$ac_file" != x-; then
14590 mv $tmp/out $ac_file
14591 else
14592 cat $tmp/out
14593 rm -f $tmp/out
14596 done
14597 _ACEOF
14598 cat >>$CONFIG_STATUS <<\_ACEOF
14601 # CONFIG_HEADER section.
14604 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14605 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14607 # ac_d sets the value in "#define NAME VALUE" lines.
14608 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14609 ac_dB='[ ].*$,\1#\2'
14610 ac_dC=' '
14611 ac_dD=',;t'
14612 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14613 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14614 ac_uB='$,\1#\2define\3'
14615 ac_uC=' '
14616 ac_uD=',;t'
14618 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14620 case $ac_file in
14621 - | *:- | *:-:* ) # input from stdin
14622 cat >$tmp/stdin
14623 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14625 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14627 * ) ac_file_in=$ac_file.in ;;
14628 esac
14630 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14631 echo "$as_me: creating $ac_file" >&6;}
14633 # First look for the input files in the build tree, otherwise in the
14634 # src tree.
14635 ac_file_inputs=`IFS=:
14636 for f in $ac_file_in; do
14637 case $f in
14638 -) echo $tmp/stdin ;;
14639 [\\/$]*)
14640 # Absolute (can't be DOS-style, as IFS=:)
14641 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14642 echo "$as_me: error: cannot find input file: $f" >&2;}
14643 { (exit 1); exit 1; }; }
14644 echo $f;;
14645 *) # Relative
14646 if test -f "$f"; then
14647 # Build tree
14648 echo $f
14649 elif test -f "$srcdir/$f"; then
14650 # Source tree
14651 echo $srcdir/$f
14652 else
14653 # /dev/null tree
14654 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14655 echo "$as_me: error: cannot find input file: $f" >&2;}
14656 { (exit 1); exit 1; }; }
14657 fi;;
14658 esac
14659 done` || { (exit 1); exit 1; }
14660 # Remove the trailing spaces.
14661 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14663 _ACEOF
14665 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14666 # `conftest.undefs', that substitutes the proper values into
14667 # config.h.in to produce config.h. The first handles `#define'
14668 # templates, and the second `#undef' templates.
14669 # And first: Protect against being on the right side of a sed subst in
14670 # config.status. Protect against being in an unquoted here document
14671 # in config.status.
14672 rm -f conftest.defines conftest.undefs
14673 # Using a here document instead of a string reduces the quoting nightmare.
14674 # Putting comments in sed scripts is not portable.
14676 # `end' is used to avoid that the second main sed command (meant for
14677 # 0-ary CPP macros) applies to n-ary macro definitions.
14678 # See the Autoconf documentation for `clear'.
14679 cat >confdef2sed.sed <<\_ACEOF
14680 s/[\\&,]/\\&/g
14681 s,[\\$`],\\&,g
14682 t clear
14683 : clear
14684 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14685 t end
14686 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14687 : end
14688 _ACEOF
14689 # If some macros were called several times there might be several times
14690 # the same #defines, which is useless. Nevertheless, we may not want to
14691 # sort them, since we want the *last* AC-DEFINE to be honored.
14692 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14693 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14694 rm -f confdef2sed.sed
14696 # This sed command replaces #undef with comments. This is necessary, for
14697 # example, in the case of _POSIX_SOURCE, which is predefined and required
14698 # on some systems where configure will not decide to define it.
14699 cat >>conftest.undefs <<\_ACEOF
14700 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14701 _ACEOF
14703 # Break up conftest.defines because some shells have a limit on the size
14704 # of here documents, and old seds have small limits too (100 cmds).
14705 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14706 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14707 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14708 echo ' :' >>$CONFIG_STATUS
14709 rm -f conftest.tail
14710 while grep . conftest.defines >/dev/null
14712 # Write a limited-size here document to $tmp/defines.sed.
14713 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14714 # Speed up: don't consider the non `#define' lines.
14715 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14716 # Work around the forget-to-reset-the-flag bug.
14717 echo 't clr' >>$CONFIG_STATUS
14718 echo ': clr' >>$CONFIG_STATUS
14719 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14720 echo 'CEOF
14721 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14722 rm -f $tmp/in
14723 mv $tmp/out $tmp/in
14724 ' >>$CONFIG_STATUS
14725 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14726 rm -f conftest.defines
14727 mv conftest.tail conftest.defines
14728 done
14729 rm -f conftest.defines
14730 echo ' fi # egrep' >>$CONFIG_STATUS
14731 echo >>$CONFIG_STATUS
14733 # Break up conftest.undefs because some shells have a limit on the size
14734 # of here documents, and old seds have small limits too (100 cmds).
14735 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14736 rm -f conftest.tail
14737 while grep . conftest.undefs >/dev/null
14739 # Write a limited-size here document to $tmp/undefs.sed.
14740 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14741 # Speed up: don't consider the non `#undef'
14742 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14743 # Work around the forget-to-reset-the-flag bug.
14744 echo 't clr' >>$CONFIG_STATUS
14745 echo ': clr' >>$CONFIG_STATUS
14746 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14747 echo 'CEOF
14748 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14749 rm -f $tmp/in
14750 mv $tmp/out $tmp/in
14751 ' >>$CONFIG_STATUS
14752 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14753 rm -f conftest.undefs
14754 mv conftest.tail conftest.undefs
14755 done
14756 rm -f conftest.undefs
14758 cat >>$CONFIG_STATUS <<\_ACEOF
14759 # Let's still pretend it is `configure' which instantiates (i.e., don't
14760 # use $as_me), people would be surprised to read:
14761 # /* config.h. Generated by config.status. */
14762 if test x"$ac_file" = x-; then
14763 echo "/* Generated by configure. */" >$tmp/config.h
14764 else
14765 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14767 cat $tmp/in >>$tmp/config.h
14768 rm -f $tmp/in
14769 if test x"$ac_file" != x-; then
14770 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14771 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14772 echo "$as_me: $ac_file is unchanged" >&6;}
14773 else
14774 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14776 X"$ac_file" : 'X\(//\)[^/]' \| \
14777 X"$ac_file" : 'X\(//\)$' \| \
14778 X"$ac_file" : 'X\(/\)' \| \
14779 . : '\(.\)' 2>/dev/null ||
14780 echo X"$ac_file" |
14781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14783 /^X\(\/\/\)$/{ s//\1/; q; }
14784 /^X\(\/\).*/{ s//\1/; q; }
14785 s/.*/./; q'`
14786 { case "$ac_dir" in
14787 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14788 *) as_incr_dir=.;;
14789 esac
14790 as_dummy="$ac_dir"
14791 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14792 case $as_mkdir_dir in
14793 # Skip DOS drivespec
14794 ?:) as_incr_dir=$as_mkdir_dir ;;
14796 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14797 test -d "$as_incr_dir" ||
14798 mkdir "$as_incr_dir" ||
14799 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14800 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14801 { (exit 1); exit 1; }; }
14803 esac
14804 done; }
14806 rm -f $ac_file
14807 mv $tmp/config.h $ac_file
14809 else
14810 cat $tmp/config.h
14811 rm -f $tmp/config.h
14813 done
14814 _ACEOF
14815 cat >>$CONFIG_STATUS <<\_ACEOF
14818 # CONFIG_COMMANDS section.
14820 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14821 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14822 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14823 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14824 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14825 X"$ac_dest" : 'X\(//\)[^/]' \| \
14826 X"$ac_dest" : 'X\(//\)$' \| \
14827 X"$ac_dest" : 'X\(/\)' \| \
14828 . : '\(.\)' 2>/dev/null ||
14829 echo X"$ac_dest" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14832 /^X\(\/\/\)$/{ s//\1/; q; }
14833 /^X\(\/\).*/{ s//\1/; q; }
14834 s/.*/./; q'`
14835 ac_builddir=.
14837 if test "$ac_dir" != .; then
14838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14839 # A "../" for each directory in $ac_dir_suffix.
14840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14841 else
14842 ac_dir_suffix= ac_top_builddir=
14845 case $srcdir in
14846 .) # No --srcdir option. We are building in place.
14847 ac_srcdir=.
14848 if test -z "$ac_top_builddir"; then
14849 ac_top_srcdir=.
14850 else
14851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14852 fi ;;
14853 [\\/]* | ?:[\\/]* ) # Absolute path.
14854 ac_srcdir=$srcdir$ac_dir_suffix;
14855 ac_top_srcdir=$srcdir ;;
14856 *) # Relative path.
14857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14859 esac
14860 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14861 # absolute.
14862 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14863 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14864 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14865 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14868 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14869 echo "$as_me: executing $ac_dest commands" >&6;}
14870 case $ac_dest in
14871 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
14872 esac
14873 done
14874 _ACEOF
14876 cat >>$CONFIG_STATUS <<\_ACEOF
14878 { (exit 0); exit 0; }
14879 _ACEOF
14880 chmod +x $CONFIG_STATUS
14881 ac_clean_files=$ac_clean_files_save
14884 # configure is writing to config.log, and then calls config.status.
14885 # config.status does its own redirection, appending to config.log.
14886 # Unfortunately, on DOS this fails, as config.log is still kept open
14887 # by configure, so config.status won't be able to write to it; its
14888 # output is simply discarded. So we exec the FD to /dev/null,
14889 # effectively closing config.log, so it can be properly (re)opened and
14890 # appended to by config.status. When coming back to configure, we
14891 # need to make the FD available again.
14892 if test "$no_create" != yes; then
14893 ac_cs_success=:
14894 exec 5>/dev/null
14895 $SHELL $CONFIG_STATUS || ac_cs_success=false
14896 exec 5>>config.log
14897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14898 # would make configure fail if this is the last instruction.
14899 $ac_cs_success || { (exit 1); exit 1; }
14903 chmod +x xml2-config xml2Conf.sh python/setup.py