Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / configure
blob82f720a5b0801f95508b1db455e3db86abbf786e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="src/msgfmt.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar localedir docdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE YACC GCJ GCJFLAGS HAVE_GCJ BUILDJAVAEXE CPP EGREP HAVE_GCJ_IN_PATH HAVE_JAVAC_IN_PATH HAVE_JIKES_IN_PATH JAVAC CLASSPATH CLASSPATH_SEPARATOR HAVE_GCJ_C HAVE_JAVAC HAVE_JIKES JAR BUILDJAVA HAVE_GIJ_IN_PATH HAVE_JAVA_IN_PATH HAVE_JRE_IN_PATH HAVE_JVIEW_IN_PATH JAVA HAVE_GIJ HAVE_JAVA HAVE_JRE HAVE_JVIEW TESTJAVA CSHARP_CHOICE HAVE_CSCC_IN_PATH HAVE_MCS_IN_PATH HAVE_CSC_IN_PATH HAVE_CSCC HAVE_MCS HAVE_CSC BUILDCSHARP HAVE_ILRUN_IN_PATH HAVE_MONO_IN_PATH MONO_PATH MONO_PATH_SEPARATOR HAVE_ILRUN HAVE_MONO TESTCSHARP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RELOCATABLE LIBOBJS SET_RELOCATABLE RELOCATABLE_VIA_LD_TRUE RELOCATABLE_VIA_LD_FALSE STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H GETOPT_H LIBGREPOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBEXPAT LTLIBEXPAT HAVE_LIBEXPAT EMACS EMACSLOADPATH lispdir aclocaldir DVIPS TEXI2PDF PERL CROSS_COMPILING LOCALE_FR LOCALE_FR_UTF8 TESTLIBASPRINTF LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_GCJ_set=${GCJ+set}
924 ac_env_GCJ_value=$GCJ
925 ac_cv_env_GCJ_set=${GCJ+set}
926 ac_cv_env_GCJ_value=$GCJ
927 ac_env_GCJFLAGS_set=${GCJFLAGS+set}
928 ac_env_GCJFLAGS_value=$GCJFLAGS
929 ac_cv_env_GCJFLAGS_set=${GCJFLAGS+set}
930 ac_cv_env_GCJFLAGS_value=$GCJFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXX_set=${CXX+set}
936 ac_env_CXX_value=$CXX
937 ac_cv_env_CXX_set=${CXX+set}
938 ac_cv_env_CXX_value=$CXX
939 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_env_CXXFLAGS_value=$CXXFLAGS
941 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943 ac_env_CXXCPP_set=${CXXCPP+set}
944 ac_env_CXXCPP_value=$CXXCPP
945 ac_cv_env_CXXCPP_set=${CXXCPP+set}
946 ac_cv_env_CXXCPP_value=$CXXCPP
947 ac_env_F77_set=${F77+set}
948 ac_env_F77_value=$F77
949 ac_cv_env_F77_set=${F77+set}
950 ac_cv_env_F77_value=$F77
951 ac_env_FFLAGS_set=${FFLAGS+set}
952 ac_env_FFLAGS_value=$FFLAGS
953 ac_cv_env_FFLAGS_set=${FFLAGS+set}
954 ac_cv_env_FFLAGS_value=$FFLAGS
955 ac_env_EMACS_set=${EMACS+set}
956 ac_env_EMACS_value=$EMACS
957 ac_cv_env_EMACS_set=${EMACS+set}
958 ac_cv_env_EMACS_value=$EMACS
959 ac_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
960 ac_env_EMACSLOADPATH_value=$EMACSLOADPATH
961 ac_cv_env_EMACSLOADPATH_set=${EMACSLOADPATH+set}
962 ac_cv_env_EMACSLOADPATH_value=$EMACSLOADPATH
965 # Report the --help message.
967 if test "$ac_init_help" = "long"; then
968 # Omit some internal or obsolete options to make the list less imposing.
969 # This message is too long to be a string in the A/UX 3.1 sh.
970 cat <<_ACEOF
971 \`configure' configures this package to adapt to many kinds of systems.
973 Usage: $0 [OPTION]... [VAR=VALUE]...
975 To assign environment variables (e.g., CC, CFLAGS...), specify them as
976 VAR=VALUE. See below for descriptions of some of the useful variables.
978 Defaults for the options are specified in brackets.
980 Configuration:
981 -h, --help display this help and exit
982 --help=short display options specific to this package
983 --help=recursive display the short help of all the included packages
984 -V, --version display version information and exit
985 -q, --quiet, --silent do not print \`checking...' messages
986 --cache-file=FILE cache test results in FILE [disabled]
987 -C, --config-cache alias for \`--cache-file=config.cache'
988 -n, --no-create do not create output files
989 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 _ACEOF
993 cat <<_ACEOF
994 Installation directories:
995 --prefix=PREFIX install architecture-independent files in PREFIX
996 [$ac_default_prefix]
997 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
998 [PREFIX]
1000 By default, \`make install' will install all the files in
1001 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1002 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1003 for instance \`--prefix=\$HOME'.
1005 For better control, use the options below.
1007 Fine tuning of the installation directories:
1008 --bindir=DIR user executables [EPREFIX/bin]
1009 --sbindir=DIR system admin executables [EPREFIX/sbin]
1010 --libexecdir=DIR program executables [EPREFIX/libexec]
1011 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1012 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1013 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1014 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1015 --libdir=DIR object code libraries [EPREFIX/lib]
1016 --includedir=DIR C header files [PREFIX/include]
1017 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1018 --infodir=DIR info documentation [PREFIX/info]
1019 --mandir=DIR man documentation [PREFIX/man]
1020 _ACEOF
1022 cat <<\_ACEOF
1024 Program names:
1025 --program-prefix=PREFIX prepend PREFIX to installed program names
1026 --program-suffix=SUFFIX append SUFFIX to installed program names
1027 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1029 System types:
1030 --build=BUILD configure for building on BUILD [guessed]
1031 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1032 _ACEOF
1035 if test -n "$ac_init_help"; then
1037 cat <<\_ACEOF
1039 Optional Features:
1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1042 --disable-dependency-tracking speeds up one-time build
1043 --enable-dependency-tracking do not reject slow dependency extractors
1044 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono)
1045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=yes]
1049 --enable-fast-install[=PKGS]
1050 optimize for fast installation [default=yes]
1051 --disable-libtool-lock avoid locking (might break parallel builds)
1052 --enable-relocatable install a package that can be moved in the filesystem
1053 --disable-nls do not use Native Language Support
1054 --disable-rpath do not hardcode runtime library paths
1056 Optional Packages:
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1059 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1061 both]
1062 --with-tags[=TAGS]
1063 include additional configurations [automatic]
1064 --with-gnu-ld assume the C compiler uses GNU ld default=no
1065 --without-included-regex don't compile regex; this is the default on
1066 systems with version 2 of the GNU C library
1067 (use with caution on other system)
1068 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1069 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1070 --with-included-gettext use the GNU gettext library included here
1071 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1072 --without-libintl-prefix don't search for libintl in includedir and libdir
1073 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1074 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1075 --with-lispdir override the default lisp directory
1077 Some influential environment variables:
1078 CC C compiler command
1079 CFLAGS C compiler flags
1080 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1081 nonstandard directory <lib dir>
1082 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1083 headers in a nonstandard directory <include dir>
1084 GCJ Java native code compiler command
1085 GCJFLAGS Java native code compiler flags
1086 CPP C preprocessor
1087 CXX C++ compiler command
1088 CXXFLAGS C++ compiler flags
1089 CXXCPP C++ preprocessor
1090 F77 Fortran 77 compiler command
1091 FFLAGS Fortran 77 compiler flags
1092 EMACS the Emacs editor command
1093 EMACSLOADPATH
1094 the Emacs library search path
1096 Use these variables to override the choices made by `configure' or to help
1097 it to find libraries and programs with nonstandard names/locations.
1099 _ACEOF
1102 if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
1104 ac_popdir=`pwd`
1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106 test -d $ac_dir || continue
1107 ac_builddir=.
1109 if test "$ac_dir" != .; then
1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113 else
1114 ac_dir_suffix= ac_top_builddir=
1117 case $srcdir in
1118 .) # No --srcdir option. We are building in place.
1119 ac_srcdir=.
1120 if test -z "$ac_top_builddir"; then
1121 ac_top_srcdir=.
1122 else
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124 fi ;;
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
1126 ac_srcdir=$srcdir$ac_dir_suffix;
1127 ac_top_srcdir=$srcdir ;;
1128 *) # Relative path.
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131 esac
1133 # Do not use `cd foo && pwd` to compute absolute paths, because
1134 # the directories may not exist.
1135 case `pwd` in
1136 .) ac_abs_builddir="$ac_dir";;
1138 case "$ac_dir" in
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142 esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151 esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_srcdir=$ac_srcdir;;
1156 case $ac_srcdir in
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160 esac;;
1161 esac
1162 case $ac_abs_builddir in
1163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169 esac;;
1170 esac
1172 cd $ac_dir
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1175 echo
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1178 echo
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
1181 test -f $ac_srcdir/configure.in; then
1182 echo
1183 $ac_configure --help
1184 else
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187 cd $ac_popdir
1188 done
1191 test -n "$ac_init_help" && exit 0
1192 if $ac_init_version; then
1193 cat <<\_ACEOF
1195 Copyright (C) 2003 Free Software Foundation, Inc.
1196 This configure script is free software; the Free Software Foundation
1197 gives unlimited permission to copy, distribute and modify it.
1198 _ACEOF
1199 exit 0
1201 exec 5>config.log
1202 cat >&5 <<_ACEOF
1203 This file contains any messages produced by compilers while
1204 running configure, to aid debugging if configure makes a mistake.
1206 It was created by $as_me, which was
1207 generated by GNU Autoconf 2.59. Invocation command line was
1209 $ $0 $@
1211 _ACEOF
1213 cat <<_ASUNAME
1214 ## --------- ##
1215 ## Platform. ##
1216 ## --------- ##
1218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1230 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235 _ASUNAME
1237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1238 for as_dir in $PATH
1240 IFS=$as_save_IFS
1241 test -z "$as_dir" && as_dir=.
1242 echo "PATH: $as_dir"
1243 done
1245 } >&5
1247 cat >&5 <<_ACEOF
1250 ## ----------- ##
1251 ## Core tests. ##
1252 ## ----------- ##
1254 _ACEOF
1257 # Keep a trace of the command line.
1258 # Strip out --no-create and --no-recursion so they do not pile up.
1259 # Strip out --silent because we don't want to record it for future runs.
1260 # Also quote any args containing shell meta-characters.
1261 # Make two passes to allow for proper duplicate-argument suppression.
1262 ac_configure_args=
1263 ac_configure_args0=
1264 ac_configure_args1=
1265 ac_sep=
1266 ac_must_keep_next=false
1267 for ac_pass in 1 2
1269 for ac_arg
1271 case $ac_arg in
1272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 continue ;;
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 esac
1279 case $ac_pass in
1280 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1283 if test $ac_must_keep_next = true; then
1284 ac_must_keep_next=false # Got value, back to normal.
1285 else
1286 case $ac_arg in
1287 *=* | --config-cache | -C | -disable-* | --disable-* \
1288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1290 | -with-* | --with-* | -without-* | --without-* | --x)
1291 case "$ac_configure_args0 " in
1292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1293 esac
1295 -* ) ac_must_keep_next=true ;;
1296 esac
1298 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1299 # Get rid of the leading space.
1300 ac_sep=" "
1302 esac
1303 done
1304 done
1305 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1306 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308 # When interrupted or exit'd, cleanup temporary files, and complete
1309 # config.log. We remove comments because anyway the quotes in there
1310 # would cause problems or look ugly.
1311 # WARNING: Be sure not to use single quotes in there, as some shells,
1312 # such as our DU 5.0 friend, will then `close' the trap.
1313 trap 'exit_status=$?
1314 # Save into config.log some information that might help in debugging.
1316 echo
1318 cat <<\_ASBOX
1319 ## ---------------- ##
1320 ## Cache variables. ##
1321 ## ---------------- ##
1322 _ASBOX
1323 echo
1324 # The following way of writing the cache mishandles newlines in values,
1326 (set) 2>&1 |
1327 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1328 *ac_space=\ *)
1329 sed -n \
1330 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334 sed -n \
1335 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1337 esac;
1339 echo
1341 cat <<\_ASBOX
1342 ## ----------------- ##
1343 ## Output variables. ##
1344 ## ----------------- ##
1345 _ASBOX
1346 echo
1347 for ac_var in $ac_subst_vars
1349 eval ac_val=$`echo $ac_var`
1350 echo "$ac_var='"'"'$ac_val'"'"'"
1351 done | sort
1352 echo
1354 if test -n "$ac_subst_files"; then
1355 cat <<\_ASBOX
1356 ## ------------- ##
1357 ## Output files. ##
1358 ## ------------- ##
1359 _ASBOX
1360 echo
1361 for ac_var in $ac_subst_files
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1365 done | sort
1366 echo
1369 if test -s confdefs.h; then
1370 cat <<\_ASBOX
1371 ## ----------- ##
1372 ## confdefs.h. ##
1373 ## ----------- ##
1374 _ASBOX
1375 echo
1376 sed "/^$/d" confdefs.h | sort
1377 echo
1379 test "$ac_signal" != 0 &&
1380 echo "$as_me: caught signal $ac_signal"
1381 echo "$as_me: exit $exit_status"
1382 } >&5
1383 rm -f core *.core &&
1384 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1385 exit $exit_status
1387 for ac_signal in 1 2 13 15; do
1388 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1389 done
1390 ac_signal=0
1392 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1393 rm -rf conftest* confdefs.h
1394 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1395 echo >confdefs.h
1397 # Predefined preprocessor variables.
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_NAME "$PACKAGE_NAME"
1401 _ACEOF
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1406 _ACEOF
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1411 _ACEOF
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_STRING "$PACKAGE_STRING"
1416 _ACEOF
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1421 _ACEOF
1424 # Let the site file select an alternate cache file if it wants to.
1425 # Prefer explicitly selected file to automatically selected ones.
1426 if test -z "$CONFIG_SITE"; then
1427 if test "x$prefix" != xNONE; then
1428 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1429 else
1430 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433 for ac_site_file in $CONFIG_SITE; do
1434 if test -r "$ac_site_file"; then
1435 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1436 echo "$as_me: loading site script $ac_site_file" >&6;}
1437 sed 's/^/| /' "$ac_site_file" >&5
1438 . "$ac_site_file"
1440 done
1442 if test -r "$cache_file"; then
1443 # Some versions of bash will fail to source /dev/null (special
1444 # files actually), so we avoid doing that.
1445 if test -f "$cache_file"; then
1446 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1447 echo "$as_me: loading cache $cache_file" >&6;}
1448 case $cache_file in
1449 [\\/]* | ?:[\\/]* ) . $cache_file;;
1450 *) . ./$cache_file;;
1451 esac
1453 else
1454 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1455 echo "$as_me: creating cache $cache_file" >&6;}
1456 >$cache_file
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1469 set,)
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1473 ,set)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,);;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1487 fi;;
1488 esac
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1491 case $ac_new_val in
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1495 esac
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499 esac
1501 done
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 ac_aux_dir=
1536 for ac_dir in ../build-aux $srcdir/../build-aux; do
1537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1550 done
1551 if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux $srcdir/../build-aux" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux $srcdir/../build-aux" >&2;}
1554 { (exit 1); exit 1; }; }
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560 . $srcdir/../version.sh
1561 am__api_version="1.9"
1562 # Find a good install program. We prefer a C program (faster),
1563 # so one script is as good as another. But avoid the broken or
1564 # incompatible versions:
1565 # SysV /etc/install, /usr/sbin/install
1566 # SunOS /usr/etc/install
1567 # IRIX /sbin/install
1568 # AIX /bin/install
1569 # AmigaOS /C/install, which installs bootblocks on floppy discs
1570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1573 # OS/2's system install, which has a completely different semantic
1574 # ./install, which can be erroneously created by make from ./install.sh.
1575 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1577 if test -z "$INSTALL"; then
1578 if test "${ac_cv_path_install+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 # Account for people who put trailing slashes in PATH elements.
1587 case $as_dir/ in
1588 ./ | .// | /cC/* | \
1589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1591 /usr/ucb/* ) ;;
1593 # OSF1 and SCO ODT 3.0 have their own names for install.
1594 # Don't use installbsd from OSF since it installs stuff as root
1595 # by default.
1596 for ac_prog in ginstall scoinst install; do
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1599 if test $ac_prog = install &&
1600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # AIX install. It has an incompatible calling convention.
1603 elif test $ac_prog = install &&
1604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # program-specific install script used by HP pwplus--don't use.
1607 else
1608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1609 break 3
1612 done
1613 done
1615 esac
1616 done
1620 if test "${ac_cv_path_install+set}" = set; then
1621 INSTALL=$ac_cv_path_install
1622 else
1623 # As a last resort, use the slow shell script. We don't cache a
1624 # path for INSTALL within a source directory, because that will
1625 # break other packages using the cache if that directory is
1626 # removed, or if the path is relative.
1627 INSTALL=$ac_install_sh
1630 echo "$as_me:$LINENO: result: $INSTALL" >&5
1631 echo "${ECHO_T}$INSTALL" >&6
1633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1634 # It thinks the first close brace ends the variable substitution.
1635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1642 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1643 # Just in case
1644 sleep 1
1645 echo timestamp > conftest.file
1646 # Do `set' in a subshell so we don't clobber the current shell's
1647 # arguments. Must try -L first in case configure is actually a
1648 # symlink; some systems play weird games with the mod time of symlinks
1649 # (eg FreeBSD returns the mod time of the symlink's containing
1650 # directory).
1651 if (
1652 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1653 if test "$*" = "X"; then
1654 # -L didn't work.
1655 set X `ls -t $srcdir/configure conftest.file`
1657 rm -f conftest.file
1658 if test "$*" != "X $srcdir/configure conftest.file" \
1659 && test "$*" != "X conftest.file $srcdir/configure"; then
1661 # If neither matched, then we have a broken ls. This can happen
1662 # if, for instance, CONFIG_SHELL is bash and it inherits a
1663 # broken ls alias from the environment. This has actually
1664 # happened. Such a system could not be considered "sane".
1665 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1666 alias in your environment" >&5
1667 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1668 alias in your environment" >&2;}
1669 { (exit 1); exit 1; }; }
1672 test "$2" = conftest.file
1674 then
1675 # Ok.
1677 else
1678 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1679 Check your system clock" >&5
1680 echo "$as_me: error: newly created file is older than distributed files!
1681 Check your system clock" >&2;}
1682 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: yes" >&5
1685 echo "${ECHO_T}yes" >&6
1686 test "$program_prefix" != NONE &&
1687 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1688 # Use a double $ so make ignores it.
1689 test "$program_suffix" != NONE &&
1690 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1691 # Double any \ or $. echo might interpret backslashes.
1692 # By default was `s,x,x', remove it if useless.
1693 cat <<\_ACEOF >conftest.sed
1694 s/[\\$]/&&/g;s/;s,x,x,$//
1695 _ACEOF
1696 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1697 rm conftest.sed
1699 # expand $ac_aux_dir to an absolute path
1700 am_aux_dir=`cd $ac_aux_dir && pwd`
1702 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1703 # Use eval to expand $SHELL
1704 if eval "$MISSING --run true"; then
1705 am_missing_run="$MISSING --run "
1706 else
1707 am_missing_run=
1708 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1709 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1712 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1713 # We used to keeping the `.' as first argument, in order to
1714 # allow $(mkdir_p) to be used without argument. As in
1715 # $(mkdir_p) $(somedir)
1716 # where $(somedir) is conditionally defined. However this is wrong
1717 # for two reasons:
1718 # 1. if the package is installed by a user who cannot write `.'
1719 # make install will fail,
1720 # 2. the above comment should most certainly read
1721 # $(mkdir_p) $(DESTDIR)$(somedir)
1722 # so it does not work when $(somedir) is undefined and
1723 # $(DESTDIR) is not.
1724 # To support the latter case, we have to write
1725 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1726 # so the `.' trick is pointless.
1727 mkdir_p='mkdir -p --'
1728 else
1729 # On NextStep and OpenStep, the `mkdir' command does not
1730 # recognize any option. It will interpret all options as
1731 # directories to create, and then abort because `.' already
1732 # exists.
1733 for d in ./-p ./--version;
1735 test -d $d && rmdir $d
1736 done
1737 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1738 if test -f "$ac_aux_dir/mkinstalldirs"; then
1739 mkdir_p='$(mkinstalldirs)'
1740 else
1741 mkdir_p='$(install_sh) -d'
1745 for ac_prog in gawk mawk nawk awk
1747 # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_AWK+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 if test -n "$AWK"; then
1755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_AWK="$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1768 done
1769 done
1773 AWK=$ac_cv_prog_AWK
1774 if test -n "$AWK"; then
1775 echo "$as_me:$LINENO: result: $AWK" >&5
1776 echo "${ECHO_T}$AWK" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 test -n "$AWK" && break
1783 done
1785 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1786 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1787 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1788 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791 cat >conftest.make <<\_ACEOF
1792 all:
1793 @echo 'ac_maketemp="$(MAKE)"'
1794 _ACEOF
1795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1796 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1797 if test -n "$ac_maketemp"; then
1798 eval ac_cv_prog_make_${ac_make}_set=yes
1799 else
1800 eval ac_cv_prog_make_${ac_make}_set=no
1802 rm -f conftest.make
1804 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1805 echo "$as_me:$LINENO: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1807 SET_MAKE=
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 SET_MAKE="MAKE=${MAKE-make}"
1814 rm -rf .tst 2>/dev/null
1815 mkdir .tst 2>/dev/null
1816 if test -d .tst; then
1817 am__leading_dot=.
1818 else
1819 am__leading_dot=_
1821 rmdir .tst 2>/dev/null
1823 # test to see if srcdir already configured
1824 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1825 test -f $srcdir/config.status; then
1826 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1827 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1828 { (exit 1); exit 1; }; }
1831 # test whether we have cygpath
1832 if test -z "$CYGPATH_W"; then
1833 if (cygpath --version) >/dev/null 2>/dev/null; then
1834 CYGPATH_W='cygpath -w'
1835 else
1836 CYGPATH_W=echo
1841 # Define the identity of the package.
1842 PACKAGE=gettext-tools
1843 VERSION=$VERSION_NUMBER
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE "$PACKAGE"
1848 _ACEOF
1851 cat >>confdefs.h <<_ACEOF
1852 #define VERSION "$VERSION"
1853 _ACEOF
1855 # Some tools Automake needs.
1857 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1860 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1863 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1866 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1869 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1873 # Installed binaries are usually stripped using `strip' when the user
1874 # run `make install-strip'. However `strip' might not be the right
1875 # tool to use in cross-compilation environments, therefore Automake
1876 # will honor the `STRIP' environment variable to overrule this program.
1877 if test "$cross_compiling" != no; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}strip; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_STRIP+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 if test -n "$STRIP"; then
1887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1900 done
1901 done
1905 STRIP=$ac_cv_prog_STRIP
1906 if test -n "$STRIP"; then
1907 echo "$as_me:$LINENO: result: $STRIP" >&5
1908 echo "${ECHO_T}$STRIP" >&6
1909 else
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1915 if test -z "$ac_cv_prog_STRIP"; then
1916 ac_ct_STRIP=$STRIP
1917 # Extract the first word of "strip", so it can be a program name with args.
1918 set dummy strip; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 if test -n "$ac_ct_STRIP"; then
1925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_STRIP="strip"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1938 done
1939 done
1941 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1945 if test -n "$ac_ct_STRIP"; then
1946 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1947 echo "${ECHO_T}$ac_ct_STRIP" >&6
1948 else
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 STRIP=$ac_ct_STRIP
1954 else
1955 STRIP="$ac_cv_prog_STRIP"
1959 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1961 # We need awk for the "check" target. The system "awk" is bad on
1962 # some platforms.
1963 # Always define AMTAR for backward compatibility.
1965 AMTAR=${AMTAR-"${am_missing_run}tar"}
1967 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1973 ac_config_headers="$ac_config_headers config.h"
1976 localedir='${datadir}/locale'
1978 docdir='${datadir}/doc/gettext'
1980 test "$mandir" != '${prefix}/man' || mandir='${datadir}/man'
1982 ac_ext=c
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987 if test -n "$ac_tool_prefix"; then
1988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2009 done
2010 done
2014 CC=$ac_cv_prog_CC
2015 if test -n "$CC"; then
2016 echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6
2018 else
2019 echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2024 if test -z "$ac_cv_prog_CC"; then
2025 ac_ct_CC=$CC
2026 # Extract the first word of "gcc", so it can be a program name with args.
2027 set dummy gcc; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="gcc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 CC=$ac_ct_CC
2062 else
2063 CC="$ac_cv_prog_CC"
2066 if test -z "$CC"; then
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}cc; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_CC="${ac_tool_prefix}cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2098 else
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2104 if test -z "$ac_cv_prog_CC"; then
2105 ac_ct_CC=$CC
2106 # Extract the first word of "cc", so it can be a program name with args.
2107 set dummy cc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC="cc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2141 CC=$ac_ct_CC
2142 else
2143 CC="$ac_cv_prog_CC"
2147 if test -z "$CC"; then
2148 # Extract the first word of "cc", so it can be a program name with args.
2149 set dummy cc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 ac_prog_rejected=no
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2162 IFS=$as_save_IFS
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167 ac_prog_rejected=yes
2168 continue
2170 ac_cv_prog_CC="cc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2177 if test $ac_prog_rejected = yes; then
2178 # We found a bogon in the path, so make sure we never use it.
2179 set dummy $ac_cv_prog_CC
2180 shift
2181 if test $# != 0; then
2182 # We chose a different compiler from the bogus one.
2183 # However, it has the same basename, so the bogon will be chosen
2184 # first if we set CC to just the basename; use the full file name.
2185 shift
2186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2191 CC=$ac_cv_prog_CC
2192 if test -n "$CC"; then
2193 echo "$as_me:$LINENO: result: $CC" >&5
2194 echo "${ECHO_T}$CC" >&6
2195 else
2196 echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2201 if test -z "$CC"; then
2202 if test -n "$ac_tool_prefix"; then
2203 for ac_prog in cl
2205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233 echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6
2235 else
2236 echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2240 test -n "$CC" && break
2241 done
2243 if test -z "$CC"; then
2244 ac_ct_CC=$CC
2245 for ac_prog in cl
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 if test -n "$ac_ct_CC"; then
2255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_ac_ct_CC="$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2268 done
2269 done
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276 echo "${ECHO_T}$ac_ct_CC" >&6
2277 else
2278 echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2282 test -n "$ac_ct_CC" && break
2283 done
2285 CC=$ac_ct_CC
2291 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: no acceptable C compiler found in \$PATH
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2297 # Provide some information about the compiler.
2298 echo "$as_me:$LINENO:" \
2299 "checking for C compiler version" >&5
2300 ac_compiler=`set X $ac_compile; echo $2`
2301 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2302 (eval $ac_compiler --version </dev/null >&5) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2306 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2307 (eval $ac_compiler -v </dev/null >&5) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }
2311 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2312 (eval $ac_compiler -V </dev/null >&5) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2317 cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h. */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2325 main ()
2329 return 0;
2331 _ACEOF
2332 ac_clean_files_save=$ac_clean_files
2333 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2334 # Try to create an executable without -o first, disregard a.out.
2335 # It will help us diagnose broken compilers, and finding out an intuition
2336 # of exeext.
2337 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2338 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2339 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2340 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2341 (eval $ac_link_default) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
2345 # Find the output, starting from the most likely. This scheme is
2346 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2347 # resort.
2349 # Be careful to initialize this variable, since it used to be cached.
2350 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2351 ac_cv_exeext=
2352 # b.out is created by i960 compilers.
2353 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2355 test -f "$ac_file" || continue
2356 case $ac_file in
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2359 conftest.$ac_ext )
2360 # This is the source file.
2362 [ab].out )
2363 # We found the default executable, but exeext='' is most
2364 # certainly right.
2365 break;;
2366 *.* )
2367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368 # FIXME: I believe we export ac_cv_exeext for Libtool,
2369 # but it would be cool to find out if it's true. Does anybody
2370 # maintain Libtool? --akim.
2371 export ac_cv_exeext
2372 break;;
2374 break;;
2375 esac
2376 done
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: C compiler cannot create executables
2384 See \`config.log' for more details." >&2;}
2385 { (exit 77); exit 77; }; }
2388 ac_exeext=$ac_cv_exeext
2389 echo "$as_me:$LINENO: result: $ac_file" >&5
2390 echo "${ECHO_T}$ac_file" >&6
2392 # Check the compiler produces executables we can run. If not, either
2393 # the compiler is broken, or we cross compile.
2394 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2395 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2397 # If not cross compiling, check that we can run a simple program.
2398 if test "$cross_compiling" != yes; then
2399 if { ac_try='./$ac_file'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 cross_compiling=no
2406 else
2407 if test "$cross_compiling" = maybe; then
2408 cross_compiling=yes
2409 else
2410 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2411 If you meant to cross compile, use \`--host'.
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: cannot run C compiled programs.
2414 If you meant to cross compile, use \`--host'.
2415 See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
2420 echo "$as_me:$LINENO: result: yes" >&5
2421 echo "${ECHO_T}yes" >&6
2423 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2424 ac_clean_files=$ac_clean_files_save
2425 # Check the compiler produces executables we can run. If not, either
2426 # the compiler is broken, or we cross compile.
2427 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2428 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2429 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2430 echo "${ECHO_T}$cross_compiling" >&6
2432 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2433 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2435 (eval $ac_link) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2441 # work properly (i.e., refer to `conftest.exe'), while it won't with
2442 # `rm'.
2443 for ac_file in conftest.exe conftest conftest.*; do
2444 test -f "$ac_file" || continue
2445 case $ac_file in
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448 export ac_cv_exeext
2449 break;;
2450 * ) break;;
2451 esac
2452 done
2453 else
2454 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2455 See \`config.log' for more details." >&5
2456 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2457 See \`config.log' for more details." >&2;}
2458 { (exit 1); exit 1; }; }
2461 rm -f conftest$ac_cv_exeext
2462 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2463 echo "${ECHO_T}$ac_cv_exeext" >&6
2465 rm -f conftest.$ac_ext
2466 EXEEXT=$ac_cv_exeext
2467 ac_exeext=$EXEEXT
2468 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2469 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2470 if test "${ac_cv_objext+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 main ()
2485 return 0;
2487 _ACEOF
2488 rm -f conftest.o conftest.obj
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; then
2494 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2495 case $ac_file in
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2497 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2498 break;;
2499 esac
2500 done
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2512 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2514 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2515 echo "${ECHO_T}$ac_cv_objext" >&6
2516 OBJEXT=$ac_cv_objext
2517 ac_objext=$OBJEXT
2518 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2519 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2520 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 cat >conftest.$ac_ext <<_ACEOF
2524 /* confdefs.h. */
2525 _ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2531 main ()
2533 #ifndef __GNUC__
2534 choke me
2535 #endif
2538 return 0;
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag"
2551 || test ! -s conftest.err'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 ac_compiler_gnu=yes
2564 else
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 ac_compiler_gnu=no
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2574 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2576 GCC=`test $ac_compiler_gnu = yes && echo yes`
2577 ac_test_CFLAGS=${CFLAGS+set}
2578 ac_save_CFLAGS=$CFLAGS
2579 CFLAGS="-g"
2580 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2581 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2582 if test "${ac_cv_prog_cc_g+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2593 main ()
2597 return 0;
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 ac_cv_prog_cc_g=yes
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 ac_cv_prog_cc_g=no
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2637 CFLAGS="-g -O2"
2638 else
2639 CFLAGS="-g"
2641 else
2642 if test "$GCC" = yes; then
2643 CFLAGS="-O2"
2644 else
2645 CFLAGS=
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 ac_cv_prog_cc_stdc=no
2654 ac_save_CC=$CC
2655 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h. */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2661 #include <stdarg.h>
2662 #include <stdio.h>
2663 #include <sys/types.h>
2664 #include <sys/stat.h>
2665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2666 struct buf { int x; };
2667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2668 static char *e (p, i)
2669 char **p;
2670 int i;
2672 return p[i];
2674 static char *f (char * (*g) (char **, int), char **p, ...)
2676 char *s;
2677 va_list v;
2678 va_start (v,p);
2679 s = g (p, va_arg (v,int));
2680 va_end (v);
2681 return s;
2684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2685 function prototypes and stuff, but not '\xHH' hex character constants.
2686 These don't provoke an error unfortunately, instead are silently treated
2687 as 'x'. The following induces an error, until -std1 is added to get
2688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2689 array size at least. It's necessary to write '\x00'==0 to get something
2690 that's true only with -std1. */
2691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2693 int test (int i, double x);
2694 struct s1 {int (*f) (int a);};
2695 struct s2 {int (*f) (double a);};
2696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697 int argc;
2698 char **argv;
2700 main ()
2702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 return 0;
2706 _ACEOF
2707 # Don't try gcc -ansi; that turns off useful extensions and
2708 # breaks some systems' header files.
2709 # AIX -qlanglvl=ansi
2710 # Ultrix and OSF/1 -std1
2711 # HP-UX 10.20 and later -Ae
2712 # HP-UX older versions -Aa -D_HPUX_SOURCE
2713 # SVR4 -Xc -D__EXTENSIONS__
2714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716 CC="$ac_save_CC $ac_arg"
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_cv_prog_cc_stdc=$ac_arg
2740 break
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f conftest.err conftest.$ac_objext
2747 done
2748 rm -f conftest.$ac_ext conftest.$ac_objext
2749 CC=$ac_save_CC
2753 case "x$ac_cv_prog_cc_stdc" in
2754 x|xno)
2755 echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6 ;;
2758 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2760 CC="$CC $ac_cv_prog_cc_stdc" ;;
2761 esac
2763 # Some people use a C++ compiler to compile C. Since we use `exit',
2764 # in C++ we need to declare it. In case someone uses the same compiler
2765 # for both compiling C and C++ we need to have the C++ compiler decide
2766 # the declaration of exit, since it's the most demanding environment.
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #ifndef __cplusplus
2769 choke me
2770 #endif
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 for ac_declaration in \
2795 '' \
2796 'extern "C" void std::exit (int) throw (); using std::exit;' \
2797 'extern "C" void std::exit (int); using std::exit;' \
2798 'extern "C" void exit (int) throw ();' \
2799 'extern "C" void exit (int);' \
2800 'void exit (int);'
2802 cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h. */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2808 $ac_declaration
2809 #include <stdlib.h>
2811 main ()
2813 exit (42);
2815 return 0;
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 continue
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 $ac_declaration
2856 main ()
2858 exit (42);
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 { ac_try='test -z "$ac_c_werror_flag"
2873 || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest.$ac_objext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 break
2886 else
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892 done
2893 rm -f conftest*
2894 if test -n "$ac_declaration"; then
2895 echo '#ifdef __cplusplus' >>confdefs.h
2896 echo $ac_declaration >>confdefs.h
2897 echo '#endif' >>confdefs.h
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 DEPDIR="${am__leading_dot}deps"
2913 ac_config_commands="$ac_config_commands depfiles"
2916 am_make=${MAKE-make}
2917 cat > confinc << 'END'
2918 am__doit:
2919 @echo done
2920 .PHONY: am__doit
2922 # If we don't find an include directive, just comment out the code.
2923 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2924 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2925 am__include="#"
2926 am__quote=
2927 _am_result=none
2928 # First try GNU make style include.
2929 echo "include confinc" > confmf
2930 # We grep out `Entering directory' and `Leaving directory'
2931 # messages which can occur if `w' ends up in MAKEFLAGS.
2932 # In particular we don't look at `^make:' because GNU make might
2933 # be invoked under some other name (usually "gmake"), in which
2934 # case it prints its new name instead of `make'.
2935 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2936 am__include=include
2937 am__quote=
2938 _am_result=GNU
2940 # Now try BSD make style include.
2941 if test "$am__include" = "#"; then
2942 echo '.include "confinc"' > confmf
2943 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2944 am__include=.include
2945 am__quote="\""
2946 _am_result=BSD
2951 echo "$as_me:$LINENO: result: $_am_result" >&5
2952 echo "${ECHO_T}$_am_result" >&6
2953 rm -f confinc confmf
2955 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2956 if test "${enable_dependency_tracking+set}" = set; then
2957 enableval="$enable_dependency_tracking"
2960 if test "x$enable_dependency_tracking" != xno; then
2961 am_depcomp="$ac_aux_dir/depcomp"
2962 AMDEPBACKSLASH='\'
2966 if test "x$enable_dependency_tracking" != xno; then
2967 AMDEP_TRUE=
2968 AMDEP_FALSE='#'
2969 else
2970 AMDEP_TRUE='#'
2971 AMDEP_FALSE=
2977 depcc="$CC" am_compiler_list=
2979 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2985 # We make a subdir and do the tests there. Otherwise we can end up
2986 # making bogus files that we don't know about and never remove. For
2987 # instance it was reported that on HP-UX the gcc test will end up
2988 # making a dummy file named `D' -- because `-MD' means `put the output
2989 # in D'.
2990 mkdir conftest.dir
2991 # Copy depcomp to subdir because otherwise we won't find it if we're
2992 # using a relative directory.
2993 cp "$am_depcomp" conftest.dir
2994 cd conftest.dir
2995 # We will build objects and dependencies in a subdirectory because
2996 # it helps to detect inapplicable dependency modes. For instance
2997 # both Tru64's cc and ICC support -MD to output dependencies as a
2998 # side effect of compilation, but ICC will put the dependencies in
2999 # the current directory while Tru64 will put them in the object
3000 # directory.
3001 mkdir sub
3003 am_cv_CC_dependencies_compiler_type=none
3004 if test "$am_compiler_list" = ""; then
3005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3007 for depmode in $am_compiler_list; do
3008 # Setup a source with many dependencies, because some compilers
3009 # like to wrap large dependency lists on column 80 (with \), and
3010 # we should not choose a depcomp mode which is confused by this.
3012 # We need to recreate these files for each test, as the compiler may
3013 # overwrite some of them when testing with obscure command lines.
3014 # This happens at least with the AIX C compiler.
3015 : > sub/conftest.c
3016 for i in 1 2 3 4 5 6; do
3017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3019 # Solaris 8's {/usr,}/bin/sh.
3020 touch sub/conftst$i.h
3021 done
3022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3024 case $depmode in
3025 nosideeffect)
3026 # after this tag, mechanisms are not by side-effect, so they'll
3027 # only be used when explicitly requested
3028 if test "x$enable_dependency_tracking" = xyes; then
3029 continue
3030 else
3031 break
3034 none) break ;;
3035 esac
3036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3037 # mode. It turns out that the SunPro C++ compiler does not properly
3038 # handle `-M -o', and we need to detect this.
3039 if depmode=$depmode \
3040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3043 >/dev/null 2>conftest.err &&
3044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3045 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3047 # icc doesn't choke on unknown options, it will just issue warnings
3048 # or remarks (even with -Werror). So we grep stderr for any message
3049 # that says an option was ignored or not supported.
3050 # When given -MP, icc 7.0 and 7.1 complain thusly:
3051 # icc: Command line warning: ignoring option '-M'; no argument required
3052 # The diagnosis changed in icc 8.0:
3053 # icc: Command line remark: option '-MP' not supported
3054 if (grep 'ignoring option' conftest.err ||
3055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3056 am_cv_CC_dependencies_compiler_type=$depmode
3057 break
3060 done
3062 cd ..
3063 rm -rf conftest.dir
3064 else
3065 am_cv_CC_dependencies_compiler_type=none
3069 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3070 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3076 test "x$enable_dependency_tracking" != xno \
3077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3078 am__fastdepCC_TRUE=
3079 am__fastdepCC_FALSE='#'
3080 else
3081 am__fastdepCC_TRUE='#'
3082 am__fastdepCC_FALSE=
3086 # Find a good install program. We prefer a C program (faster),
3087 # so one script is as good as another. But avoid the broken or
3088 # incompatible versions:
3089 # SysV /etc/install, /usr/sbin/install
3090 # SunOS /usr/etc/install
3091 # IRIX /sbin/install
3092 # AIX /bin/install
3093 # AmigaOS /C/install, which installs bootblocks on floppy discs
3094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097 # OS/2's system install, which has a completely different semantic
3098 # ./install, which can be erroneously created by make from ./install.sh.
3099 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3100 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3101 if test -z "$INSTALL"; then
3102 if test "${ac_cv_path_install+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 # Account for people who put trailing slashes in PATH elements.
3111 case $as_dir/ in
3112 ./ | .// | /cC/* | \
3113 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3114 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3115 /usr/ucb/* ) ;;
3117 # OSF1 and SCO ODT 3.0 have their own names for install.
3118 # Don't use installbsd from OSF since it installs stuff as root
3119 # by default.
3120 for ac_prog in ginstall scoinst install; do
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3123 if test $ac_prog = install &&
3124 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125 # AIX install. It has an incompatible calling convention.
3127 elif test $ac_prog = install &&
3128 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3129 # program-specific install script used by HP pwplus--don't use.
3131 else
3132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3133 break 3
3136 done
3137 done
3139 esac
3140 done
3144 if test "${ac_cv_path_install+set}" = set; then
3145 INSTALL=$ac_cv_path_install
3146 else
3147 # As a last resort, use the slow shell script. We don't cache a
3148 # path for INSTALL within a source directory, because that will
3149 # break other packages using the cache if that directory is
3150 # removed, or if the path is relative.
3151 INSTALL=$ac_install_sh
3154 echo "$as_me:$LINENO: result: $INSTALL" >&5
3155 echo "${ECHO_T}$INSTALL" >&6
3157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158 # It thinks the first close brace ends the variable substitution.
3159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3165 for ac_prog in 'bison -y' byacc
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_YACC+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 if test -n "$YACC"; then
3175 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_YACC="$ac_prog"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3193 YACC=$ac_cv_prog_YACC
3194 if test -n "$YACC"; then
3195 echo "$as_me:$LINENO: result: $YACC" >&5
3196 echo "${ECHO_T}$YACC" >&6
3197 else
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3202 test -n "$YACC" && break
3203 done
3204 test -n "$YACC" || YACC="yacc"
3211 echo "$as_me:$LINENO: checking for Java to native code compiler" >&5
3212 echo $ECHO_N "checking for Java to native code compiler... $ECHO_C" >&6
3213 # Search for the gcj command or use the one provided by the user.
3214 if test -z "$GCJ"; then
3215 for ac_prog in gcj
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3220 if test "${ac_cv_prog_GCJ+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 if test -n "$GCJ"; then
3224 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_GCJ="$ac_prog"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3237 done
3238 done
3242 GCJ=$ac_cv_prog_GCJ
3243 if test -n "$GCJ"; then
3245 else
3249 test -n "$GCJ" && break
3250 done
3251 test -n "$GCJ" || GCJ="none"
3254 # Choose GCJFLAGS or use the one provided by the user.
3255 if test "$GCJ" != none; then
3256 test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
3258 # Check whether the version is ok and it can create executables.
3259 ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
3260 if test "$GCJ" != none \
3261 && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
3262 && (
3263 # See if libgcj.so is well installed and if exception handling works.
3264 cat > conftest.java <<EOF
3265 public class conftest {
3266 public static void main (String[] args) {
3267 try {
3268 java.util.ResourceBundle.getBundle("foobar");
3269 } catch (Exception e) {
3271 System.exit(0);
3275 { (eval echo "$as_me:$LINENO: \"$ac_gcj_link\"") >&5
3276 (eval $ac_gcj_link) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
3280 error=$?
3281 if test $error = 0 && test "$cross_compiling" != yes; then
3282 # Run conftest and catch its exit status, but silently.
3283 error=`./conftest >/dev/null 2>&1; echo $?`
3284 test $error = 0 || error=1
3285 rm -f core conftest.core
3287 rm -f conftest.java conftest$ac_exeext
3288 exit $error
3289 ); then
3291 else
3292 GCJ=none
3294 echo "$as_me:$LINENO: result: $GCJ" >&5
3295 echo "${ECHO_T}$GCJ" >&6
3296 if test "$GCJ" != none; then
3297 HAVE_GCJ=1
3298 else
3299 HAVE_GCJ=
3305 if test -n "$HAVE_GCJ"; then
3306 BUILDJAVAEXE=yes
3307 else
3308 BUILDJAVAEXE=no
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3319 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3320 # On Suns, sometimes $CPP names a directory.
3321 if test -n "$CPP" && test -d "$CPP"; then
3322 CPP=
3324 if test -z "$CPP"; then
3325 if test "${ac_cv_prog_CPP+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 # Double quotes because CPP needs to be expanded
3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331 ac_preproc_ok=false
3332 for ac_c_preproc_warn_flag in '' yes
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #ifdef __STDC__
3347 # include <limits.h>
3348 #else
3349 # include <assert.h>
3350 #endif
3351 Syntax error
3352 _ACEOF
3353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } >/dev/null; then
3361 if test -s conftest.err; then
3362 ac_cpp_err=$ac_c_preproc_warn_flag
3363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3364 else
3365 ac_cpp_err=
3367 else
3368 ac_cpp_err=yes
3370 if test -z "$ac_cpp_err"; then
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 # Broken: fails on valid input.
3377 continue
3379 rm -f conftest.err conftest.$ac_ext
3381 # OK, works on sane cases. Now check whether non-existent headers
3382 # can be detected and how.
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #include <ac_nonexistent.h>
3390 _ACEOF
3391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null; then
3399 if test -s conftest.err; then
3400 ac_cpp_err=$ac_c_preproc_warn_flag
3401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3402 else
3403 ac_cpp_err=
3405 else
3406 ac_cpp_err=yes
3408 if test -z "$ac_cpp_err"; then
3409 # Broken: success on invalid input.
3410 continue
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 # Passes both tests.
3416 ac_preproc_ok=:
3417 break
3419 rm -f conftest.err conftest.$ac_ext
3421 done
3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423 rm -f conftest.err conftest.$ac_ext
3424 if $ac_preproc_ok; then
3425 break
3428 done
3429 ac_cv_prog_CPP=$CPP
3432 CPP=$ac_cv_prog_CPP
3433 else
3434 ac_cv_prog_CPP=$CPP
3436 echo "$as_me:$LINENO: result: $CPP" >&5
3437 echo "${ECHO_T}$CPP" >&6
3438 ac_preproc_ok=false
3439 for ac_c_preproc_warn_flag in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #ifdef __STDC__
3454 # include <limits.h>
3455 #else
3456 # include <assert.h>
3457 #endif
3458 Syntax error
3459 _ACEOF
3460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 else
3472 ac_cpp_err=
3474 else
3475 ac_cpp_err=yes
3477 if test -z "$ac_cpp_err"; then
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Broken: fails on valid input.
3484 continue
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether non-existent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null; then
3506 if test -s conftest.err; then
3507 ac_cpp_err=$ac_c_preproc_warn_flag
3508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3509 else
3510 ac_cpp_err=
3512 else
3513 ac_cpp_err=yes
3515 if test -z "$ac_cpp_err"; then
3516 # Broken: success on invalid input.
3517 continue
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3526 rm -f conftest.err conftest.$ac_ext
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3533 else
3534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3535 See \`config.log' for more details." >&5
3536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3537 See \`config.log' for more details." >&2;}
3538 { (exit 1); exit 1; }; }
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 echo "$as_me:$LINENO: checking for egrep" >&5
3549 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3550 if test "${ac_cv_prog_egrep+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3554 then ac_cv_prog_egrep='grep -E'
3555 else ac_cv_prog_egrep='egrep'
3558 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3559 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3560 EGREP=$ac_cv_prog_egrep
3564 echo "$as_me:$LINENO: checking for Java compiler" >&5
3565 echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3573 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
3575 #endif
3577 _ACEOF
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "yes" >/dev/null 2>&1; then
3580 CLASSPATH_SEPARATOR=';'
3581 else
3582 CLASSPATH_SEPARATOR=':'
3584 rm -f conftest*
3586 HAVE_JAVACOMP=1
3587 if test -n "$JAVAC"; then
3588 ac_result="$JAVAC"
3589 else
3590 # Extract the first word of "gcj", so it can be a program name with args.
3591 set dummy gcj; ac_word=$2
3593 if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -n "$HAVE_GCJ_IN_PATH"; then
3597 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3615 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
3616 if test -n "$HAVE_GCJ_IN_PATH"; then
3618 else
3622 # Extract the first word of "javac", so it can be a program name with args.
3623 set dummy javac; ac_word=$2
3625 if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 if test -n "$HAVE_JAVAC_IN_PATH"; then
3629 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3642 done
3643 done
3647 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
3648 if test -n "$HAVE_JAVAC_IN_PATH"; then
3650 else
3654 # Extract the first word of "jikes", so it can be a program name with args.
3655 set dummy jikes; ac_word=$2
3657 if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 if test -n "$HAVE_JIKES_IN_PATH"; then
3661 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3679 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
3680 if test -n "$HAVE_JIKES_IN_PATH"; then
3682 else
3686 # Test for a good gcj version (>= 3.0).
3687 # Exclude some versions of gcj: gcj 3.0.4 compiles GetURL.java to invalid
3688 # bytecode, that crashes with an IllegalAccessError when executed by
3689 # gij 3.0.4 or with a VerifyError when executed by Sun Java. Likewise for
3690 # gcj 3.1.
3691 # I also exclude gcj 3.2, 3.3 etc. because I have no idea when this bug
3692 # will be fixed. The bug is registered as java/7066, see
3693 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7066
3694 # FIXME: Check new versions of gcj as they come out.
3695 if test -n "$HAVE_GCJ_IN_PATH" \
3696 && gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[0123456789]/d' | grep '^[3-9]' >/dev/null \
3697 && (
3698 # See if libgcj.jar is well installed.
3699 cat > conftest.java <<EOF
3700 public class conftest {
3701 public static void main (String[] args) {
3705 gcj -C -d . conftest.java 2>/dev/null
3706 error=$?
3707 rm -f conftest.java conftest.class
3708 exit $error
3709 ); then
3710 HAVE_GCJ_C=1
3711 ac_result="gcj -C"
3712 else
3713 if test -n "$HAVE_JAVAC_IN_PATH" \
3714 && (javac -version >/dev/null 2>/dev/null || test $? -le 2) \
3715 && (if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi); then
3716 HAVE_JAVAC=1
3717 ac_result="javac"
3718 else
3719 if test -n "$HAVE_JIKES_IN_PATH" \
3720 && (jikes >/dev/null 2>/dev/null || test $? = 1) \
3721 && (
3722 # See if the existing CLASSPATH is sufficient to make jikes work.
3723 cat > conftest.java <<EOF
3724 public class conftest {
3725 public static void main (String[] args) {
3729 unset JAVA_HOME
3730 jikes conftest.java 2>/dev/null
3731 error=$?
3732 rm -f conftest.java conftest.class
3733 exit $error
3734 ); then
3735 HAVE_JIKES=1
3736 ac_result="jikes"
3737 else
3738 HAVE_JAVACOMP=
3739 ac_result="no"
3744 echo "$as_me:$LINENO: result: $ac_result" >&5
3745 echo "${ECHO_T}$ac_result" >&6
3753 # Extract the first word of "jar", so it can be a program name with args.
3754 set dummy jar; ac_word=$2
3755 echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_JAR+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 if test -n "$JAR"; then
3761 ac_cv_prog_JAR="$JAR" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_JAR="jar"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3779 JAR=$ac_cv_prog_JAR
3780 if test -n "$JAR"; then
3781 echo "$as_me:$LINENO: result: $JAR" >&5
3782 echo "${ECHO_T}$JAR" >&6
3783 else
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3788 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
3789 BUILDJAVA=yes
3790 else
3791 BUILDJAVA=no
3796 echo "$as_me:$LINENO: checking for Java virtual machine" >&5
3797 echo $ECHO_N "checking for Java virtual machine... $ECHO_C" >&6
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3805 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
3807 #endif
3809 _ACEOF
3810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811 $EGREP "yes" >/dev/null 2>&1; then
3812 CLASSPATH_SEPARATOR=';'
3813 else
3814 CLASSPATH_SEPARATOR=':'
3816 rm -f conftest*
3818 HAVE_JAVAEXEC=1
3819 if test -n "$JAVA"; then
3820 ac_result="$JAVA"
3821 else
3822 # Extract the first word of "gij", so it can be a program name with args.
3823 set dummy gij; ac_word=$2
3825 if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828 if test -n "$HAVE_GIJ_IN_PATH"; then
3829 ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3842 done
3843 done
3847 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
3848 if test -n "$HAVE_GIJ_IN_PATH"; then
3850 else
3854 # Extract the first word of "java", so it can be a program name with args.
3855 set dummy java; ac_word=$2
3857 if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 if test -n "$HAVE_JAVA_IN_PATH"; then
3861 ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3879 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
3880 if test -n "$HAVE_JAVA_IN_PATH"; then
3882 else
3886 # Extract the first word of "jre", so it can be a program name with args.
3887 set dummy jre; ac_word=$2
3889 if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 if test -n "$HAVE_JRE_IN_PATH"; then
3893 ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_HAVE_JRE_IN_PATH="yes"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3906 done
3907 done
3911 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
3912 if test -n "$HAVE_JRE_IN_PATH"; then
3914 else
3918 # Extract the first word of "jview", so it can be a program name with args.
3919 set dummy jview; ac_word=$2
3921 if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 if test -n "$HAVE_JVIEW_IN_PATH"; then
3925 ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3938 done
3939 done
3943 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
3944 if test -n "$HAVE_JVIEW_IN_PATH"; then
3946 else
3951 export CLASSPATH
3952 if test -n "$HAVE_GIJ_IN_PATH" \
3953 && gij --version >/dev/null 2>/dev/null \
3954 ; then
3955 HAVE_GIJ=1
3956 ac_result="gij"
3957 else
3958 if test -n "$HAVE_JAVA_IN_PATH" \
3959 && java -version >/dev/null 2>/dev/null \
3960 ; then
3961 HAVE_JAVA=1
3962 ac_result="java"
3963 else
3964 if test -n "$HAVE_JRE_IN_PATH" \
3965 && (jre >/dev/null 2>/dev/null || test $? = 1) \
3966 ; then
3967 HAVE_JRE=1
3968 ac_result="jre"
3969 else
3970 if test -n "$HAVE_JVIEW_IN_PATH" \
3971 && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
3972 ; then
3973 HAVE_JVIEW=1
3974 ac_result="jview"
3975 else
3976 HAVE_JAVAEXEC=
3977 ac_result="no"
3984 echo "$as_me:$LINENO: result: $ac_result" >&5
3985 echo "${ECHO_T}$ac_result" >&6
3994 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
3995 TESTJAVA=yes
3996 else
3997 TESTJAVA=no
4002 echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
4003 echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6
4004 # Check whether --enable-csharp or --disable-csharp was given.
4005 if test "${enable_csharp+set}" = set; then
4006 enableval="$enable_csharp"
4007 CSHARP_CHOICE="$enableval"
4008 else
4009 CSHARP_CHOICE=any
4012 echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
4013 echo "${ECHO_T}$CSHARP_CHOICE" >&6
4014 case "$CSHARP_CHOICE" in
4015 pnet)
4017 cat >>confdefs.h <<\_ACEOF
4018 #define CSHARP_CHOICE_PNET 1
4019 _ACEOF
4022 mono)
4024 cat >>confdefs.h <<\_ACEOF
4025 #define CSHARP_CHOICE_MONO 1
4026 _ACEOF
4029 esac
4033 echo "$as_me:$LINENO: checking for C# compiler" >&5
4034 echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6
4035 HAVE_CSHARPCOMP=1
4036 # Extract the first word of "cscc", so it can be a program name with args.
4037 set dummy cscc; ac_word=$2
4039 if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 if test -n "$HAVE_CSCC_IN_PATH"; then
4043 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4061 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
4062 if test -n "$HAVE_CSCC_IN_PATH"; then
4064 else
4068 # Extract the first word of "mcs", so it can be a program name with args.
4069 set dummy mcs; ac_word=$2
4071 if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$HAVE_MCS_IN_PATH"; then
4075 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_HAVE_MCS_IN_PATH="yes"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4093 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
4094 if test -n "$HAVE_MCS_IN_PATH"; then
4096 else
4100 # Extract the first word of "csc", so it can be a program name with args.
4101 set dummy csc; ac_word=$2
4103 if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$HAVE_CSC_IN_PATH"; then
4107 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_HAVE_CSC_IN_PATH="yes"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4125 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
4126 if test -n "$HAVE_CSC_IN_PATH"; then
4128 else
4132 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
4133 case "$impl" in
4134 pnet)
4135 if test -n "$HAVE_CSCC_IN_PATH" \
4136 && cscc --version >/dev/null 2>/dev/null; then
4137 HAVE_CSCC=1
4138 ac_result="cscc"
4139 break
4142 mono)
4143 if test -n "$HAVE_MCS_IN_PATH" \
4144 && mcs --version >/dev/null 2>/dev/null; then
4145 HAVE_MCS=1
4146 ac_result="mcs"
4147 break
4150 sscli)
4151 if test -n "$HAVE_CSC_IN_PATH" \
4152 && csc -help >/dev/null 2>/dev/null \
4153 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
4154 HAVE_CSC=1
4155 ac_result="csc"
4156 break
4160 HAVE_CSHARPCOMP=
4161 ac_result="no"
4162 break
4164 esac
4165 done
4166 echo "$as_me:$LINENO: result: $ac_result" >&5
4167 echo "${ECHO_T}$ac_result" >&6
4172 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
4173 BUILDCSHARP=yes
4174 else
4175 BUILDCSHARP=no
4181 echo "$as_me:$LINENO: checking for C# program execution engine" >&5
4182 echo $ECHO_N "checking for C# program execution engine... $ECHO_C" >&6
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4190 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
4192 #endif
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "yes" >/dev/null 2>&1; then
4197 MONO_PATH_SEPARATOR=';'
4198 else
4199 MONO_PATH_SEPARATOR=':'
4201 rm -f conftest*
4203 HAVE_CSHARPEXEC=1
4204 # Extract the first word of "ilrun", so it can be a program name with args.
4205 set dummy ilrun; ac_word=$2
4207 if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if test -n "$HAVE_ILRUN_IN_PATH"; then
4211 ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4229 HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
4230 if test -n "$HAVE_ILRUN_IN_PATH"; then
4232 else
4236 # Extract the first word of "mono", so it can be a program name with args.
4237 set dummy mono; ac_word=$2
4239 if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$HAVE_MONO_IN_PATH"; then
4243 ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_HAVE_MONO_IN_PATH="yes"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4261 HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
4262 if test -n "$HAVE_MONO_IN_PATH"; then
4264 else
4268 for impl in "$CSHARP_CHOICE" pnet mono no; do
4269 case "$impl" in
4270 pnet)
4271 if test -n "$HAVE_ILRUN_IN_PATH" \
4272 && ilrun --version >/dev/null 2>/dev/null; then
4273 HAVE_ILRUN=1
4274 ac_result="ilrun"
4275 break
4278 mono)
4279 if test -n "$HAVE_MONO_IN_PATH" \
4280 && mono --version >/dev/null 2>/dev/null; then
4281 HAVE_MONO=1
4282 ac_result="mono"
4283 break
4287 HAVE_CSHARPEXEC=
4288 ac_result="no"
4289 break
4291 esac
4292 done
4293 echo "$as_me:$LINENO: result: $ac_result" >&5
4294 echo "${ECHO_T}$ac_result" >&6
4300 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
4301 TESTCSHARP=yes
4302 else
4303 TESTCSHARP=no
4307 # Make sure we can run config.sub.
4308 $ac_config_sub sun4 >/dev/null 2>&1 ||
4309 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4310 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4311 { (exit 1); exit 1; }; }
4313 echo "$as_me:$LINENO: checking build system type" >&5
4314 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4315 if test "${ac_cv_build+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 ac_cv_build_alias=$build_alias
4319 test -z "$ac_cv_build_alias" &&
4320 ac_cv_build_alias=`$ac_config_guess`
4321 test -z "$ac_cv_build_alias" &&
4322 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4323 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4324 { (exit 1); exit 1; }; }
4325 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4326 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4327 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4328 { (exit 1); exit 1; }; }
4331 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4332 echo "${ECHO_T}$ac_cv_build" >&6
4333 build=$ac_cv_build
4334 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4335 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4336 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4339 echo "$as_me:$LINENO: checking host system type" >&5
4340 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4341 if test "${ac_cv_host+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 ac_cv_host_alias=$host_alias
4345 test -z "$ac_cv_host_alias" &&
4346 ac_cv_host_alias=$ac_cv_build_alias
4347 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4348 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4349 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4350 { (exit 1); exit 1; }; }
4353 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4354 echo "${ECHO_T}$ac_cv_host" >&6
4355 host=$ac_cv_host
4356 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4357 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4358 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4362 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4363 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4364 if test "${ac_cv_search_strerror+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 ac_func_search_save_LIBS=$LIBS
4368 ac_cv_search_strerror=no
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 #ifdef __cplusplus
4378 extern "C"
4379 #endif
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4382 char strerror ();
4384 main ()
4386 strerror ();
4388 return 0;
4390 _ACEOF
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_cv_search_strerror="none required"
4414 else
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4419 rm -f conftest.err conftest.$ac_objext \
4420 conftest$ac_exeext conftest.$ac_ext
4421 if test "$ac_cv_search_strerror" = no; then
4422 for ac_lib in cposix; do
4423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 #ifdef __cplusplus
4433 extern "C"
4434 #endif
4435 /* We use char because int might match the return type of a gcc2
4436 builtin and then its argument prototype would still apply. */
4437 char strerror ();
4439 main ()
4441 strerror ();
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448 (eval $ac_link) 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest$ac_exeext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_cv_search_strerror="-l$ac_lib"
4469 break
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4475 rm -f conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4477 done
4479 LIBS=$ac_func_search_save_LIBS
4481 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4482 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4483 if test "$ac_cv_search_strerror" != no; then
4484 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4493 cat >>confdefs.h <<\_ACEOF
4494 #define _GNU_SOURCE 1
4495 _ACEOF
4499 echo "$as_me:$LINENO: checking for AIX" >&5
4500 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #ifdef _AIX
4509 #endif
4511 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "yes" >/dev/null 2>&1; then
4514 echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6
4516 cat >>confdefs.h <<\_ACEOF
4517 #define _ALL_SOURCE 1
4518 _ACEOF
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6
4524 rm -f conftest*
4527 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4528 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4529 if test "${ac_cv_header_stdc+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <stdlib.h>
4539 #include <stdarg.h>
4540 #include <string.h>
4541 #include <float.h>
4544 main ()
4548 return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_cv_header_stdc=yes
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 ac_cv_header_stdc=no
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 if test $ac_cv_header_stdc = yes; then
4583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #include <string.h>
4592 _ACEOF
4593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4594 $EGREP "memchr" >/dev/null 2>&1; then
4596 else
4597 ac_cv_header_stdc=no
4599 rm -f conftest*
4603 if test $ac_cv_header_stdc = yes; then
4604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 #include <stdlib.h>
4613 _ACEOF
4614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 $EGREP "free" >/dev/null 2>&1; then
4617 else
4618 ac_cv_header_stdc=no
4620 rm -f conftest*
4624 if test $ac_cv_header_stdc = yes; then
4625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4626 if test "$cross_compiling" = yes; then
4628 else
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #include <ctype.h>
4636 #if ((' ' & 0x0FF) == 0x020)
4637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639 #else
4640 # define ISLOWER(c) \
4641 (('a' <= (c) && (c) <= 'i') \
4642 || ('j' <= (c) && (c) <= 'r') \
4643 || ('s' <= (c) && (c) <= 'z'))
4644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645 #endif
4647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4649 main ()
4651 int i;
4652 for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i))
4654 || toupper (i) != TOUPPER (i))
4655 exit(2);
4656 exit (0);
4658 _ACEOF
4659 rm -f conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661 (eval $ac_link) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4671 else
4672 echo "$as_me: program exited with status $ac_status" >&5
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ( exit $ac_status )
4677 ac_cv_header_stdc=no
4679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4684 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4685 if test $ac_cv_header_stdc = yes; then
4687 cat >>confdefs.h <<\_ACEOF
4688 #define STDC_HEADERS 1
4689 _ACEOF
4693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4704 inttypes.h stdint.h unistd.h
4706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 $ac_includes_default
4720 #include <$ac_header>
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724 (eval $ac_compile) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 eval "$as_ac_Header=yes"
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 eval "$as_ac_Header=no"
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758 _ACEOF
4762 done
4765 if test "${ac_cv_header_minix_config_h+set}" = set; then
4766 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4767 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4768 if test "${ac_cv_header_minix_config_h+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4772 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4773 else
4774 # Is the header compilable?
4775 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4776 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_includes_default
4784 #include <minix/config.h>
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_header_compiler=yes
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_header_compiler=no
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4817 echo "${ECHO_T}$ac_header_compiler" >&6
4819 # Is the header present?
4820 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4821 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #include <minix/config.h>
4829 _ACEOF
4830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null; then
4838 if test -s conftest.err; then
4839 ac_cpp_err=$ac_c_preproc_warn_flag
4840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841 else
4842 ac_cpp_err=
4844 else
4845 ac_cpp_err=yes
4847 if test -z "$ac_cpp_err"; then
4848 ac_header_preproc=yes
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 ac_header_preproc=no
4855 rm -f conftest.err conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4857 echo "${ECHO_T}$ac_header_preproc" >&6
4859 # So? What about this header?
4860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4861 yes:no: )
4862 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4863 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4865 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4866 ac_header_preproc=yes
4868 no:yes:* )
4869 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4870 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4872 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4874 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4875 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4876 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4878 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4879 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4880 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4882 cat <<\_ASBOX
4883 ## ------------------------------------------ ##
4884 ## Report this to the AC_PACKAGE_NAME lists. ##
4885 ## ------------------------------------------ ##
4886 _ASBOX
4888 sed "s/^/$as_me: WARNING: /" >&2
4890 esac
4891 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4892 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4893 if test "${ac_cv_header_minix_config_h+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896 ac_cv_header_minix_config_h=$ac_header_preproc
4898 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4899 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4902 if test $ac_cv_header_minix_config_h = yes; then
4903 MINIX=yes
4904 else
4905 MINIX=
4909 if test "$MINIX" = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4912 #define _POSIX_SOURCE 1
4913 _ACEOF
4916 cat >>confdefs.h <<\_ACEOF
4917 #define _POSIX_1_SOURCE 2
4918 _ACEOF
4921 cat >>confdefs.h <<\_ACEOF
4922 #define _MINIX 1
4923 _ACEOF
4937 cat >>confdefs.h <<\_ACEOF
4938 #define __EXTENSIONS__ 1
4939 _ACEOF
4945 # Check whether --enable-shared or --disable-shared was given.
4946 if test "${enable_shared+set}" = set; then
4947 enableval="$enable_shared"
4948 p=${PACKAGE-default}
4949 case $enableval in
4950 yes) enable_shared=yes ;;
4951 no) enable_shared=no ;;
4953 enable_shared=no
4954 # Look at the argument we got. We use all the common list separators.
4955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4956 for pkg in $enableval; do
4957 IFS="$lt_save_ifs"
4958 if test "X$pkg" = "X$p"; then
4959 enable_shared=yes
4961 done
4962 IFS="$lt_save_ifs"
4964 esac
4965 else
4966 enable_shared=yes
4969 # Check whether --enable-static or --disable-static was given.
4970 if test "${enable_static+set}" = set; then
4971 enableval="$enable_static"
4972 p=${PACKAGE-default}
4973 case $enableval in
4974 yes) enable_static=yes ;;
4975 no) enable_static=no ;;
4977 enable_static=no
4978 # Look at the argument we got. We use all the common list separators.
4979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4980 for pkg in $enableval; do
4981 IFS="$lt_save_ifs"
4982 if test "X$pkg" = "X$p"; then
4983 enable_static=yes
4985 done
4986 IFS="$lt_save_ifs"
4988 esac
4989 else
4990 enable_static=yes
4993 # Check whether --enable-fast-install or --disable-fast-install was given.
4994 if test "${enable_fast_install+set}" = set; then
4995 enableval="$enable_fast_install"
4996 p=${PACKAGE-default}
4997 case $enableval in
4998 yes) enable_fast_install=yes ;;
4999 no) enable_fast_install=no ;;
5001 enable_fast_install=no
5002 # Look at the argument we got. We use all the common list separators.
5003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5004 for pkg in $enableval; do
5005 IFS="$lt_save_ifs"
5006 if test "X$pkg" = "X$p"; then
5007 enable_fast_install=yes
5009 done
5010 IFS="$lt_save_ifs"
5012 esac
5013 else
5014 enable_fast_install=yes
5017 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5018 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5019 if test "${lt_cv_path_SED+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 # Loop through the user's path and test for sed and gsed.
5023 # Then use that list of sed's as ones to test for truncation.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for lt_ac_prog in sed gsed; do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5032 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5034 done
5035 done
5036 done
5037 lt_ac_max=0
5038 lt_ac_count=0
5039 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5040 # along with /bin/sed that truncates output.
5041 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5042 test ! -f $lt_ac_sed && continue
5043 cat /dev/null > conftest.in
5044 lt_ac_count=0
5045 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5046 # Check for GNU sed and select it if it is found.
5047 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5048 lt_cv_path_SED=$lt_ac_sed
5049 break
5051 while true; do
5052 cat conftest.in conftest.in >conftest.tmp
5053 mv conftest.tmp conftest.in
5054 cp conftest.in conftest.nl
5055 echo >>conftest.nl
5056 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5057 cmp -s conftest.out conftest.nl || break
5058 # 10000 chars as input seems more than enough
5059 test $lt_ac_count -gt 10 && break
5060 lt_ac_count=`expr $lt_ac_count + 1`
5061 if test $lt_ac_count -gt $lt_ac_max; then
5062 lt_ac_max=$lt_ac_count
5063 lt_cv_path_SED=$lt_ac_sed
5065 done
5066 done
5070 SED=$lt_cv_path_SED
5071 echo "$as_me:$LINENO: result: $SED" >&5
5072 echo "${ECHO_T}$SED" >&6
5075 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5076 if test "${with_gnu_ld+set}" = set; then
5077 withval="$with_gnu_ld"
5078 test "$withval" = no || with_gnu_ld=yes
5079 else
5080 with_gnu_ld=no
5082 ac_prog=ld
5083 if test "$GCC" = yes; then
5084 # Check if gcc -print-prog-name=ld gives a path.
5085 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5086 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5087 case $host in
5088 *-*-mingw*)
5089 # gcc leaves a trailing carriage return which upsets mingw
5090 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5092 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5093 esac
5094 case $ac_prog in
5095 # Accept absolute paths.
5096 [\\/]* | ?:[\\/]*)
5097 re_direlt='/[^/][^/]*/\.\./'
5098 # Canonicalize the pathname of ld
5099 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5100 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5101 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5102 done
5103 test -z "$LD" && LD="$ac_prog"
5106 # If it fails, then pretend we aren't using GCC.
5107 ac_prog=ld
5110 # If it is relative, then search for the first ld in PATH.
5111 with_gnu_ld=unknown
5113 esac
5114 elif test "$with_gnu_ld" = yes; then
5115 echo "$as_me:$LINENO: checking for GNU ld" >&5
5116 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5117 else
5118 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5119 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5121 if test "${lt_cv_path_LD+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 if test -z "$LD"; then
5125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5126 for ac_dir in $PATH; do
5127 IFS="$lt_save_ifs"
5128 test -z "$ac_dir" && ac_dir=.
5129 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5130 lt_cv_path_LD="$ac_dir/$ac_prog"
5131 # Check to see if the program is GNU ld. I'd rather use --version,
5132 # but apparently some GNU ld's only accept -v.
5133 # Break only if it was the GNU/non-GNU ld that we prefer.
5134 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5135 *GNU* | *'with BFD'*)
5136 test "$with_gnu_ld" != no && break
5139 test "$with_gnu_ld" != yes && break
5141 esac
5143 done
5144 IFS="$lt_save_ifs"
5145 else
5146 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5150 LD="$lt_cv_path_LD"
5151 if test -n "$LD"; then
5152 echo "$as_me:$LINENO: result: $LD" >&5
5153 echo "${ECHO_T}$LD" >&6
5154 else
5155 echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5158 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5159 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5160 { (exit 1); exit 1; }; }
5161 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5162 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5163 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5167 case `$LD -v 2>&1 </dev/null` in
5168 *GNU* | *'with BFD'*)
5169 lt_cv_prog_gnu_ld=yes
5172 lt_cv_prog_gnu_ld=no
5174 esac
5176 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5177 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5178 with_gnu_ld=$lt_cv_prog_gnu_ld
5181 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5182 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5183 if test "${lt_cv_ld_reload_flag+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 lt_cv_ld_reload_flag='-r'
5188 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5189 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5190 reload_flag=$lt_cv_ld_reload_flag
5191 case $reload_flag in
5192 "" | " "*) ;;
5193 *) reload_flag=" $reload_flag" ;;
5194 esac
5195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5196 case $host_os in
5197 darwin*)
5198 if test "$GCC" = yes; then
5199 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5200 else
5201 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5204 esac
5206 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5207 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5208 if test "${lt_cv_path_NM+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$NM"; then
5212 # Let the user override the test.
5213 lt_cv_path_NM="$NM"
5214 else
5215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5216 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5217 IFS="$lt_save_ifs"
5218 test -z "$ac_dir" && ac_dir=.
5219 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5220 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5221 # Check to see if the nm accepts a BSD-compat flag.
5222 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5223 # nm: unknown option "B" ignored
5224 # Tru64's nm complains that /dev/null is an invalid object file
5225 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5226 */dev/null* | *'Invalid file or object type'*)
5227 lt_cv_path_NM="$tmp_nm -B"
5228 break
5231 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5232 */dev/null*)
5233 lt_cv_path_NM="$tmp_nm -p"
5234 break
5237 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5238 continue # so that we can try to find one that supports BSD flags
5240 esac
5241 esac
5243 done
5244 IFS="$lt_save_ifs"
5245 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5248 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5249 echo "${ECHO_T}$lt_cv_path_NM" >&6
5250 NM="$lt_cv_path_NM"
5252 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5253 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5254 LN_S=$as_ln_s
5255 if test "$LN_S" = "ln -s"; then
5256 echo "$as_me:$LINENO: result: yes" >&5
5257 echo "${ECHO_T}yes" >&6
5258 else
5259 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5260 echo "${ECHO_T}no, using $LN_S" >&6
5263 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5264 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5265 if test "${lt_cv_deplibs_check_method+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268 lt_cv_file_magic_cmd='$MAGIC_CMD'
5269 lt_cv_file_magic_test_file=
5270 lt_cv_deplibs_check_method='unknown'
5271 # Need to set the preceding variable on all platforms that support
5272 # interlibrary dependencies.
5273 # 'none' -- dependencies not supported.
5274 # `unknown' -- same as none, but documents that we really don't know.
5275 # 'pass_all' -- all dependencies passed with no checks.
5276 # 'test_compile' -- check by making test program.
5277 # 'file_magic [[regex]]' -- check by looking for files in library path
5278 # which responds to the $file_magic_cmd with a given extended regex.
5279 # If you have `file' or equivalent on your system and you're not sure
5280 # whether `pass_all' will *always* work, you probably want this one.
5282 case $host_os in
5283 aix4* | aix5*)
5284 lt_cv_deplibs_check_method=pass_all
5287 beos*)
5288 lt_cv_deplibs_check_method=pass_all
5291 bsdi[45]*)
5292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5293 lt_cv_file_magic_cmd='/usr/bin/file -L'
5294 lt_cv_file_magic_test_file=/shlib/libc.so
5297 cygwin*)
5298 # func_win32_libid is a shell function defined in ltmain.sh
5299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5300 lt_cv_file_magic_cmd='func_win32_libid'
5303 mingw* | pw32*)
5304 # Base MSYS/MinGW do not provide the 'file' command needed by
5305 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5306 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5307 lt_cv_file_magic_cmd='$OBJDUMP -f'
5310 darwin* | rhapsody*)
5311 lt_cv_deplibs_check_method=pass_all
5314 freebsd* | kfreebsd*-gnu | dragonfly*)
5315 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5316 case $host_cpu in
5317 i*86 )
5318 # Not sure whether the presence of OpenBSD here was a mistake.
5319 # Let's accept both of them until this is cleared up.
5320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5321 lt_cv_file_magic_cmd=/usr/bin/file
5322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5324 esac
5325 else
5326 lt_cv_deplibs_check_method=pass_all
5330 gnu*)
5331 lt_cv_deplibs_check_method=pass_all
5334 hpux10.20* | hpux11*)
5335 lt_cv_file_magic_cmd=/usr/bin/file
5336 case "$host_cpu" in
5337 ia64*)
5338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5341 hppa*64*)
5342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5349 esac
5352 irix5* | irix6* | nonstopux*)
5353 case $LD in
5354 *-32|*"-32 ") libmagic=32-bit;;
5355 *-n32|*"-n32 ") libmagic=N32;;
5356 *-64|*"-64 ") libmagic=64-bit;;
5357 *) libmagic=never-match;;
5358 esac
5359 lt_cv_deplibs_check_method=pass_all
5362 # This must be Linux ELF.
5363 linux*)
5364 lt_cv_deplibs_check_method=pass_all
5367 netbsd*)
5368 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5370 else
5371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5375 newos6*)
5376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5377 lt_cv_file_magic_cmd=/usr/bin/file
5378 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5381 nto-qnx*)
5382 lt_cv_deplibs_check_method=unknown
5385 openbsd*)
5386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5388 else
5389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5393 osf3* | osf4* | osf5*)
5394 lt_cv_deplibs_check_method=pass_all
5397 sco3.2v5*)
5398 lt_cv_deplibs_check_method=pass_all
5401 solaris*)
5402 lt_cv_deplibs_check_method=pass_all
5405 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5406 case $host_vendor in
5407 motorola)
5408 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]'
5409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5411 ncr)
5412 lt_cv_deplibs_check_method=pass_all
5414 sequent)
5415 lt_cv_file_magic_cmd='/bin/file'
5416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5418 sni)
5419 lt_cv_file_magic_cmd='/bin/file'
5420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5421 lt_cv_file_magic_test_file=/lib/libc.so
5423 siemens)
5424 lt_cv_deplibs_check_method=pass_all
5426 esac
5429 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5430 lt_cv_deplibs_check_method=pass_all
5432 esac
5435 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5436 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5437 file_magic_cmd=$lt_cv_file_magic_cmd
5438 deplibs_check_method=$lt_cv_deplibs_check_method
5439 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5442 # If no C compiler was specified, use CC.
5443 LTCC=${LTCC-"$CC"}
5445 # Allow CC to be a program name with arguments.
5446 compiler=$CC
5448 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5449 if test "${enable_libtool_lock+set}" = set; then
5450 enableval="$enable_libtool_lock"
5453 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5455 # Some flags need to be propagated to the compiler or linker for good
5456 # libtool support.
5457 case $host in
5458 ia64-*-hpux*)
5459 # Find out which ABI we are using.
5460 echo 'int i;' > conftest.$ac_ext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; then
5466 case `/usr/bin/file conftest.$ac_objext` in
5467 *ELF-32*)
5468 HPUX_IA64_MODE="32"
5470 *ELF-64*)
5471 HPUX_IA64_MODE="64"
5473 esac
5475 rm -rf conftest*
5477 *-*-irix6*)
5478 # Find out which ABI we are using.
5479 echo '#line 5479 "configure"' > conftest.$ac_ext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; then
5485 if test "$lt_cv_prog_gnu_ld" = yes; then
5486 case `/usr/bin/file conftest.$ac_objext` in
5487 *32-bit*)
5488 LD="${LD-ld} -melf32bsmip"
5490 *N32*)
5491 LD="${LD-ld} -melf32bmipn32"
5493 *64-bit*)
5494 LD="${LD-ld} -melf64bmip"
5496 esac
5497 else
5498 case `/usr/bin/file conftest.$ac_objext` in
5499 *32-bit*)
5500 LD="${LD-ld} -32"
5502 *N32*)
5503 LD="${LD-ld} -n32"
5505 *64-bit*)
5506 LD="${LD-ld} -64"
5508 esac
5511 rm -rf conftest*
5514 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5515 # Find out which ABI we are using.
5516 echo 'int i;' > conftest.$ac_ext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; then
5522 case "`/usr/bin/file conftest.o`" in
5523 *32-bit*)
5524 case $host in
5525 x86_64-*linux*)
5526 LD="${LD-ld} -m elf_i386"
5528 ppc64-*linux*|powerpc64-*linux*)
5529 LD="${LD-ld} -m elf32ppclinux"
5531 s390x-*linux*)
5532 LD="${LD-ld} -m elf_s390"
5534 sparc64-*linux*)
5535 LD="${LD-ld} -m elf32_sparc"
5537 esac
5539 *64-bit*)
5540 case $host in
5541 x86_64-*linux*)
5542 LD="${LD-ld} -m elf_x86_64"
5544 ppc*-*linux*|powerpc*-*linux*)
5545 LD="${LD-ld} -m elf64ppc"
5547 s390*-*linux*)
5548 LD="${LD-ld} -m elf64_s390"
5550 sparc*-*linux*)
5551 LD="${LD-ld} -m elf64_sparc"
5553 esac
5555 esac
5557 rm -rf conftest*
5560 *-*-sco3.2v5*)
5561 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5562 SAVE_CFLAGS="$CFLAGS"
5563 CFLAGS="$CFLAGS -belf"
5564 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5565 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5566 if test "${lt_cv_cc_needs_belf+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5583 main ()
5587 return 0;
5589 _ACEOF
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 lt_cv_cc_needs_belf=yes
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 lt_cv_cc_needs_belf=no
5619 rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5629 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5630 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5632 CFLAGS="$SAVE_CFLAGS"
5635 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5636 if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5639 echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 if test -n "$DLLTOOL"; then
5645 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5658 done
5659 done
5663 DLLTOOL=$ac_cv_prog_DLLTOOL
5664 if test -n "$DLLTOOL"; then
5665 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5666 echo "${ECHO_T}$DLLTOOL" >&6
5667 else
5668 echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6
5673 if test -z "$ac_cv_prog_DLLTOOL"; then
5674 ac_ct_DLLTOOL=$DLLTOOL
5675 # Extract the first word of "dlltool", so it can be a program name with args.
5676 set dummy dlltool; ac_word=$2
5677 echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5679 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 if test -n "$ac_ct_DLLTOOL"; then
5683 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5699 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5702 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5703 if test -n "$ac_ct_DLLTOOL"; then
5704 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5705 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5706 else
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5711 DLLTOOL=$ac_ct_DLLTOOL
5712 else
5713 DLLTOOL="$ac_cv_prog_DLLTOOL"
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}as; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_AS+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 if test -n "$AS"; then
5725 ac_cv_prog_AS="$AS" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_AS="${ac_tool_prefix}as"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5743 AS=$ac_cv_prog_AS
5744 if test -n "$AS"; then
5745 echo "$as_me:$LINENO: result: $AS" >&5
5746 echo "${ECHO_T}$AS" >&6
5747 else
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5753 if test -z "$ac_cv_prog_AS"; then
5754 ac_ct_AS=$AS
5755 # Extract the first word of "as", so it can be a program name with args.
5756 set dummy as; ac_word=$2
5757 echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 if test -n "$ac_ct_AS"; then
5763 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_AS="as"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5779 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5782 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5783 if test -n "$ac_ct_AS"; then
5784 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5785 echo "${ECHO_T}$ac_ct_AS" >&6
5786 else
5787 echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5791 AS=$ac_ct_AS
5792 else
5793 AS="$ac_cv_prog_AS"
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5798 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 if test -n "$OBJDUMP"; then
5805 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5818 done
5819 done
5823 OBJDUMP=$ac_cv_prog_OBJDUMP
5824 if test -n "$OBJDUMP"; then
5825 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5826 echo "${ECHO_T}$OBJDUMP" >&6
5827 else
5828 echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6
5833 if test -z "$ac_cv_prog_OBJDUMP"; then
5834 ac_ct_OBJDUMP=$OBJDUMP
5835 # Extract the first word of "objdump", so it can be a program name with args.
5836 set dummy objdump; ac_word=$2
5837 echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5839 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 if test -n "$ac_ct_OBJDUMP"; then
5843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5856 done
5857 done
5859 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5862 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5863 if test -n "$ac_ct_OBJDUMP"; then
5864 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5865 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5866 else
5867 echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5871 OBJDUMP=$ac_ct_OBJDUMP
5872 else
5873 OBJDUMP="$ac_cv_prog_OBJDUMP"
5878 esac
5880 need_locks="$enable_libtool_lock"
5884 for ac_header in dlfcn.h
5886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888 echo "$as_me:$LINENO: checking for $ac_header" >&5
5889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5895 else
5896 # Is the header compilable?
5897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5906 #include <$ac_header>
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_header_compiler=yes
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_header_compiler=no
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5939 echo "${ECHO_T}$ac_header_compiler" >&6
5941 # Is the header present?
5942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <$ac_header>
5951 _ACEOF
5952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_c_preproc_warn_flag
5962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963 else
5964 ac_cpp_err=
5966 else
5967 ac_cpp_err=yes
5969 if test -z "$ac_cpp_err"; then
5970 ac_header_preproc=yes
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 ac_header_preproc=no
5977 rm -f conftest.err conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5979 echo "${ECHO_T}$ac_header_preproc" >&6
5981 # So? What about this header?
5982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5983 yes:no: )
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5988 ac_header_preproc=yes
5990 no:yes:* )
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6004 cat <<\_ASBOX
6005 ## ------------------------------------------ ##
6006 ## Report this to the AC_PACKAGE_NAME lists. ##
6007 ## ------------------------------------------ ##
6008 _ASBOX
6010 sed "s/^/$as_me: WARNING: /" >&2
6012 esac
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 eval "$as_ac_Header=\$ac_header_preproc"
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6025 cat >>confdefs.h <<_ACEOF
6026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6027 _ACEOF
6031 done
6033 ac_ext=cc
6034 ac_cpp='$CXXCPP $CPPFLAGS'
6035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038 if test -n "$ac_tool_prefix"; then
6039 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043 echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6045 if test "${ac_cv_prog_CXX+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 if test -n "$CXX"; then
6049 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6062 done
6063 done
6067 CXX=$ac_cv_prog_CXX
6068 if test -n "$CXX"; then
6069 echo "$as_me:$LINENO: result: $CXX" >&5
6070 echo "${ECHO_T}$CXX" >&6
6071 else
6072 echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6
6076 test -n "$CXX" && break
6077 done
6079 if test -z "$CXX"; then
6080 ac_ct_CXX=$CXX
6081 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6083 # Extract the first word of "$ac_prog", so it can be a program name with args.
6084 set dummy $ac_prog; ac_word=$2
6085 echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 if test -n "$ac_ct_CXX"; then
6091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_CXX="$ac_prog"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6104 done
6105 done
6109 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6110 if test -n "$ac_ct_CXX"; then
6111 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6112 echo "${ECHO_T}$ac_ct_CXX" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6118 test -n "$ac_ct_CXX" && break
6119 done
6120 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6122 CXX=$ac_ct_CXX
6126 # Provide some information about the compiler.
6127 echo "$as_me:$LINENO:" \
6128 "checking for C++ compiler version" >&5
6129 ac_compiler=`set X $ac_compile; echo $2`
6130 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6131 (eval $ac_compiler --version </dev/null >&5) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }
6135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6136 (eval $ac_compiler -v </dev/null >&5) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }
6140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6141 (eval $ac_compiler -V </dev/null >&5) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }
6146 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6147 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6148 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6159 main ()
6161 #ifndef __GNUC__
6162 choke me
6163 #endif
6166 return 0;
6168 _ACEOF
6169 rm -f conftest.$ac_objext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_cxx_werror_flag"
6179 || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_compiler_gnu=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_compiler_gnu=no
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6202 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6203 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6204 GXX=`test $ac_compiler_gnu = yes && echo yes`
6205 ac_test_CXXFLAGS=${CXXFLAGS+set}
6206 ac_save_CXXFLAGS=$CXXFLAGS
6207 CXXFLAGS="-g"
6208 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6209 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6210 if test "${ac_cv_prog_cxx_g+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6221 main ()
6225 return 0;
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230 (eval $ac_compile) 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_cxx_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_prog_cxx_g=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_cv_prog_cxx_g=no
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6260 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6261 if test "$ac_test_CXXFLAGS" = set; then
6262 CXXFLAGS=$ac_save_CXXFLAGS
6263 elif test $ac_cv_prog_cxx_g = yes; then
6264 if test "$GXX" = yes; then
6265 CXXFLAGS="-g -O2"
6266 else
6267 CXXFLAGS="-g"
6269 else
6270 if test "$GXX" = yes; then
6271 CXXFLAGS="-O2"
6272 else
6273 CXXFLAGS=
6276 for ac_declaration in \
6277 '' \
6278 'extern "C" void std::exit (int) throw (); using std::exit;' \
6279 'extern "C" void std::exit (int); using std::exit;' \
6280 'extern "C" void exit (int) throw ();' \
6281 'extern "C" void exit (int);' \
6282 'void exit (int);'
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 $ac_declaration
6291 #include <stdlib.h>
6293 main ()
6295 exit (42);
6297 return 0;
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_cxx_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 continue
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 $ac_declaration
6338 main ()
6340 exit (42);
6342 return 0;
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_cxx_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 break
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6374 done
6375 rm -f conftest*
6376 if test -n "$ac_declaration"; then
6377 echo '#ifdef __cplusplus' >>confdefs.h
6378 echo $ac_declaration >>confdefs.h
6379 echo '#endif' >>confdefs.h
6382 ac_ext=cc
6383 ac_cpp='$CXXCPP $CPPFLAGS'
6384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6388 depcc="$CXX" am_compiler_list=
6390 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6391 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6392 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6396 # We make a subdir and do the tests there. Otherwise we can end up
6397 # making bogus files that we don't know about and never remove. For
6398 # instance it was reported that on HP-UX the gcc test will end up
6399 # making a dummy file named `D' -- because `-MD' means `put the output
6400 # in D'.
6401 mkdir conftest.dir
6402 # Copy depcomp to subdir because otherwise we won't find it if we're
6403 # using a relative directory.
6404 cp "$am_depcomp" conftest.dir
6405 cd conftest.dir
6406 # We will build objects and dependencies in a subdirectory because
6407 # it helps to detect inapplicable dependency modes. For instance
6408 # both Tru64's cc and ICC support -MD to output dependencies as a
6409 # side effect of compilation, but ICC will put the dependencies in
6410 # the current directory while Tru64 will put them in the object
6411 # directory.
6412 mkdir sub
6414 am_cv_CXX_dependencies_compiler_type=none
6415 if test "$am_compiler_list" = ""; then
6416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6418 for depmode in $am_compiler_list; do
6419 # Setup a source with many dependencies, because some compilers
6420 # like to wrap large dependency lists on column 80 (with \), and
6421 # we should not choose a depcomp mode which is confused by this.
6423 # We need to recreate these files for each test, as the compiler may
6424 # overwrite some of them when testing with obscure command lines.
6425 # This happens at least with the AIX C compiler.
6426 : > sub/conftest.c
6427 for i in 1 2 3 4 5 6; do
6428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6429 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6430 # Solaris 8's {/usr,}/bin/sh.
6431 touch sub/conftst$i.h
6432 done
6433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6435 case $depmode in
6436 nosideeffect)
6437 # after this tag, mechanisms are not by side-effect, so they'll
6438 # only be used when explicitly requested
6439 if test "x$enable_dependency_tracking" = xyes; then
6440 continue
6441 else
6442 break
6445 none) break ;;
6446 esac
6447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6448 # mode. It turns out that the SunPro C++ compiler does not properly
6449 # handle `-M -o', and we need to detect this.
6450 if depmode=$depmode \
6451 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6453 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6454 >/dev/null 2>conftest.err &&
6455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6456 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6458 # icc doesn't choke on unknown options, it will just issue warnings
6459 # or remarks (even with -Werror). So we grep stderr for any message
6460 # that says an option was ignored or not supported.
6461 # When given -MP, icc 7.0 and 7.1 complain thusly:
6462 # icc: Command line warning: ignoring option '-M'; no argument required
6463 # The diagnosis changed in icc 8.0:
6464 # icc: Command line remark: option '-MP' not supported
6465 if (grep 'ignoring option' conftest.err ||
6466 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6467 am_cv_CXX_dependencies_compiler_type=$depmode
6468 break
6471 done
6473 cd ..
6474 rm -rf conftest.dir
6475 else
6476 am_cv_CXX_dependencies_compiler_type=none
6480 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6481 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6482 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6487 test "x$enable_dependency_tracking" != xno \
6488 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6489 am__fastdepCXX_TRUE=
6490 am__fastdepCXX_FALSE='#'
6491 else
6492 am__fastdepCXX_TRUE='#'
6493 am__fastdepCXX_FALSE=
6499 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6500 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6501 (test "X$CXX" != "Xg++"))) ; then
6502 ac_ext=cc
6503 ac_cpp='$CXXCPP $CPPFLAGS'
6504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6507 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6508 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6509 if test -z "$CXXCPP"; then
6510 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 # Double quotes because CXXCPP needs to be expanded
6514 for CXXCPP in "$CXX -E" "/lib/cpp"
6516 ac_preproc_ok=false
6517 for ac_cxx_preproc_warn_flag in '' yes
6519 # Use a header file that comes with gcc, so configuring glibc
6520 # with a fresh cross-compiler works.
6521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6522 # <limits.h> exists even on freestanding compilers.
6523 # On the NeXT, cc -E runs the code through the compiler's parser,
6524 # not just through cpp. "Syntax error" is here to catch this case.
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #ifdef __STDC__
6532 # include <limits.h>
6533 #else
6534 # include <assert.h>
6535 #endif
6536 Syntax error
6537 _ACEOF
6538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null; then
6546 if test -s conftest.err; then
6547 ac_cpp_err=$ac_cxx_preproc_warn_flag
6548 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6549 else
6550 ac_cpp_err=
6552 else
6553 ac_cpp_err=yes
6555 if test -z "$ac_cpp_err"; then
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 # Broken: fails on valid input.
6562 continue
6564 rm -f conftest.err conftest.$ac_ext
6566 # OK, works on sane cases. Now check whether non-existent headers
6567 # can be detected and how.
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <ac_nonexistent.h>
6575 _ACEOF
6576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } >/dev/null; then
6584 if test -s conftest.err; then
6585 ac_cpp_err=$ac_cxx_preproc_warn_flag
6586 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6587 else
6588 ac_cpp_err=
6590 else
6591 ac_cpp_err=yes
6593 if test -z "$ac_cpp_err"; then
6594 # Broken: success on invalid input.
6595 continue
6596 else
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 # Passes both tests.
6601 ac_preproc_ok=:
6602 break
6604 rm -f conftest.err conftest.$ac_ext
6606 done
6607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6608 rm -f conftest.err conftest.$ac_ext
6609 if $ac_preproc_ok; then
6610 break
6613 done
6614 ac_cv_prog_CXXCPP=$CXXCPP
6617 CXXCPP=$ac_cv_prog_CXXCPP
6618 else
6619 ac_cv_prog_CXXCPP=$CXXCPP
6621 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6622 echo "${ECHO_T}$CXXCPP" >&6
6623 ac_preproc_ok=false
6624 for ac_cxx_preproc_warn_flag in '' yes
6626 # Use a header file that comes with gcc, so configuring glibc
6627 # with a fresh cross-compiler works.
6628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629 # <limits.h> exists even on freestanding compilers.
6630 # On the NeXT, cc -E runs the code through the compiler's parser,
6631 # not just through cpp. "Syntax error" is here to catch this case.
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #ifdef __STDC__
6639 # include <limits.h>
6640 #else
6641 # include <assert.h>
6642 #endif
6643 Syntax error
6644 _ACEOF
6645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } >/dev/null; then
6653 if test -s conftest.err; then
6654 ac_cpp_err=$ac_cxx_preproc_warn_flag
6655 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6656 else
6657 ac_cpp_err=
6659 else
6660 ac_cpp_err=yes
6662 if test -z "$ac_cpp_err"; then
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 # Broken: fails on valid input.
6669 continue
6671 rm -f conftest.err conftest.$ac_ext
6673 # OK, works on sane cases. Now check whether non-existent headers
6674 # can be detected and how.
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <ac_nonexistent.h>
6682 _ACEOF
6683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } >/dev/null; then
6691 if test -s conftest.err; then
6692 ac_cpp_err=$ac_cxx_preproc_warn_flag
6693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6694 else
6695 ac_cpp_err=
6697 else
6698 ac_cpp_err=yes
6700 if test -z "$ac_cpp_err"; then
6701 # Broken: success on invalid input.
6702 continue
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 # Passes both tests.
6708 ac_preproc_ok=:
6709 break
6711 rm -f conftest.err conftest.$ac_ext
6713 done
6714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6715 rm -f conftest.err conftest.$ac_ext
6716 if $ac_preproc_ok; then
6718 else
6719 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6720 See \`config.log' for more details." >&5
6721 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6722 See \`config.log' for more details." >&2;}
6723 { (exit 1); exit 1; }; }
6726 ac_ext=cc
6727 ac_cpp='$CXXCPP $CPPFLAGS'
6728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6735 ac_ext=f
6736 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6737 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6739 if test -n "$ac_tool_prefix"; then
6740 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6744 echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746 if test "${ac_cv_prog_F77+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test -n "$F77"; then
6750 ac_cv_prog_F77="$F77" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6763 done
6764 done
6768 F77=$ac_cv_prog_F77
6769 if test -n "$F77"; then
6770 echo "$as_me:$LINENO: result: $F77" >&5
6771 echo "${ECHO_T}$F77" >&6
6772 else
6773 echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6
6777 test -n "$F77" && break
6778 done
6780 if test -z "$F77"; then
6781 ac_ct_F77=$F77
6782 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6784 # Extract the first word of "$ac_prog", so it can be a program name with args.
6785 set dummy $ac_prog; ac_word=$2
6786 echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6788 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 if test -n "$ac_ct_F77"; then
6792 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_ac_ct_F77="$ac_prog"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6810 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6811 if test -n "$ac_ct_F77"; then
6812 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6813 echo "${ECHO_T}$ac_ct_F77" >&6
6814 else
6815 echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6
6819 test -n "$ac_ct_F77" && break
6820 done
6822 F77=$ac_ct_F77
6826 # Provide some information about the compiler.
6827 echo "$as_me:6827:" \
6828 "checking for Fortran 77 compiler version" >&5
6829 ac_compiler=`set X $ac_compile; echo $2`
6830 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6831 (eval $ac_compiler --version </dev/null >&5) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }
6835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6836 (eval $ac_compiler -v </dev/null >&5) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }
6840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6841 (eval $ac_compiler -V </dev/null >&5) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }
6845 rm -f a.out
6847 # If we don't use `.F' as extension, the preprocessor is not run on the
6848 # input file. (Note that this only needs to work for GNU compilers.)
6849 ac_save_ext=$ac_ext
6850 ac_ext=F
6851 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6852 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6853 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 program main
6858 #ifndef __GNUC__
6859 choke me
6860 #endif
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -z "$ac_f77_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_compiler_gnu=yes
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_compiler_gnu=no
6893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6897 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6898 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6899 ac_ext=$ac_save_ext
6900 ac_test_FFLAGS=${FFLAGS+set}
6901 ac_save_FFLAGS=$FFLAGS
6902 FFLAGS=
6903 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6904 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6905 if test "${ac_cv_prog_f77_g+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908 FFLAGS=-g
6909 cat >conftest.$ac_ext <<_ACEOF
6910 program main
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -z "$ac_f77_werror_flag"
6924 || test ! -s conftest.err'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; } &&
6930 { ac_try='test -s conftest.$ac_objext'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6936 ac_cv_prog_f77_g=yes
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_prog_f77_g=no
6943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6947 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6948 if test "$ac_test_FFLAGS" = set; then
6949 FFLAGS=$ac_save_FFLAGS
6950 elif test $ac_cv_prog_f77_g = yes; then
6951 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6952 FFLAGS="-g -O2"
6953 else
6954 FFLAGS="-g"
6956 else
6957 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6958 FFLAGS="-O2"
6959 else
6960 FFLAGS=
6964 G77=`test $ac_compiler_gnu = yes && echo yes`
6965 ac_ext=c
6966 ac_cpp='$CPP $CPPFLAGS'
6967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6975 # find the maximum length of command line arguments
6976 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6977 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6978 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6982 teststring="ABCD"
6984 case $build_os in
6985 msdosdjgpp*)
6986 # On DJGPP, this test can blow up pretty badly due to problems in libc
6987 # (any single argument exceeding 2000 bytes causes a buffer overrun
6988 # during glob expansion). Even if it were fixed, the result of this
6989 # check would be larger than it should be.
6990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6993 gnu*)
6994 # Under GNU Hurd, this test is not required because there is
6995 # no limit to the length of command line arguments.
6996 # Libtool will interpret -1 as no limit whatsoever
6997 lt_cv_sys_max_cmd_len=-1;
7000 cygwin* | mingw*)
7001 # On Win9x/ME, this test blows up -- it succeeds, but takes
7002 # about 5 minutes as the teststring grows exponentially.
7003 # Worse, since 9x/ME are not pre-emptively multitasking,
7004 # you end up with a "frozen" computer, even though with patience
7005 # the test eventually succeeds (with a max line length of 256k).
7006 # Instead, let's just punt: use the minimum linelength reported by
7007 # all of the supported platforms: 8192 (on NT/2K/XP).
7008 lt_cv_sys_max_cmd_len=8192;
7011 amigaos*)
7012 # On AmigaOS with pdksh, this test takes hours, literally.
7013 # So we just punt and use a minimum line length of 8192.
7014 lt_cv_sys_max_cmd_len=8192;
7017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7018 # This has been around since 386BSD, at least. Likely further.
7019 if test -x /sbin/sysctl; then
7020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7021 elif test -x /usr/sbin/sysctl; then
7022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7023 else
7024 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7026 # And add a safety zone
7027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7029 osf*)
7030 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7031 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7032 # nice to cause kernel panics so lets avoid the loop below.
7033 # First set a reasonable default.
7034 lt_cv_sys_max_cmd_len=16384
7036 if test -x /sbin/sysconfig; then
7037 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7038 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7039 esac
7043 # If test is not a shell built-in, we'll probably end up computing a
7044 # maximum length that is only half of the actual maximum length, but
7045 # we can't tell.
7046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7047 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7048 = "XX$teststring") >/dev/null 2>&1 &&
7049 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7050 lt_cv_sys_max_cmd_len=$new_result &&
7051 test $i != 17 # 1/2 MB should be enough
7053 i=`expr $i + 1`
7054 teststring=$teststring$teststring
7055 done
7056 teststring=
7057 # Add a significant safety factor because C++ compilers can tack on massive
7058 # amounts of additional arguments before passing them to the linker.
7059 # It appears as though 1/2 is a usable value.
7060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7062 esac
7066 if test -n $lt_cv_sys_max_cmd_len ; then
7067 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7068 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7069 else
7070 echo "$as_me:$LINENO: result: none" >&5
7071 echo "${ECHO_T}none" >&6
7077 # Check for command to grab the raw symbol name followed by C symbol from nm.
7078 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7079 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7080 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7084 # These are sane defaults that work on at least a few old systems.
7085 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7087 # Character class describing NM global symbol codes.
7088 symcode='[BCDEGRST]'
7090 # Regexp to match symbols that can be accessed directly from C.
7091 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7093 # Transform an extracted symbol line into a proper C declaration
7094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7096 # Transform an extracted symbol line into symbol name and symbol address
7097 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7099 # Define system-specific variables.
7100 case $host_os in
7101 aix*)
7102 symcode='[BCDT]'
7104 cygwin* | mingw* | pw32*)
7105 symcode='[ABCDGISTW]'
7107 hpux*) # Its linker distinguishes data from code symbols
7108 if test "$host_cpu" = ia64; then
7109 symcode='[ABCDEGRST]'
7111 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7112 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7114 linux*)
7115 if test "$host_cpu" = ia64; then
7116 symcode='[ABCDGIRSTW]'
7117 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7118 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7121 irix* | nonstopux*)
7122 symcode='[BCDEGRST]'
7124 osf*)
7125 symcode='[BCDEGQRST]'
7127 solaris* | sysv5*)
7128 symcode='[BDRT]'
7130 sysv4)
7131 symcode='[DFNSTU]'
7133 esac
7135 # Handle CRLF in mingw tool chain
7136 opt_cr=
7137 case $build_os in
7138 mingw*)
7139 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7141 esac
7143 # If we're using GNU nm, then use its standard symbol codes.
7144 case `$NM -V 2>&1` in
7145 *GNU* | *'with BFD'*)
7146 symcode='[ABCDGIRSTW]' ;;
7147 esac
7149 # Try without a prefix undercore, then with it.
7150 for ac_symprfx in "" "_"; do
7152 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7153 symxfrm="\\1 $ac_symprfx\\2 \\2"
7155 # Write the raw and C identifiers.
7156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7158 # Check to see that the pipe works correctly.
7159 pipe_works=no
7161 rm -f conftest*
7162 cat > conftest.$ac_ext <<EOF
7163 #ifdef __cplusplus
7164 extern "C" {
7165 #endif
7166 char nm_test_var;
7167 void nm_test_func(){}
7168 #ifdef __cplusplus
7170 #endif
7171 int main(){nm_test_var='a';nm_test_func();return(0);}
7174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7175 (eval $ac_compile) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; then
7179 # Now try to grab the symbols.
7180 nlist=conftest.nm
7181 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7182 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && test -s "$nlist"; then
7186 # Try sorting and uniquifying the output.
7187 if sort "$nlist" | uniq > "$nlist"T; then
7188 mv -f "$nlist"T "$nlist"
7189 else
7190 rm -f "$nlist"T
7193 # Make sure that we snagged all the symbols we need.
7194 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7195 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7196 cat <<EOF > conftest.$ac_ext
7197 #ifdef __cplusplus
7198 extern "C" {
7199 #endif
7202 # Now generate the symbol file.
7203 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7205 cat <<EOF >> conftest.$ac_ext
7206 #if defined (__STDC__) && __STDC__
7207 # define lt_ptr_t void *
7208 #else
7209 # define lt_ptr_t char *
7210 # define const
7211 #endif
7213 /* The mapping between symbol names and symbols. */
7214 const struct {
7215 const char *name;
7216 lt_ptr_t address;
7218 lt_preloaded_symbols[] =
7221 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7222 cat <<\EOF >> conftest.$ac_ext
7223 {0, (lt_ptr_t) 0}
7226 #ifdef __cplusplus
7228 #endif
7230 # Now try linking the two files.
7231 mv conftest.$ac_objext conftstm.$ac_objext
7232 lt_save_LIBS="$LIBS"
7233 lt_save_CFLAGS="$CFLAGS"
7234 LIBS="conftstm.$ac_objext"
7235 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237 (eval $ac_link) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7241 pipe_works=yes
7243 LIBS="$lt_save_LIBS"
7244 CFLAGS="$lt_save_CFLAGS"
7245 else
7246 echo "cannot find nm_test_func in $nlist" >&5
7248 else
7249 echo "cannot find nm_test_var in $nlist" >&5
7251 else
7252 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7254 else
7255 echo "$progname: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7258 rm -f conftest* conftst*
7260 # Do not use the global_symbol_pipe unless it works.
7261 if test "$pipe_works" = yes; then
7262 break
7263 else
7264 lt_cv_sys_global_symbol_pipe=
7266 done
7270 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7271 lt_cv_sys_global_symbol_to_cdecl=
7273 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7274 echo "$as_me:$LINENO: result: failed" >&5
7275 echo "${ECHO_T}failed" >&6
7276 else
7277 echo "$as_me:$LINENO: result: ok" >&5
7278 echo "${ECHO_T}ok" >&6
7281 echo "$as_me:$LINENO: checking for objdir" >&5
7282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7283 if test "${lt_cv_objdir+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 rm -f .libs 2>/dev/null
7287 mkdir .libs 2>/dev/null
7288 if test -d .libs; then
7289 lt_cv_objdir=.libs
7290 else
7291 # MS-DOS does not allow filenames that begin with a dot.
7292 lt_cv_objdir=_libs
7294 rmdir .libs 2>/dev/null
7296 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7297 echo "${ECHO_T}$lt_cv_objdir" >&6
7298 objdir=$lt_cv_objdir
7304 case $host_os in
7305 aix3*)
7306 # AIX sometimes has problems with the GCC collect2 program. For some
7307 # reason, if we set the COLLECT_NAMES environment variable, the problems
7308 # vanish in a puff of smoke.
7309 if test "X${COLLECT_NAMES+set}" != Xset; then
7310 COLLECT_NAMES=
7311 export COLLECT_NAMES
7314 esac
7316 # Sed substitution that helps us do robust quoting. It backslashifies
7317 # metacharacters that are still active within double-quoted strings.
7318 Xsed='sed -e s/^X//'
7319 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7321 # Same as above, but do not quote variable references.
7322 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7324 # Sed substitution to delay expansion of an escaped shell variable in a
7325 # double_quote_subst'ed string.
7326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7328 # Sed substitution to avoid accidental globbing in evaled expressions
7329 no_glob_subst='s/\*/\\\*/g'
7331 # Constants:
7332 rm="rm -f"
7334 # Global variables:
7335 default_ofile=libtool
7336 can_build_shared=yes
7338 # All known linkers require a `.a' archive for static linking (except M$VC,
7339 # which needs '.lib').
7340 libext=a
7341 ltmain="$ac_aux_dir/ltmain.sh"
7342 ofile="$default_ofile"
7343 with_gnu_ld="$lt_cv_prog_gnu_ld"
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}ar; ac_word=$2
7348 echo "$as_me:$LINENO: checking for $ac_word" >&5
7349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350 if test "${ac_cv_prog_AR+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 if test -n "$AR"; then
7354 ac_cv_prog_AR="$AR" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_AR="${ac_tool_prefix}ar"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7367 done
7368 done
7372 AR=$ac_cv_prog_AR
7373 if test -n "$AR"; then
7374 echo "$as_me:$LINENO: result: $AR" >&5
7375 echo "${ECHO_T}$AR" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7382 if test -z "$ac_cv_prog_AR"; then
7383 ac_ct_AR=$AR
7384 # Extract the first word of "ar", so it can be a program name with args.
7385 set dummy ar; ac_word=$2
7386 echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 if test -n "$ac_ct_AR"; then
7392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_ac_ct_AR="ar"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7405 done
7406 done
7408 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7412 if test -n "$ac_ct_AR"; then
7413 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7414 echo "${ECHO_T}$ac_ct_AR" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7420 AR=$ac_ct_AR
7421 else
7422 AR="$ac_cv_prog_AR"
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_prog_RANLIB+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 if test -n "$RANLIB"; then
7434 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7452 RANLIB=$ac_cv_prog_RANLIB
7453 if test -n "$RANLIB"; then
7454 echo "$as_me:$LINENO: result: $RANLIB" >&5
7455 echo "${ECHO_T}$RANLIB" >&6
7456 else
7457 echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7462 if test -z "$ac_cv_prog_RANLIB"; then
7463 ac_ct_RANLIB=$RANLIB
7464 # Extract the first word of "ranlib", so it can be a program name with args.
7465 set dummy ranlib; ac_word=$2
7466 echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 if test -n "$ac_ct_RANLIB"; then
7472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_ac_ct_RANLIB="ranlib"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7488 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7491 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7492 if test -n "$ac_ct_RANLIB"; then
7493 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7494 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7500 RANLIB=$ac_ct_RANLIB
7501 else
7502 RANLIB="$ac_cv_prog_RANLIB"
7505 if test -n "$ac_tool_prefix"; then
7506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}strip; ac_word=$2
7508 echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510 if test "${ac_cv_prog_STRIP+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 if test -n "$STRIP"; then
7514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7532 STRIP=$ac_cv_prog_STRIP
7533 if test -n "$STRIP"; then
7534 echo "$as_me:$LINENO: result: $STRIP" >&5
7535 echo "${ECHO_T}$STRIP" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7542 if test -z "$ac_cv_prog_STRIP"; then
7543 ac_ct_STRIP=$STRIP
7544 # Extract the first word of "strip", so it can be a program name with args.
7545 set dummy strip; ac_word=$2
7546 echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 if test -n "$ac_ct_STRIP"; then
7552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_ac_ct_STRIP="strip"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7565 done
7566 done
7568 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7572 if test -n "$ac_ct_STRIP"; then
7573 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7574 echo "${ECHO_T}$ac_ct_STRIP" >&6
7575 else
7576 echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7580 STRIP=$ac_ct_STRIP
7581 else
7582 STRIP="$ac_cv_prog_STRIP"
7586 old_CC="$CC"
7587 old_CFLAGS="$CFLAGS"
7589 # Set sane defaults for various variables
7590 test -z "$AR" && AR=ar
7591 test -z "$AR_FLAGS" && AR_FLAGS=cru
7592 test -z "$AS" && AS=as
7593 test -z "$CC" && CC=cc
7594 test -z "$LTCC" && LTCC=$CC
7595 test -z "$DLLTOOL" && DLLTOOL=dlltool
7596 test -z "$LD" && LD=ld
7597 test -z "$LN_S" && LN_S="ln -s"
7598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7599 test -z "$NM" && NM=nm
7600 test -z "$SED" && SED=sed
7601 test -z "$OBJDUMP" && OBJDUMP=objdump
7602 test -z "$RANLIB" && RANLIB=:
7603 test -z "$STRIP" && STRIP=:
7604 test -z "$ac_objext" && ac_objext=o
7606 # Determine commands to create old-style static archives.
7607 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7608 old_postinstall_cmds='chmod 644 $oldlib'
7609 old_postuninstall_cmds=
7611 if test -n "$RANLIB"; then
7612 case $host_os in
7613 openbsd*)
7614 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7617 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7619 esac
7620 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7623 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7625 # Only perform the check for file, if the check method requires it
7626 case $deplibs_check_method in
7627 file_magic*)
7628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7629 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7630 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 case $MAGIC_CMD in
7635 [\\/*] | ?:[\\/]*)
7636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7639 lt_save_MAGIC_CMD="$MAGIC_CMD"
7640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7642 for ac_dir in $ac_dummy; do
7643 IFS="$lt_save_ifs"
7644 test -z "$ac_dir" && ac_dir=.
7645 if test -f $ac_dir/${ac_tool_prefix}file; then
7646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7647 if test -n "$file_magic_test_file"; then
7648 case $deplibs_check_method in
7649 "file_magic "*)
7650 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7653 $EGREP "$file_magic_regex" > /dev/null; then
7655 else
7656 cat <<EOF 1>&2
7658 *** Warning: the command libtool uses to detect shared libraries,
7659 *** $file_magic_cmd, produces output that libtool cannot recognize.
7660 *** The result is that libtool may fail to recognize shared libraries
7661 *** as such. This will affect the creation of libtool libraries that
7662 *** depend on shared libraries, but programs linked with such libtool
7663 *** libraries will work regardless of this problem. Nevertheless, you
7664 *** may want to report the problem to your system manager and/or to
7665 *** bug-libtool@gnu.org
7668 fi ;;
7669 esac
7671 break
7673 done
7674 IFS="$lt_save_ifs"
7675 MAGIC_CMD="$lt_save_MAGIC_CMD"
7677 esac
7680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7681 if test -n "$MAGIC_CMD"; then
7682 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7683 echo "${ECHO_T}$MAGIC_CMD" >&6
7684 else
7685 echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6
7689 if test -z "$lt_cv_path_MAGIC_CMD"; then
7690 if test -n "$ac_tool_prefix"; then
7691 echo "$as_me:$LINENO: checking for file" >&5
7692 echo $ECHO_N "checking for file... $ECHO_C" >&6
7693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 case $MAGIC_CMD in
7697 [\\/*] | ?:[\\/]*)
7698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701 lt_save_MAGIC_CMD="$MAGIC_CMD"
7702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7704 for ac_dir in $ac_dummy; do
7705 IFS="$lt_save_ifs"
7706 test -z "$ac_dir" && ac_dir=.
7707 if test -f $ac_dir/file; then
7708 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7709 if test -n "$file_magic_test_file"; then
7710 case $deplibs_check_method in
7711 "file_magic "*)
7712 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7715 $EGREP "$file_magic_regex" > /dev/null; then
7717 else
7718 cat <<EOF 1>&2
7720 *** Warning: the command libtool uses to detect shared libraries,
7721 *** $file_magic_cmd, produces output that libtool cannot recognize.
7722 *** The result is that libtool may fail to recognize shared libraries
7723 *** as such. This will affect the creation of libtool libraries that
7724 *** depend on shared libraries, but programs linked with such libtool
7725 *** libraries will work regardless of this problem. Nevertheless, you
7726 *** may want to report the problem to your system manager and/or to
7727 *** bug-libtool@gnu.org
7730 fi ;;
7731 esac
7733 break
7735 done
7736 IFS="$lt_save_ifs"
7737 MAGIC_CMD="$lt_save_MAGIC_CMD"
7739 esac
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if test -n "$MAGIC_CMD"; then
7744 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7745 echo "${ECHO_T}$MAGIC_CMD" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6
7751 else
7752 MAGIC_CMD=:
7758 esac
7760 enable_dlopen=no
7761 enable_win32_dll=yes
7763 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7764 if test "${enable_libtool_lock+set}" = set; then
7765 enableval="$enable_libtool_lock"
7768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7771 # Check whether --with-pic or --without-pic was given.
7772 if test "${with_pic+set}" = set; then
7773 withval="$with_pic"
7774 pic_mode="$withval"
7775 else
7776 pic_mode=default
7778 test -z "$pic_mode" && pic_mode=default
7780 # Use C for the default configuration in the libtool script
7781 tagname=
7782 lt_save_CC="$CC"
7783 ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790 # Source file extension for C test sources.
7791 ac_ext=c
7793 # Object file extension for compiled C test sources.
7794 objext=o
7795 objext=$objext
7797 # Code to be used in simple compile tests
7798 lt_simple_compile_test_code="int some_variable = 0;\n"
7800 # Code to be used in simple link tests
7801 lt_simple_link_test_code='int main(){return(0);}\n'
7804 # If no C compiler was specified, use CC.
7805 LTCC=${LTCC-"$CC"}
7807 # Allow CC to be a program name with arguments.
7808 compiler=$CC
7812 # Check for any special shared library compilation flags.
7814 lt_prog_cc_shlib=
7815 if test "$GCC" = no; then
7816 case $host_os in
7817 sco3.2v5*)
7818 lt_prog_cc_shlib='-belf'
7820 esac
7822 if test -n "$lt_prog_cc_shlib"; then
7823 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7824 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7825 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7826 else
7827 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7828 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7829 lt_cv_prog_cc_can_build_shared=no
7835 # Check to make sure the static flag actually works.
7837 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7838 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7839 if test "${lt_prog_compiler_static_works+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 lt_prog_compiler_static_works=no
7843 save_LDFLAGS="$LDFLAGS"
7844 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7845 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7847 # The compiler can only warn and ignore the option if not recognized
7848 # So say no if there are warnings
7849 if test -s conftest.err; then
7850 # Append any errors to the config.log.
7851 cat conftest.err 1>&5
7852 else
7853 lt_prog_compiler_static_works=yes
7856 $rm conftest*
7857 LDFLAGS="$save_LDFLAGS"
7860 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7861 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7863 if test x"$lt_prog_compiler_static_works" = xyes; then
7865 else
7866 lt_prog_compiler_static=
7871 ## CAVEAT EMPTOR:
7872 ## There is no encapsulation within the following macros, do not change
7873 ## the running order or otherwise move them around unless you know exactly
7874 ## what you are doing...
7876 lt_prog_compiler_no_builtin_flag=
7878 if test "$GCC" = yes; then
7879 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7882 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7883 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7884 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 lt_cv_prog_compiler_rtti_exceptions=no
7888 ac_outfile=conftest.$ac_objext
7889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7890 lt_compiler_flag="-fno-rtti -fno-exceptions"
7891 # Insert the option either (1) after the last *FLAGS variable, or
7892 # (2) before a word containing "conftest.", or (3) at the end.
7893 # Note that $ac_compile itself does not contain backslashes and begins
7894 # with a dollar sign (not a hyphen), so the echo should work correctly.
7895 # The option is referenced via a variable to avoid confusing sed.
7896 lt_compile=`echo "$ac_compile" | $SED \
7897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899 -e 's:$: $lt_compiler_flag:'`
7900 (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901 (eval "$lt_compile" 2>conftest.err)
7902 ac_status=$?
7903 cat conftest.err >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 if (exit $ac_status) && test -s "$ac_outfile"; then
7906 # The compiler can only warn and ignore the option if not recognized
7907 # So say no if there are warnings
7908 if test ! -s conftest.err; then
7909 lt_cv_prog_compiler_rtti_exceptions=yes
7912 $rm conftest*
7915 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7916 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7919 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7920 else
7926 lt_prog_compiler_wl=
7927 lt_prog_compiler_pic=
7928 lt_prog_compiler_static=
7930 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7933 if test "$GCC" = yes; then
7934 lt_prog_compiler_wl='-Wl,'
7935 lt_prog_compiler_static='-static'
7937 case $host_os in
7938 aix*)
7939 # All AIX code is PIC.
7940 if test "$host_cpu" = ia64; then
7941 # AIX 5 now supports IA64 processor
7942 lt_prog_compiler_static='-Bstatic'
7946 amigaos*)
7947 # FIXME: we need at least 68020 code to build shared libraries, but
7948 # adding the `-m68020' flag to GCC prevents building anything better,
7949 # like `-m68040'.
7950 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7953 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7954 # PIC is the default for these OSes.
7957 mingw* | pw32* | os2*)
7958 # This hack is so that the source file can tell whether it is being
7959 # built for inclusion in a dll (and should export symbols for example).
7960 lt_prog_compiler_pic='-DDLL_EXPORT'
7963 darwin* | rhapsody*)
7964 # PIC is the default on this platform
7965 # Common symbols not allowed in MH_DYLIB files
7966 lt_prog_compiler_pic='-fno-common'
7969 msdosdjgpp*)
7970 # Just because we use GCC doesn't mean we suddenly get shared libraries
7971 # on systems that don't support them.
7972 lt_prog_compiler_can_build_shared=no
7973 enable_shared=no
7976 sysv4*MP*)
7977 if test -d /usr/nec; then
7978 lt_prog_compiler_pic=-Kconform_pic
7982 hpux*)
7983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7984 # not for PA HP-UX.
7985 case "$host_cpu" in
7986 hppa*64*|ia64*)
7987 # +Z the default
7990 lt_prog_compiler_pic='-fPIC'
7992 esac
7996 lt_prog_compiler_pic='-fPIC'
7998 esac
7999 else
8000 # PORTME Check for flag to pass linker flags through the system compiler.
8001 case $host_os in
8002 aix*)
8003 lt_prog_compiler_wl='-Wl,'
8004 if test "$host_cpu" = ia64; then
8005 # AIX 5 now supports IA64 processor
8006 lt_prog_compiler_static='-Bstatic'
8007 else
8008 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8011 darwin*)
8012 # PIC is the default on this platform
8013 # Common symbols not allowed in MH_DYLIB files
8014 case "$cc_basename" in
8015 xlc*)
8016 lt_prog_compiler_pic='-qnocommon'
8017 lt_prog_compiler_wl='-Wl,'
8019 esac
8022 mingw* | pw32* | os2*)
8023 # This hack is so that the source file can tell whether it is being
8024 # built for inclusion in a dll (and should export symbols for example).
8025 lt_prog_compiler_pic='-DDLL_EXPORT'
8028 hpux9* | hpux10* | hpux11*)
8029 lt_prog_compiler_wl='-Wl,'
8030 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8031 # not for PA HP-UX.
8032 case "$host_cpu" in
8033 hppa*64*|ia64*)
8034 # +Z the default
8037 lt_prog_compiler_pic='+Z'
8039 esac
8040 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8041 lt_prog_compiler_static='${wl}-a ${wl}archive'
8044 irix5* | irix6* | nonstopux*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # PIC (with -KPIC) is the default.
8047 lt_prog_compiler_static='-non_shared'
8050 newsos6)
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-Bstatic'
8055 linux*)
8056 case $cc_basename in
8057 icc* | ecc*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-static'
8062 pgcc | pgf77 | pgf90)
8063 # Portland Group compilers (*not* the Pentium gcc compiler,
8064 # which looks to be a dead project)
8065 lt_prog_compiler_wl='-Wl,'
8066 lt_prog_compiler_pic='-fpic'
8067 lt_prog_compiler_static='-static'
8069 ccc*)
8070 lt_prog_compiler_wl='-Wl,'
8071 # All Alpha code is PIC.
8072 lt_prog_compiler_static='-non_shared'
8074 como)
8075 lt_prog_compiler_wl='-lopt='
8077 esac
8080 osf3* | osf4* | osf5*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # All OSF/1 code is PIC.
8083 lt_prog_compiler_static='-non_shared'
8086 sco3.2v5*)
8087 lt_prog_compiler_pic='-Kpic'
8088 lt_prog_compiler_static='-dn'
8091 solaris*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-Bstatic'
8097 sunos4*)
8098 lt_prog_compiler_wl='-Qoption ld '
8099 lt_prog_compiler_pic='-PIC'
8100 lt_prog_compiler_static='-Bstatic'
8103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8104 lt_prog_compiler_wl='-Wl,'
8105 lt_prog_compiler_pic='-KPIC'
8106 lt_prog_compiler_static='-Bstatic'
8109 sysv4*MP*)
8110 if test -d /usr/nec ;then
8111 lt_prog_compiler_pic='-Kconform_pic'
8112 lt_prog_compiler_static='-Bstatic'
8116 unicos*)
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_can_build_shared=no
8121 uts4*)
8122 lt_prog_compiler_pic='-pic'
8123 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_can_build_shared=no
8129 esac
8132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8133 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8136 # Check to make sure the PIC flag actually works.
8138 if test -n "$lt_prog_compiler_pic"; then
8140 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8142 if test "${lt_prog_compiler_pic_works+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 lt_prog_compiler_pic_works=no
8146 ac_outfile=conftest.$ac_objext
8147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8148 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8149 # Insert the option either (1) after the last *FLAGS variable, or
8150 # (2) before a word containing "conftest.", or (3) at the end.
8151 # Note that $ac_compile itself does not contain backslashes and begins
8152 # with a dollar sign (not a hyphen), so the echo should work correctly.
8153 # The option is referenced via a variable to avoid confusing sed.
8154 lt_compile=`echo "$ac_compile" | $SED \
8155 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8157 -e 's:$: $lt_compiler_flag:'`
8158 (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
8159 (eval "$lt_compile" 2>conftest.err)
8160 ac_status=$?
8161 cat conftest.err >&5
8162 echo "$as_me:8162: \$? = $ac_status" >&5
8163 if (exit $ac_status) && test -s "$ac_outfile"; then
8164 # The compiler can only warn and ignore the option if not recognized
8165 # So say no if there are warnings
8166 if test ! -s conftest.err; then
8167 lt_prog_compiler_pic_works=yes
8170 $rm conftest*
8173 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8174 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8176 if test x"$lt_prog_compiler_pic_works" = xyes; then
8177 case $lt_prog_compiler_pic in
8178 "" | " "*) ;;
8179 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8180 esac
8181 else
8182 lt_prog_compiler_pic=
8183 lt_prog_compiler_can_build_shared=no
8187 case "$host_os" in
8188 # For platforms which do not support PIC, -DPIC is meaningless:
8189 *djgpp*)
8190 lt_prog_compiler_pic=
8193 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8195 esac
8197 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8198 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8199 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 lt_cv_prog_compiler_c_o=no
8203 $rm -r conftest 2>/dev/null
8204 mkdir conftest
8205 cd conftest
8206 mkdir out
8207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8209 lt_compiler_flag="-o out/conftest2.$ac_objext"
8210 # Insert the option either (1) after the last *FLAGS variable, or
8211 # (2) before a word containing "conftest.", or (3) at the end.
8212 # Note that $ac_compile itself does not contain backslashes and begins
8213 # with a dollar sign (not a hyphen), so the echo should work correctly.
8214 lt_compile=`echo "$ac_compile" | $SED \
8215 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217 -e 's:$: $lt_compiler_flag:'`
8218 (eval echo "\"\$as_me:8218: $lt_compile\"" >&5)
8219 (eval "$lt_compile" 2>out/conftest.err)
8220 ac_status=$?
8221 cat out/conftest.err >&5
8222 echo "$as_me:8222: \$? = $ac_status" >&5
8223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8224 then
8225 # The compiler can only warn and ignore the option if not recognized
8226 # So say no if there are warnings
8227 if test ! -s out/conftest.err; then
8228 lt_cv_prog_compiler_c_o=yes
8231 chmod u+w .
8232 $rm conftest*
8233 # SGI C++ compiler will create directory out/ii_files/ for
8234 # template instantiation
8235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8236 $rm out/* && rmdir out
8237 cd ..
8238 rmdir conftest
8239 $rm conftest*
8242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8246 hard_links="nottested"
8247 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8248 # do not overwrite the value of need_locks provided by the user
8249 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8250 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8251 hard_links=yes
8252 $rm conftest*
8253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8254 touch conftest.a
8255 ln conftest.a conftest.b 2>&5 || hard_links=no
8256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8257 echo "$as_me:$LINENO: result: $hard_links" >&5
8258 echo "${ECHO_T}$hard_links" >&6
8259 if test "$hard_links" = no; then
8260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8261 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8262 need_locks=warn
8264 else
8265 need_locks=no
8268 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8271 runpath_var=
8272 allow_undefined_flag=
8273 enable_shared_with_static_runtimes=no
8274 archive_cmds=
8275 archive_expsym_cmds=
8276 old_archive_From_new_cmds=
8277 old_archive_from_expsyms_cmds=
8278 export_dynamic_flag_spec=
8279 whole_archive_flag_spec=
8280 thread_safe_flag_spec=
8281 hardcode_libdir_flag_spec=
8282 hardcode_libdir_flag_spec_ld=
8283 hardcode_libdir_separator=
8284 hardcode_direct=no
8285 hardcode_minus_L=no
8286 hardcode_shlibpath_var=unsupported
8287 link_all_deplibs=unknown
8288 hardcode_automatic=no
8289 module_cmds=
8290 module_expsym_cmds=
8291 always_export_symbols=no
8292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8293 # include_expsyms should be a list of space-separated symbols to be *always*
8294 # included in the symbol list
8295 include_expsyms=
8296 # exclude_expsyms can be an extended regexp of symbols to exclude
8297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8299 # as well as any symbol that contains `d'.
8300 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8302 # platforms (ab)use it in PIC code, but their linkers get confused if
8303 # the symbol is explicitly referenced. Since portable code cannot
8304 # rely on this symbol name, it's probably fine to never include it in
8305 # preloaded symbol tables.
8306 extract_expsyms_cmds=
8308 case $host_os in
8309 cygwin* | mingw* | pw32*)
8310 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8311 # When not using gcc, we currently assume that we are using
8312 # Microsoft Visual C++.
8313 if test "$GCC" != yes; then
8314 with_gnu_ld=no
8317 openbsd*)
8318 with_gnu_ld=no
8320 esac
8322 ld_shlibs=yes
8323 if test "$with_gnu_ld" = yes; then
8324 # If archive_cmds runs LD, not CC, wlarc should be empty
8325 wlarc='${wl}'
8327 # See if GNU ld supports shared libraries.
8328 case $host_os in
8329 aix3* | aix4* | aix5*)
8330 # On AIX/PPC, the GNU linker is very broken
8331 if test "$host_cpu" != ia64; then
8332 ld_shlibs=no
8333 cat <<EOF 1>&2
8335 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8336 *** to be unable to reliably create shared libraries on AIX.
8337 *** Therefore, libtool is disabling shared libraries support. If you
8338 *** really care for shared libraries, you may want to modify your PATH
8339 *** so that a non-GNU linker is found, and then restart.
8345 amigaos*)
8346 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)'
8347 hardcode_libdir_flag_spec='-L$libdir'
8348 hardcode_minus_L=yes
8350 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8351 # that the semantics of dynamic libraries on AmigaOS, at least up
8352 # to version 4, is to share data among multiple programs linked
8353 # with the same dynamic library. Since this doesn't match the
8354 # behavior of shared libraries on other platforms, we can't use
8355 # them.
8356 ld_shlibs=no
8359 beos*)
8360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8361 allow_undefined_flag=unsupported
8362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8363 # support --undefined. This deserves some investigation. FIXME
8364 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365 else
8366 ld_shlibs=no
8370 cygwin* | mingw* | pw32*)
8371 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8372 # as there is no search path for DLLs.
8373 hardcode_libdir_flag_spec='-L$libdir'
8374 allow_undefined_flag=unsupported
8375 always_export_symbols=no
8376 enable_shared_with_static_runtimes=yes
8377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8379 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8381 # If the export-symbols file already is a .def file (1st line
8382 # is EXPORTS), use it as is; otherwise, prepend...
8383 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8384 cp $export_symbols $output_objdir/$soname.def;
8385 else
8386 echo EXPORTS > $output_objdir/$soname.def;
8387 cat $export_symbols >> $output_objdir/$soname.def;
8389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8390 else
8391 ld_shlibs=no
8395 netbsd*)
8396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8397 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8398 wlarc=
8399 else
8400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8405 solaris* | sysv5*)
8406 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8407 ld_shlibs=no
8408 cat <<EOF 1>&2
8410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8411 *** create shared libraries on Solaris systems. Therefore, libtool
8412 *** is disabling shared libraries support. We urge you to upgrade GNU
8413 *** binutils to release 2.9.1 or newer. Another option is to modify
8414 *** your PATH or compiler configuration so that the native linker is
8415 *** used, and then restart.
8418 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421 else
8422 ld_shlibs=no
8426 sunos4*)
8427 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8428 wlarc=
8429 hardcode_direct=yes
8430 hardcode_shlibpath_var=no
8433 linux*)
8434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8435 tmp_addflag=
8436 case $CC,$host_cpu in
8437 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8438 tmp_addflag=' -fpic' ;;
8439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8440 tmp_addflag=' -i_dynamic' ;;
8441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8442 tmp_addflag=' -i_dynamic -nofor_main' ;;
8443 ifc* | ifort*) # Intel Fortran compiler
8444 tmp_addflag=' -nofor_main' ;;
8445 esac
8446 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447 supports_anon_versioning=no
8448 case `$LD -v 2>/dev/null` in
8449 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8450 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8451 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8452 *\ 2.11.*) ;; # other 2.11 versions
8453 *) supports_anon_versioning=yes ;;
8454 esac
8455 if test $supports_anon_versioning = yes; then
8456 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8458 $echo "local: *; };" >> $output_objdir/$libname.ver~
8459 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8460 else
8461 archive_expsym_cmds=$archive_cmds
8463 else
8464 ld_shlibs=no
8469 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8472 else
8473 ld_shlibs=no
8476 esac
8478 if test "$ld_shlibs" = yes; then
8479 runpath_var=LD_RUN_PATH
8480 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8481 export_dynamic_flag_spec='${wl}--export-dynamic'
8482 # ancient GNU ld didn't support --whole-archive et. al.
8483 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8485 else
8486 whole_archive_flag_spec=
8489 else
8490 # PORTME fill in a description of your system's linker (not GNU ld)
8491 case $host_os in
8492 aix3*)
8493 allow_undefined_flag=unsupported
8494 always_export_symbols=yes
8495 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'
8496 # Note: this linker hardcodes the directories in LIBPATH if there
8497 # are no directories specified by -L.
8498 hardcode_minus_L=yes
8499 if test "$GCC" = yes && test -z "$link_static_flag"; then
8500 # Neither direct hardcoding nor static linking is supported with a
8501 # broken collect2.
8502 hardcode_direct=unsupported
8506 aix4* | aix5*)
8507 if test "$host_cpu" = ia64; then
8508 # On IA64, the linker does run time linking by default, so we don't
8509 # have to do anything special.
8510 aix_use_runtimelinking=no
8511 exp_sym_flag='-Bexport'
8512 no_entry_flag=""
8513 else
8514 # If we're using GNU nm, then we don't want the "-C" option.
8515 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8516 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8517 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8518 else
8519 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8521 aix_use_runtimelinking=no
8523 # Test if we are trying to use run time linking or normal
8524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8525 # need to do runtime linking.
8526 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8527 for ld_flag in $LDFLAGS; do
8528 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8529 aix_use_runtimelinking=yes
8530 break
8532 done
8533 esac
8535 exp_sym_flag='-bexport'
8536 no_entry_flag='-bnoentry'
8539 # When large executables or shared objects are built, AIX ld can
8540 # have problems creating the table of contents. If linking a library
8541 # or program results in "error TOC overflow" add -mminimal-toc to
8542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8545 archive_cmds=''
8546 hardcode_direct=yes
8547 hardcode_libdir_separator=':'
8548 link_all_deplibs=yes
8550 if test "$GCC" = yes; then
8551 case $host_os in aix4.[012]|aix4.[012].*)
8552 # We only want to do this on AIX 4.2 and lower, the check
8553 # below for broken collect2 doesn't work under 4.3+
8554 collect2name=`${CC} -print-prog-name=collect2`
8555 if test -f "$collect2name" && \
8556 strings "$collect2name" | grep resolve_lib_name >/dev/null
8557 then
8558 # We have reworked collect2
8559 hardcode_direct=yes
8560 else
8561 # We have old collect2
8562 hardcode_direct=unsupported
8563 # It fails to find uninstalled libraries when the uninstalled
8564 # path is not listed in the libpath. Setting hardcode_minus_L
8565 # to unsupported forces relinking
8566 hardcode_minus_L=yes
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_libdir_separator=
8570 esac
8571 shared_flag='-shared'
8572 if test "$aix_use_runtimelinking" = yes; then
8573 shared_flag="$shared_flag "'${wl}-G'
8575 else
8576 # not using gcc
8577 if test "$host_cpu" = ia64; then
8578 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8579 # chokes on -Wl,-G. The following line is correct:
8580 shared_flag='-G'
8581 else
8582 if test "$aix_use_runtimelinking" = yes; then
8583 shared_flag='${wl}-G'
8584 else
8585 shared_flag='${wl}-bM:SRE'
8590 # It seems that -bexpall does not export symbols beginning with
8591 # underscore (_), so it is better to generate a list of symbols to export.
8592 always_export_symbols=yes
8593 if test "$aix_use_runtimelinking" = yes; then
8594 # Warning - without using the other runtime loading flags (-brtl),
8595 # -berok will link without error, but may produce a broken library.
8596 allow_undefined_flag='-berok'
8597 # Determine the default libpath from the value encoded in an empty executable.
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8606 main ()
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag"
8623 || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8638 # Check for a 64-bit object if we didn't find anything.
8639 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8640 }'`; fi
8641 else
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8646 rm -f conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8650 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651 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"
8652 else
8653 if test "$host_cpu" = ia64; then
8654 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8655 allow_undefined_flag="-z nodefs"
8656 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8657 else
8658 # Determine the default libpath from the value encoded in an empty executable.
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8667 main ()
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8699 # Check for a 64-bit object if we didn't find anything.
8700 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8701 }'`; fi
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8707 rm -f conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8711 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8712 # Warning - without using the other run time loading flags,
8713 # -berok will link without error, but may produce a broken library.
8714 no_undefined_flag=' ${wl}-bernotok'
8715 allow_undefined_flag=' ${wl}-berok'
8716 # -bexpall does not export symbols beginning with underscore (_)
8717 always_export_symbols=yes
8718 # Exported symbols can be pulled into shared objects from archives
8719 whole_archive_flag_spec=' '
8720 archive_cmds_need_lc=yes
8721 # This is similar to how AIX traditionally builds it's shared libraries.
8722 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8727 amigaos*)
8728 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)'
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 hardcode_minus_L=yes
8731 # see comment about different semantics on the GNU ld section
8732 ld_shlibs=no
8735 bsdi[45]*)
8736 export_dynamic_flag_spec=-rdynamic
8739 cygwin* | mingw* | pw32*)
8740 # When not using gcc, we currently assume that we are using
8741 # Microsoft Visual C++.
8742 # hardcode_libdir_flag_spec is actually meaningless, as there is
8743 # no search path for DLLs.
8744 hardcode_libdir_flag_spec=' '
8745 allow_undefined_flag=unsupported
8746 # Tell ltmain to make .lib files, not .a files.
8747 libext=lib
8748 # Tell ltmain to make .dll files, not .so files.
8749 shrext_cmds=".dll"
8750 # FIXME: Setting linknames here is a bad hack.
8751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8752 # The linker will automatically build a .lib file if we build a DLL.
8753 old_archive_From_new_cmds='true'
8754 # FIXME: Should let the user specify the lib program.
8755 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8756 fix_srcfile_path='`cygpath -w "$srcfile"`'
8757 enable_shared_with_static_runtimes=yes
8760 darwin* | rhapsody*)
8761 case "$host_os" in
8762 rhapsody* | darwin1.[012])
8763 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8765 *) # Darwin 1.3 on
8766 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8767 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8768 else
8769 case ${MACOSX_DEPLOYMENT_TARGET} in
8770 10.[012])
8771 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8773 10.*)
8774 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8776 esac
8779 esac
8780 archive_cmds_need_lc=no
8781 hardcode_direct=no
8782 hardcode_automatic=yes
8783 hardcode_shlibpath_var=unsupported
8784 whole_archive_flag_spec=''
8785 link_all_deplibs=yes
8786 if test "$GCC" = yes ; then
8787 output_verbose_link_cmd='echo'
8788 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8789 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8790 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8791 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8792 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8793 else
8794 case "$cc_basename" in
8795 xlc*)
8796 output_verbose_link_cmd='echo'
8797 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8798 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8800 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8801 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8804 ld_shlibs=no
8806 esac
8810 dgux*)
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_shlibpath_var=no
8816 freebsd1*)
8817 ld_shlibs=no
8820 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8821 # support. Future versions do this automatically, but an explicit c++rt0.o
8822 # does not break anything, and helps significantly (at the cost of a little
8823 # extra space).
8824 freebsd2.2*)
8825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8826 hardcode_libdir_flag_spec='-R$libdir'
8827 hardcode_direct=yes
8828 hardcode_shlibpath_var=no
8831 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8832 freebsd2*)
8833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834 hardcode_direct=yes
8835 hardcode_minus_L=yes
8836 hardcode_shlibpath_var=no
8839 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8840 freebsd* | kfreebsd*-gnu | dragonfly*)
8841 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8842 hardcode_libdir_flag_spec='-R$libdir'
8843 hardcode_direct=yes
8844 hardcode_shlibpath_var=no
8847 hpux9*)
8848 if test "$GCC" = yes; then
8849 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8850 else
8851 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'
8853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854 hardcode_libdir_separator=:
8855 hardcode_direct=yes
8857 # hardcode_minus_L: Not really in the search PATH,
8858 # but as the default location of the library.
8859 hardcode_minus_L=yes
8860 export_dynamic_flag_spec='${wl}-E'
8863 hpux10* | hpux11*)
8864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8865 case "$host_cpu" in
8866 hppa*64*|ia64*)
8867 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872 esac
8873 else
8874 case "$host_cpu" in
8875 hppa*64*|ia64*)
8876 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8881 esac
8883 if test "$with_gnu_ld" = no; then
8884 case "$host_cpu" in
8885 hppa*64*)
8886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8887 hardcode_libdir_flag_spec_ld='+b $libdir'
8888 hardcode_libdir_separator=:
8889 hardcode_direct=no
8890 hardcode_shlibpath_var=no
8892 ia64*)
8893 hardcode_libdir_flag_spec='-L$libdir'
8894 hardcode_direct=no
8895 hardcode_shlibpath_var=no
8897 # hardcode_minus_L: Not really in the search PATH,
8898 # but as the default location of the library.
8899 hardcode_minus_L=yes
8902 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8903 hardcode_libdir_separator=:
8904 hardcode_direct=yes
8905 export_dynamic_flag_spec='${wl}-E'
8907 # hardcode_minus_L: Not really in the search PATH,
8908 # but as the default location of the library.
8909 hardcode_minus_L=yes
8911 esac
8915 irix5* | irix6* | nonstopux*)
8916 if test "$GCC" = yes; then
8917 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'
8918 else
8919 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'
8920 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 link_all_deplibs=yes
8927 netbsd*)
8928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8930 else
8931 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8933 hardcode_libdir_flag_spec='-R$libdir'
8934 hardcode_direct=yes
8935 hardcode_shlibpath_var=no
8938 newsos6)
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_direct=yes
8941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942 hardcode_libdir_separator=:
8943 hardcode_shlibpath_var=no
8946 openbsd*)
8947 hardcode_direct=yes
8948 hardcode_shlibpath_var=no
8949 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8952 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8953 export_dynamic_flag_spec='${wl}-E'
8954 else
8955 case $host_os in
8956 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='-R$libdir'
8961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8962 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 esac
8968 os2*)
8969 hardcode_libdir_flag_spec='-L$libdir'
8970 hardcode_minus_L=yes
8971 allow_undefined_flag=unsupported
8972 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'
8973 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8976 osf3*)
8977 if test "$GCC" = yes; then
8978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8979 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'
8980 else
8981 allow_undefined_flag=' -expect_unresolved \*'
8982 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'
8984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985 hardcode_libdir_separator=:
8988 osf4* | osf5*) # as osf3* with the addition of -msym flag
8989 if test "$GCC" = yes; then
8990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8991 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'
8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993 else
8994 allow_undefined_flag=' -expect_unresolved \*'
8995 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'
8996 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8997 $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'
8999 # Both c and cxx compiler support -rpath directly
9000 hardcode_libdir_flag_spec='-rpath $libdir'
9002 hardcode_libdir_separator=:
9005 sco3.2v5*)
9006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_shlibpath_var=no
9008 export_dynamic_flag_spec='${wl}-Bexport'
9009 runpath_var=LD_RUN_PATH
9010 hardcode_runpath_var=yes
9013 solaris*)
9014 no_undefined_flag=' -z text'
9015 if test "$GCC" = yes; then
9016 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9018 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9019 else
9020 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9022 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9024 hardcode_libdir_flag_spec='-R$libdir'
9025 hardcode_shlibpath_var=no
9026 case $host_os in
9027 solaris2.[0-5] | solaris2.[0-5].*) ;;
9028 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9029 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
9030 esac
9031 link_all_deplibs=yes
9034 sunos4*)
9035 if test "x$host_vendor" = xsequent; then
9036 # Use $CC to link under sequent, because it throws in some extra .o
9037 # files that make .init and .fini sections work.
9038 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_direct=yes
9044 hardcode_minus_L=yes
9045 hardcode_shlibpath_var=no
9048 sysv4)
9049 case $host_vendor in
9050 sni)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=yes # is this really true???
9054 siemens)
9055 ## LD is ld it makes a PLAMLIB
9056 ## CC just makes a GrossModule.
9057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9058 reload_cmds='$CC -r -o $output$reload_objs'
9059 hardcode_direct=no
9061 motorola)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9065 esac
9066 runpath_var='LD_RUN_PATH'
9067 hardcode_shlibpath_var=no
9070 sysv4.3*)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_shlibpath_var=no
9073 export_dynamic_flag_spec='-Bexport'
9076 sysv4*MP*)
9077 if test -d /usr/nec; then
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var=no
9080 runpath_var=LD_RUN_PATH
9081 hardcode_runpath_var=yes
9082 ld_shlibs=yes
9086 sysv4.2uw2*)
9087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_direct=yes
9089 hardcode_minus_L=no
9090 hardcode_shlibpath_var=no
9091 hardcode_runpath_var=yes
9092 runpath_var=LD_RUN_PATH
9095 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9096 no_undefined_flag='${wl}-z ${wl}text'
9097 if test "$GCC" = yes; then
9098 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 else
9100 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9102 runpath_var='LD_RUN_PATH'
9103 hardcode_shlibpath_var=no
9106 sysv5*)
9107 no_undefined_flag=' -z text'
9108 # $CC -shared without GNU ld will not create a library from C++
9109 # object files and a static libstdc++, better avoid it by now
9110 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9112 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9113 hardcode_libdir_flag_spec=
9114 hardcode_shlibpath_var=no
9115 runpath_var='LD_RUN_PATH'
9118 uts4*)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_shlibpath_var=no
9125 ld_shlibs=no
9127 esac
9130 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9131 echo "${ECHO_T}$ld_shlibs" >&6
9132 test "$ld_shlibs" = no && can_build_shared=no
9134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9135 if test "$GCC" = yes; then
9136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9140 # Do we need to explicitly link libc?
9142 case "x$archive_cmds_need_lc" in
9143 x|xyes)
9144 # Assume -lc should be added
9145 archive_cmds_need_lc=yes
9147 if test "$enable_shared" = yes && test "$GCC" = yes; then
9148 case $archive_cmds in
9149 *'~'*)
9150 # FIXME: we may have to deal with multi-command sequences.
9152 '$CC '*)
9153 # Test whether the compiler implicitly links with -lc since on some
9154 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9155 # to ld, don't add -lc before -lgcc.
9156 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9157 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9158 $rm conftest*
9159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162 (eval $ac_compile) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } 2>conftest.err; then
9166 soname=conftest
9167 lib=conftest
9168 libobjs=conftest.$ac_objext
9169 deplibs=
9170 wl=$lt_prog_compiler_wl
9171 compiler_flags=-v
9172 linker_flags=-v
9173 verstring=
9174 output_objdir=.
9175 libname=conftest
9176 lt_save_allow_undefined_flag=$allow_undefined_flag
9177 allow_undefined_flag=
9178 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9179 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }
9183 then
9184 archive_cmds_need_lc=no
9185 else
9186 archive_cmds_need_lc=yes
9188 allow_undefined_flag=$lt_save_allow_undefined_flag
9189 else
9190 cat conftest.err 1>&5
9192 $rm conftest*
9193 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9194 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9196 esac
9199 esac
9201 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9202 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9203 library_names_spec=
9204 libname_spec='lib$name'
9205 soname_spec=
9206 shrext_cmds=".so"
9207 postinstall_cmds=
9208 postuninstall_cmds=
9209 finish_cmds=
9210 finish_eval=
9211 shlibpath_var=
9212 shlibpath_overrides_runpath=unknown
9213 version_type=none
9214 dynamic_linker="$host_os ld.so"
9215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9216 if test "$GCC" = yes; then
9217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9219 # if the path contains ";" then we assume it to be the separator
9220 # otherwise default to the standard path separator (i.e. ":") - it is
9221 # assumed that no part of a normal pathname contains ";" but that should
9222 # okay in the real world where ";" in dirpaths is itself problematic.
9223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9224 else
9225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9227 else
9228 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9230 need_lib_prefix=unknown
9231 hardcode_into_libs=no
9233 # when you set need_version to no, make sure it does not cause -set_version
9234 # flags to be left without arguments
9235 need_version=unknown
9237 case $host_os in
9238 aix3*)
9239 version_type=linux
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9241 shlibpath_var=LIBPATH
9243 # AIX 3 has no versioning support, so we append a major version to the name.
9244 soname_spec='${libname}${release}${shared_ext}$major'
9247 aix4* | aix5*)
9248 version_type=linux
9249 need_lib_prefix=no
9250 need_version=no
9251 hardcode_into_libs=yes
9252 if test "$host_cpu" = ia64; then
9253 # AIX 5 supports IA64
9254 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 else
9257 # With GCC up to 2.95.x, collect2 would create an import file
9258 # for dependence libraries. The import file would start with
9259 # the line `#! .'. This would cause the generated library to
9260 # depend on `.', always an invalid library. This was fixed in
9261 # development snapshots of GCC prior to 3.0.
9262 case $host_os in
9263 aix4 | aix4.[01] | aix4.[01].*)
9264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9265 echo ' yes '
9266 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9268 else
9269 can_build_shared=no
9272 esac
9273 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9274 # soname into executable. Probably we can add versioning support to
9275 # collect2, so additional links can be useful in future.
9276 if test "$aix_use_runtimelinking" = yes; then
9277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9278 # instead of lib<name>.a to let people know that these are not
9279 # typical AIX shared libraries.
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 else
9282 # We preserve .a as extension for shared libraries through AIX4.2
9283 # and later when we are not doing run time linking.
9284 library_names_spec='${libname}${release}.a $libname.a'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LIBPATH
9291 amigaos*)
9292 library_names_spec='$libname.ixlibrary $libname.a'
9293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9294 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'
9297 beos*)
9298 library_names_spec='${libname}${shared_ext}'
9299 dynamic_linker="$host_os ld.so"
9300 shlibpath_var=LIBRARY_PATH
9303 bsdi[45]*)
9304 version_type=linux
9305 need_version=no
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9312 # the default ld.so.conf also contains /usr/contrib/lib and
9313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9314 # libtool to hard-code these into programs
9317 cygwin* | mingw* | pw32*)
9318 version_type=windows
9319 shrext_cmds=".dll"
9320 need_version=no
9321 need_lib_prefix=no
9323 case $GCC,$host_os in
9324 yes,cygwin* | yes,mingw* | yes,pw32*)
9325 library_names_spec='$libname.dll.a'
9326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9327 postinstall_cmds='base_file=`basename \${file}`~
9328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9329 dldir=$destdir/`dirname \$dlpath`~
9330 test -d \$dldir || mkdir -p \$dldir~
9331 $install_prog $dir/$dlname \$dldir/$dlname'
9332 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9333 dlpath=$dir/\$dldll~
9334 $rm \$dlpath'
9335 shlibpath_overrides_runpath=yes
9337 case $host_os in
9338 cygwin*)
9339 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9340 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9341 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9343 mingw*)
9344 # MinGW DLLs use traditional 'lib' prefix
9345 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9347 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9348 # It is most probably a Windows format PATH printed by
9349 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9350 # path with ; separators, and with drive letters. We can handle the
9351 # drive letters (cygwin fileutils understands them), so leave them,
9352 # especially as we might pass files found there to a mingw objdump,
9353 # which wouldn't understand a cygwinified path. Ahh.
9354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9355 else
9356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9359 pw32*)
9360 # pw32 DLLs use 'pw' prefix rather than 'lib'
9361 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 esac
9367 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9369 esac
9370 dynamic_linker='Win32 ld.exe'
9371 # FIXME: first we should search . and the directory the executable is in
9372 shlibpath_var=PATH
9375 darwin* | rhapsody*)
9376 dynamic_linker="$host_os dyld"
9377 version_type=darwin
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9381 soname_spec='${libname}${release}${major}$shared_ext'
9382 shlibpath_overrides_runpath=yes
9383 shlibpath_var=DYLD_LIBRARY_PATH
9384 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9385 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9386 if test "$GCC" = yes; then
9387 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9388 else
9389 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9394 dgux*)
9395 version_type=linux
9396 need_lib_prefix=no
9397 need_version=no
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9403 freebsd1*)
9404 dynamic_linker=no
9407 kfreebsd*-gnu)
9408 version_type=linux
9409 need_lib_prefix=no
9410 need_version=no
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=no
9415 hardcode_into_libs=yes
9416 dynamic_linker='GNU ld.so'
9419 freebsd* | dragonfly*)
9420 # DragonFly does not have aout. When/if they implement a new
9421 # versioning mechanism, adjust this.
9422 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9423 version_type=freebsd-$objformat
9424 case $version_type in
9425 freebsd-elf*)
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9427 need_version=no
9428 need_lib_prefix=no
9430 freebsd-*)
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9432 need_version=yes
9434 esac
9435 shlibpath_var=LD_LIBRARY_PATH
9436 case $host_os in
9437 freebsd2*)
9438 shlibpath_overrides_runpath=yes
9440 freebsd3.[01]* | freebsdelf3.[01]*)
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9444 *) # from 3.2 on
9445 shlibpath_overrides_runpath=no
9446 hardcode_into_libs=yes
9448 esac
9451 gnu*)
9452 version_type=linux
9453 need_lib_prefix=no
9454 need_version=no
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 hardcode_into_libs=yes
9461 hpux9* | hpux10* | hpux11*)
9462 # Give a soname corresponding to the major version so that dld.sl refuses to
9463 # link against other versions.
9464 version_type=sunos
9465 need_lib_prefix=no
9466 need_version=no
9467 case "$host_cpu" in
9468 ia64*)
9469 shrext_cmds='.so'
9470 hardcode_into_libs=yes
9471 dynamic_linker="$host_os dld.so"
9472 shlibpath_var=LD_LIBRARY_PATH
9473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 if test "X$HPUX_IA64_MODE" = X32; then
9477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9478 else
9479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9483 hppa*64*)
9484 shrext_cmds='.sl'
9485 hardcode_into_libs=yes
9486 dynamic_linker="$host_os dld.sl"
9487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495 shrext_cmds='.sl'
9496 dynamic_linker="$host_os dld.sl"
9497 shlibpath_var=SHLIB_PATH
9498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9502 esac
9503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9504 postinstall_cmds='chmod 555 $lib'
9507 irix5* | irix6* | nonstopux*)
9508 case $host_os in
9509 nonstopux*) version_type=nonstopux ;;
9511 if test "$lt_cv_prog_gnu_ld" = yes; then
9512 version_type=linux
9513 else
9514 version_type=irix
9515 fi ;;
9516 esac
9517 need_lib_prefix=no
9518 need_version=no
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9521 case $host_os in
9522 irix5* | nonstopux*)
9523 libsuff= shlibsuff=
9526 case $LD in # libtool.m4 will add one of these switches to LD
9527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9528 libsuff= shlibsuff= libmagic=32-bit;;
9529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9530 libsuff=32 shlibsuff=N32 libmagic=N32;;
9531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9533 *) libsuff= shlibsuff= libmagic=never-match;;
9534 esac
9536 esac
9537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9538 shlibpath_overrides_runpath=no
9539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9541 hardcode_into_libs=yes
9544 # No shared lib support for Linux oldld, aout, or coff.
9545 linux*oldld* | linux*aout* | linux*coff*)
9546 dynamic_linker=no
9549 # This must be Linux ELF.
9550 linux*)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=no
9559 # This implies no fast_install, which is unacceptable.
9560 # Some rework will be needed to allow for fast_install
9561 # before this can be enabled.
9562 hardcode_into_libs=yes
9564 # Append ld.so.conf contents to the search path
9565 if test -f /etc/ld.so.conf; then
9566 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9570 # We used to test for /lib/ld.so.1 and disable shared libraries on
9571 # powerpc, because MkLinux only supported shared libraries with the
9572 # GNU dynamic linker. Since this was broken with cross compilers,
9573 # most powerpc-linux boxes support dynamic linking these days and
9574 # people can always --disable-shared, the test was removed, and we
9575 # assume the GNU/Linux dynamic linker is in use.
9576 dynamic_linker='GNU/Linux ld.so'
9579 knetbsd*-gnu)
9580 version_type=linux
9581 need_lib_prefix=no
9582 need_version=no
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 dynamic_linker='GNU ld.so'
9591 netbsd*)
9592 version_type=sunos
9593 need_lib_prefix=no
9594 need_version=no
9595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598 dynamic_linker='NetBSD (a.out) ld.so'
9599 else
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 dynamic_linker='NetBSD ld.elf_so'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 hardcode_into_libs=yes
9609 newsos6)
9610 version_type=linux
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes
9616 nto-qnx*)
9617 version_type=linux
9618 need_lib_prefix=no
9619 need_version=no
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath=yes
9626 openbsd*)
9627 version_type=sunos
9628 need_lib_prefix=no
9629 need_version=no
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634 case $host_os in
9635 openbsd2.[89] | openbsd2.[89].*)
9636 shlibpath_overrides_runpath=no
9639 shlibpath_overrides_runpath=yes
9641 esac
9642 else
9643 shlibpath_overrides_runpath=yes
9647 os2*)
9648 libname_spec='$name'
9649 shrext_cmds=".dll"
9650 need_lib_prefix=no
9651 library_names_spec='$libname${shared_ext} $libname.a'
9652 dynamic_linker='OS/2 ld.exe'
9653 shlibpath_var=LIBPATH
9656 osf3* | osf4* | osf5*)
9657 version_type=osf
9658 need_lib_prefix=no
9659 need_version=no
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9667 sco3.2v5*)
9668 version_type=osf
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 shlibpath_var=LD_LIBRARY_PATH
9674 solaris*)
9675 version_type=linux
9676 need_lib_prefix=no
9677 need_version=no
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 shlibpath_overrides_runpath=yes
9682 hardcode_into_libs=yes
9683 # ldd complains unless libraries are executable
9684 postinstall_cmds='chmod +x $lib'
9687 sunos4*)
9688 version_type=sunos
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 shlibpath_overrides_runpath=yes
9693 if test "$with_gnu_ld" = yes; then
9694 need_lib_prefix=no
9696 need_version=yes
9699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9700 version_type=linux
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 case $host_vendor in
9705 sni)
9706 shlibpath_overrides_runpath=no
9707 need_lib_prefix=no
9708 export_dynamic_flag_spec='${wl}-Blargedynsym'
9709 runpath_var=LD_RUN_PATH
9711 siemens)
9712 need_lib_prefix=no
9714 motorola)
9715 need_lib_prefix=no
9716 need_version=no
9717 shlibpath_overrides_runpath=no
9718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9720 esac
9723 sysv4*MP*)
9724 if test -d /usr/nec ;then
9725 version_type=linux
9726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9727 soname_spec='$libname${shared_ext}.$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9732 uts4*)
9733 version_type=linux
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 shlibpath_var=LD_LIBRARY_PATH
9740 dynamic_linker=no
9742 esac
9743 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9744 echo "${ECHO_T}$dynamic_linker" >&6
9745 test "$dynamic_linker" = no && can_build_shared=no
9747 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9748 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9749 hardcode_action=
9750 if test -n "$hardcode_libdir_flag_spec" || \
9751 test -n "$runpath_var" || \
9752 test "X$hardcode_automatic" = "Xyes" ; then
9754 # We can hardcode non-existant directories.
9755 if test "$hardcode_direct" != no &&
9756 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9757 # have to relink, otherwise we might link with an installed library
9758 # when we should be linking with a yet-to-be-installed one
9759 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9760 test "$hardcode_minus_L" != no; then
9761 # Linking always hardcodes the temporary library directory.
9762 hardcode_action=relink
9763 else
9764 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9765 hardcode_action=immediate
9767 else
9768 # We cannot hardcode anything, or else we can only hardcode existing
9769 # directories.
9770 hardcode_action=unsupported
9772 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9773 echo "${ECHO_T}$hardcode_action" >&6
9775 if test "$hardcode_action" = relink; then
9776 # Fast installation is not supported
9777 enable_fast_install=no
9778 elif test "$shlibpath_overrides_runpath" = yes ||
9779 test "$enable_shared" = no; then
9780 # Fast installation is not necessary
9781 enable_fast_install=needless
9784 striplib=
9785 old_striplib=
9786 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9787 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9788 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9789 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9790 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9791 echo "$as_me:$LINENO: result: yes" >&5
9792 echo "${ECHO_T}yes" >&6
9793 else
9794 # FIXME - insert some real tests, host_os isn't really good enough
9795 case $host_os in
9796 darwin*)
9797 if test -n "$STRIP" ; then
9798 striplib="$STRIP -x"
9799 echo "$as_me:$LINENO: result: yes" >&5
9800 echo "${ECHO_T}yes" >&6
9801 else
9802 echo "$as_me:$LINENO: result: no" >&5
9803 echo "${ECHO_T}no" >&6
9807 echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6
9810 esac
9813 if test "x$enable_dlopen" != xyes; then
9814 enable_dlopen=unknown
9815 enable_dlopen_self=unknown
9816 enable_dlopen_self_static=unknown
9817 else
9818 lt_cv_dlopen=no
9819 lt_cv_dlopen_libs=
9821 case $host_os in
9822 beos*)
9823 lt_cv_dlopen="load_add_on"
9824 lt_cv_dlopen_libs=
9825 lt_cv_dlopen_self=yes
9828 mingw* | pw32*)
9829 lt_cv_dlopen="LoadLibrary"
9830 lt_cv_dlopen_libs=
9833 cygwin*)
9834 lt_cv_dlopen="dlopen"
9835 lt_cv_dlopen_libs=
9838 darwin*)
9839 # if libdl is installed we need to link against it
9840 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 ac_check_lib_save_LIBS=$LIBS
9846 LIBS="-ldl $LIBS"
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9854 /* Override any gcc2 internal prototype to avoid an error. */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 /* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9860 char dlopen ();
9862 main ()
9864 dlopen ();
9866 return 0;
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag"
9879 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_lib_dl_dlopen=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_dl_dlopen=no
9898 rm -f conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9900 LIBS=$ac_check_lib_save_LIBS
9902 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9904 if test $ac_cv_lib_dl_dlopen = yes; then
9905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9906 else
9908 lt_cv_dlopen="dyld"
9909 lt_cv_dlopen_libs=
9910 lt_cv_dlopen_self=yes
9917 echo "$as_me:$LINENO: checking for shl_load" >&5
9918 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9919 if test "${ac_cv_func_shl_load+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h. */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9930 #define shl_load innocuous_shl_load
9932 /* System header to define __stub macros and hopefully few prototypes,
9933 which can conflict with char shl_load (); below.
9934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9935 <limits.h> exists even on freestanding compilers. */
9937 #ifdef __STDC__
9938 # include <limits.h>
9939 #else
9940 # include <assert.h>
9941 #endif
9943 #undef shl_load
9945 /* Override any gcc2 internal prototype to avoid an error. */
9946 #ifdef __cplusplus
9947 extern "C"
9949 #endif
9950 /* We use char because int might match the return type of a gcc2
9951 builtin and then its argument prototype would still apply. */
9952 char shl_load ();
9953 /* The GNU C library defines this for functions which it implements
9954 to always fail with ENOSYS. Some functions are actually named
9955 something starting with __ and the normal name is an alias. */
9956 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9957 choke me
9958 #else
9959 char (*f) () = shl_load;
9960 #endif
9961 #ifdef __cplusplus
9963 #endif
9966 main ()
9968 return f != shl_load;
9970 return 0;
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_func_shl_load=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_func_shl_load=no
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10006 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10007 if test $ac_cv_func_shl_load = yes; then
10008 lt_cv_dlopen="shl_load"
10009 else
10010 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10011 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10012 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-ldld $LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10024 /* Override any gcc2 internal prototype to avoid an error. */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char shl_load ();
10032 main ()
10034 shl_load ();
10036 return 0;
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_dld_shl_load=yes
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_cv_lib_dld_shl_load=no
10068 rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10073 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10074 if test $ac_cv_lib_dld_shl_load = yes; then
10075 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10076 else
10077 echo "$as_me:$LINENO: checking for dlopen" >&5
10078 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10079 if test "${ac_cv_func_dlopen+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h. */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10090 #define dlopen innocuous_dlopen
10092 /* System header to define __stub macros and hopefully few prototypes,
10093 which can conflict with char dlopen (); below.
10094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10095 <limits.h> exists even on freestanding compilers. */
10097 #ifdef __STDC__
10098 # include <limits.h>
10099 #else
10100 # include <assert.h>
10101 #endif
10103 #undef dlopen
10105 /* Override any gcc2 internal prototype to avoid an error. */
10106 #ifdef __cplusplus
10107 extern "C"
10109 #endif
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112 char dlopen ();
10113 /* The GNU C library defines this for functions which it implements
10114 to always fail with ENOSYS. Some functions are actually named
10115 something starting with __ and the normal name is an alias. */
10116 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10117 choke me
10118 #else
10119 char (*f) () = dlopen;
10120 #endif
10121 #ifdef __cplusplus
10123 #endif
10126 main ()
10128 return f != dlopen;
10130 return 0;
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_func_dlopen=yes
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_func_dlopen=no
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10167 if test $ac_cv_func_dlopen = yes; then
10168 lt_cv_dlopen="dlopen"
10169 else
10170 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175 ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-ldl $LIBS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 /* Override any gcc2 internal prototype to avoid an error. */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 /* We use char because int might match the return type of a gcc2
10189 builtin and then its argument prototype would still apply. */
10190 char dlopen ();
10192 main ()
10194 dlopen ();
10196 return 0;
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_lib_dl_dlopen=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_cv_lib_dl_dlopen=no
10228 rm -f conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10234 if test $ac_cv_lib_dl_dlopen = yes; then
10235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10236 else
10237 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10238 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10239 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242 ac_check_lib_save_LIBS=$LIBS
10243 LIBS="-lsvld $LIBS"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10251 /* Override any gcc2 internal prototype to avoid an error. */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 /* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
10257 char dlopen ();
10259 main ()
10261 dlopen ();
10263 return 0;
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_lib_svld_dlopen=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_cv_lib_svld_dlopen=no
10295 rm -f conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297 LIBS=$ac_check_lib_save_LIBS
10299 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10300 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10301 if test $ac_cv_lib_svld_dlopen = yes; then
10302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10303 else
10304 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10305 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10306 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 ac_check_lib_save_LIBS=$LIBS
10310 LIBS="-ldld $LIBS"
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h. */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10318 /* Override any gcc2 internal prototype to avoid an error. */
10319 #ifdef __cplusplus
10320 extern "C"
10321 #endif
10322 /* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10324 char dld_link ();
10326 main ()
10328 dld_link ();
10330 return 0;
10332 _ACEOF
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_c_werror_flag"
10343 || test ! -s conftest.err'
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); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_cv_lib_dld_dld_link=yes
10356 else
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 ac_cv_lib_dld_dld_link=no
10362 rm -f conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LIBS=$ac_check_lib_save_LIBS
10366 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10367 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10368 if test $ac_cv_lib_dld_dld_link = yes; then
10369 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10388 esac
10390 if test "x$lt_cv_dlopen" != xno; then
10391 enable_dlopen=yes
10392 else
10393 enable_dlopen=no
10396 case $lt_cv_dlopen in
10397 dlopen)
10398 save_CPPFLAGS="$CPPFLAGS"
10399 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10401 save_LDFLAGS="$LDFLAGS"
10402 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10404 save_LIBS="$LIBS"
10405 LIBS="$lt_cv_dlopen_libs $LIBS"
10407 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10408 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10409 if test "${lt_cv_dlopen_self+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 if test "$cross_compiling" = yes; then :
10413 lt_cv_dlopen_self=cross
10414 else
10415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416 lt_status=$lt_dlunknown
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10418 "configure"
10419 #include "confdefs.h"
10421 #if HAVE_DLFCN_H
10422 #include <dlfcn.h>
10423 #endif
10425 #include <stdio.h>
10427 #ifdef RTLD_GLOBAL
10428 # define LT_DLGLOBAL RTLD_GLOBAL
10429 #else
10430 # ifdef DL_GLOBAL
10431 # define LT_DLGLOBAL DL_GLOBAL
10432 # else
10433 # define LT_DLGLOBAL 0
10434 # endif
10435 #endif
10437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438 find out it does not work in some platform. */
10439 #ifndef LT_DLLAZY_OR_NOW
10440 # ifdef RTLD_LAZY
10441 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10442 # else
10443 # ifdef DL_LAZY
10444 # define LT_DLLAZY_OR_NOW DL_LAZY
10445 # else
10446 # ifdef RTLD_NOW
10447 # define LT_DLLAZY_OR_NOW RTLD_NOW
10448 # else
10449 # ifdef DL_NOW
10450 # define LT_DLLAZY_OR_NOW DL_NOW
10451 # else
10452 # define LT_DLLAZY_OR_NOW 0
10453 # endif
10454 # endif
10455 # endif
10456 # endif
10457 #endif
10459 #ifdef __cplusplus
10460 extern "C" void exit (int);
10461 #endif
10463 void fnord() { int i=42;}
10464 int main ()
10466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467 int status = $lt_dlunknown;
10469 if (self)
10471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10472 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473 /* dlclose (self); */
10476 exit (status);
10479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480 (eval $ac_link) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10484 (./conftest; exit; ) 2>/dev/null
10485 lt_status=$?
10486 case x$lt_status in
10487 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10488 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10489 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10490 esac
10491 else :
10492 # compilation failed
10493 lt_cv_dlopen_self=no
10496 rm -fr conftest*
10500 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10501 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10503 if test "x$lt_cv_dlopen_self" = xyes; then
10504 LDFLAGS="$LDFLAGS $link_static_flag"
10505 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10506 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10507 if test "${lt_cv_dlopen_self_static+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 if test "$cross_compiling" = yes; then :
10511 lt_cv_dlopen_self_static=cross
10512 else
10513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10514 lt_status=$lt_dlunknown
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10516 "configure"
10517 #include "confdefs.h"
10519 #if HAVE_DLFCN_H
10520 #include <dlfcn.h>
10521 #endif
10523 #include <stdio.h>
10525 #ifdef RTLD_GLOBAL
10526 # define LT_DLGLOBAL RTLD_GLOBAL
10527 #else
10528 # ifdef DL_GLOBAL
10529 # define LT_DLGLOBAL DL_GLOBAL
10530 # else
10531 # define LT_DLGLOBAL 0
10532 # endif
10533 #endif
10535 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10536 find out it does not work in some platform. */
10537 #ifndef LT_DLLAZY_OR_NOW
10538 # ifdef RTLD_LAZY
10539 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10540 # else
10541 # ifdef DL_LAZY
10542 # define LT_DLLAZY_OR_NOW DL_LAZY
10543 # else
10544 # ifdef RTLD_NOW
10545 # define LT_DLLAZY_OR_NOW RTLD_NOW
10546 # else
10547 # ifdef DL_NOW
10548 # define LT_DLLAZY_OR_NOW DL_NOW
10549 # else
10550 # define LT_DLLAZY_OR_NOW 0
10551 # endif
10552 # endif
10553 # endif
10554 # endif
10555 #endif
10557 #ifdef __cplusplus
10558 extern "C" void exit (int);
10559 #endif
10561 void fnord() { int i=42;}
10562 int main ()
10564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10565 int status = $lt_dlunknown;
10567 if (self)
10569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10570 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10571 /* dlclose (self); */
10574 exit (status);
10577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10578 (eval $ac_link) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10582 (./conftest; exit; ) 2>/dev/null
10583 lt_status=$?
10584 case x$lt_status in
10585 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10586 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10587 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10588 esac
10589 else :
10590 # compilation failed
10591 lt_cv_dlopen_self_static=no
10594 rm -fr conftest*
10598 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10599 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10602 CPPFLAGS="$save_CPPFLAGS"
10603 LDFLAGS="$save_LDFLAGS"
10604 LIBS="$save_LIBS"
10606 esac
10608 case $lt_cv_dlopen_self in
10609 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10610 *) enable_dlopen_self=unknown ;;
10611 esac
10613 case $lt_cv_dlopen_self_static in
10614 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10615 *) enable_dlopen_self_static=unknown ;;
10616 esac
10620 # Report which librarie types wil actually be built
10621 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10622 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10623 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10624 echo "${ECHO_T}$can_build_shared" >&6
10626 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10627 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10628 test "$can_build_shared" = "no" && enable_shared=no
10630 # On AIX, shared libraries and static libraries use the same namespace, and
10631 # are all built from PIC.
10632 case "$host_os" in
10633 aix3*)
10634 test "$enable_shared" = yes && enable_static=no
10635 if test -n "$RANLIB"; then
10636 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10637 postinstall_cmds='$RANLIB $lib'
10641 aix4* | aix5*)
10642 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10643 test "$enable_shared" = yes && enable_static=no
10646 esac
10647 echo "$as_me:$LINENO: result: $enable_shared" >&5
10648 echo "${ECHO_T}$enable_shared" >&6
10650 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10651 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10652 # Make sure either enable_shared or enable_static is yes.
10653 test "$enable_shared" = yes || enable_static=yes
10654 echo "$as_me:$LINENO: result: $enable_static" >&5
10655 echo "${ECHO_T}$enable_static" >&6
10657 # The else clause should only fire when bootstrapping the
10658 # libtool distribution, otherwise you forgot to ship ltmain.sh
10659 # with your package, and you will get complaints that there are
10660 # no rules to generate ltmain.sh.
10661 if test -f "$ltmain"; then
10662 # See if we are running on zsh, and set the options which allow our commands through
10663 # without removal of \ escapes.
10664 if test -n "${ZSH_VERSION+set}" ; then
10665 setopt NO_GLOB_SUBST
10667 # Now quote all the things that may contain metacharacters while being
10668 # careful not to overquote the AC_SUBSTed values. We take copies of the
10669 # variables and quote the copies for generation of the libtool script.
10670 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10671 SED SHELL STRIP \
10672 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10673 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10674 deplibs_check_method reload_flag reload_cmds need_locks \
10675 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10676 lt_cv_sys_global_symbol_to_c_name_address \
10677 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10678 old_postinstall_cmds old_postuninstall_cmds \
10679 compiler \
10680 CC \
10681 LD \
10682 lt_prog_compiler_wl \
10683 lt_prog_compiler_pic \
10684 lt_prog_compiler_static \
10685 lt_prog_compiler_no_builtin_flag \
10686 export_dynamic_flag_spec \
10687 thread_safe_flag_spec \
10688 whole_archive_flag_spec \
10689 enable_shared_with_static_runtimes \
10690 old_archive_cmds \
10691 old_archive_from_new_cmds \
10692 predep_objects \
10693 postdep_objects \
10694 predeps \
10695 postdeps \
10696 compiler_lib_search_path \
10697 archive_cmds \
10698 archive_expsym_cmds \
10699 postinstall_cmds \
10700 postuninstall_cmds \
10701 old_archive_from_expsyms_cmds \
10702 allow_undefined_flag \
10703 no_undefined_flag \
10704 export_symbols_cmds \
10705 hardcode_libdir_flag_spec \
10706 hardcode_libdir_flag_spec_ld \
10707 hardcode_libdir_separator \
10708 hardcode_automatic \
10709 module_cmds \
10710 module_expsym_cmds \
10711 lt_cv_prog_compiler_c_o \
10712 exclude_expsyms \
10713 include_expsyms; do
10715 case $var in
10716 old_archive_cmds | \
10717 old_archive_from_new_cmds | \
10718 archive_cmds | \
10719 archive_expsym_cmds | \
10720 module_cmds | \
10721 module_expsym_cmds | \
10722 old_archive_from_expsyms_cmds | \
10723 export_symbols_cmds | \
10724 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10725 postinstall_cmds | postuninstall_cmds | \
10726 old_postinstall_cmds | old_postuninstall_cmds | \
10727 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10728 # Double-quote double-evaled strings.
10729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10734 esac
10735 done
10737 case $lt_echo in
10738 *'\$0 --fallback-echo"')
10739 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10741 esac
10743 cfgfile="${ofile}T"
10744 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10745 $rm -f "$cfgfile"
10746 { echo "$as_me:$LINENO: creating $ofile" >&5
10747 echo "$as_me: creating $ofile" >&6;}
10749 cat <<__EOF__ >> "$cfgfile"
10750 #! $SHELL
10752 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10753 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10754 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10756 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10757 # Free Software Foundation, Inc.
10759 # This file is part of GNU Libtool:
10760 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10762 # This program is free software; you can redistribute it and/or modify
10763 # it under the terms of the GNU General Public License as published by
10764 # the Free Software Foundation; either version 2 of the License, or
10765 # (at your option) any later version.
10767 # This program is distributed in the hope that it will be useful, but
10768 # WITHOUT ANY WARRANTY; without even the implied warranty of
10769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10770 # General Public License for more details.
10772 # You should have received a copy of the GNU General Public License
10773 # along with this program; if not, write to the Free Software
10774 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10776 # As a special exception to the GNU General Public License, if you
10777 # distribute this file as part of a program that contains a
10778 # configuration script generated by Autoconf, you may include it under
10779 # the same distribution terms that you use for the rest of that program.
10781 # A sed program that does not truncate output.
10782 SED=$lt_SED
10784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10785 Xsed="$SED -e s/^X//"
10787 # The HP-UX ksh and POSIX shell print the target directory to stdout
10788 # if CDPATH is set.
10789 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10791 # The names of the tagged configurations supported by this script.
10792 available_tags=
10794 # ### BEGIN LIBTOOL CONFIG
10796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10798 # Shell to use when invoking shell scripts.
10799 SHELL=$lt_SHELL
10801 # Whether or not to build shared libraries.
10802 build_libtool_libs=$enable_shared
10804 # Whether or not to build static libraries.
10805 build_old_libs=$enable_static
10807 # Whether or not to add -lc for building shared libraries.
10808 build_libtool_need_lc=$archive_cmds_need_lc
10810 # Whether or not to disallow shared libs when runtime libs are static
10811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10813 # Whether or not to optimize for fast installation.
10814 fast_install=$enable_fast_install
10816 # The host system.
10817 host_alias=$host_alias
10818 host=$host
10819 host_os=$host_os
10821 # The build system.
10822 build_alias=$build_alias
10823 build=$build
10824 build_os=$build_os
10826 # An echo program that does not interpret backslashes.
10827 echo=$lt_echo
10829 # The archiver.
10830 AR=$lt_AR
10831 AR_FLAGS=$lt_AR_FLAGS
10833 # A C compiler.
10834 LTCC=$lt_LTCC
10836 # A language-specific compiler.
10837 CC=$lt_compiler
10839 # Is the compiler the GNU C compiler?
10840 with_gcc=$GCC
10842 # An ERE matcher.
10843 EGREP=$lt_EGREP
10845 # The linker used to build libraries.
10846 LD=$lt_LD
10848 # Whether we need hard or soft links.
10849 LN_S=$lt_LN_S
10851 # A BSD-compatible nm program.
10852 NM=$lt_NM
10854 # A symbol stripping program
10855 STRIP=$lt_STRIP
10857 # Used to examine libraries when file_magic_cmd begins "file"
10858 MAGIC_CMD=$MAGIC_CMD
10860 # Used on cygwin: DLL creation program.
10861 DLLTOOL="$DLLTOOL"
10863 # Used on cygwin: object dumper.
10864 OBJDUMP="$OBJDUMP"
10866 # Used on cygwin: assembler.
10867 AS="$AS"
10869 # The name of the directory that contains temporary libtool files.
10870 objdir=$objdir
10872 # How to create reloadable object files.
10873 reload_flag=$lt_reload_flag
10874 reload_cmds=$lt_reload_cmds
10876 # How to pass a linker flag through the compiler.
10877 wl=$lt_lt_prog_compiler_wl
10879 # Object file suffix (normally "o").
10880 objext="$ac_objext"
10882 # Old archive suffix (normally "a").
10883 libext="$libext"
10885 # Shared library suffix (normally ".so").
10886 shrext_cmds='$shrext_cmds'
10888 # Executable file suffix (normally "").
10889 exeext="$exeext"
10891 # Additional compiler flags for building library objects.
10892 pic_flag=$lt_lt_prog_compiler_pic
10893 pic_mode=$pic_mode
10895 # What is the maximum length of a command?
10896 max_cmd_len=$lt_cv_sys_max_cmd_len
10898 # Does compiler simultaneously support -c and -o options?
10899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10901 # Must we lock files when doing compilation ?
10902 need_locks=$lt_need_locks
10904 # Do we need the lib prefix for modules?
10905 need_lib_prefix=$need_lib_prefix
10907 # Do we need a version for libraries?
10908 need_version=$need_version
10910 # Whether dlopen is supported.
10911 dlopen_support=$enable_dlopen
10913 # Whether dlopen of programs is supported.
10914 dlopen_self=$enable_dlopen_self
10916 # Whether dlopen of statically linked programs is supported.
10917 dlopen_self_static=$enable_dlopen_self_static
10919 # Compiler flag to prevent dynamic linking.
10920 link_static_flag=$lt_lt_prog_compiler_static
10922 # Compiler flag to turn off builtin functions.
10923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10925 # Compiler flag to allow reflexive dlopens.
10926 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10928 # Compiler flag to generate shared objects directly from archives.
10929 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10931 # Compiler flag to generate thread-safe objects.
10932 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10934 # Library versioning type.
10935 version_type=$version_type
10937 # Format of library name prefix.
10938 libname_spec=$lt_libname_spec
10940 # List of archive names. First name is the real one, the rest are links.
10941 # The last name is the one that the linker finds with -lNAME.
10942 library_names_spec=$lt_library_names_spec
10944 # The coded name of the library, if different from the real name.
10945 soname_spec=$lt_soname_spec
10947 # Commands used to build and install an old-style archive.
10948 RANLIB=$lt_RANLIB
10949 old_archive_cmds=$lt_old_archive_cmds
10950 old_postinstall_cmds=$lt_old_postinstall_cmds
10951 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10953 # Create an old-style archive from a shared archive.
10954 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10956 # Create a temporary old-style archive to link instead of a shared archive.
10957 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10959 # Commands used to build and install a shared archive.
10960 archive_cmds=$lt_archive_cmds
10961 archive_expsym_cmds=$lt_archive_expsym_cmds
10962 postinstall_cmds=$lt_postinstall_cmds
10963 postuninstall_cmds=$lt_postuninstall_cmds
10965 # Commands used to build a loadable module (assumed same as above if empty)
10966 module_cmds=$lt_module_cmds
10967 module_expsym_cmds=$lt_module_expsym_cmds
10969 # Commands to strip libraries.
10970 old_striplib=$lt_old_striplib
10971 striplib=$lt_striplib
10973 # Dependencies to place before the objects being linked to create a
10974 # shared library.
10975 predep_objects=$lt_predep_objects
10977 # Dependencies to place after the objects being linked to create a
10978 # shared library.
10979 postdep_objects=$lt_postdep_objects
10981 # Dependencies to place before the objects being linked to create a
10982 # shared library.
10983 predeps=$lt_predeps
10985 # Dependencies to place after the objects being linked to create a
10986 # shared library.
10987 postdeps=$lt_postdeps
10989 # The library search path used internally by the compiler when linking
10990 # a shared library.
10991 compiler_lib_search_path=$lt_compiler_lib_search_path
10993 # Method to check whether dependent libraries are shared objects.
10994 deplibs_check_method=$lt_deplibs_check_method
10996 # Command to use when deplibs_check_method == file_magic.
10997 file_magic_cmd=$lt_file_magic_cmd
10999 # Flag that allows shared libraries with undefined symbols to be built.
11000 allow_undefined_flag=$lt_allow_undefined_flag
11002 # Flag that forces no undefined symbols.
11003 no_undefined_flag=$lt_no_undefined_flag
11005 # Commands used to finish a libtool library installation in a directory.
11006 finish_cmds=$lt_finish_cmds
11008 # Same as above, but a single script fragment to be evaled but not shown.
11009 finish_eval=$lt_finish_eval
11011 # Take the output of nm and produce a listing of raw symbols and C names.
11012 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11014 # Transform the output of nm in a proper C declaration
11015 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11017 # Transform the output of nm in a C name address pair
11018 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11020 # This is the shared library runtime path variable.
11021 runpath_var=$runpath_var
11023 # This is the shared library path variable.
11024 shlibpath_var=$shlibpath_var
11026 # Is shlibpath searched before the hard-coded library search path?
11027 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11029 # How to hardcode a shared library path into an executable.
11030 hardcode_action=$hardcode_action
11032 # Whether we should hardcode library paths into libraries.
11033 hardcode_into_libs=$hardcode_into_libs
11035 # Flag to hardcode \$libdir into a binary during linking.
11036 # This must work even if \$libdir does not exist.
11037 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11039 # If ld is used when linking, flag to hardcode \$libdir into
11040 # a binary during linking. This must work even if \$libdir does
11041 # not exist.
11042 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11044 # Whether we need a single -rpath flag with a separated argument.
11045 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11047 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11048 # resulting binary.
11049 hardcode_direct=$hardcode_direct
11051 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11052 # resulting binary.
11053 hardcode_minus_L=$hardcode_minus_L
11055 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11056 # the resulting binary.
11057 hardcode_shlibpath_var=$hardcode_shlibpath_var
11059 # Set to yes if building a shared library automatically hardcodes DIR into the library
11060 # and all subsequent libraries and executables linked against it.
11061 hardcode_automatic=$hardcode_automatic
11063 # Variables whose values should be saved in libtool wrapper scripts and
11064 # restored at relink time.
11065 variables_saved_for_relink="$variables_saved_for_relink"
11067 # Whether libtool must link a program against all its dependency libraries.
11068 link_all_deplibs=$link_all_deplibs
11070 # Compile-time system search path for libraries
11071 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11073 # Run-time system search path for libraries
11074 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11076 # Fix the shell variable \$srcfile for the compiler.
11077 fix_srcfile_path="$fix_srcfile_path"
11079 # Set to yes if exported symbols are required.
11080 always_export_symbols=$always_export_symbols
11082 # The commands to list exported symbols.
11083 export_symbols_cmds=$lt_export_symbols_cmds
11085 # The commands to extract the exported symbol list from a shared archive.
11086 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11088 # Symbols that should not be listed in the preloaded symbols.
11089 exclude_expsyms=$lt_exclude_expsyms
11091 # Symbols that must always be exported.
11092 include_expsyms=$lt_include_expsyms
11094 # ### END LIBTOOL CONFIG
11096 __EOF__
11099 case $host_os in
11100 aix3*)
11101 cat <<\EOF >> "$cfgfile"
11103 # AIX sometimes has problems with the GCC collect2 program. For some
11104 # reason, if we set the COLLECT_NAMES environment variable, the problems
11105 # vanish in a puff of smoke.
11106 if test "X${COLLECT_NAMES+set}" != Xset; then
11107 COLLECT_NAMES=
11108 export COLLECT_NAMES
11112 esac
11114 # We use sed instead of cat because bash on DJGPP gets confused if
11115 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11116 # text mode, it properly converts lines to CR/LF. This bash problem
11117 # is reportedly fixed, but why not run on old versions too?
11118 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11120 mv -f "$cfgfile" "$ofile" || \
11121 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11122 chmod +x "$ofile"
11124 else
11125 # If there is no Makefile yet, we rely on a make rule to execute
11126 # `config.status --recheck' to rerun these tests and create the
11127 # libtool script then.
11128 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11129 if test -f "$ltmain_in"; then
11130 test -f Makefile && make "$ltmain"
11135 ac_ext=c
11136 ac_cpp='$CPP $CPPFLAGS'
11137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11141 CC="$lt_save_CC"
11144 # Check whether --with-tags or --without-tags was given.
11145 if test "${with_tags+set}" = set; then
11146 withval="$with_tags"
11147 tagnames="$withval"
11150 if test -f "$ltmain" && test -n "$tagnames"; then
11151 if test ! -f "${ofile}"; then
11152 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11153 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11156 if test -z "$LTCC"; then
11157 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11158 if test -z "$LTCC"; then
11159 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11160 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11161 else
11162 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11163 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11167 # Extract list of available tagged configurations in $ofile.
11168 # Note that this assumes the entire list is on one line.
11169 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11172 for tagname in $tagnames; do
11173 IFS="$lt_save_ifs"
11174 # Check whether tagname contains only valid characters
11175 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11176 "") ;;
11177 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11178 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11179 { (exit 1); exit 1; }; }
11181 esac
11183 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11184 then
11185 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11186 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11187 { (exit 1); exit 1; }; }
11190 # Update the list of available tags.
11191 if test -n "$tagname"; then
11192 echo appending configuration tag \"$tagname\" to $ofile
11194 case $tagname in
11195 CXX)
11196 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11197 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11198 (test "X$CXX" != "Xg++"))) ; then
11199 ac_ext=cc
11200 ac_cpp='$CXXCPP $CPPFLAGS'
11201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11208 archive_cmds_need_lc_CXX=no
11209 allow_undefined_flag_CXX=
11210 always_export_symbols_CXX=no
11211 archive_expsym_cmds_CXX=
11212 export_dynamic_flag_spec_CXX=
11213 hardcode_direct_CXX=no
11214 hardcode_libdir_flag_spec_CXX=
11215 hardcode_libdir_flag_spec_ld_CXX=
11216 hardcode_libdir_separator_CXX=
11217 hardcode_minus_L_CXX=no
11218 hardcode_automatic_CXX=no
11219 module_cmds_CXX=
11220 module_expsym_cmds_CXX=
11221 link_all_deplibs_CXX=unknown
11222 old_archive_cmds_CXX=$old_archive_cmds
11223 no_undefined_flag_CXX=
11224 whole_archive_flag_spec_CXX=
11225 enable_shared_with_static_runtimes_CXX=no
11227 # Dependencies to place before and after the object being linked:
11228 predep_objects_CXX=
11229 postdep_objects_CXX=
11230 predeps_CXX=
11231 postdeps_CXX=
11232 compiler_lib_search_path_CXX=
11234 # Source file extension for C++ test sources.
11235 ac_ext=cc
11237 # Object file extension for compiled C++ test sources.
11238 objext=o
11239 objext_CXX=$objext
11241 # Code to be used in simple compile tests
11242 lt_simple_compile_test_code="int some_variable = 0;\n"
11244 # Code to be used in simple link tests
11245 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11247 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11249 # If no C compiler was specified, use CC.
11250 LTCC=${LTCC-"$CC"}
11252 # Allow CC to be a program name with arguments.
11253 compiler=$CC
11256 # Allow CC to be a program name with arguments.
11257 lt_save_CC=$CC
11258 lt_save_LD=$LD
11259 lt_save_GCC=$GCC
11260 GCC=$GXX
11261 lt_save_with_gnu_ld=$with_gnu_ld
11262 lt_save_path_LD=$lt_cv_path_LD
11263 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11264 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11265 else
11266 unset lt_cv_prog_gnu_ld
11268 if test -n "${lt_cv_path_LDCXX+set}"; then
11269 lt_cv_path_LD=$lt_cv_path_LDCXX
11270 else
11271 unset lt_cv_path_LD
11273 test -z "${LDCXX+set}" || LD=$LDCXX
11274 CC=${CXX-"c++"}
11275 compiler=$CC
11276 compiler_CXX=$CC
11277 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11279 # We don't want -fno-exception wen compiling C++ code, so set the
11280 # no_builtin_flag separately
11281 if test "$GXX" = yes; then
11282 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11283 else
11284 lt_prog_compiler_no_builtin_flag_CXX=
11287 if test "$GXX" = yes; then
11288 # Set up default GNU C++ configuration
11291 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11292 if test "${with_gnu_ld+set}" = set; then
11293 withval="$with_gnu_ld"
11294 test "$withval" = no || with_gnu_ld=yes
11295 else
11296 with_gnu_ld=no
11298 ac_prog=ld
11299 if test "$GCC" = yes; then
11300 # Check if gcc -print-prog-name=ld gives a path.
11301 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11302 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11303 case $host in
11304 *-*-mingw*)
11305 # gcc leaves a trailing carriage return which upsets mingw
11306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11309 esac
11310 case $ac_prog in
11311 # Accept absolute paths.
11312 [\\/]* | ?:[\\/]*)
11313 re_direlt='/[^/][^/]*/\.\./'
11314 # Canonicalize the pathname of ld
11315 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11317 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11318 done
11319 test -z "$LD" && LD="$ac_prog"
11322 # If it fails, then pretend we aren't using GCC.
11323 ac_prog=ld
11326 # If it is relative, then search for the first ld in PATH.
11327 with_gnu_ld=unknown
11329 esac
11330 elif test "$with_gnu_ld" = yes; then
11331 echo "$as_me:$LINENO: checking for GNU ld" >&5
11332 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11333 else
11334 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11335 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11337 if test "${lt_cv_path_LD+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 if test -z "$LD"; then
11341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11342 for ac_dir in $PATH; do
11343 IFS="$lt_save_ifs"
11344 test -z "$ac_dir" && ac_dir=.
11345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11346 lt_cv_path_LD="$ac_dir/$ac_prog"
11347 # Check to see if the program is GNU ld. I'd rather use --version,
11348 # but apparently some GNU ld's only accept -v.
11349 # Break only if it was the GNU/non-GNU ld that we prefer.
11350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11351 *GNU* | *'with BFD'*)
11352 test "$with_gnu_ld" != no && break
11355 test "$with_gnu_ld" != yes && break
11357 esac
11359 done
11360 IFS="$lt_save_ifs"
11361 else
11362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11366 LD="$lt_cv_path_LD"
11367 if test -n "$LD"; then
11368 echo "$as_me:$LINENO: result: $LD" >&5
11369 echo "${ECHO_T}$LD" >&6
11370 else
11371 echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11374 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11375 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11376 { (exit 1); exit 1; }; }
11377 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11378 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385 lt_cv_prog_gnu_ld=yes
11388 lt_cv_prog_gnu_ld=no
11390 esac
11392 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11393 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11398 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11399 # archiving commands below assume that GNU ld is being used.
11400 if test "$with_gnu_ld" = yes; then
11401 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11404 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11407 # If archive_cmds runs LD, not CC, wlarc should be empty
11408 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11409 # investigate it a little bit more. (MM)
11410 wlarc='${wl}'
11412 # ancient GNU ld didn't support --whole-archive et. al.
11413 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11414 grep 'no-whole-archive' > /dev/null; then
11415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11416 else
11417 whole_archive_flag_spec_CXX=
11419 else
11420 with_gnu_ld=no
11421 wlarc=
11423 # A generic and very simple default shared library creation
11424 # command for GNU C++ for the case where it uses the native
11425 # linker, instead of GNU ld. If possible, this setting should
11426 # overridden to take advantage of the native linker features on
11427 # the platform it is being used on.
11428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11431 # Commands to make compiler produce verbose output that lists
11432 # what "hidden" libraries, object files and flags are used when
11433 # linking a shared library.
11434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11436 else
11437 GXX=no
11438 with_gnu_ld=no
11439 wlarc=
11442 # PORTME: fill in a description of your system's C++ link characteristics
11443 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11444 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11445 ld_shlibs_CXX=yes
11446 case $host_os in
11447 aix3*)
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11451 aix4* | aix5*)
11452 if test "$host_cpu" = ia64; then
11453 # On IA64, the linker does run time linking by default, so we don't
11454 # have to do anything special.
11455 aix_use_runtimelinking=no
11456 exp_sym_flag='-Bexport'
11457 no_entry_flag=""
11458 else
11459 aix_use_runtimelinking=no
11461 # Test if we are trying to use run time linking or normal
11462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11463 # need to do runtime linking.
11464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11465 for ld_flag in $LDFLAGS; do
11466 case $ld_flag in
11467 *-brtl*)
11468 aix_use_runtimelinking=yes
11469 break
11471 esac
11472 done
11473 esac
11475 exp_sym_flag='-bexport'
11476 no_entry_flag='-bnoentry'
11479 # When large executables or shared objects are built, AIX ld can
11480 # have problems creating the table of contents. If linking a library
11481 # or program results in "error TOC overflow" add -mminimal-toc to
11482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11485 archive_cmds_CXX=''
11486 hardcode_direct_CXX=yes
11487 hardcode_libdir_separator_CXX=':'
11488 link_all_deplibs_CXX=yes
11490 if test "$GXX" = yes; then
11491 case $host_os in aix4.[012]|aix4.[012].*)
11492 # We only want to do this on AIX 4.2 and lower, the check
11493 # below for broken collect2 doesn't work under 4.3+
11494 collect2name=`${CC} -print-prog-name=collect2`
11495 if test -f "$collect2name" && \
11496 strings "$collect2name" | grep resolve_lib_name >/dev/null
11497 then
11498 # We have reworked collect2
11499 hardcode_direct_CXX=yes
11500 else
11501 # We have old collect2
11502 hardcode_direct_CXX=unsupported
11503 # It fails to find uninstalled libraries when the uninstalled
11504 # path is not listed in the libpath. Setting hardcode_minus_L
11505 # to unsupported forces relinking
11506 hardcode_minus_L_CXX=yes
11507 hardcode_libdir_flag_spec_CXX='-L$libdir'
11508 hardcode_libdir_separator_CXX=
11510 esac
11511 shared_flag='-shared'
11512 if test "$aix_use_runtimelinking" = yes; then
11513 shared_flag="$shared_flag "'${wl}-G'
11515 else
11516 # not using gcc
11517 if test "$host_cpu" = ia64; then
11518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519 # chokes on -Wl,-G. The following line is correct:
11520 shared_flag='-G'
11521 else
11522 if test "$aix_use_runtimelinking" = yes; then
11523 shared_flag='${wl}-G'
11524 else
11525 shared_flag='${wl}-bM:SRE'
11530 # It seems that -bexpall does not export symbols beginning with
11531 # underscore (_), so it is better to generate a list of symbols to export.
11532 always_export_symbols_CXX=yes
11533 if test "$aix_use_runtimelinking" = yes; then
11534 # Warning - without using the other runtime loading flags (-brtl),
11535 # -berok will link without error, but may produce a broken library.
11536 allow_undefined_flag_CXX='-berok'
11537 # Determine the default libpath from the value encoded in an empty executable.
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11546 main ()
11550 return 0;
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_cxx_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest$ac_exeext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11578 # Check for a 64-bit object if we didn't find anything.
11579 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11580 }'`; fi
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11586 rm -f conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11590 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11592 archive_expsym_cmds_CXX="\$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"
11593 else
11594 if test "$host_cpu" = ia64; then
11595 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596 allow_undefined_flag_CXX="-z nodefs"
11597 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11598 else
11599 # Determine the default libpath from the value encoded in an empty executable.
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11608 main ()
11612 return 0;
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617 (eval $ac_link) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_cxx_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11640 # Check for a 64-bit object if we didn't find anything.
11641 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11642 }'`; fi
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11648 rm -f conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11652 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653 # Warning - without using the other run time loading flags,
11654 # -berok will link without error, but may produce a broken library.
11655 no_undefined_flag_CXX=' ${wl}-bernotok'
11656 allow_undefined_flag_CXX=' ${wl}-berok'
11657 # -bexpall does not export symbols beginning with underscore (_)
11658 always_export_symbols_CXX=yes
11659 # Exported symbols can be pulled into shared objects from archives
11660 whole_archive_flag_spec_CXX=' '
11661 archive_cmds_need_lc_CXX=yes
11662 # This is similar to how AIX traditionally builds it's shared libraries.
11663 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11667 chorus*)
11668 case $cc_basename in
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11673 esac
11677 cygwin* | mingw* | pw32*)
11678 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11679 # as there is no search path for DLLs.
11680 hardcode_libdir_flag_spec_CXX='-L$libdir'
11681 allow_undefined_flag_CXX=unsupported
11682 always_export_symbols_CXX=no
11683 enable_shared_with_static_runtimes_CXX=yes
11685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11687 # If the export-symbols file already is a .def file (1st line
11688 # is EXPORTS), use it as is; otherwise, prepend...
11689 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11690 cp $export_symbols $output_objdir/$soname.def;
11691 else
11692 echo EXPORTS > $output_objdir/$soname.def;
11693 cat $export_symbols >> $output_objdir/$soname.def;
11695 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11696 else
11697 ld_shlibs_CXX=no
11700 darwin* | rhapsody*)
11701 case "$host_os" in
11702 rhapsody* | darwin1.[012])
11703 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11705 *) # Darwin 1.3 on
11706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11707 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11708 else
11709 case ${MACOSX_DEPLOYMENT_TARGET} in
11710 10.[012])
11711 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11713 10.*)
11714 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11716 esac
11719 esac
11720 archive_cmds_need_lc_CXX=no
11721 hardcode_direct_CXX=no
11722 hardcode_automatic_CXX=yes
11723 hardcode_shlibpath_var_CXX=unsupported
11724 whole_archive_flag_spec_CXX=''
11725 link_all_deplibs_CXX=yes
11727 if test "$GXX" = yes ; then
11728 lt_int_apple_cc_single_mod=no
11729 output_verbose_link_cmd='echo'
11730 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11731 lt_int_apple_cc_single_mod=yes
11733 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11734 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11735 else
11736 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11738 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11740 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11741 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11742 else
11743 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11745 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11746 else
11747 case "$cc_basename" in
11748 xlc*)
11749 output_verbose_link_cmd='echo'
11750 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11751 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11752 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11753 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11754 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11757 ld_shlibs_CXX=no
11759 esac
11763 dgux*)
11764 case $cc_basename in
11765 ec++)
11766 # FIXME: insert proper C++ library support
11767 ld_shlibs_CXX=no
11769 ghcx)
11770 # Green Hills C++ Compiler
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11775 # FIXME: insert proper C++ library support
11776 ld_shlibs_CXX=no
11778 esac
11780 freebsd[12]*)
11781 # C++ shared libraries reported to be fairly broken before switch to ELF
11782 ld_shlibs_CXX=no
11784 freebsd-elf*)
11785 archive_cmds_need_lc_CXX=no
11787 freebsd* | kfreebsd*-gnu | dragonfly*)
11788 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11789 # conventions
11790 ld_shlibs_CXX=yes
11792 gnu*)
11794 hpux9*)
11795 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11796 hardcode_libdir_separator_CXX=:
11797 export_dynamic_flag_spec_CXX='${wl}-E'
11798 hardcode_direct_CXX=yes
11799 hardcode_minus_L_CXX=yes # Not in the search PATH,
11800 # but as the default
11801 # location of the library.
11803 case $cc_basename in
11805 # FIXME: insert proper C++ library support
11806 ld_shlibs_CXX=no
11808 aCC)
11809 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11810 # Commands to make compiler produce verbose output that lists
11811 # what "hidden" libraries, object files and flags are used when
11812 # linking a shared library.
11814 # There doesn't appear to be a way to prevent this compiler from
11815 # explicitly linking system object files so we need to strip them
11816 # from the output so that they don't get included in the library
11817 # dependencies.
11818 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11821 if test "$GXX" = yes; then
11822 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11823 else
11824 # FIXME: insert proper C++ library support
11825 ld_shlibs_CXX=no
11828 esac
11830 hpux10*|hpux11*)
11831 if test $with_gnu_ld = no; then
11832 case "$host_cpu" in
11833 hppa*64*)
11834 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11835 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11836 hardcode_libdir_separator_CXX=:
11838 ia64*)
11839 hardcode_libdir_flag_spec_CXX='-L$libdir'
11842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11843 hardcode_libdir_separator_CXX=:
11844 export_dynamic_flag_spec_CXX='${wl}-E'
11846 esac
11848 case "$host_cpu" in
11849 hppa*64*)
11850 hardcode_direct_CXX=no
11851 hardcode_shlibpath_var_CXX=no
11853 ia64*)
11854 hardcode_direct_CXX=no
11855 hardcode_shlibpath_var_CXX=no
11856 hardcode_minus_L_CXX=yes # Not in the search PATH,
11857 # but as the default
11858 # location of the library.
11861 hardcode_direct_CXX=yes
11862 hardcode_minus_L_CXX=yes # Not in the search PATH,
11863 # but as the default
11864 # location of the library.
11866 esac
11868 case $cc_basename in
11870 # FIXME: insert proper C++ library support
11871 ld_shlibs_CXX=no
11873 aCC)
11874 case "$host_cpu" in
11875 hppa*64*|ia64*)
11876 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11881 esac
11882 # Commands to make compiler produce verbose output that lists
11883 # what "hidden" libraries, object files and flags are used when
11884 # linking a shared library.
11886 # There doesn't appear to be a way to prevent this compiler from
11887 # explicitly linking system object files so we need to strip them
11888 # from the output so that they don't get included in the library
11889 # dependencies.
11890 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11893 if test "$GXX" = yes; then
11894 if test $with_gnu_ld = no; then
11895 case "$host_cpu" in
11896 ia64*|hppa*64*)
11897 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11902 esac
11904 else
11905 # FIXME: insert proper C++ library support
11906 ld_shlibs_CXX=no
11909 esac
11911 irix5* | irix6*)
11912 case $cc_basename in
11914 # SGI C++
11915 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11917 # Archives containing C++ object files must be created using
11918 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11919 # necessary to make sure instantiated templates are included
11920 # in the archive.
11921 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11924 if test "$GXX" = yes; then
11925 if test "$with_gnu_ld" = no; then
11926 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11927 else
11928 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11931 link_all_deplibs_CXX=yes
11933 esac
11934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11935 hardcode_libdir_separator_CXX=:
11937 linux*)
11938 case $cc_basename in
11939 KCC)
11940 # Kuck and Associates, Inc. (KAI) C++ Compiler
11942 # KCC will only create a shared library if the output file
11943 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11944 # to its proper name (with version) after linking.
11945 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11946 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11947 # Commands to make compiler produce verbose output that lists
11948 # what "hidden" libraries, object files and flags are used when
11949 # linking a shared library.
11951 # There doesn't appear to be a way to prevent this compiler from
11952 # explicitly linking system object files so we need to strip them
11953 # from the output so that they don't get included in the library
11954 # dependencies.
11955 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11957 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11958 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960 # Archives containing C++ object files must be created using
11961 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11962 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11964 icpc)
11965 # Intel C++
11966 with_gnu_ld=yes
11967 # version 8.0 and above of icpc choke on multiply defined symbols
11968 # if we add $predep_objects and $postdep_objects, however 7.1 and
11969 # earlier do not add the objects themselves.
11970 case `$CC -V 2>&1` in
11971 *"Version 7."*)
11972 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11973 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11975 *) # Version 8.0 or newer
11976 tmp_idyn=
11977 case $host_cpu in
11978 ia64*) tmp_idyn=' -i_dynamic';;
11979 esac
11980 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11981 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11983 esac
11984 archive_cmds_need_lc_CXX=no
11985 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11989 pgCC)
11990 # Portland Group C++ compiler
11991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11992 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11994 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11997 cxx)
11998 # Compaq C++
11999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12000 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12002 runpath_var=LD_RUN_PATH
12003 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12004 hardcode_libdir_separator_CXX=:
12006 # Commands to make compiler produce verbose output that lists
12007 # what "hidden" libraries, object files and flags are used when
12008 # linking a shared library.
12010 # There doesn't appear to be a way to prevent this compiler from
12011 # explicitly linking system object files so we need to strip them
12012 # from the output so that they don't get included in the library
12013 # dependencies.
12014 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12016 esac
12018 lynxos*)
12019 # FIXME: insert proper C++ library support
12020 ld_shlibs_CXX=no
12022 m88k*)
12023 # FIXME: insert proper C++ library support
12024 ld_shlibs_CXX=no
12026 mvs*)
12027 case $cc_basename in
12028 cxx)
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12036 esac
12038 netbsd*)
12039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12040 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12041 wlarc=
12042 hardcode_libdir_flag_spec_CXX='-R$libdir'
12043 hardcode_direct_CXX=yes
12044 hardcode_shlibpath_var_CXX=no
12046 # Workaround some broken pre-1.5 toolchains
12047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12049 openbsd2*)
12050 # C++ shared libraries are fairly broken
12051 ld_shlibs_CXX=no
12053 openbsd*)
12054 hardcode_direct_CXX=yes
12055 hardcode_shlibpath_var_CXX=no
12056 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12059 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12060 export_dynamic_flag_spec_CXX='${wl}-E'
12061 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12063 output_verbose_link_cmd='echo'
12065 osf3*)
12066 case $cc_basename in
12067 KCC)
12068 # Kuck and Associates, Inc. (KAI) C++ Compiler
12070 # KCC will only create a shared library if the output file
12071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12072 # to its proper name (with version) after linking.
12073 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12076 hardcode_libdir_separator_CXX=:
12078 # Archives containing C++ object files must be created using
12079 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12080 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12083 RCC)
12084 # Rational C++ 2.4.1
12085 # FIXME: insert proper C++ library support
12086 ld_shlibs_CXX=no
12088 cxx)
12089 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12090 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12092 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12093 hardcode_libdir_separator_CXX=:
12095 # Commands to make compiler produce verbose output that lists
12096 # what "hidden" libraries, object files and flags are used when
12097 # linking a shared library.
12099 # There doesn't appear to be a way to prevent this compiler from
12100 # explicitly linking system object files so we need to strip them
12101 # from the output so that they don't get included in the library
12102 # dependencies.
12103 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12108 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111 hardcode_libdir_separator_CXX=:
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12118 else
12119 # FIXME: insert proper C++ library support
12120 ld_shlibs_CXX=no
12123 esac
12125 osf4* | osf5*)
12126 case $cc_basename in
12127 KCC)
12128 # Kuck and Associates, Inc. (KAI) C++ Compiler
12130 # KCC will only create a shared library if the output file
12131 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12132 # to its proper name (with version) after linking.
12133 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12136 hardcode_libdir_separator_CXX=:
12138 # Archives containing C++ object files must be created using
12139 # the KAI C++ compiler.
12140 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12142 RCC)
12143 # Rational C++ 2.4.1
12144 # FIXME: insert proper C++ library support
12145 ld_shlibs_CXX=no
12147 cxx)
12148 allow_undefined_flag_CXX=' -expect_unresolved \*'
12149 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12150 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12151 echo "-hidden">> $lib.exp~
12152 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12153 $rm $lib.exp'
12155 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12156 hardcode_libdir_separator_CXX=:
12158 # Commands to make compiler produce verbose output that lists
12159 # what "hidden" libraries, object files and flags are used when
12160 # linking a shared library.
12162 # There doesn't appear to be a way to prevent this compiler from
12163 # explicitly linking system object files so we need to strip them
12164 # from the output so that they don't get included in the library
12165 # dependencies.
12166 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12169 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12171 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12174 hardcode_libdir_separator_CXX=:
12176 # Commands to make compiler produce verbose output that lists
12177 # what "hidden" libraries, object files and flags are used when
12178 # linking a shared library.
12179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12181 else
12182 # FIXME: insert proper C++ library support
12183 ld_shlibs_CXX=no
12186 esac
12188 psos*)
12189 # FIXME: insert proper C++ library support
12190 ld_shlibs_CXX=no
12192 sco*)
12193 archive_cmds_need_lc_CXX=no
12194 case $cc_basename in
12196 # FIXME: insert proper C++ library support
12197 ld_shlibs_CXX=no
12200 # FIXME: insert proper C++ library support
12201 ld_shlibs_CXX=no
12203 esac
12205 sunos4*)
12206 case $cc_basename in
12208 # Sun C++ 4.x
12209 # FIXME: insert proper C++ library support
12210 ld_shlibs_CXX=no
12212 lcc)
12213 # Lucid
12214 # FIXME: insert proper C++ library support
12215 ld_shlibs_CXX=no
12218 # FIXME: insert proper C++ library support
12219 ld_shlibs_CXX=no
12221 esac
12223 solaris*)
12224 case $cc_basename in
12226 # Sun C++ 4.2, 5.x and Centerline C++
12227 no_undefined_flag_CXX=' -zdefs'
12228 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12229 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12230 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12232 hardcode_libdir_flag_spec_CXX='-R$libdir'
12233 hardcode_shlibpath_var_CXX=no
12234 case $host_os in
12235 solaris2.[0-5] | solaris2.[0-5].*) ;;
12237 # The C++ compiler is used as linker so we must use $wl
12238 # flag to pass the commands to the underlying system
12239 # linker.
12240 # Supported since Solaris 2.6 (maybe 2.5.1?)
12241 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12243 esac
12244 link_all_deplibs_CXX=yes
12246 # Commands to make compiler produce verbose output that lists
12247 # what "hidden" libraries, object files and flags are used when
12248 # linking a shared library.
12250 # There doesn't appear to be a way to prevent this compiler from
12251 # explicitly linking system object files so we need to strip them
12252 # from the output so that they don't get included in the library
12253 # dependencies.
12254 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12256 # Archives containing C++ object files must be created using
12257 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12258 # necessary to make sure instantiated templates are included
12259 # in the archive.
12260 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12262 gcx)
12263 # Green Hills C++ Compiler
12264 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12266 # The C++ compiler must be used to create the archive.
12267 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12270 # GNU C++ compiler with Solaris linker
12271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12272 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12273 if $CC --version | grep -v '^2\.7' > /dev/null; then
12274 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12275 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12276 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12278 # Commands to make compiler produce verbose output that lists
12279 # what "hidden" libraries, object files and flags are used when
12280 # linking a shared library.
12281 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12282 else
12283 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12284 # platform.
12285 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12287 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12289 # Commands to make compiler produce verbose output that lists
12290 # what "hidden" libraries, object files and flags are used when
12291 # linking a shared library.
12292 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12295 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12298 esac
12300 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12301 archive_cmds_need_lc_CXX=no
12303 tandem*)
12304 case $cc_basename in
12305 NCC)
12306 # NonStop-UX NCC 3.20
12307 # FIXME: insert proper C++ library support
12308 ld_shlibs_CXX=no
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12314 esac
12316 vxworks*)
12317 # FIXME: insert proper C++ library support
12318 ld_shlibs_CXX=no
12321 # FIXME: insert proper C++ library support
12322 ld_shlibs_CXX=no
12324 esac
12325 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12326 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12327 test "$ld_shlibs_CXX" = no && can_build_shared=no
12329 GCC_CXX="$GXX"
12330 LD_CXX="$LD"
12332 ## CAVEAT EMPTOR:
12333 ## There is no encapsulation within the following macros, do not change
12334 ## the running order or otherwise move them around unless you know exactly
12335 ## what you are doing...
12337 cat > conftest.$ac_ext <<EOF
12338 class Foo
12340 public:
12341 Foo (void) { a = 0; }
12342 private:
12343 int a;
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 (eval $ac_compile) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; then
12352 # Parse the compiler output and extract the necessary
12353 # objects, libraries and library flags.
12355 # Sentinel used to keep track of whether or not we are before
12356 # the conftest object file.
12357 pre_test_object_deps_done=no
12359 # The `*' in the case matches for architectures that use `case' in
12360 # $output_verbose_cmd can trigger glob expansion during the loop
12361 # eval without this substitution.
12362 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12364 for p in `eval $output_verbose_link_cmd`; do
12365 case $p in
12367 -L* | -R* | -l*)
12368 # Some compilers place space between "-{L,R}" and the path.
12369 # Remove the space.
12370 if test $p = "-L" \
12371 || test $p = "-R"; then
12372 prev=$p
12373 continue
12374 else
12375 prev=
12378 if test "$pre_test_object_deps_done" = no; then
12379 case $p in
12380 -L* | -R*)
12381 # Internal compiler library paths should come after those
12382 # provided the user. The postdeps already come after the
12383 # user supplied libs so there is no need to process them.
12384 if test -z "$compiler_lib_search_path_CXX"; then
12385 compiler_lib_search_path_CXX="${prev}${p}"
12386 else
12387 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12390 # The "-l" case would never come before the object being
12391 # linked, so don't bother handling this case.
12392 esac
12393 else
12394 if test -z "$postdeps_CXX"; then
12395 postdeps_CXX="${prev}${p}"
12396 else
12397 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12402 *.$objext)
12403 # This assumes that the test object file only shows up
12404 # once in the compiler output.
12405 if test "$p" = "conftest.$objext"; then
12406 pre_test_object_deps_done=yes
12407 continue
12410 if test "$pre_test_object_deps_done" = no; then
12411 if test -z "$predep_objects_CXX"; then
12412 predep_objects_CXX="$p"
12413 else
12414 predep_objects_CXX="$predep_objects_CXX $p"
12416 else
12417 if test -z "$postdep_objects_CXX"; then
12418 postdep_objects_CXX="$p"
12419 else
12420 postdep_objects_CXX="$postdep_objects_CXX $p"
12425 *) ;; # Ignore the rest.
12427 esac
12428 done
12430 # Clean up.
12431 rm -f a.out a.exe
12432 else
12433 echo "libtool.m4: error: problem compiling CXX test program"
12436 $rm -f confest.$objext
12438 case " $postdeps_CXX " in
12439 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12440 esac
12442 lt_prog_compiler_wl_CXX=
12443 lt_prog_compiler_pic_CXX=
12444 lt_prog_compiler_static_CXX=
12446 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12447 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12449 # C++ specific cases for pic, static, wl, etc.
12450 if test "$GXX" = yes; then
12451 lt_prog_compiler_wl_CXX='-Wl,'
12452 lt_prog_compiler_static_CXX='-static'
12454 case $host_os in
12455 aix*)
12456 # All AIX code is PIC.
12457 if test "$host_cpu" = ia64; then
12458 # AIX 5 now supports IA64 processor
12459 lt_prog_compiler_static_CXX='-Bstatic'
12462 amigaos*)
12463 # FIXME: we need at least 68020 code to build shared libraries, but
12464 # adding the `-m68020' flag to GCC prevents building anything better,
12465 # like `-m68040'.
12466 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12468 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12469 # PIC is the default for these OSes.
12471 mingw* | os2* | pw32*)
12472 # This hack is so that the source file can tell whether it is being
12473 # built for inclusion in a dll (and should export symbols for example).
12474 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12476 darwin* | rhapsody*)
12477 # PIC is the default on this platform
12478 # Common symbols not allowed in MH_DYLIB files
12479 lt_prog_compiler_pic_CXX='-fno-common'
12481 *djgpp*)
12482 # DJGPP does not support shared libraries at all
12483 lt_prog_compiler_pic_CXX=
12485 sysv4*MP*)
12486 if test -d /usr/nec; then
12487 lt_prog_compiler_pic_CXX=-Kconform_pic
12490 hpux*)
12491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12492 # not for PA HP-UX.
12493 case "$host_cpu" in
12494 hppa*64*|ia64*)
12497 lt_prog_compiler_pic_CXX='-fPIC'
12499 esac
12502 lt_prog_compiler_pic_CXX='-fPIC'
12504 esac
12505 else
12506 case $host_os in
12507 aix4* | aix5*)
12508 # All AIX code is PIC.
12509 if test "$host_cpu" = ia64; then
12510 # AIX 5 now supports IA64 processor
12511 lt_prog_compiler_static_CXX='-Bstatic'
12512 else
12513 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12516 chorus*)
12517 case $cc_basename in
12518 cxch68)
12519 # Green Hills C++ Compiler
12520 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12522 esac
12524 darwin*)
12525 # PIC is the default on this platform
12526 # Common symbols not allowed in MH_DYLIB files
12527 case "$cc_basename" in
12528 xlc*)
12529 lt_prog_compiler_pic_CXX='-qnocommon'
12530 lt_prog_compiler_wl_CXX='-Wl,'
12532 esac
12534 dgux*)
12535 case $cc_basename in
12536 ec++)
12537 lt_prog_compiler_pic_CXX='-KPIC'
12539 ghcx)
12540 # Green Hills C++ Compiler
12541 lt_prog_compiler_pic_CXX='-pic'
12545 esac
12547 freebsd* | kfreebsd*-gnu | dragonfly*)
12548 # FreeBSD uses GNU C++
12550 hpux9* | hpux10* | hpux11*)
12551 case $cc_basename in
12553 lt_prog_compiler_wl_CXX='-Wl,'
12554 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12555 if test "$host_cpu" != ia64; then
12556 lt_prog_compiler_pic_CXX='+Z'
12559 aCC)
12560 lt_prog_compiler_wl_CXX='-Wl,'
12561 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12562 case "$host_cpu" in
12563 hppa*64*|ia64*)
12564 # +Z the default
12567 lt_prog_compiler_pic_CXX='+Z'
12569 esac
12573 esac
12575 irix5* | irix6* | nonstopux*)
12576 case $cc_basename in
12578 lt_prog_compiler_wl_CXX='-Wl,'
12579 lt_prog_compiler_static_CXX='-non_shared'
12580 # CC pic flag -KPIC is the default.
12584 esac
12586 linux*)
12587 case $cc_basename in
12588 KCC)
12589 # KAI C++ Compiler
12590 lt_prog_compiler_wl_CXX='--backend -Wl,'
12591 lt_prog_compiler_pic_CXX='-fPIC'
12593 icpc* | ecpc*)
12594 # Intel C++
12595 lt_prog_compiler_wl_CXX='-Wl,'
12596 lt_prog_compiler_pic_CXX='-KPIC'
12597 lt_prog_compiler_static_CXX='-static'
12599 pgCC)
12600 # Portland Group C++ compiler.
12601 lt_prog_compiler_wl_CXX='-Wl,'
12602 lt_prog_compiler_pic_CXX='-fpic'
12603 lt_prog_compiler_static_CXX='-static'
12605 cxx)
12606 # Compaq C++
12607 # Make sure the PIC flag is empty. It appears that all Alpha
12608 # Linux and Compaq Tru64 Unix objects are PIC.
12609 lt_prog_compiler_pic_CXX=
12610 lt_prog_compiler_static_CXX='-non_shared'
12614 esac
12616 lynxos*)
12618 m88k*)
12620 mvs*)
12621 case $cc_basename in
12622 cxx)
12623 lt_prog_compiler_pic_CXX='-W c,exportall'
12627 esac
12629 netbsd*)
12631 osf3* | osf4* | osf5*)
12632 case $cc_basename in
12633 KCC)
12634 lt_prog_compiler_wl_CXX='--backend -Wl,'
12636 RCC)
12637 # Rational C++ 2.4.1
12638 lt_prog_compiler_pic_CXX='-pic'
12640 cxx)
12641 # Digital/Compaq C++
12642 lt_prog_compiler_wl_CXX='-Wl,'
12643 # Make sure the PIC flag is empty. It appears that all Alpha
12644 # Linux and Compaq Tru64 Unix objects are PIC.
12645 lt_prog_compiler_pic_CXX=
12646 lt_prog_compiler_static_CXX='-non_shared'
12650 esac
12652 psos*)
12654 sco*)
12655 case $cc_basename in
12657 lt_prog_compiler_pic_CXX='-fPIC'
12661 esac
12663 solaris*)
12664 case $cc_basename in
12666 # Sun C++ 4.2, 5.x and Centerline C++
12667 lt_prog_compiler_pic_CXX='-KPIC'
12668 lt_prog_compiler_static_CXX='-Bstatic'
12669 lt_prog_compiler_wl_CXX='-Qoption ld '
12671 gcx)
12672 # Green Hills C++ Compiler
12673 lt_prog_compiler_pic_CXX='-PIC'
12677 esac
12679 sunos4*)
12680 case $cc_basename in
12682 # Sun C++ 4.x
12683 lt_prog_compiler_pic_CXX='-pic'
12684 lt_prog_compiler_static_CXX='-Bstatic'
12686 lcc)
12687 # Lucid
12688 lt_prog_compiler_pic_CXX='-pic'
12692 esac
12694 tandem*)
12695 case $cc_basename in
12696 NCC)
12697 # NonStop-UX NCC 3.20
12698 lt_prog_compiler_pic_CXX='-KPIC'
12702 esac
12704 unixware*)
12706 vxworks*)
12709 lt_prog_compiler_can_build_shared_CXX=no
12711 esac
12714 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12715 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12718 # Check to make sure the PIC flag actually works.
12720 if test -n "$lt_prog_compiler_pic_CXX"; then
12722 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12723 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12724 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727 lt_prog_compiler_pic_works_CXX=no
12728 ac_outfile=conftest.$ac_objext
12729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12730 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 # The option is referenced via a variable to avoid confusing sed.
12736 lt_compile=`echo "$ac_compile" | $SED \
12737 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12739 -e 's:$: $lt_compiler_flag:'`
12740 (eval echo "\"\$as_me:12740: $lt_compile\"" >&5)
12741 (eval "$lt_compile" 2>conftest.err)
12742 ac_status=$?
12743 cat conftest.err >&5
12744 echo "$as_me:12744: \$? = $ac_status" >&5
12745 if (exit $ac_status) && test -s "$ac_outfile"; then
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
12748 if test ! -s conftest.err; then
12749 lt_prog_compiler_pic_works_CXX=yes
12752 $rm conftest*
12755 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12756 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12758 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12759 case $lt_prog_compiler_pic_CXX in
12760 "" | " "*) ;;
12761 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12762 esac
12763 else
12764 lt_prog_compiler_pic_CXX=
12765 lt_prog_compiler_can_build_shared_CXX=no
12769 case "$host_os" in
12770 # For platforms which do not support PIC, -DPIC is meaningless:
12771 *djgpp*)
12772 lt_prog_compiler_pic_CXX=
12775 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12777 esac
12779 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 lt_cv_prog_compiler_c_o_CXX=no
12785 $rm -r conftest 2>/dev/null
12786 mkdir conftest
12787 cd conftest
12788 mkdir out
12789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12791 lt_compiler_flag="-o out/conftest2.$ac_objext"
12792 # Insert the option either (1) after the last *FLAGS variable, or
12793 # (2) before a word containing "conftest.", or (3) at the end.
12794 # Note that $ac_compile itself does not contain backslashes and begins
12795 # with a dollar sign (not a hyphen), so the echo should work correctly.
12796 lt_compile=`echo "$ac_compile" | $SED \
12797 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12799 -e 's:$: $lt_compiler_flag:'`
12800 (eval echo "\"\$as_me:12800: $lt_compile\"" >&5)
12801 (eval "$lt_compile" 2>out/conftest.err)
12802 ac_status=$?
12803 cat out/conftest.err >&5
12804 echo "$as_me:12804: \$? = $ac_status" >&5
12805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12806 then
12807 # The compiler can only warn and ignore the option if not recognized
12808 # So say no if there are warnings
12809 if test ! -s out/conftest.err; then
12810 lt_cv_prog_compiler_c_o_CXX=yes
12813 chmod u+w .
12814 $rm conftest*
12815 # SGI C++ compiler will create directory out/ii_files/ for
12816 # template instantiation
12817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12818 $rm out/* && rmdir out
12819 cd ..
12820 rmdir conftest
12821 $rm conftest*
12824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12828 hard_links="nottested"
12829 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12830 # do not overwrite the value of need_locks provided by the user
12831 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12833 hard_links=yes
12834 $rm conftest*
12835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12836 touch conftest.a
12837 ln conftest.a conftest.b 2>&5 || hard_links=no
12838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839 echo "$as_me:$LINENO: result: $hard_links" >&5
12840 echo "${ECHO_T}$hard_links" >&6
12841 if test "$hard_links" = no; then
12842 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12844 need_locks=warn
12846 else
12847 need_locks=no
12850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12853 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12854 case $host_os in
12855 aix4* | aix5*)
12856 # If we're using GNU nm, then we don't want the "-C" option.
12857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12858 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12859 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12860 else
12861 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12864 pw32*)
12865 export_symbols_cmds_CXX="$ltdll_cmds"
12867 cygwin* | mingw*)
12868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12873 esac
12875 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12876 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12877 test "$ld_shlibs_CXX" = no && can_build_shared=no
12879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12880 if test "$GCC" = yes; then
12881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12885 # Do we need to explicitly link libc?
12887 case "x$archive_cmds_need_lc_CXX" in
12888 x|xyes)
12889 # Assume -lc should be added
12890 archive_cmds_need_lc_CXX=yes
12892 if test "$enable_shared" = yes && test "$GCC" = yes; then
12893 case $archive_cmds_CXX in
12894 *'~'*)
12895 # FIXME: we may have to deal with multi-command sequences.
12897 '$CC '*)
12898 # Test whether the compiler implicitly links with -lc since on some
12899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12900 # to ld, don't add -lc before -lgcc.
12901 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12902 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12903 $rm conftest*
12904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } 2>conftest.err; then
12911 soname=conftest
12912 lib=conftest
12913 libobjs=conftest.$ac_objext
12914 deplibs=
12915 wl=$lt_prog_compiler_wl_CXX
12916 compiler_flags=-v
12917 linker_flags=-v
12918 verstring=
12919 output_objdir=.
12920 libname=conftest
12921 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12922 allow_undefined_flag_CXX=
12923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12924 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }
12928 then
12929 archive_cmds_need_lc_CXX=no
12930 else
12931 archive_cmds_need_lc_CXX=yes
12933 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12934 else
12935 cat conftest.err 1>&5
12937 $rm conftest*
12938 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12939 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12941 esac
12944 esac
12946 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12948 library_names_spec=
12949 libname_spec='lib$name'
12950 soname_spec=
12951 shrext_cmds=".so"
12952 postinstall_cmds=
12953 postuninstall_cmds=
12954 finish_cmds=
12955 finish_eval=
12956 shlibpath_var=
12957 shlibpath_overrides_runpath=unknown
12958 version_type=none
12959 dynamic_linker="$host_os ld.so"
12960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12961 if test "$GCC" = yes; then
12962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12964 # if the path contains ";" then we assume it to be the separator
12965 # otherwise default to the standard path separator (i.e. ":") - it is
12966 # assumed that no part of a normal pathname contains ";" but that should
12967 # okay in the real world where ";" in dirpaths is itself problematic.
12968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12969 else
12970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12972 else
12973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12975 need_lib_prefix=unknown
12976 hardcode_into_libs=no
12978 # when you set need_version to no, make sure it does not cause -set_version
12979 # flags to be left without arguments
12980 need_version=unknown
12982 case $host_os in
12983 aix3*)
12984 version_type=linux
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12986 shlibpath_var=LIBPATH
12988 # AIX 3 has no versioning support, so we append a major version to the name.
12989 soname_spec='${libname}${release}${shared_ext}$major'
12992 aix4* | aix5*)
12993 version_type=linux
12994 need_lib_prefix=no
12995 need_version=no
12996 hardcode_into_libs=yes
12997 if test "$host_cpu" = ia64; then
12998 # AIX 5 supports IA64
12999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 else
13002 # With GCC up to 2.95.x, collect2 would create an import file
13003 # for dependence libraries. The import file would start with
13004 # the line `#! .'. This would cause the generated library to
13005 # depend on `.', always an invalid library. This was fixed in
13006 # development snapshots of GCC prior to 3.0.
13007 case $host_os in
13008 aix4 | aix4.[01] | aix4.[01].*)
13009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13010 echo ' yes '
13011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13013 else
13014 can_build_shared=no
13017 esac
13018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13019 # soname into executable. Probably we can add versioning support to
13020 # collect2, so additional links can be useful in future.
13021 if test "$aix_use_runtimelinking" = yes; then
13022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13023 # instead of lib<name>.a to let people know that these are not
13024 # typical AIX shared libraries.
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026 else
13027 # We preserve .a as extension for shared libraries through AIX4.2
13028 # and later when we are not doing run time linking.
13029 library_names_spec='${libname}${release}.a $libname.a'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13032 shlibpath_var=LIBPATH
13036 amigaos*)
13037 library_names_spec='$libname.ixlibrary $libname.a'
13038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13039 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'
13042 beos*)
13043 library_names_spec='${libname}${shared_ext}'
13044 dynamic_linker="$host_os ld.so"
13045 shlibpath_var=LIBRARY_PATH
13048 bsdi[45]*)
13049 version_type=linux
13050 need_version=no
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052 soname_spec='${libname}${release}${shared_ext}$major'
13053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13054 shlibpath_var=LD_LIBRARY_PATH
13055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13057 # the default ld.so.conf also contains /usr/contrib/lib and
13058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13059 # libtool to hard-code these into programs
13062 cygwin* | mingw* | pw32*)
13063 version_type=windows
13064 shrext_cmds=".dll"
13065 need_version=no
13066 need_lib_prefix=no
13068 case $GCC,$host_os in
13069 yes,cygwin* | yes,mingw* | yes,pw32*)
13070 library_names_spec='$libname.dll.a'
13071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13072 postinstall_cmds='base_file=`basename \${file}`~
13073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13074 dldir=$destdir/`dirname \$dlpath`~
13075 test -d \$dldir || mkdir -p \$dldir~
13076 $install_prog $dir/$dlname \$dldir/$dlname'
13077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13078 dlpath=$dir/\$dldll~
13079 $rm \$dlpath'
13080 shlibpath_overrides_runpath=yes
13082 case $host_os in
13083 cygwin*)
13084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13086 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13088 mingw*)
13089 # MinGW DLLs use traditional 'lib' prefix
13090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13093 # It is most probably a Windows format PATH printed by
13094 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13095 # path with ; separators, and with drive letters. We can handle the
13096 # drive letters (cygwin fileutils understands them), so leave them,
13097 # especially as we might pass files found there to a mingw objdump,
13098 # which wouldn't understand a cygwinified path. Ahh.
13099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13100 else
13101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13104 pw32*)
13105 # pw32 DLLs use 'pw' prefix rather than 'lib'
13106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13108 esac
13112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13114 esac
13115 dynamic_linker='Win32 ld.exe'
13116 # FIXME: first we should search . and the directory the executable is in
13117 shlibpath_var=PATH
13120 darwin* | rhapsody*)
13121 dynamic_linker="$host_os dyld"
13122 version_type=darwin
13123 need_lib_prefix=no
13124 need_version=no
13125 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13126 soname_spec='${libname}${release}${major}$shared_ext'
13127 shlibpath_overrides_runpath=yes
13128 shlibpath_var=DYLD_LIBRARY_PATH
13129 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13130 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13131 if test "$GCC" = yes; then
13132 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13133 else
13134 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13139 dgux*)
13140 version_type=linux
13141 need_lib_prefix=no
13142 need_version=no
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13148 freebsd1*)
13149 dynamic_linker=no
13152 kfreebsd*-gnu)
13153 version_type=linux
13154 need_lib_prefix=no
13155 need_version=no
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 shlibpath_var=LD_LIBRARY_PATH
13159 shlibpath_overrides_runpath=no
13160 hardcode_into_libs=yes
13161 dynamic_linker='GNU ld.so'
13164 freebsd* | dragonfly*)
13165 # DragonFly does not have aout. When/if they implement a new
13166 # versioning mechanism, adjust this.
13167 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13168 version_type=freebsd-$objformat
13169 case $version_type in
13170 freebsd-elf*)
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13172 need_version=no
13173 need_lib_prefix=no
13175 freebsd-*)
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13177 need_version=yes
13179 esac
13180 shlibpath_var=LD_LIBRARY_PATH
13181 case $host_os in
13182 freebsd2*)
13183 shlibpath_overrides_runpath=yes
13185 freebsd3.[01]* | freebsdelf3.[01]*)
13186 shlibpath_overrides_runpath=yes
13187 hardcode_into_libs=yes
13189 *) # from 3.2 on
13190 shlibpath_overrides_runpath=no
13191 hardcode_into_libs=yes
13193 esac
13196 gnu*)
13197 version_type=linux
13198 need_lib_prefix=no
13199 need_version=no
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 shlibpath_var=LD_LIBRARY_PATH
13203 hardcode_into_libs=yes
13206 hpux9* | hpux10* | hpux11*)
13207 # Give a soname corresponding to the major version so that dld.sl refuses to
13208 # link against other versions.
13209 version_type=sunos
13210 need_lib_prefix=no
13211 need_version=no
13212 case "$host_cpu" in
13213 ia64*)
13214 shrext_cmds='.so'
13215 hardcode_into_libs=yes
13216 dynamic_linker="$host_os dld.so"
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 if test "X$HPUX_IA64_MODE" = X32; then
13222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13223 else
13224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13228 hppa*64*)
13229 shrext_cmds='.sl'
13230 hardcode_into_libs=yes
13231 dynamic_linker="$host_os dld.sl"
13232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13240 shrext_cmds='.sl'
13241 dynamic_linker="$host_os dld.sl"
13242 shlibpath_var=SHLIB_PATH
13243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13247 esac
13248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13249 postinstall_cmds='chmod 555 $lib'
13252 irix5* | irix6* | nonstopux*)
13253 case $host_os in
13254 nonstopux*) version_type=nonstopux ;;
13256 if test "$lt_cv_prog_gnu_ld" = yes; then
13257 version_type=linux
13258 else
13259 version_type=irix
13260 fi ;;
13261 esac
13262 need_lib_prefix=no
13263 need_version=no
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13266 case $host_os in
13267 irix5* | nonstopux*)
13268 libsuff= shlibsuff=
13271 case $LD in # libtool.m4 will add one of these switches to LD
13272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13273 libsuff= shlibsuff= libmagic=32-bit;;
13274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13275 libsuff=32 shlibsuff=N32 libmagic=N32;;
13276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13278 *) libsuff= shlibsuff= libmagic=never-match;;
13279 esac
13281 esac
13282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13283 shlibpath_overrides_runpath=no
13284 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13285 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13286 hardcode_into_libs=yes
13289 # No shared lib support for Linux oldld, aout, or coff.
13290 linux*oldld* | linux*aout* | linux*coff*)
13291 dynamic_linker=no
13294 # This must be Linux ELF.
13295 linux*)
13296 version_type=linux
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=no
13304 # This implies no fast_install, which is unacceptable.
13305 # Some rework will be needed to allow for fast_install
13306 # before this can be enabled.
13307 hardcode_into_libs=yes
13309 # Append ld.so.conf contents to the search path
13310 if test -f /etc/ld.so.conf; then
13311 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13315 # We used to test for /lib/ld.so.1 and disable shared libraries on
13316 # powerpc, because MkLinux only supported shared libraries with the
13317 # GNU dynamic linker. Since this was broken with cross compilers,
13318 # most powerpc-linux boxes support dynamic linking these days and
13319 # people can always --disable-shared, the test was removed, and we
13320 # assume the GNU/Linux dynamic linker is in use.
13321 dynamic_linker='GNU/Linux ld.so'
13324 knetbsd*-gnu)
13325 version_type=linux
13326 need_lib_prefix=no
13327 need_version=no
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13329 soname_spec='${libname}${release}${shared_ext}$major'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=no
13332 hardcode_into_libs=yes
13333 dynamic_linker='GNU ld.so'
13336 netbsd*)
13337 version_type=sunos
13338 need_lib_prefix=no
13339 need_version=no
13340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13343 dynamic_linker='NetBSD (a.out) ld.so'
13344 else
13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13346 soname_spec='${libname}${release}${shared_ext}$major'
13347 dynamic_linker='NetBSD ld.elf_so'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 shlibpath_overrides_runpath=yes
13351 hardcode_into_libs=yes
13354 newsos6)
13355 version_type=linux
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=yes
13361 nto-qnx*)
13362 version_type=linux
13363 need_lib_prefix=no
13364 need_version=no
13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13366 soname_spec='${libname}${release}${shared_ext}$major'
13367 shlibpath_var=LD_LIBRARY_PATH
13368 shlibpath_overrides_runpath=yes
13371 openbsd*)
13372 version_type=sunos
13373 need_lib_prefix=no
13374 need_version=no
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379 case $host_os in
13380 openbsd2.[89] | openbsd2.[89].*)
13381 shlibpath_overrides_runpath=no
13384 shlibpath_overrides_runpath=yes
13386 esac
13387 else
13388 shlibpath_overrides_runpath=yes
13392 os2*)
13393 libname_spec='$name'
13394 shrext_cmds=".dll"
13395 need_lib_prefix=no
13396 library_names_spec='$libname${shared_ext} $libname.a'
13397 dynamic_linker='OS/2 ld.exe'
13398 shlibpath_var=LIBPATH
13401 osf3* | osf4* | osf5*)
13402 version_type=osf
13403 need_lib_prefix=no
13404 need_version=no
13405 soname_spec='${libname}${release}${shared_ext}$major'
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13412 sco3.2v5*)
13413 version_type=osf
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 shlibpath_var=LD_LIBRARY_PATH
13419 solaris*)
13420 version_type=linux
13421 need_lib_prefix=no
13422 need_version=no
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424 soname_spec='${libname}${release}${shared_ext}$major'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 shlibpath_overrides_runpath=yes
13427 hardcode_into_libs=yes
13428 # ldd complains unless libraries are executable
13429 postinstall_cmds='chmod +x $lib'
13432 sunos4*)
13433 version_type=sunos
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=yes
13438 if test "$with_gnu_ld" = yes; then
13439 need_lib_prefix=no
13441 need_version=yes
13444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13445 version_type=linux
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 case $host_vendor in
13450 sni)
13451 shlibpath_overrides_runpath=no
13452 need_lib_prefix=no
13453 export_dynamic_flag_spec='${wl}-Blargedynsym'
13454 runpath_var=LD_RUN_PATH
13456 siemens)
13457 need_lib_prefix=no
13459 motorola)
13460 need_lib_prefix=no
13461 need_version=no
13462 shlibpath_overrides_runpath=no
13463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13465 esac
13468 sysv4*MP*)
13469 if test -d /usr/nec ;then
13470 version_type=linux
13471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13472 soname_spec='$libname${shared_ext}.$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13477 uts4*)
13478 version_type=linux
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13485 dynamic_linker=no
13487 esac
13488 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13489 echo "${ECHO_T}$dynamic_linker" >&6
13490 test "$dynamic_linker" = no && can_build_shared=no
13492 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13494 hardcode_action_CXX=
13495 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13496 test -n "$runpath_var_CXX" || \
13497 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13499 # We can hardcode non-existant directories.
13500 if test "$hardcode_direct_CXX" != no &&
13501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13502 # have to relink, otherwise we might link with an installed library
13503 # when we should be linking with a yet-to-be-installed one
13504 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13505 test "$hardcode_minus_L_CXX" != no; then
13506 # Linking always hardcodes the temporary library directory.
13507 hardcode_action_CXX=relink
13508 else
13509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13510 hardcode_action_CXX=immediate
13512 else
13513 # We cannot hardcode anything, or else we can only hardcode existing
13514 # directories.
13515 hardcode_action_CXX=unsupported
13517 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13518 echo "${ECHO_T}$hardcode_action_CXX" >&6
13520 if test "$hardcode_action_CXX" = relink; then
13521 # Fast installation is not supported
13522 enable_fast_install=no
13523 elif test "$shlibpath_overrides_runpath" = yes ||
13524 test "$enable_shared" = no; then
13525 # Fast installation is not necessary
13526 enable_fast_install=needless
13529 striplib=
13530 old_striplib=
13531 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13532 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13533 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13534 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13535 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13536 echo "$as_me:$LINENO: result: yes" >&5
13537 echo "${ECHO_T}yes" >&6
13538 else
13539 # FIXME - insert some real tests, host_os isn't really good enough
13540 case $host_os in
13541 darwin*)
13542 if test -n "$STRIP" ; then
13543 striplib="$STRIP -x"
13544 echo "$as_me:$LINENO: result: yes" >&5
13545 echo "${ECHO_T}yes" >&6
13546 else
13547 echo "$as_me:$LINENO: result: no" >&5
13548 echo "${ECHO_T}no" >&6
13552 echo "$as_me:$LINENO: result: no" >&5
13553 echo "${ECHO_T}no" >&6
13555 esac
13558 if test "x$enable_dlopen" != xyes; then
13559 enable_dlopen=unknown
13560 enable_dlopen_self=unknown
13561 enable_dlopen_self_static=unknown
13562 else
13563 lt_cv_dlopen=no
13564 lt_cv_dlopen_libs=
13566 case $host_os in
13567 beos*)
13568 lt_cv_dlopen="load_add_on"
13569 lt_cv_dlopen_libs=
13570 lt_cv_dlopen_self=yes
13573 mingw* | pw32*)
13574 lt_cv_dlopen="LoadLibrary"
13575 lt_cv_dlopen_libs=
13578 cygwin*)
13579 lt_cv_dlopen="dlopen"
13580 lt_cv_dlopen_libs=
13583 darwin*)
13584 # if libdl is installed we need to link against it
13585 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-ldl $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h. */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any gcc2 internal prototype to avoid an error. */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 /* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605 char dlopen ();
13607 main ()
13609 dlopen ();
13611 return 0;
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616 (eval $ac_link) 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_cxx_werror_flag"
13624 || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_lib_dl_dlopen=yes
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 ac_cv_lib_dl_dlopen=no
13643 rm -f conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13647 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13648 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13649 if test $ac_cv_lib_dl_dlopen = yes; then
13650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13651 else
13653 lt_cv_dlopen="dyld"
13654 lt_cv_dlopen_libs=
13655 lt_cv_dlopen_self=yes
13662 echo "$as_me:$LINENO: checking for shl_load" >&5
13663 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13664 if test "${ac_cv_func_shl_load+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13675 #define shl_load innocuous_shl_load
13677 /* System header to define __stub macros and hopefully few prototypes,
13678 which can conflict with char shl_load (); below.
13679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13680 <limits.h> exists even on freestanding compilers. */
13682 #ifdef __STDC__
13683 # include <limits.h>
13684 #else
13685 # include <assert.h>
13686 #endif
13688 #undef shl_load
13690 /* Override any gcc2 internal prototype to avoid an error. */
13691 #ifdef __cplusplus
13692 extern "C"
13694 #endif
13695 /* We use char because int might match the return type of a gcc2
13696 builtin and then its argument prototype would still apply. */
13697 char shl_load ();
13698 /* The GNU C library defines this for functions which it implements
13699 to always fail with ENOSYS. Some functions are actually named
13700 something starting with __ and the normal name is an alias. */
13701 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13702 choke me
13703 #else
13704 char (*f) () = shl_load;
13705 #endif
13706 #ifdef __cplusplus
13708 #endif
13711 main ()
13713 return f != shl_load;
13715 return 0;
13717 _ACEOF
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720 (eval $ac_link) 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_cxx_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest$ac_exeext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_cv_func_shl_load=yes
13741 else
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 ac_cv_func_shl_load=no
13747 rm -f conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13750 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13751 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13752 if test $ac_cv_func_shl_load = yes; then
13753 lt_cv_dlopen="shl_load"
13754 else
13755 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13756 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13757 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-ldld $LIBS"
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h. */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 /* Override any gcc2 internal prototype to avoid an error. */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 /* We use char because int might match the return type of a gcc2
13774 builtin and then its argument prototype would still apply. */
13775 char shl_load ();
13777 main ()
13779 shl_load ();
13781 return 0;
13783 _ACEOF
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786 (eval $ac_link) 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } &&
13793 { ac_try='test -z "$ac_cxx_werror_flag"
13794 || test ! -s conftest.err'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; } &&
13800 { ac_try='test -s conftest$ac_exeext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_lib_dld_shl_load=yes
13807 else
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_cv_lib_dld_shl_load=no
13813 rm -f conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13817 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13818 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13819 if test $ac_cv_lib_dld_shl_load = yes; then
13820 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13821 else
13822 echo "$as_me:$LINENO: checking for dlopen" >&5
13823 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13824 if test "${ac_cv_func_dlopen+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h. */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13835 #define dlopen innocuous_dlopen
13837 /* System header to define __stub macros and hopefully few prototypes,
13838 which can conflict with char dlopen (); below.
13839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13840 <limits.h> exists even on freestanding compilers. */
13842 #ifdef __STDC__
13843 # include <limits.h>
13844 #else
13845 # include <assert.h>
13846 #endif
13848 #undef dlopen
13850 /* Override any gcc2 internal prototype to avoid an error. */
13851 #ifdef __cplusplus
13852 extern "C"
13854 #endif
13855 /* We use char because int might match the return type of a gcc2
13856 builtin and then its argument prototype would still apply. */
13857 char dlopen ();
13858 /* The GNU C library defines this for functions which it implements
13859 to always fail with ENOSYS. Some functions are actually named
13860 something starting with __ and the normal name is an alias. */
13861 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13862 choke me
13863 #else
13864 char (*f) () = dlopen;
13865 #endif
13866 #ifdef __cplusplus
13868 #endif
13871 main ()
13873 return f != dlopen;
13875 return 0;
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_cxx_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_func_dlopen=yes
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_cv_func_dlopen=no
13907 rm -f conftest.err conftest.$ac_objext \
13908 conftest$ac_exeext conftest.$ac_ext
13910 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13911 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13912 if test $ac_cv_func_dlopen = yes; then
13913 lt_cv_dlopen="dlopen"
13914 else
13915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920 ac_check_lib_save_LIBS=$LIBS
13921 LIBS="-ldl $LIBS"
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13929 /* Override any gcc2 internal prototype to avoid an error. */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 /* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13935 char dlopen ();
13937 main ()
13939 dlopen ();
13941 return 0;
13943 _ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>conftest.er1
13947 ac_status=$?
13948 grep -v '^ *+' conftest.er1 >conftest.err
13949 rm -f conftest.er1
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_cxx_werror_flag"
13954 || test ! -s conftest.err'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest$ac_exeext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_lib_dl_dlopen=yes
13967 else
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_cv_lib_dl_dlopen=no
13973 rm -f conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS=$ac_check_lib_save_LIBS
13977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13979 if test $ac_cv_lib_dl_dlopen = yes; then
13980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13981 else
13982 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13983 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987 ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-lsvld $LIBS"
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13996 /* Override any gcc2 internal prototype to avoid an error. */
13997 #ifdef __cplusplus
13998 extern "C"
13999 #endif
14000 /* We use char because int might match the return type of a gcc2
14001 builtin and then its argument prototype would still apply. */
14002 char dlopen ();
14004 main ()
14006 dlopen ();
14008 return 0;
14010 _ACEOF
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013 (eval $ac_link) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_cxx_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest$ac_exeext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_lib_svld_dlopen=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_cv_lib_svld_dlopen=no
14040 rm -f conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 LIBS=$ac_check_lib_save_LIBS
14044 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14045 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14046 if test $ac_cv_lib_svld_dlopen = yes; then
14047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14048 else
14049 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14050 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14051 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054 ac_check_lib_save_LIBS=$LIBS
14055 LIBS="-ldld $LIBS"
14056 cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h. */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14063 /* Override any gcc2 internal prototype to avoid an error. */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 /* We use char because int might match the return type of a gcc2
14068 builtin and then its argument prototype would still apply. */
14069 char dld_link ();
14071 main ()
14073 dld_link ();
14075 return 0;
14077 _ACEOF
14078 rm -f conftest.$ac_objext conftest$ac_exeext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14080 (eval $ac_link) 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_cxx_werror_flag"
14088 || test ! -s conftest.err'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest$ac_exeext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_lib_dld_dld_link=yes
14101 else
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_lib_dld_dld_link=no
14107 rm -f conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14111 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14112 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14113 if test $ac_cv_lib_dld_dld_link = yes; then
14114 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14133 esac
14135 if test "x$lt_cv_dlopen" != xno; then
14136 enable_dlopen=yes
14137 else
14138 enable_dlopen=no
14141 case $lt_cv_dlopen in
14142 dlopen)
14143 save_CPPFLAGS="$CPPFLAGS"
14144 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14146 save_LDFLAGS="$LDFLAGS"
14147 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14149 save_LIBS="$LIBS"
14150 LIBS="$lt_cv_dlopen_libs $LIBS"
14152 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14153 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14154 if test "${lt_cv_dlopen_self+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157 if test "$cross_compiling" = yes; then :
14158 lt_cv_dlopen_self=cross
14159 else
14160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14161 lt_status=$lt_dlunknown
14162 cat > conftest.$ac_ext <<EOF
14163 #line 14163 "configure"
14164 #include "confdefs.h"
14166 #if HAVE_DLFCN_H
14167 #include <dlfcn.h>
14168 #endif
14170 #include <stdio.h>
14172 #ifdef RTLD_GLOBAL
14173 # define LT_DLGLOBAL RTLD_GLOBAL
14174 #else
14175 # ifdef DL_GLOBAL
14176 # define LT_DLGLOBAL DL_GLOBAL
14177 # else
14178 # define LT_DLGLOBAL 0
14179 # endif
14180 #endif
14182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14183 find out it does not work in some platform. */
14184 #ifndef LT_DLLAZY_OR_NOW
14185 # ifdef RTLD_LAZY
14186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14187 # else
14188 # ifdef DL_LAZY
14189 # define LT_DLLAZY_OR_NOW DL_LAZY
14190 # else
14191 # ifdef RTLD_NOW
14192 # define LT_DLLAZY_OR_NOW RTLD_NOW
14193 # else
14194 # ifdef DL_NOW
14195 # define LT_DLLAZY_OR_NOW DL_NOW
14196 # else
14197 # define LT_DLLAZY_OR_NOW 0
14198 # endif
14199 # endif
14200 # endif
14201 # endif
14202 #endif
14204 #ifdef __cplusplus
14205 extern "C" void exit (int);
14206 #endif
14208 void fnord() { int i=42;}
14209 int main ()
14211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14212 int status = $lt_dlunknown;
14214 if (self)
14216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14217 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14218 /* dlclose (self); */
14221 exit (status);
14224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14225 (eval $ac_link) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14229 (./conftest; exit; ) 2>/dev/null
14230 lt_status=$?
14231 case x$lt_status in
14232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14234 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14235 esac
14236 else :
14237 # compilation failed
14238 lt_cv_dlopen_self=no
14241 rm -fr conftest*
14245 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14246 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14248 if test "x$lt_cv_dlopen_self" = xyes; then
14249 LDFLAGS="$LDFLAGS $link_static_flag"
14250 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14251 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14252 if test "${lt_cv_dlopen_self_static+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 if test "$cross_compiling" = yes; then :
14256 lt_cv_dlopen_self_static=cross
14257 else
14258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14259 lt_status=$lt_dlunknown
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14261 "configure"
14262 #include "confdefs.h"
14264 #if HAVE_DLFCN_H
14265 #include <dlfcn.h>
14266 #endif
14268 #include <stdio.h>
14270 #ifdef RTLD_GLOBAL
14271 # define LT_DLGLOBAL RTLD_GLOBAL
14272 #else
14273 # ifdef DL_GLOBAL
14274 # define LT_DLGLOBAL DL_GLOBAL
14275 # else
14276 # define LT_DLGLOBAL 0
14277 # endif
14278 #endif
14280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14281 find out it does not work in some platform. */
14282 #ifndef LT_DLLAZY_OR_NOW
14283 # ifdef RTLD_LAZY
14284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14285 # else
14286 # ifdef DL_LAZY
14287 # define LT_DLLAZY_OR_NOW DL_LAZY
14288 # else
14289 # ifdef RTLD_NOW
14290 # define LT_DLLAZY_OR_NOW RTLD_NOW
14291 # else
14292 # ifdef DL_NOW
14293 # define LT_DLLAZY_OR_NOW DL_NOW
14294 # else
14295 # define LT_DLLAZY_OR_NOW 0
14296 # endif
14297 # endif
14298 # endif
14299 # endif
14300 #endif
14302 #ifdef __cplusplus
14303 extern "C" void exit (int);
14304 #endif
14306 void fnord() { int i=42;}
14307 int main ()
14309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14310 int status = $lt_dlunknown;
14312 if (self)
14314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14316 /* dlclose (self); */
14319 exit (status);
14322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323 (eval $ac_link) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14327 (./conftest; exit; ) 2>/dev/null
14328 lt_status=$?
14329 case x$lt_status in
14330 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14331 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14332 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14333 esac
14334 else :
14335 # compilation failed
14336 lt_cv_dlopen_self_static=no
14339 rm -fr conftest*
14343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14344 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14347 CPPFLAGS="$save_CPPFLAGS"
14348 LDFLAGS="$save_LDFLAGS"
14349 LIBS="$save_LIBS"
14351 esac
14353 case $lt_cv_dlopen_self in
14354 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14355 *) enable_dlopen_self=unknown ;;
14356 esac
14358 case $lt_cv_dlopen_self_static in
14359 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14360 *) enable_dlopen_self_static=unknown ;;
14361 esac
14365 # The else clause should only fire when bootstrapping the
14366 # libtool distribution, otherwise you forgot to ship ltmain.sh
14367 # with your package, and you will get complaints that there are
14368 # no rules to generate ltmain.sh.
14369 if test -f "$ltmain"; then
14370 # See if we are running on zsh, and set the options which allow our commands through
14371 # without removal of \ escapes.
14372 if test -n "${ZSH_VERSION+set}" ; then
14373 setopt NO_GLOB_SUBST
14375 # Now quote all the things that may contain metacharacters while being
14376 # careful not to overquote the AC_SUBSTed values. We take copies of the
14377 # variables and quote the copies for generation of the libtool script.
14378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14379 SED SHELL STRIP \
14380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14382 deplibs_check_method reload_flag reload_cmds need_locks \
14383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14384 lt_cv_sys_global_symbol_to_c_name_address \
14385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14386 old_postinstall_cmds old_postuninstall_cmds \
14387 compiler_CXX \
14388 CC_CXX \
14389 LD_CXX \
14390 lt_prog_compiler_wl_CXX \
14391 lt_prog_compiler_pic_CXX \
14392 lt_prog_compiler_static_CXX \
14393 lt_prog_compiler_no_builtin_flag_CXX \
14394 export_dynamic_flag_spec_CXX \
14395 thread_safe_flag_spec_CXX \
14396 whole_archive_flag_spec_CXX \
14397 enable_shared_with_static_runtimes_CXX \
14398 old_archive_cmds_CXX \
14399 old_archive_from_new_cmds_CXX \
14400 predep_objects_CXX \
14401 postdep_objects_CXX \
14402 predeps_CXX \
14403 postdeps_CXX \
14404 compiler_lib_search_path_CXX \
14405 archive_cmds_CXX \
14406 archive_expsym_cmds_CXX \
14407 postinstall_cmds_CXX \
14408 postuninstall_cmds_CXX \
14409 old_archive_from_expsyms_cmds_CXX \
14410 allow_undefined_flag_CXX \
14411 no_undefined_flag_CXX \
14412 export_symbols_cmds_CXX \
14413 hardcode_libdir_flag_spec_CXX \
14414 hardcode_libdir_flag_spec_ld_CXX \
14415 hardcode_libdir_separator_CXX \
14416 hardcode_automatic_CXX \
14417 module_cmds_CXX \
14418 module_expsym_cmds_CXX \
14419 lt_cv_prog_compiler_c_o_CXX \
14420 exclude_expsyms_CXX \
14421 include_expsyms_CXX; do
14423 case $var in
14424 old_archive_cmds_CXX | \
14425 old_archive_from_new_cmds_CXX | \
14426 archive_cmds_CXX | \
14427 archive_expsym_cmds_CXX | \
14428 module_cmds_CXX | \
14429 module_expsym_cmds_CXX | \
14430 old_archive_from_expsyms_cmds_CXX | \
14431 export_symbols_cmds_CXX | \
14432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14433 postinstall_cmds | postuninstall_cmds | \
14434 old_postinstall_cmds | old_postuninstall_cmds | \
14435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14436 # Double-quote double-evaled strings.
14437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14442 esac
14443 done
14445 case $lt_echo in
14446 *'\$0 --fallback-echo"')
14447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14449 esac
14451 cfgfile="$ofile"
14453 cat <<__EOF__ >> "$cfgfile"
14454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14458 # Shell to use when invoking shell scripts.
14459 SHELL=$lt_SHELL
14461 # Whether or not to build shared libraries.
14462 build_libtool_libs=$enable_shared
14464 # Whether or not to build static libraries.
14465 build_old_libs=$enable_static
14467 # Whether or not to add -lc for building shared libraries.
14468 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14470 # Whether or not to disallow shared libs when runtime libs are static
14471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14473 # Whether or not to optimize for fast installation.
14474 fast_install=$enable_fast_install
14476 # The host system.
14477 host_alias=$host_alias
14478 host=$host
14479 host_os=$host_os
14481 # The build system.
14482 build_alias=$build_alias
14483 build=$build
14484 build_os=$build_os
14486 # An echo program that does not interpret backslashes.
14487 echo=$lt_echo
14489 # The archiver.
14490 AR=$lt_AR
14491 AR_FLAGS=$lt_AR_FLAGS
14493 # A C compiler.
14494 LTCC=$lt_LTCC
14496 # A language-specific compiler.
14497 CC=$lt_compiler_CXX
14499 # Is the compiler the GNU C compiler?
14500 with_gcc=$GCC_CXX
14502 # An ERE matcher.
14503 EGREP=$lt_EGREP
14505 # The linker used to build libraries.
14506 LD=$lt_LD_CXX
14508 # Whether we need hard or soft links.
14509 LN_S=$lt_LN_S
14511 # A BSD-compatible nm program.
14512 NM=$lt_NM
14514 # A symbol stripping program
14515 STRIP=$lt_STRIP
14517 # Used to examine libraries when file_magic_cmd begins "file"
14518 MAGIC_CMD=$MAGIC_CMD
14520 # Used on cygwin: DLL creation program.
14521 DLLTOOL="$DLLTOOL"
14523 # Used on cygwin: object dumper.
14524 OBJDUMP="$OBJDUMP"
14526 # Used on cygwin: assembler.
14527 AS="$AS"
14529 # The name of the directory that contains temporary libtool files.
14530 objdir=$objdir
14532 # How to create reloadable object files.
14533 reload_flag=$lt_reload_flag
14534 reload_cmds=$lt_reload_cmds
14536 # How to pass a linker flag through the compiler.
14537 wl=$lt_lt_prog_compiler_wl_CXX
14539 # Object file suffix (normally "o").
14540 objext="$ac_objext"
14542 # Old archive suffix (normally "a").
14543 libext="$libext"
14545 # Shared library suffix (normally ".so").
14546 shrext_cmds='$shrext_cmds'
14548 # Executable file suffix (normally "").
14549 exeext="$exeext"
14551 # Additional compiler flags for building library objects.
14552 pic_flag=$lt_lt_prog_compiler_pic_CXX
14553 pic_mode=$pic_mode
14555 # What is the maximum length of a command?
14556 max_cmd_len=$lt_cv_sys_max_cmd_len
14558 # Does compiler simultaneously support -c and -o options?
14559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14561 # Must we lock files when doing compilation ?
14562 need_locks=$lt_need_locks
14564 # Do we need the lib prefix for modules?
14565 need_lib_prefix=$need_lib_prefix
14567 # Do we need a version for libraries?
14568 need_version=$need_version
14570 # Whether dlopen is supported.
14571 dlopen_support=$enable_dlopen
14573 # Whether dlopen of programs is supported.
14574 dlopen_self=$enable_dlopen_self
14576 # Whether dlopen of statically linked programs is supported.
14577 dlopen_self_static=$enable_dlopen_self_static
14579 # Compiler flag to prevent dynamic linking.
14580 link_static_flag=$lt_lt_prog_compiler_static_CXX
14582 # Compiler flag to turn off builtin functions.
14583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14585 # Compiler flag to allow reflexive dlopens.
14586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14588 # Compiler flag to generate shared objects directly from archives.
14589 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14591 # Compiler flag to generate thread-safe objects.
14592 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14594 # Library versioning type.
14595 version_type=$version_type
14597 # Format of library name prefix.
14598 libname_spec=$lt_libname_spec
14600 # List of archive names. First name is the real one, the rest are links.
14601 # The last name is the one that the linker finds with -lNAME.
14602 library_names_spec=$lt_library_names_spec
14604 # The coded name of the library, if different from the real name.
14605 soname_spec=$lt_soname_spec
14607 # Commands used to build and install an old-style archive.
14608 RANLIB=$lt_RANLIB
14609 old_archive_cmds=$lt_old_archive_cmds_CXX
14610 old_postinstall_cmds=$lt_old_postinstall_cmds
14611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14613 # Create an old-style archive from a shared archive.
14614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14616 # Create a temporary old-style archive to link instead of a shared archive.
14617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14619 # Commands used to build and install a shared archive.
14620 archive_cmds=$lt_archive_cmds_CXX
14621 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14622 postinstall_cmds=$lt_postinstall_cmds
14623 postuninstall_cmds=$lt_postuninstall_cmds
14625 # Commands used to build a loadable module (assumed same as above if empty)
14626 module_cmds=$lt_module_cmds_CXX
14627 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14629 # Commands to strip libraries.
14630 old_striplib=$lt_old_striplib
14631 striplib=$lt_striplib
14633 # Dependencies to place before the objects being linked to create a
14634 # shared library.
14635 predep_objects=$lt_predep_objects_CXX
14637 # Dependencies to place after the objects being linked to create a
14638 # shared library.
14639 postdep_objects=$lt_postdep_objects_CXX
14641 # Dependencies to place before the objects being linked to create a
14642 # shared library.
14643 predeps=$lt_predeps_CXX
14645 # Dependencies to place after the objects being linked to create a
14646 # shared library.
14647 postdeps=$lt_postdeps_CXX
14649 # The library search path used internally by the compiler when linking
14650 # a shared library.
14651 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14653 # Method to check whether dependent libraries are shared objects.
14654 deplibs_check_method=$lt_deplibs_check_method
14656 # Command to use when deplibs_check_method == file_magic.
14657 file_magic_cmd=$lt_file_magic_cmd
14659 # Flag that allows shared libraries with undefined symbols to be built.
14660 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14662 # Flag that forces no undefined symbols.
14663 no_undefined_flag=$lt_no_undefined_flag_CXX
14665 # Commands used to finish a libtool library installation in a directory.
14666 finish_cmds=$lt_finish_cmds
14668 # Same as above, but a single script fragment to be evaled but not shown.
14669 finish_eval=$lt_finish_eval
14671 # Take the output of nm and produce a listing of raw symbols and C names.
14672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14674 # Transform the output of nm in a proper C declaration
14675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14677 # Transform the output of nm in a C name address pair
14678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14680 # This is the shared library runtime path variable.
14681 runpath_var=$runpath_var
14683 # This is the shared library path variable.
14684 shlibpath_var=$shlibpath_var
14686 # Is shlibpath searched before the hard-coded library search path?
14687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14689 # How to hardcode a shared library path into an executable.
14690 hardcode_action=$hardcode_action_CXX
14692 # Whether we should hardcode library paths into libraries.
14693 hardcode_into_libs=$hardcode_into_libs
14695 # Flag to hardcode \$libdir into a binary during linking.
14696 # This must work even if \$libdir does not exist.
14697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14699 # If ld is used when linking, flag to hardcode \$libdir into
14700 # a binary during linking. This must work even if \$libdir does
14701 # not exist.
14702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14704 # Whether we need a single -rpath flag with a separated argument.
14705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14708 # resulting binary.
14709 hardcode_direct=$hardcode_direct_CXX
14711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14712 # resulting binary.
14713 hardcode_minus_L=$hardcode_minus_L_CXX
14715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14716 # the resulting binary.
14717 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14719 # Set to yes if building a shared library automatically hardcodes DIR into the library
14720 # and all subsequent libraries and executables linked against it.
14721 hardcode_automatic=$hardcode_automatic_CXX
14723 # Variables whose values should be saved in libtool wrapper scripts and
14724 # restored at relink time.
14725 variables_saved_for_relink="$variables_saved_for_relink"
14727 # Whether libtool must link a program against all its dependency libraries.
14728 link_all_deplibs=$link_all_deplibs_CXX
14730 # Compile-time system search path for libraries
14731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14733 # Run-time system search path for libraries
14734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14736 # Fix the shell variable \$srcfile for the compiler.
14737 fix_srcfile_path="$fix_srcfile_path_CXX"
14739 # Set to yes if exported symbols are required.
14740 always_export_symbols=$always_export_symbols_CXX
14742 # The commands to list exported symbols.
14743 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14745 # The commands to extract the exported symbol list from a shared archive.
14746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14748 # Symbols that should not be listed in the preloaded symbols.
14749 exclude_expsyms=$lt_exclude_expsyms_CXX
14751 # Symbols that must always be exported.
14752 include_expsyms=$lt_include_expsyms_CXX
14754 # ### END LIBTOOL TAG CONFIG: $tagname
14756 __EOF__
14759 else
14760 # If there is no Makefile yet, we rely on a make rule to execute
14761 # `config.status --recheck' to rerun these tests and create the
14762 # libtool script then.
14763 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14764 if test -f "$ltmain_in"; then
14765 test -f Makefile && make "$ltmain"
14770 ac_ext=c
14771 ac_cpp='$CPP $CPPFLAGS'
14772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776 CC=$lt_save_CC
14777 LDCXX=$LD
14778 LD=$lt_save_LD
14779 GCC=$lt_save_GCC
14780 with_gnu_ldcxx=$with_gnu_ld
14781 with_gnu_ld=$lt_save_with_gnu_ld
14782 lt_cv_path_LDCXX=$lt_cv_path_LD
14783 lt_cv_path_LD=$lt_save_path_LD
14784 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14785 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14787 else
14788 tagname=""
14792 F77)
14793 if test -n "$F77" && test "X$F77" != "Xno"; then
14795 ac_ext=f
14796 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14797 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14798 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14801 archive_cmds_need_lc_F77=no
14802 allow_undefined_flag_F77=
14803 always_export_symbols_F77=no
14804 archive_expsym_cmds_F77=
14805 export_dynamic_flag_spec_F77=
14806 hardcode_direct_F77=no
14807 hardcode_libdir_flag_spec_F77=
14808 hardcode_libdir_flag_spec_ld_F77=
14809 hardcode_libdir_separator_F77=
14810 hardcode_minus_L_F77=no
14811 hardcode_automatic_F77=no
14812 module_cmds_F77=
14813 module_expsym_cmds_F77=
14814 link_all_deplibs_F77=unknown
14815 old_archive_cmds_F77=$old_archive_cmds
14816 no_undefined_flag_F77=
14817 whole_archive_flag_spec_F77=
14818 enable_shared_with_static_runtimes_F77=no
14820 # Source file extension for f77 test sources.
14821 ac_ext=f
14823 # Object file extension for compiled f77 test sources.
14824 objext=o
14825 objext_F77=$objext
14827 # Code to be used in simple compile tests
14828 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14830 # Code to be used in simple link tests
14831 lt_simple_link_test_code=" program t\n end\n"
14833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14835 # If no C compiler was specified, use CC.
14836 LTCC=${LTCC-"$CC"}
14838 # Allow CC to be a program name with arguments.
14839 compiler=$CC
14842 # Allow CC to be a program name with arguments.
14843 lt_save_CC="$CC"
14844 CC=${F77-"f77"}
14845 compiler=$CC
14846 compiler_F77=$CC
14847 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14849 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14850 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14851 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14852 echo "${ECHO_T}$can_build_shared" >&6
14854 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14855 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14856 test "$can_build_shared" = "no" && enable_shared=no
14858 # On AIX, shared libraries and static libraries use the same namespace, and
14859 # are all built from PIC.
14860 case "$host_os" in
14861 aix3*)
14862 test "$enable_shared" = yes && enable_static=no
14863 if test -n "$RANLIB"; then
14864 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14865 postinstall_cmds='$RANLIB $lib'
14868 aix4* | aix5*)
14869 test "$enable_shared" = yes && enable_static=no
14871 esac
14872 echo "$as_me:$LINENO: result: $enable_shared" >&5
14873 echo "${ECHO_T}$enable_shared" >&6
14875 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14876 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14877 # Make sure either enable_shared or enable_static is yes.
14878 test "$enable_shared" = yes || enable_static=yes
14879 echo "$as_me:$LINENO: result: $enable_static" >&5
14880 echo "${ECHO_T}$enable_static" >&6
14882 test "$ld_shlibs_F77" = no && can_build_shared=no
14884 GCC_F77="$G77"
14885 LD_F77="$LD"
14887 lt_prog_compiler_wl_F77=
14888 lt_prog_compiler_pic_F77=
14889 lt_prog_compiler_static_F77=
14891 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14894 if test "$GCC" = yes; then
14895 lt_prog_compiler_wl_F77='-Wl,'
14896 lt_prog_compiler_static_F77='-static'
14898 case $host_os in
14899 aix*)
14900 # All AIX code is PIC.
14901 if test "$host_cpu" = ia64; then
14902 # AIX 5 now supports IA64 processor
14903 lt_prog_compiler_static_F77='-Bstatic'
14907 amigaos*)
14908 # FIXME: we need at least 68020 code to build shared libraries, but
14909 # adding the `-m68020' flag to GCC prevents building anything better,
14910 # like `-m68040'.
14911 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14914 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14915 # PIC is the default for these OSes.
14918 mingw* | pw32* | os2*)
14919 # This hack is so that the source file can tell whether it is being
14920 # built for inclusion in a dll (and should export symbols for example).
14921 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14924 darwin* | rhapsody*)
14925 # PIC is the default on this platform
14926 # Common symbols not allowed in MH_DYLIB files
14927 lt_prog_compiler_pic_F77='-fno-common'
14930 msdosdjgpp*)
14931 # Just because we use GCC doesn't mean we suddenly get shared libraries
14932 # on systems that don't support them.
14933 lt_prog_compiler_can_build_shared_F77=no
14934 enable_shared=no
14937 sysv4*MP*)
14938 if test -d /usr/nec; then
14939 lt_prog_compiler_pic_F77=-Kconform_pic
14943 hpux*)
14944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14945 # not for PA HP-UX.
14946 case "$host_cpu" in
14947 hppa*64*|ia64*)
14948 # +Z the default
14951 lt_prog_compiler_pic_F77='-fPIC'
14953 esac
14957 lt_prog_compiler_pic_F77='-fPIC'
14959 esac
14960 else
14961 # PORTME Check for flag to pass linker flags through the system compiler.
14962 case $host_os in
14963 aix*)
14964 lt_prog_compiler_wl_F77='-Wl,'
14965 if test "$host_cpu" = ia64; then
14966 # AIX 5 now supports IA64 processor
14967 lt_prog_compiler_static_F77='-Bstatic'
14968 else
14969 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14972 darwin*)
14973 # PIC is the default on this platform
14974 # Common symbols not allowed in MH_DYLIB files
14975 case "$cc_basename" in
14976 xlc*)
14977 lt_prog_compiler_pic_F77='-qnocommon'
14978 lt_prog_compiler_wl_F77='-Wl,'
14980 esac
14983 mingw* | pw32* | os2*)
14984 # This hack is so that the source file can tell whether it is being
14985 # built for inclusion in a dll (and should export symbols for example).
14986 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14989 hpux9* | hpux10* | hpux11*)
14990 lt_prog_compiler_wl_F77='-Wl,'
14991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992 # not for PA HP-UX.
14993 case "$host_cpu" in
14994 hppa*64*|ia64*)
14995 # +Z the default
14998 lt_prog_compiler_pic_F77='+Z'
15000 esac
15001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15002 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15005 irix5* | irix6* | nonstopux*)
15006 lt_prog_compiler_wl_F77='-Wl,'
15007 # PIC (with -KPIC) is the default.
15008 lt_prog_compiler_static_F77='-non_shared'
15011 newsos6)
15012 lt_prog_compiler_pic_F77='-KPIC'
15013 lt_prog_compiler_static_F77='-Bstatic'
15016 linux*)
15017 case $cc_basename in
15018 icc* | ecc*)
15019 lt_prog_compiler_wl_F77='-Wl,'
15020 lt_prog_compiler_pic_F77='-KPIC'
15021 lt_prog_compiler_static_F77='-static'
15023 pgcc | pgf77 | pgf90)
15024 # Portland Group compilers (*not* the Pentium gcc compiler,
15025 # which looks to be a dead project)
15026 lt_prog_compiler_wl_F77='-Wl,'
15027 lt_prog_compiler_pic_F77='-fpic'
15028 lt_prog_compiler_static_F77='-static'
15030 ccc*)
15031 lt_prog_compiler_wl_F77='-Wl,'
15032 # All Alpha code is PIC.
15033 lt_prog_compiler_static_F77='-non_shared'
15035 como)
15036 lt_prog_compiler_wl_F77='-lopt='
15038 esac
15041 osf3* | osf4* | osf5*)
15042 lt_prog_compiler_wl_F77='-Wl,'
15043 # All OSF/1 code is PIC.
15044 lt_prog_compiler_static_F77='-non_shared'
15047 sco3.2v5*)
15048 lt_prog_compiler_pic_F77='-Kpic'
15049 lt_prog_compiler_static_F77='-dn'
15052 solaris*)
15053 lt_prog_compiler_wl_F77='-Wl,'
15054 lt_prog_compiler_pic_F77='-KPIC'
15055 lt_prog_compiler_static_F77='-Bstatic'
15058 sunos4*)
15059 lt_prog_compiler_wl_F77='-Qoption ld '
15060 lt_prog_compiler_pic_F77='-PIC'
15061 lt_prog_compiler_static_F77='-Bstatic'
15064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15065 lt_prog_compiler_wl_F77='-Wl,'
15066 lt_prog_compiler_pic_F77='-KPIC'
15067 lt_prog_compiler_static_F77='-Bstatic'
15070 sysv4*MP*)
15071 if test -d /usr/nec ;then
15072 lt_prog_compiler_pic_F77='-Kconform_pic'
15073 lt_prog_compiler_static_F77='-Bstatic'
15077 unicos*)
15078 lt_prog_compiler_wl_F77='-Wl,'
15079 lt_prog_compiler_can_build_shared_F77=no
15082 uts4*)
15083 lt_prog_compiler_pic_F77='-pic'
15084 lt_prog_compiler_static_F77='-Bstatic'
15088 lt_prog_compiler_can_build_shared_F77=no
15090 esac
15093 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15094 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15097 # Check to make sure the PIC flag actually works.
15099 if test -n "$lt_prog_compiler_pic_F77"; then
15101 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15102 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15103 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106 lt_prog_compiler_pic_works_F77=no
15107 ac_outfile=conftest.$ac_objext
15108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15109 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15110 # Insert the option either (1) after the last *FLAGS variable, or
15111 # (2) before a word containing "conftest.", or (3) at the end.
15112 # Note that $ac_compile itself does not contain backslashes and begins
15113 # with a dollar sign (not a hyphen), so the echo should work correctly.
15114 # The option is referenced via a variable to avoid confusing sed.
15115 lt_compile=`echo "$ac_compile" | $SED \
15116 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15118 -e 's:$: $lt_compiler_flag:'`
15119 (eval echo "\"\$as_me:15119: $lt_compile\"" >&5)
15120 (eval "$lt_compile" 2>conftest.err)
15121 ac_status=$?
15122 cat conftest.err >&5
15123 echo "$as_me:15123: \$? = $ac_status" >&5
15124 if (exit $ac_status) && test -s "$ac_outfile"; then
15125 # The compiler can only warn and ignore the option if not recognized
15126 # So say no if there are warnings
15127 if test ! -s conftest.err; then
15128 lt_prog_compiler_pic_works_F77=yes
15131 $rm conftest*
15134 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15135 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15137 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15138 case $lt_prog_compiler_pic_F77 in
15139 "" | " "*) ;;
15140 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15141 esac
15142 else
15143 lt_prog_compiler_pic_F77=
15144 lt_prog_compiler_can_build_shared_F77=no
15148 case "$host_os" in
15149 # For platforms which do not support PIC, -DPIC is meaningless:
15150 *djgpp*)
15151 lt_prog_compiler_pic_F77=
15154 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15156 esac
15158 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15159 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15160 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 lt_cv_prog_compiler_c_o_F77=no
15164 $rm -r conftest 2>/dev/null
15165 mkdir conftest
15166 cd conftest
15167 mkdir out
15168 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15170 lt_compiler_flag="-o out/conftest2.$ac_objext"
15171 # Insert the option either (1) after the last *FLAGS variable, or
15172 # (2) before a word containing "conftest.", or (3) at the end.
15173 # Note that $ac_compile itself does not contain backslashes and begins
15174 # with a dollar sign (not a hyphen), so the echo should work correctly.
15175 lt_compile=`echo "$ac_compile" | $SED \
15176 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15178 -e 's:$: $lt_compiler_flag:'`
15179 (eval echo "\"\$as_me:15179: $lt_compile\"" >&5)
15180 (eval "$lt_compile" 2>out/conftest.err)
15181 ac_status=$?
15182 cat out/conftest.err >&5
15183 echo "$as_me:15183: \$? = $ac_status" >&5
15184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15185 then
15186 # The compiler can only warn and ignore the option if not recognized
15187 # So say no if there are warnings
15188 if test ! -s out/conftest.err; then
15189 lt_cv_prog_compiler_c_o_F77=yes
15192 chmod u+w .
15193 $rm conftest*
15194 # SGI C++ compiler will create directory out/ii_files/ for
15195 # template instantiation
15196 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15197 $rm out/* && rmdir out
15198 cd ..
15199 rmdir conftest
15200 $rm conftest*
15203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15207 hard_links="nottested"
15208 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15209 # do not overwrite the value of need_locks provided by the user
15210 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15212 hard_links=yes
15213 $rm conftest*
15214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15215 touch conftest.a
15216 ln conftest.a conftest.b 2>&5 || hard_links=no
15217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15218 echo "$as_me:$LINENO: result: $hard_links" >&5
15219 echo "${ECHO_T}$hard_links" >&6
15220 if test "$hard_links" = no; then
15221 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15223 need_locks=warn
15225 else
15226 need_locks=no
15229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15232 runpath_var=
15233 allow_undefined_flag_F77=
15234 enable_shared_with_static_runtimes_F77=no
15235 archive_cmds_F77=
15236 archive_expsym_cmds_F77=
15237 old_archive_From_new_cmds_F77=
15238 old_archive_from_expsyms_cmds_F77=
15239 export_dynamic_flag_spec_F77=
15240 whole_archive_flag_spec_F77=
15241 thread_safe_flag_spec_F77=
15242 hardcode_libdir_flag_spec_F77=
15243 hardcode_libdir_flag_spec_ld_F77=
15244 hardcode_libdir_separator_F77=
15245 hardcode_direct_F77=no
15246 hardcode_minus_L_F77=no
15247 hardcode_shlibpath_var_F77=unsupported
15248 link_all_deplibs_F77=unknown
15249 hardcode_automatic_F77=no
15250 module_cmds_F77=
15251 module_expsym_cmds_F77=
15252 always_export_symbols_F77=no
15253 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15254 # include_expsyms should be a list of space-separated symbols to be *always*
15255 # included in the symbol list
15256 include_expsyms_F77=
15257 # exclude_expsyms can be an extended regexp of symbols to exclude
15258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15260 # as well as any symbol that contains `d'.
15261 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15263 # platforms (ab)use it in PIC code, but their linkers get confused if
15264 # the symbol is explicitly referenced. Since portable code cannot
15265 # rely on this symbol name, it's probably fine to never include it in
15266 # preloaded symbol tables.
15267 extract_expsyms_cmds=
15269 case $host_os in
15270 cygwin* | mingw* | pw32*)
15271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15272 # When not using gcc, we currently assume that we are using
15273 # Microsoft Visual C++.
15274 if test "$GCC" != yes; then
15275 with_gnu_ld=no
15278 openbsd*)
15279 with_gnu_ld=no
15281 esac
15283 ld_shlibs_F77=yes
15284 if test "$with_gnu_ld" = yes; then
15285 # If archive_cmds runs LD, not CC, wlarc should be empty
15286 wlarc='${wl}'
15288 # See if GNU ld supports shared libraries.
15289 case $host_os in
15290 aix3* | aix4* | aix5*)
15291 # On AIX/PPC, the GNU linker is very broken
15292 if test "$host_cpu" != ia64; then
15293 ld_shlibs_F77=no
15294 cat <<EOF 1>&2
15296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15297 *** to be unable to reliably create shared libraries on AIX.
15298 *** Therefore, libtool is disabling shared libraries support. If you
15299 *** really care for shared libraries, you may want to modify your PATH
15300 *** so that a non-GNU linker is found, and then restart.
15306 amigaos*)
15307 archive_cmds_F77='$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)'
15308 hardcode_libdir_flag_spec_F77='-L$libdir'
15309 hardcode_minus_L_F77=yes
15311 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15312 # that the semantics of dynamic libraries on AmigaOS, at least up
15313 # to version 4, is to share data among multiple programs linked
15314 # with the same dynamic library. Since this doesn't match the
15315 # behavior of shared libraries on other platforms, we can't use
15316 # them.
15317 ld_shlibs_F77=no
15320 beos*)
15321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15322 allow_undefined_flag_F77=unsupported
15323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15324 # support --undefined. This deserves some investigation. FIXME
15325 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15326 else
15327 ld_shlibs_F77=no
15331 cygwin* | mingw* | pw32*)
15332 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15333 # as there is no search path for DLLs.
15334 hardcode_libdir_flag_spec_F77='-L$libdir'
15335 allow_undefined_flag_F77=unsupported
15336 always_export_symbols_F77=no
15337 enable_shared_with_static_runtimes_F77=yes
15338 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15341 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15342 # If the export-symbols file already is a .def file (1st line
15343 # is EXPORTS), use it as is; otherwise, prepend...
15344 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15345 cp $export_symbols $output_objdir/$soname.def;
15346 else
15347 echo EXPORTS > $output_objdir/$soname.def;
15348 cat $export_symbols >> $output_objdir/$soname.def;
15350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15351 else
15352 ld_shlibs_F77=no
15356 netbsd*)
15357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15358 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15359 wlarc=
15360 else
15361 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15362 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15366 solaris* | sysv5*)
15367 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15368 ld_shlibs_F77=no
15369 cat <<EOF 1>&2
15371 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15372 *** create shared libraries on Solaris systems. Therefore, libtool
15373 *** is disabling shared libraries support. We urge you to upgrade GNU
15374 *** binutils to release 2.9.1 or newer. Another option is to modify
15375 *** your PATH or compiler configuration so that the native linker is
15376 *** used, and then restart.
15379 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15382 else
15383 ld_shlibs_F77=no
15387 sunos4*)
15388 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389 wlarc=
15390 hardcode_direct_F77=yes
15391 hardcode_shlibpath_var_F77=no
15394 linux*)
15395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15396 tmp_addflag=
15397 case $CC,$host_cpu in
15398 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15399 tmp_addflag=' -fpic' ;;
15400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15401 tmp_addflag=' -i_dynamic' ;;
15402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15403 tmp_addflag=' -i_dynamic -nofor_main' ;;
15404 ifc* | ifort*) # Intel Fortran compiler
15405 tmp_addflag=' -nofor_main' ;;
15406 esac
15407 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408 supports_anon_versioning=no
15409 case `$LD -v 2>/dev/null` in
15410 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15411 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15412 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15413 *\ 2.11.*) ;; # other 2.11 versions
15414 *) supports_anon_versioning=yes ;;
15415 esac
15416 if test $supports_anon_versioning = yes; then
15417 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15419 $echo "local: *; };" >> $output_objdir/$libname.ver~
15420 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15421 else
15422 archive_expsym_cmds_F77=$archive_cmds_F77
15424 else
15425 ld_shlibs_F77=no
15430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15431 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433 else
15434 ld_shlibs_F77=no
15437 esac
15439 if test "$ld_shlibs_F77" = yes; then
15440 runpath_var=LD_RUN_PATH
15441 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15442 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15443 # ancient GNU ld didn't support --whole-archive et. al.
15444 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15445 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15446 else
15447 whole_archive_flag_spec_F77=
15450 else
15451 # PORTME fill in a description of your system's linker (not GNU ld)
15452 case $host_os in
15453 aix3*)
15454 allow_undefined_flag_F77=unsupported
15455 always_export_symbols_F77=yes
15456 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15457 # Note: this linker hardcodes the directories in LIBPATH if there
15458 # are no directories specified by -L.
15459 hardcode_minus_L_F77=yes
15460 if test "$GCC" = yes && test -z "$link_static_flag"; then
15461 # Neither direct hardcoding nor static linking is supported with a
15462 # broken collect2.
15463 hardcode_direct_F77=unsupported
15467 aix4* | aix5*)
15468 if test "$host_cpu" = ia64; then
15469 # On IA64, the linker does run time linking by default, so we don't
15470 # have to do anything special.
15471 aix_use_runtimelinking=no
15472 exp_sym_flag='-Bexport'
15473 no_entry_flag=""
15474 else
15475 # If we're using GNU nm, then we don't want the "-C" option.
15476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15477 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15478 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15479 else
15480 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15482 aix_use_runtimelinking=no
15484 # Test if we are trying to use run time linking or normal
15485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15486 # need to do runtime linking.
15487 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15488 for ld_flag in $LDFLAGS; do
15489 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15490 aix_use_runtimelinking=yes
15491 break
15493 done
15494 esac
15496 exp_sym_flag='-bexport'
15497 no_entry_flag='-bnoentry'
15500 # When large executables or shared objects are built, AIX ld can
15501 # have problems creating the table of contents. If linking a library
15502 # or program results in "error TOC overflow" add -mminimal-toc to
15503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15506 archive_cmds_F77=''
15507 hardcode_direct_F77=yes
15508 hardcode_libdir_separator_F77=':'
15509 link_all_deplibs_F77=yes
15511 if test "$GCC" = yes; then
15512 case $host_os in aix4.[012]|aix4.[012].*)
15513 # We only want to do this on AIX 4.2 and lower, the check
15514 # below for broken collect2 doesn't work under 4.3+
15515 collect2name=`${CC} -print-prog-name=collect2`
15516 if test -f "$collect2name" && \
15517 strings "$collect2name" | grep resolve_lib_name >/dev/null
15518 then
15519 # We have reworked collect2
15520 hardcode_direct_F77=yes
15521 else
15522 # We have old collect2
15523 hardcode_direct_F77=unsupported
15524 # It fails to find uninstalled libraries when the uninstalled
15525 # path is not listed in the libpath. Setting hardcode_minus_L
15526 # to unsupported forces relinking
15527 hardcode_minus_L_F77=yes
15528 hardcode_libdir_flag_spec_F77='-L$libdir'
15529 hardcode_libdir_separator_F77=
15531 esac
15532 shared_flag='-shared'
15533 if test "$aix_use_runtimelinking" = yes; then
15534 shared_flag="$shared_flag "'${wl}-G'
15536 else
15537 # not using gcc
15538 if test "$host_cpu" = ia64; then
15539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15540 # chokes on -Wl,-G. The following line is correct:
15541 shared_flag='-G'
15542 else
15543 if test "$aix_use_runtimelinking" = yes; then
15544 shared_flag='${wl}-G'
15545 else
15546 shared_flag='${wl}-bM:SRE'
15551 # It seems that -bexpall does not export symbols beginning with
15552 # underscore (_), so it is better to generate a list of symbols to export.
15553 always_export_symbols_F77=yes
15554 if test "$aix_use_runtimelinking" = yes; then
15555 # Warning - without using the other runtime loading flags (-brtl),
15556 # -berok will link without error, but may produce a broken library.
15557 allow_undefined_flag_F77='-berok'
15558 # Determine the default libpath from the value encoded in an empty executable.
15559 cat >conftest.$ac_ext <<_ACEOF
15560 program main
15563 _ACEOF
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15566 (eval $ac_link) 2>conftest.er1
15567 ac_status=$?
15568 grep -v '^ *+' conftest.er1 >conftest.err
15569 rm -f conftest.er1
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } &&
15573 { ac_try='test -z "$ac_f77_werror_flag"
15574 || test ! -s conftest.err'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; } &&
15580 { ac_try='test -s conftest$ac_exeext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15589 # Check for a 64-bit object if we didn't find anything.
15590 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15591 }'`; fi
15592 else
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15597 rm -f conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15601 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15602 archive_expsym_cmds_F77="\$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"
15603 else
15604 if test "$host_cpu" = ia64; then
15605 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15606 allow_undefined_flag_F77="-z nodefs"
15607 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15608 else
15609 # Determine the default libpath from the value encoded in an empty executable.
15610 cat >conftest.$ac_ext <<_ACEOF
15611 program main
15614 _ACEOF
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_f77_werror_flag"
15625 || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest$ac_exeext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15640 # Check for a 64-bit object if we didn't find anything.
15641 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15642 }'`; fi
15643 else
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15648 rm -f conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15652 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15653 # Warning - without using the other run time loading flags,
15654 # -berok will link without error, but may produce a broken library.
15655 no_undefined_flag_F77=' ${wl}-bernotok'
15656 allow_undefined_flag_F77=' ${wl}-berok'
15657 # -bexpall does not export symbols beginning with underscore (_)
15658 always_export_symbols_F77=yes
15659 # Exported symbols can be pulled into shared objects from archives
15660 whole_archive_flag_spec_F77=' '
15661 archive_cmds_need_lc_F77=yes
15662 # This is similar to how AIX traditionally builds it's shared libraries.
15663 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15668 amigaos*)
15669 archive_cmds_F77='$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)'
15670 hardcode_libdir_flag_spec_F77='-L$libdir'
15671 hardcode_minus_L_F77=yes
15672 # see comment about different semantics on the GNU ld section
15673 ld_shlibs_F77=no
15676 bsdi[45]*)
15677 export_dynamic_flag_spec_F77=-rdynamic
15680 cygwin* | mingw* | pw32*)
15681 # When not using gcc, we currently assume that we are using
15682 # Microsoft Visual C++.
15683 # hardcode_libdir_flag_spec is actually meaningless, as there is
15684 # no search path for DLLs.
15685 hardcode_libdir_flag_spec_F77=' '
15686 allow_undefined_flag_F77=unsupported
15687 # Tell ltmain to make .lib files, not .a files.
15688 libext=lib
15689 # Tell ltmain to make .dll files, not .so files.
15690 shrext_cmds=".dll"
15691 # FIXME: Setting linknames here is a bad hack.
15692 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15693 # The linker will automatically build a .lib file if we build a DLL.
15694 old_archive_From_new_cmds_F77='true'
15695 # FIXME: Should let the user specify the lib program.
15696 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15697 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15698 enable_shared_with_static_runtimes_F77=yes
15701 darwin* | rhapsody*)
15702 case "$host_os" in
15703 rhapsody* | darwin1.[012])
15704 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15706 *) # Darwin 1.3 on
15707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15708 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15709 else
15710 case ${MACOSX_DEPLOYMENT_TARGET} in
15711 10.[012])
15712 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15714 10.*)
15715 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15717 esac
15720 esac
15721 archive_cmds_need_lc_F77=no
15722 hardcode_direct_F77=no
15723 hardcode_automatic_F77=yes
15724 hardcode_shlibpath_var_F77=unsupported
15725 whole_archive_flag_spec_F77=''
15726 link_all_deplibs_F77=yes
15727 if test "$GCC" = yes ; then
15728 output_verbose_link_cmd='echo'
15729 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15730 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15732 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15733 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15734 else
15735 case "$cc_basename" in
15736 xlc*)
15737 output_verbose_link_cmd='echo'
15738 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15739 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15741 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15742 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15745 ld_shlibs_F77=no
15747 esac
15751 dgux*)
15752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_libdir_flag_spec_F77='-L$libdir'
15754 hardcode_shlibpath_var_F77=no
15757 freebsd1*)
15758 ld_shlibs_F77=no
15761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15762 # support. Future versions do this automatically, but an explicit c++rt0.o
15763 # does not break anything, and helps significantly (at the cost of a little
15764 # extra space).
15765 freebsd2.2*)
15766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15767 hardcode_libdir_flag_spec_F77='-R$libdir'
15768 hardcode_direct_F77=yes
15769 hardcode_shlibpath_var_F77=no
15772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15773 freebsd2*)
15774 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_direct_F77=yes
15776 hardcode_minus_L_F77=yes
15777 hardcode_shlibpath_var_F77=no
15780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15781 freebsd* | kfreebsd*-gnu | dragonfly*)
15782 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15783 hardcode_libdir_flag_spec_F77='-R$libdir'
15784 hardcode_direct_F77=yes
15785 hardcode_shlibpath_var_F77=no
15788 hpux9*)
15789 if test "$GCC" = yes; then
15790 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15791 else
15792 archive_cmds_F77='$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'
15794 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15795 hardcode_libdir_separator_F77=:
15796 hardcode_direct_F77=yes
15798 # hardcode_minus_L: Not really in the search PATH,
15799 # but as the default location of the library.
15800 hardcode_minus_L_F77=yes
15801 export_dynamic_flag_spec_F77='${wl}-E'
15804 hpux10* | hpux11*)
15805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15806 case "$host_cpu" in
15807 hppa*64*|ia64*)
15808 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15813 esac
15814 else
15815 case "$host_cpu" in
15816 hppa*64*|ia64*)
15817 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15820 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15822 esac
15824 if test "$with_gnu_ld" = no; then
15825 case "$host_cpu" in
15826 hppa*64*)
15827 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15828 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15829 hardcode_libdir_separator_F77=:
15830 hardcode_direct_F77=no
15831 hardcode_shlibpath_var_F77=no
15833 ia64*)
15834 hardcode_libdir_flag_spec_F77='-L$libdir'
15835 hardcode_direct_F77=no
15836 hardcode_shlibpath_var_F77=no
15838 # hardcode_minus_L: Not really in the search PATH,
15839 # but as the default location of the library.
15840 hardcode_minus_L_F77=yes
15843 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15844 hardcode_libdir_separator_F77=:
15845 hardcode_direct_F77=yes
15846 export_dynamic_flag_spec_F77='${wl}-E'
15848 # hardcode_minus_L: Not really in the search PATH,
15849 # but as the default location of the library.
15850 hardcode_minus_L_F77=yes
15852 esac
15856 irix5* | irix6* | nonstopux*)
15857 if test "$GCC" = yes; then
15858 archive_cmds_F77='$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'
15859 else
15860 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15861 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15864 hardcode_libdir_separator_F77=:
15865 link_all_deplibs_F77=yes
15868 netbsd*)
15869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15870 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15871 else
15872 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15874 hardcode_libdir_flag_spec_F77='-R$libdir'
15875 hardcode_direct_F77=yes
15876 hardcode_shlibpath_var_F77=no
15879 newsos6)
15880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 hardcode_direct_F77=yes
15882 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15883 hardcode_libdir_separator_F77=:
15884 hardcode_shlibpath_var_F77=no
15887 openbsd*)
15888 hardcode_direct_F77=yes
15889 hardcode_shlibpath_var_F77=no
15890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15891 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15893 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15894 export_dynamic_flag_spec_F77='${wl}-E'
15895 else
15896 case $host_os in
15897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15898 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_libdir_flag_spec_F77='-R$libdir'
15902 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15903 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15905 esac
15909 os2*)
15910 hardcode_libdir_flag_spec_F77='-L$libdir'
15911 hardcode_minus_L_F77=yes
15912 allow_undefined_flag_F77=unsupported
15913 archive_cmds_F77='$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'
15914 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15917 osf3*)
15918 if test "$GCC" = yes; then
15919 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15920 archive_cmds_F77='$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'
15921 else
15922 allow_undefined_flag_F77=' -expect_unresolved \*'
15923 archive_cmds_F77='$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'
15925 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15926 hardcode_libdir_separator_F77=:
15929 osf4* | osf5*) # as osf3* with the addition of -msym flag
15930 if test "$GCC" = yes; then
15931 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15932 archive_cmds_F77='$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'
15933 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15934 else
15935 allow_undefined_flag_F77=' -expect_unresolved \*'
15936 archive_cmds_F77='$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'
15937 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15938 $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'
15940 # Both c and cxx compiler support -rpath directly
15941 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15943 hardcode_libdir_separator_F77=:
15946 sco3.2v5*)
15947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_shlibpath_var_F77=no
15949 export_dynamic_flag_spec_F77='${wl}-Bexport'
15950 runpath_var=LD_RUN_PATH
15951 hardcode_runpath_var=yes
15954 solaris*)
15955 no_undefined_flag_F77=' -z text'
15956 if test "$GCC" = yes; then
15957 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15958 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15959 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15960 else
15961 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15965 hardcode_libdir_flag_spec_F77='-R$libdir'
15966 hardcode_shlibpath_var_F77=no
15967 case $host_os in
15968 solaris2.[0-5] | solaris2.[0-5].*) ;;
15969 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15970 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
15971 esac
15972 link_all_deplibs_F77=yes
15975 sunos4*)
15976 if test "x$host_vendor" = xsequent; then
15977 # Use $CC to link under sequent, because it throws in some extra .o
15978 # files that make .init and .fini sections work.
15979 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15980 else
15981 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15983 hardcode_libdir_flag_spec_F77='-L$libdir'
15984 hardcode_direct_F77=yes
15985 hardcode_minus_L_F77=yes
15986 hardcode_shlibpath_var_F77=no
15989 sysv4)
15990 case $host_vendor in
15991 sni)
15992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_direct_F77=yes # is this really true???
15995 siemens)
15996 ## LD is ld it makes a PLAMLIB
15997 ## CC just makes a GrossModule.
15998 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15999 reload_cmds_F77='$CC -r -o $output$reload_objs'
16000 hardcode_direct_F77=no
16002 motorola)
16003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16004 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16006 esac
16007 runpath_var='LD_RUN_PATH'
16008 hardcode_shlibpath_var_F77=no
16011 sysv4.3*)
16012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013 hardcode_shlibpath_var_F77=no
16014 export_dynamic_flag_spec_F77='-Bexport'
16017 sysv4*MP*)
16018 if test -d /usr/nec; then
16019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_shlibpath_var_F77=no
16021 runpath_var=LD_RUN_PATH
16022 hardcode_runpath_var=yes
16023 ld_shlibs_F77=yes
16027 sysv4.2uw2*)
16028 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16029 hardcode_direct_F77=yes
16030 hardcode_minus_L_F77=no
16031 hardcode_shlibpath_var_F77=no
16032 hardcode_runpath_var=yes
16033 runpath_var=LD_RUN_PATH
16036 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16037 no_undefined_flag_F77='${wl}-z ${wl}text'
16038 if test "$GCC" = yes; then
16039 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 else
16041 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16043 runpath_var='LD_RUN_PATH'
16044 hardcode_shlibpath_var_F77=no
16047 sysv5*)
16048 no_undefined_flag_F77=' -z text'
16049 # $CC -shared without GNU ld will not create a library from C++
16050 # object files and a static libstdc++, better avoid it by now
16051 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16054 hardcode_libdir_flag_spec_F77=
16055 hardcode_shlibpath_var_F77=no
16056 runpath_var='LD_RUN_PATH'
16059 uts4*)
16060 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061 hardcode_libdir_flag_spec_F77='-L$libdir'
16062 hardcode_shlibpath_var_F77=no
16066 ld_shlibs_F77=no
16068 esac
16071 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16072 echo "${ECHO_T}$ld_shlibs_F77" >&6
16073 test "$ld_shlibs_F77" = no && can_build_shared=no
16075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16076 if test "$GCC" = yes; then
16077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16081 # Do we need to explicitly link libc?
16083 case "x$archive_cmds_need_lc_F77" in
16084 x|xyes)
16085 # Assume -lc should be added
16086 archive_cmds_need_lc_F77=yes
16088 if test "$enable_shared" = yes && test "$GCC" = yes; then
16089 case $archive_cmds_F77 in
16090 *'~'*)
16091 # FIXME: we may have to deal with multi-command sequences.
16093 '$CC '*)
16094 # Test whether the compiler implicitly links with -lc since on some
16095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16096 # to ld, don't add -lc before -lgcc.
16097 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16098 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16099 $rm conftest*
16100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16103 (eval $ac_compile) 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } 2>conftest.err; then
16107 soname=conftest
16108 lib=conftest
16109 libobjs=conftest.$ac_objext
16110 deplibs=
16111 wl=$lt_prog_compiler_wl_F77
16112 compiler_flags=-v
16113 linker_flags=-v
16114 verstring=
16115 output_objdir=.
16116 libname=conftest
16117 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16118 allow_undefined_flag_F77=
16119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16120 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }
16124 then
16125 archive_cmds_need_lc_F77=no
16126 else
16127 archive_cmds_need_lc_F77=yes
16129 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16130 else
16131 cat conftest.err 1>&5
16133 $rm conftest*
16134 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16135 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16137 esac
16140 esac
16142 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16143 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16144 library_names_spec=
16145 libname_spec='lib$name'
16146 soname_spec=
16147 shrext_cmds=".so"
16148 postinstall_cmds=
16149 postuninstall_cmds=
16150 finish_cmds=
16151 finish_eval=
16152 shlibpath_var=
16153 shlibpath_overrides_runpath=unknown
16154 version_type=none
16155 dynamic_linker="$host_os ld.so"
16156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16157 if test "$GCC" = yes; then
16158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16159 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16160 # if the path contains ";" then we assume it to be the separator
16161 # otherwise default to the standard path separator (i.e. ":") - it is
16162 # assumed that no part of a normal pathname contains ";" but that should
16163 # okay in the real world where ";" in dirpaths is itself problematic.
16164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16165 else
16166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16168 else
16169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16171 need_lib_prefix=unknown
16172 hardcode_into_libs=no
16174 # when you set need_version to no, make sure it does not cause -set_version
16175 # flags to be left without arguments
16176 need_version=unknown
16178 case $host_os in
16179 aix3*)
16180 version_type=linux
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16182 shlibpath_var=LIBPATH
16184 # AIX 3 has no versioning support, so we append a major version to the name.
16185 soname_spec='${libname}${release}${shared_ext}$major'
16188 aix4* | aix5*)
16189 version_type=linux
16190 need_lib_prefix=no
16191 need_version=no
16192 hardcode_into_libs=yes
16193 if test "$host_cpu" = ia64; then
16194 # AIX 5 supports IA64
16195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 else
16198 # With GCC up to 2.95.x, collect2 would create an import file
16199 # for dependence libraries. The import file would start with
16200 # the line `#! .'. This would cause the generated library to
16201 # depend on `.', always an invalid library. This was fixed in
16202 # development snapshots of GCC prior to 3.0.
16203 case $host_os in
16204 aix4 | aix4.[01] | aix4.[01].*)
16205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16206 echo ' yes '
16207 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16209 else
16210 can_build_shared=no
16213 esac
16214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16215 # soname into executable. Probably we can add versioning support to
16216 # collect2, so additional links can be useful in future.
16217 if test "$aix_use_runtimelinking" = yes; then
16218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16219 # instead of lib<name>.a to let people know that these are not
16220 # typical AIX shared libraries.
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222 else
16223 # We preserve .a as extension for shared libraries through AIX4.2
16224 # and later when we are not doing run time linking.
16225 library_names_spec='${libname}${release}.a $libname.a'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LIBPATH
16232 amigaos*)
16233 library_names_spec='$libname.ixlibrary $libname.a'
16234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16235 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'
16238 beos*)
16239 library_names_spec='${libname}${shared_ext}'
16240 dynamic_linker="$host_os ld.so"
16241 shlibpath_var=LIBRARY_PATH
16244 bsdi[45]*)
16245 version_type=linux
16246 need_version=no
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16253 # the default ld.so.conf also contains /usr/contrib/lib and
16254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16255 # libtool to hard-code these into programs
16258 cygwin* | mingw* | pw32*)
16259 version_type=windows
16260 shrext_cmds=".dll"
16261 need_version=no
16262 need_lib_prefix=no
16264 case $GCC,$host_os in
16265 yes,cygwin* | yes,mingw* | yes,pw32*)
16266 library_names_spec='$libname.dll.a'
16267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16268 postinstall_cmds='base_file=`basename \${file}`~
16269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16270 dldir=$destdir/`dirname \$dlpath`~
16271 test -d \$dldir || mkdir -p \$dldir~
16272 $install_prog $dir/$dlname \$dldir/$dlname'
16273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16274 dlpath=$dir/\$dldll~
16275 $rm \$dlpath'
16276 shlibpath_overrides_runpath=yes
16278 case $host_os in
16279 cygwin*)
16280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16282 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16284 mingw*)
16285 # MinGW DLLs use traditional 'lib' prefix
16286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16289 # It is most probably a Windows format PATH printed by
16290 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16291 # path with ; separators, and with drive letters. We can handle the
16292 # drive letters (cygwin fileutils understands them), so leave them,
16293 # especially as we might pass files found there to a mingw objdump,
16294 # which wouldn't understand a cygwinified path. Ahh.
16295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16296 else
16297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16300 pw32*)
16301 # pw32 DLLs use 'pw' prefix rather than 'lib'
16302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16304 esac
16308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16310 esac
16311 dynamic_linker='Win32 ld.exe'
16312 # FIXME: first we should search . and the directory the executable is in
16313 shlibpath_var=PATH
16316 darwin* | rhapsody*)
16317 dynamic_linker="$host_os dyld"
16318 version_type=darwin
16319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16322 soname_spec='${libname}${release}${major}$shared_ext'
16323 shlibpath_overrides_runpath=yes
16324 shlibpath_var=DYLD_LIBRARY_PATH
16325 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16326 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16327 if test "$GCC" = yes; then
16328 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16329 else
16330 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16335 dgux*)
16336 version_type=linux
16337 need_lib_prefix=no
16338 need_version=no
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16340 soname_spec='${libname}${release}${shared_ext}$major'
16341 shlibpath_var=LD_LIBRARY_PATH
16344 freebsd1*)
16345 dynamic_linker=no
16348 kfreebsd*-gnu)
16349 version_type=linux
16350 need_lib_prefix=no
16351 need_version=no
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=no
16356 hardcode_into_libs=yes
16357 dynamic_linker='GNU ld.so'
16360 freebsd* | dragonfly*)
16361 # DragonFly does not have aout. When/if they implement a new
16362 # versioning mechanism, adjust this.
16363 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16364 version_type=freebsd-$objformat
16365 case $version_type in
16366 freebsd-elf*)
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16368 need_version=no
16369 need_lib_prefix=no
16371 freebsd-*)
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16373 need_version=yes
16375 esac
16376 shlibpath_var=LD_LIBRARY_PATH
16377 case $host_os in
16378 freebsd2*)
16379 shlibpath_overrides_runpath=yes
16381 freebsd3.[01]* | freebsdelf3.[01]*)
16382 shlibpath_overrides_runpath=yes
16383 hardcode_into_libs=yes
16385 *) # from 3.2 on
16386 shlibpath_overrides_runpath=no
16387 hardcode_into_libs=yes
16389 esac
16392 gnu*)
16393 version_type=linux
16394 need_lib_prefix=no
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 hardcode_into_libs=yes
16402 hpux9* | hpux10* | hpux11*)
16403 # Give a soname corresponding to the major version so that dld.sl refuses to
16404 # link against other versions.
16405 version_type=sunos
16406 need_lib_prefix=no
16407 need_version=no
16408 case "$host_cpu" in
16409 ia64*)
16410 shrext_cmds='.so'
16411 hardcode_into_libs=yes
16412 dynamic_linker="$host_os dld.so"
16413 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 if test "X$HPUX_IA64_MODE" = X32; then
16418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16419 else
16420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16424 hppa*64*)
16425 shrext_cmds='.sl'
16426 hardcode_into_libs=yes
16427 dynamic_linker="$host_os dld.sl"
16428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16436 shrext_cmds='.sl'
16437 dynamic_linker="$host_os dld.sl"
16438 shlibpath_var=SHLIB_PATH
16439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16443 esac
16444 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16445 postinstall_cmds='chmod 555 $lib'
16448 irix5* | irix6* | nonstopux*)
16449 case $host_os in
16450 nonstopux*) version_type=nonstopux ;;
16452 if test "$lt_cv_prog_gnu_ld" = yes; then
16453 version_type=linux
16454 else
16455 version_type=irix
16456 fi ;;
16457 esac
16458 need_lib_prefix=no
16459 need_version=no
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16462 case $host_os in
16463 irix5* | nonstopux*)
16464 libsuff= shlibsuff=
16467 case $LD in # libtool.m4 will add one of these switches to LD
16468 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16469 libsuff= shlibsuff= libmagic=32-bit;;
16470 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16471 libsuff=32 shlibsuff=N32 libmagic=N32;;
16472 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16473 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16474 *) libsuff= shlibsuff= libmagic=never-match;;
16475 esac
16477 esac
16478 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16479 shlibpath_overrides_runpath=no
16480 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16481 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16482 hardcode_into_libs=yes
16485 # No shared lib support for Linux oldld, aout, or coff.
16486 linux*oldld* | linux*aout* | linux*coff*)
16487 dynamic_linker=no
16490 # This must be Linux ELF.
16491 linux*)
16492 version_type=linux
16493 need_lib_prefix=no
16494 need_version=no
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=no
16500 # This implies no fast_install, which is unacceptable.
16501 # Some rework will be needed to allow for fast_install
16502 # before this can be enabled.
16503 hardcode_into_libs=yes
16505 # Append ld.so.conf contents to the search path
16506 if test -f /etc/ld.so.conf; then
16507 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16511 # We used to test for /lib/ld.so.1 and disable shared libraries on
16512 # powerpc, because MkLinux only supported shared libraries with the
16513 # GNU dynamic linker. Since this was broken with cross compilers,
16514 # most powerpc-linux boxes support dynamic linking these days and
16515 # people can always --disable-shared, the test was removed, and we
16516 # assume the GNU/Linux dynamic linker is in use.
16517 dynamic_linker='GNU/Linux ld.so'
16520 knetbsd*-gnu)
16521 version_type=linux
16522 need_lib_prefix=no
16523 need_version=no
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=no
16528 hardcode_into_libs=yes
16529 dynamic_linker='GNU ld.so'
16532 netbsd*)
16533 version_type=sunos
16534 need_lib_prefix=no
16535 need_version=no
16536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16539 dynamic_linker='NetBSD (a.out) ld.so'
16540 else
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 dynamic_linker='NetBSD ld.elf_so'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 shlibpath_overrides_runpath=yes
16547 hardcode_into_libs=yes
16550 newsos6)
16551 version_type=linux
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes
16557 nto-qnx*)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=yes
16567 openbsd*)
16568 version_type=sunos
16569 need_lib_prefix=no
16570 need_version=no
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16575 case $host_os in
16576 openbsd2.[89] | openbsd2.[89].*)
16577 shlibpath_overrides_runpath=no
16580 shlibpath_overrides_runpath=yes
16582 esac
16583 else
16584 shlibpath_overrides_runpath=yes
16588 os2*)
16589 libname_spec='$name'
16590 shrext_cmds=".dll"
16591 need_lib_prefix=no
16592 library_names_spec='$libname${shared_ext} $libname.a'
16593 dynamic_linker='OS/2 ld.exe'
16594 shlibpath_var=LIBPATH
16597 osf3* | osf4* | osf5*)
16598 version_type=osf
16599 need_lib_prefix=no
16600 need_version=no
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16608 sco3.2v5*)
16609 version_type=osf
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612 shlibpath_var=LD_LIBRARY_PATH
16615 solaris*)
16616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 hardcode_into_libs=yes
16624 # ldd complains unless libraries are executable
16625 postinstall_cmds='chmod +x $lib'
16628 sunos4*)
16629 version_type=sunos
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 if test "$with_gnu_ld" = yes; then
16635 need_lib_prefix=no
16637 need_version=yes
16640 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16641 version_type=linux
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 case $host_vendor in
16646 sni)
16647 shlibpath_overrides_runpath=no
16648 need_lib_prefix=no
16649 export_dynamic_flag_spec='${wl}-Blargedynsym'
16650 runpath_var=LD_RUN_PATH
16652 siemens)
16653 need_lib_prefix=no
16655 motorola)
16656 need_lib_prefix=no
16657 need_version=no
16658 shlibpath_overrides_runpath=no
16659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16661 esac
16664 sysv4*MP*)
16665 if test -d /usr/nec ;then
16666 version_type=linux
16667 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16668 soname_spec='$libname${shared_ext}.$major'
16669 shlibpath_var=LD_LIBRARY_PATH
16673 uts4*)
16674 version_type=linux
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 shlibpath_var=LD_LIBRARY_PATH
16681 dynamic_linker=no
16683 esac
16684 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16685 echo "${ECHO_T}$dynamic_linker" >&6
16686 test "$dynamic_linker" = no && can_build_shared=no
16688 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16689 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16690 hardcode_action_F77=
16691 if test -n "$hardcode_libdir_flag_spec_F77" || \
16692 test -n "$runpath_var_F77" || \
16693 test "X$hardcode_automatic_F77" = "Xyes" ; then
16695 # We can hardcode non-existant directories.
16696 if test "$hardcode_direct_F77" != no &&
16697 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16698 # have to relink, otherwise we might link with an installed library
16699 # when we should be linking with a yet-to-be-installed one
16700 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16701 test "$hardcode_minus_L_F77" != no; then
16702 # Linking always hardcodes the temporary library directory.
16703 hardcode_action_F77=relink
16704 else
16705 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16706 hardcode_action_F77=immediate
16708 else
16709 # We cannot hardcode anything, or else we can only hardcode existing
16710 # directories.
16711 hardcode_action_F77=unsupported
16713 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16714 echo "${ECHO_T}$hardcode_action_F77" >&6
16716 if test "$hardcode_action_F77" = relink; then
16717 # Fast installation is not supported
16718 enable_fast_install=no
16719 elif test "$shlibpath_overrides_runpath" = yes ||
16720 test "$enable_shared" = no; then
16721 # Fast installation is not necessary
16722 enable_fast_install=needless
16725 striplib=
16726 old_striplib=
16727 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16728 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16729 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16730 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16731 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16732 echo "$as_me:$LINENO: result: yes" >&5
16733 echo "${ECHO_T}yes" >&6
16734 else
16735 # FIXME - insert some real tests, host_os isn't really good enough
16736 case $host_os in
16737 darwin*)
16738 if test -n "$STRIP" ; then
16739 striplib="$STRIP -x"
16740 echo "$as_me:$LINENO: result: yes" >&5
16741 echo "${ECHO_T}yes" >&6
16742 else
16743 echo "$as_me:$LINENO: result: no" >&5
16744 echo "${ECHO_T}no" >&6
16748 echo "$as_me:$LINENO: result: no" >&5
16749 echo "${ECHO_T}no" >&6
16751 esac
16756 # The else clause should only fire when bootstrapping the
16757 # libtool distribution, otherwise you forgot to ship ltmain.sh
16758 # with your package, and you will get complaints that there are
16759 # no rules to generate ltmain.sh.
16760 if test -f "$ltmain"; then
16761 # See if we are running on zsh, and set the options which allow our commands through
16762 # without removal of \ escapes.
16763 if test -n "${ZSH_VERSION+set}" ; then
16764 setopt NO_GLOB_SUBST
16766 # Now quote all the things that may contain metacharacters while being
16767 # careful not to overquote the AC_SUBSTed values. We take copies of the
16768 # variables and quote the copies for generation of the libtool script.
16769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16770 SED SHELL STRIP \
16771 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16772 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16773 deplibs_check_method reload_flag reload_cmds need_locks \
16774 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16775 lt_cv_sys_global_symbol_to_c_name_address \
16776 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16777 old_postinstall_cmds old_postuninstall_cmds \
16778 compiler_F77 \
16779 CC_F77 \
16780 LD_F77 \
16781 lt_prog_compiler_wl_F77 \
16782 lt_prog_compiler_pic_F77 \
16783 lt_prog_compiler_static_F77 \
16784 lt_prog_compiler_no_builtin_flag_F77 \
16785 export_dynamic_flag_spec_F77 \
16786 thread_safe_flag_spec_F77 \
16787 whole_archive_flag_spec_F77 \
16788 enable_shared_with_static_runtimes_F77 \
16789 old_archive_cmds_F77 \
16790 old_archive_from_new_cmds_F77 \
16791 predep_objects_F77 \
16792 postdep_objects_F77 \
16793 predeps_F77 \
16794 postdeps_F77 \
16795 compiler_lib_search_path_F77 \
16796 archive_cmds_F77 \
16797 archive_expsym_cmds_F77 \
16798 postinstall_cmds_F77 \
16799 postuninstall_cmds_F77 \
16800 old_archive_from_expsyms_cmds_F77 \
16801 allow_undefined_flag_F77 \
16802 no_undefined_flag_F77 \
16803 export_symbols_cmds_F77 \
16804 hardcode_libdir_flag_spec_F77 \
16805 hardcode_libdir_flag_spec_ld_F77 \
16806 hardcode_libdir_separator_F77 \
16807 hardcode_automatic_F77 \
16808 module_cmds_F77 \
16809 module_expsym_cmds_F77 \
16810 lt_cv_prog_compiler_c_o_F77 \
16811 exclude_expsyms_F77 \
16812 include_expsyms_F77; do
16814 case $var in
16815 old_archive_cmds_F77 | \
16816 old_archive_from_new_cmds_F77 | \
16817 archive_cmds_F77 | \
16818 archive_expsym_cmds_F77 | \
16819 module_cmds_F77 | \
16820 module_expsym_cmds_F77 | \
16821 old_archive_from_expsyms_cmds_F77 | \
16822 export_symbols_cmds_F77 | \
16823 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16824 postinstall_cmds | postuninstall_cmds | \
16825 old_postinstall_cmds | old_postuninstall_cmds | \
16826 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16827 # Double-quote double-evaled strings.
16828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16833 esac
16834 done
16836 case $lt_echo in
16837 *'\$0 --fallback-echo"')
16838 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16840 esac
16842 cfgfile="$ofile"
16844 cat <<__EOF__ >> "$cfgfile"
16845 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16849 # Shell to use when invoking shell scripts.
16850 SHELL=$lt_SHELL
16852 # Whether or not to build shared libraries.
16853 build_libtool_libs=$enable_shared
16855 # Whether or not to build static libraries.
16856 build_old_libs=$enable_static
16858 # Whether or not to add -lc for building shared libraries.
16859 build_libtool_need_lc=$archive_cmds_need_lc_F77
16861 # Whether or not to disallow shared libs when runtime libs are static
16862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16864 # Whether or not to optimize for fast installation.
16865 fast_install=$enable_fast_install
16867 # The host system.
16868 host_alias=$host_alias
16869 host=$host
16870 host_os=$host_os
16872 # The build system.
16873 build_alias=$build_alias
16874 build=$build
16875 build_os=$build_os
16877 # An echo program that does not interpret backslashes.
16878 echo=$lt_echo
16880 # The archiver.
16881 AR=$lt_AR
16882 AR_FLAGS=$lt_AR_FLAGS
16884 # A C compiler.
16885 LTCC=$lt_LTCC
16887 # A language-specific compiler.
16888 CC=$lt_compiler_F77
16890 # Is the compiler the GNU C compiler?
16891 with_gcc=$GCC_F77
16893 # An ERE matcher.
16894 EGREP=$lt_EGREP
16896 # The linker used to build libraries.
16897 LD=$lt_LD_F77
16899 # Whether we need hard or soft links.
16900 LN_S=$lt_LN_S
16902 # A BSD-compatible nm program.
16903 NM=$lt_NM
16905 # A symbol stripping program
16906 STRIP=$lt_STRIP
16908 # Used to examine libraries when file_magic_cmd begins "file"
16909 MAGIC_CMD=$MAGIC_CMD
16911 # Used on cygwin: DLL creation program.
16912 DLLTOOL="$DLLTOOL"
16914 # Used on cygwin: object dumper.
16915 OBJDUMP="$OBJDUMP"
16917 # Used on cygwin: assembler.
16918 AS="$AS"
16920 # The name of the directory that contains temporary libtool files.
16921 objdir=$objdir
16923 # How to create reloadable object files.
16924 reload_flag=$lt_reload_flag
16925 reload_cmds=$lt_reload_cmds
16927 # How to pass a linker flag through the compiler.
16928 wl=$lt_lt_prog_compiler_wl_F77
16930 # Object file suffix (normally "o").
16931 objext="$ac_objext"
16933 # Old archive suffix (normally "a").
16934 libext="$libext"
16936 # Shared library suffix (normally ".so").
16937 shrext_cmds='$shrext_cmds'
16939 # Executable file suffix (normally "").
16940 exeext="$exeext"
16942 # Additional compiler flags for building library objects.
16943 pic_flag=$lt_lt_prog_compiler_pic_F77
16944 pic_mode=$pic_mode
16946 # What is the maximum length of a command?
16947 max_cmd_len=$lt_cv_sys_max_cmd_len
16949 # Does compiler simultaneously support -c and -o options?
16950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16952 # Must we lock files when doing compilation ?
16953 need_locks=$lt_need_locks
16955 # Do we need the lib prefix for modules?
16956 need_lib_prefix=$need_lib_prefix
16958 # Do we need a version for libraries?
16959 need_version=$need_version
16961 # Whether dlopen is supported.
16962 dlopen_support=$enable_dlopen
16964 # Whether dlopen of programs is supported.
16965 dlopen_self=$enable_dlopen_self
16967 # Whether dlopen of statically linked programs is supported.
16968 dlopen_self_static=$enable_dlopen_self_static
16970 # Compiler flag to prevent dynamic linking.
16971 link_static_flag=$lt_lt_prog_compiler_static_F77
16973 # Compiler flag to turn off builtin functions.
16974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16976 # Compiler flag to allow reflexive dlopens.
16977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16979 # Compiler flag to generate shared objects directly from archives.
16980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16982 # Compiler flag to generate thread-safe objects.
16983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16985 # Library versioning type.
16986 version_type=$version_type
16988 # Format of library name prefix.
16989 libname_spec=$lt_libname_spec
16991 # List of archive names. First name is the real one, the rest are links.
16992 # The last name is the one that the linker finds with -lNAME.
16993 library_names_spec=$lt_library_names_spec
16995 # The coded name of the library, if different from the real name.
16996 soname_spec=$lt_soname_spec
16998 # Commands used to build and install an old-style archive.
16999 RANLIB=$lt_RANLIB
17000 old_archive_cmds=$lt_old_archive_cmds_F77
17001 old_postinstall_cmds=$lt_old_postinstall_cmds
17002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17004 # Create an old-style archive from a shared archive.
17005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17007 # Create a temporary old-style archive to link instead of a shared archive.
17008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17010 # Commands used to build and install a shared archive.
17011 archive_cmds=$lt_archive_cmds_F77
17012 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17013 postinstall_cmds=$lt_postinstall_cmds
17014 postuninstall_cmds=$lt_postuninstall_cmds
17016 # Commands used to build a loadable module (assumed same as above if empty)
17017 module_cmds=$lt_module_cmds_F77
17018 module_expsym_cmds=$lt_module_expsym_cmds_F77
17020 # Commands to strip libraries.
17021 old_striplib=$lt_old_striplib
17022 striplib=$lt_striplib
17024 # Dependencies to place before the objects being linked to create a
17025 # shared library.
17026 predep_objects=$lt_predep_objects_F77
17028 # Dependencies to place after the objects being linked to create a
17029 # shared library.
17030 postdep_objects=$lt_postdep_objects_F77
17032 # Dependencies to place before the objects being linked to create a
17033 # shared library.
17034 predeps=$lt_predeps_F77
17036 # Dependencies to place after the objects being linked to create a
17037 # shared library.
17038 postdeps=$lt_postdeps_F77
17040 # The library search path used internally by the compiler when linking
17041 # a shared library.
17042 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17044 # Method to check whether dependent libraries are shared objects.
17045 deplibs_check_method=$lt_deplibs_check_method
17047 # Command to use when deplibs_check_method == file_magic.
17048 file_magic_cmd=$lt_file_magic_cmd
17050 # Flag that allows shared libraries with undefined symbols to be built.
17051 allow_undefined_flag=$lt_allow_undefined_flag_F77
17053 # Flag that forces no undefined symbols.
17054 no_undefined_flag=$lt_no_undefined_flag_F77
17056 # Commands used to finish a libtool library installation in a directory.
17057 finish_cmds=$lt_finish_cmds
17059 # Same as above, but a single script fragment to be evaled but not shown.
17060 finish_eval=$lt_finish_eval
17062 # Take the output of nm and produce a listing of raw symbols and C names.
17063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17065 # Transform the output of nm in a proper C declaration
17066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17068 # Transform the output of nm in a C name address pair
17069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17071 # This is the shared library runtime path variable.
17072 runpath_var=$runpath_var
17074 # This is the shared library path variable.
17075 shlibpath_var=$shlibpath_var
17077 # Is shlibpath searched before the hard-coded library search path?
17078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17080 # How to hardcode a shared library path into an executable.
17081 hardcode_action=$hardcode_action_F77
17083 # Whether we should hardcode library paths into libraries.
17084 hardcode_into_libs=$hardcode_into_libs
17086 # Flag to hardcode \$libdir into a binary during linking.
17087 # This must work even if \$libdir does not exist.
17088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17090 # If ld is used when linking, flag to hardcode \$libdir into
17091 # a binary during linking. This must work even if \$libdir does
17092 # not exist.
17093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17095 # Whether we need a single -rpath flag with a separated argument.
17096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17099 # resulting binary.
17100 hardcode_direct=$hardcode_direct_F77
17102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17103 # resulting binary.
17104 hardcode_minus_L=$hardcode_minus_L_F77
17106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17107 # the resulting binary.
17108 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17110 # Set to yes if building a shared library automatically hardcodes DIR into the library
17111 # and all subsequent libraries and executables linked against it.
17112 hardcode_automatic=$hardcode_automatic_F77
17114 # Variables whose values should be saved in libtool wrapper scripts and
17115 # restored at relink time.
17116 variables_saved_for_relink="$variables_saved_for_relink"
17118 # Whether libtool must link a program against all its dependency libraries.
17119 link_all_deplibs=$link_all_deplibs_F77
17121 # Compile-time system search path for libraries
17122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17124 # Run-time system search path for libraries
17125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17127 # Fix the shell variable \$srcfile for the compiler.
17128 fix_srcfile_path="$fix_srcfile_path_F77"
17130 # Set to yes if exported symbols are required.
17131 always_export_symbols=$always_export_symbols_F77
17133 # The commands to list exported symbols.
17134 export_symbols_cmds=$lt_export_symbols_cmds_F77
17136 # The commands to extract the exported symbol list from a shared archive.
17137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17139 # Symbols that should not be listed in the preloaded symbols.
17140 exclude_expsyms=$lt_exclude_expsyms_F77
17142 # Symbols that must always be exported.
17143 include_expsyms=$lt_include_expsyms_F77
17145 # ### END LIBTOOL TAG CONFIG: $tagname
17147 __EOF__
17150 else
17151 # If there is no Makefile yet, we rely on a make rule to execute
17152 # `config.status --recheck' to rerun these tests and create the
17153 # libtool script then.
17154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17155 if test -f "$ltmain_in"; then
17156 test -f Makefile && make "$ltmain"
17161 ac_ext=c
17162 ac_cpp='$CPP $CPPFLAGS'
17163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17167 CC="$lt_save_CC"
17169 else
17170 tagname=""
17174 GCJ)
17175 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17179 # Source file extension for Java test sources.
17180 ac_ext=java
17182 # Object file extension for compiled Java test sources.
17183 objext=o
17184 objext_GCJ=$objext
17186 # Code to be used in simple compile tests
17187 lt_simple_compile_test_code="class foo {}\n"
17189 # Code to be used in simple link tests
17190 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17194 # If no C compiler was specified, use CC.
17195 LTCC=${LTCC-"$CC"}
17197 # Allow CC to be a program name with arguments.
17198 compiler=$CC
17201 # Allow CC to be a program name with arguments.
17202 lt_save_CC="$CC"
17203 CC=${GCJ-"gcj"}
17204 compiler=$CC
17205 compiler_GCJ=$CC
17207 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17208 archive_cmds_need_lc_GCJ=no
17210 ## CAVEAT EMPTOR:
17211 ## There is no encapsulation within the following macros, do not change
17212 ## the running order or otherwise move them around unless you know exactly
17213 ## what you are doing...
17215 lt_prog_compiler_no_builtin_flag_GCJ=
17217 if test "$GCC" = yes; then
17218 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17221 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17223 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 lt_cv_prog_compiler_rtti_exceptions=no
17227 ac_outfile=conftest.$ac_objext
17228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17229 lt_compiler_flag="-fno-rtti -fno-exceptions"
17230 # Insert the option either (1) after the last *FLAGS variable, or
17231 # (2) before a word containing "conftest.", or (3) at the end.
17232 # Note that $ac_compile itself does not contain backslashes and begins
17233 # with a dollar sign (not a hyphen), so the echo should work correctly.
17234 # The option is referenced via a variable to avoid confusing sed.
17235 lt_compile=`echo "$ac_compile" | $SED \
17236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17238 -e 's:$: $lt_compiler_flag:'`
17239 (eval echo "\"\$as_me:17239: $lt_compile\"" >&5)
17240 (eval "$lt_compile" 2>conftest.err)
17241 ac_status=$?
17242 cat conftest.err >&5
17243 echo "$as_me:17243: \$? = $ac_status" >&5
17244 if (exit $ac_status) && test -s "$ac_outfile"; then
17245 # The compiler can only warn and ignore the option if not recognized
17246 # So say no if there are warnings
17247 if test ! -s conftest.err; then
17248 lt_cv_prog_compiler_rtti_exceptions=yes
17251 $rm conftest*
17254 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17255 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17257 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17258 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17259 else
17265 lt_prog_compiler_wl_GCJ=
17266 lt_prog_compiler_pic_GCJ=
17267 lt_prog_compiler_static_GCJ=
17269 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17270 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17272 if test "$GCC" = yes; then
17273 lt_prog_compiler_wl_GCJ='-Wl,'
17274 lt_prog_compiler_static_GCJ='-static'
17276 case $host_os in
17277 aix*)
17278 # All AIX code is PIC.
17279 if test "$host_cpu" = ia64; then
17280 # AIX 5 now supports IA64 processor
17281 lt_prog_compiler_static_GCJ='-Bstatic'
17285 amigaos*)
17286 # FIXME: we need at least 68020 code to build shared libraries, but
17287 # adding the `-m68020' flag to GCC prevents building anything better,
17288 # like `-m68040'.
17289 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17292 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17293 # PIC is the default for these OSes.
17296 mingw* | pw32* | os2*)
17297 # This hack is so that the source file can tell whether it is being
17298 # built for inclusion in a dll (and should export symbols for example).
17299 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17302 darwin* | rhapsody*)
17303 # PIC is the default on this platform
17304 # Common symbols not allowed in MH_DYLIB files
17305 lt_prog_compiler_pic_GCJ='-fno-common'
17308 msdosdjgpp*)
17309 # Just because we use GCC doesn't mean we suddenly get shared libraries
17310 # on systems that don't support them.
17311 lt_prog_compiler_can_build_shared_GCJ=no
17312 enable_shared=no
17315 sysv4*MP*)
17316 if test -d /usr/nec; then
17317 lt_prog_compiler_pic_GCJ=-Kconform_pic
17321 hpux*)
17322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17323 # not for PA HP-UX.
17324 case "$host_cpu" in
17325 hppa*64*|ia64*)
17326 # +Z the default
17329 lt_prog_compiler_pic_GCJ='-fPIC'
17331 esac
17335 lt_prog_compiler_pic_GCJ='-fPIC'
17337 esac
17338 else
17339 # PORTME Check for flag to pass linker flags through the system compiler.
17340 case $host_os in
17341 aix*)
17342 lt_prog_compiler_wl_GCJ='-Wl,'
17343 if test "$host_cpu" = ia64; then
17344 # AIX 5 now supports IA64 processor
17345 lt_prog_compiler_static_GCJ='-Bstatic'
17346 else
17347 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17350 darwin*)
17351 # PIC is the default on this platform
17352 # Common symbols not allowed in MH_DYLIB files
17353 case "$cc_basename" in
17354 xlc*)
17355 lt_prog_compiler_pic_GCJ='-qnocommon'
17356 lt_prog_compiler_wl_GCJ='-Wl,'
17358 esac
17361 mingw* | pw32* | os2*)
17362 # This hack is so that the source file can tell whether it is being
17363 # built for inclusion in a dll (and should export symbols for example).
17364 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17367 hpux9* | hpux10* | hpux11*)
17368 lt_prog_compiler_wl_GCJ='-Wl,'
17369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17370 # not for PA HP-UX.
17371 case "$host_cpu" in
17372 hppa*64*|ia64*)
17373 # +Z the default
17376 lt_prog_compiler_pic_GCJ='+Z'
17378 esac
17379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17380 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17383 irix5* | irix6* | nonstopux*)
17384 lt_prog_compiler_wl_GCJ='-Wl,'
17385 # PIC (with -KPIC) is the default.
17386 lt_prog_compiler_static_GCJ='-non_shared'
17389 newsos6)
17390 lt_prog_compiler_pic_GCJ='-KPIC'
17391 lt_prog_compiler_static_GCJ='-Bstatic'
17394 linux*)
17395 case $cc_basename in
17396 icc* | ecc*)
17397 lt_prog_compiler_wl_GCJ='-Wl,'
17398 lt_prog_compiler_pic_GCJ='-KPIC'
17399 lt_prog_compiler_static_GCJ='-static'
17401 pgcc | pgf77 | pgf90)
17402 # Portland Group compilers (*not* the Pentium gcc compiler,
17403 # which looks to be a dead project)
17404 lt_prog_compiler_wl_GCJ='-Wl,'
17405 lt_prog_compiler_pic_GCJ='-fpic'
17406 lt_prog_compiler_static_GCJ='-static'
17408 ccc*)
17409 lt_prog_compiler_wl_GCJ='-Wl,'
17410 # All Alpha code is PIC.
17411 lt_prog_compiler_static_GCJ='-non_shared'
17413 como)
17414 lt_prog_compiler_wl_GCJ='-lopt='
17416 esac
17419 osf3* | osf4* | osf5*)
17420 lt_prog_compiler_wl_GCJ='-Wl,'
17421 # All OSF/1 code is PIC.
17422 lt_prog_compiler_static_GCJ='-non_shared'
17425 sco3.2v5*)
17426 lt_prog_compiler_pic_GCJ='-Kpic'
17427 lt_prog_compiler_static_GCJ='-dn'
17430 solaris*)
17431 lt_prog_compiler_wl_GCJ='-Wl,'
17432 lt_prog_compiler_pic_GCJ='-KPIC'
17433 lt_prog_compiler_static_GCJ='-Bstatic'
17436 sunos4*)
17437 lt_prog_compiler_wl_GCJ='-Qoption ld '
17438 lt_prog_compiler_pic_GCJ='-PIC'
17439 lt_prog_compiler_static_GCJ='-Bstatic'
17442 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17443 lt_prog_compiler_wl_GCJ='-Wl,'
17444 lt_prog_compiler_pic_GCJ='-KPIC'
17445 lt_prog_compiler_static_GCJ='-Bstatic'
17448 sysv4*MP*)
17449 if test -d /usr/nec ;then
17450 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17451 lt_prog_compiler_static_GCJ='-Bstatic'
17455 unicos*)
17456 lt_prog_compiler_wl_GCJ='-Wl,'
17457 lt_prog_compiler_can_build_shared_GCJ=no
17460 uts4*)
17461 lt_prog_compiler_pic_GCJ='-pic'
17462 lt_prog_compiler_static_GCJ='-Bstatic'
17466 lt_prog_compiler_can_build_shared_GCJ=no
17468 esac
17471 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17472 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17475 # Check to make sure the PIC flag actually works.
17477 if test -n "$lt_prog_compiler_pic_GCJ"; then
17479 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17480 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17481 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484 lt_prog_compiler_pic_works_GCJ=no
17485 ac_outfile=conftest.$ac_objext
17486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17487 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17488 # Insert the option either (1) after the last *FLAGS variable, or
17489 # (2) before a word containing "conftest.", or (3) at the end.
17490 # Note that $ac_compile itself does not contain backslashes and begins
17491 # with a dollar sign (not a hyphen), so the echo should work correctly.
17492 # The option is referenced via a variable to avoid confusing sed.
17493 lt_compile=`echo "$ac_compile" | $SED \
17494 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17496 -e 's:$: $lt_compiler_flag:'`
17497 (eval echo "\"\$as_me:17497: $lt_compile\"" >&5)
17498 (eval "$lt_compile" 2>conftest.err)
17499 ac_status=$?
17500 cat conftest.err >&5
17501 echo "$as_me:17501: \$? = $ac_status" >&5
17502 if (exit $ac_status) && test -s "$ac_outfile"; then
17503 # The compiler can only warn and ignore the option if not recognized
17504 # So say no if there are warnings
17505 if test ! -s conftest.err; then
17506 lt_prog_compiler_pic_works_GCJ=yes
17509 $rm conftest*
17512 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17513 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17515 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17516 case $lt_prog_compiler_pic_GCJ in
17517 "" | " "*) ;;
17518 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17519 esac
17520 else
17521 lt_prog_compiler_pic_GCJ=
17522 lt_prog_compiler_can_build_shared_GCJ=no
17526 case "$host_os" in
17527 # For platforms which do not support PIC, -DPIC is meaningless:
17528 *djgpp*)
17529 lt_prog_compiler_pic_GCJ=
17532 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17534 esac
17536 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17537 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17538 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541 lt_cv_prog_compiler_c_o_GCJ=no
17542 $rm -r conftest 2>/dev/null
17543 mkdir conftest
17544 cd conftest
17545 mkdir out
17546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17548 lt_compiler_flag="-o out/conftest2.$ac_objext"
17549 # Insert the option either (1) after the last *FLAGS variable, or
17550 # (2) before a word containing "conftest.", or (3) at the end.
17551 # Note that $ac_compile itself does not contain backslashes and begins
17552 # with a dollar sign (not a hyphen), so the echo should work correctly.
17553 lt_compile=`echo "$ac_compile" | $SED \
17554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17556 -e 's:$: $lt_compiler_flag:'`
17557 (eval echo "\"\$as_me:17557: $lt_compile\"" >&5)
17558 (eval "$lt_compile" 2>out/conftest.err)
17559 ac_status=$?
17560 cat out/conftest.err >&5
17561 echo "$as_me:17561: \$? = $ac_status" >&5
17562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17563 then
17564 # The compiler can only warn and ignore the option if not recognized
17565 # So say no if there are warnings
17566 if test ! -s out/conftest.err; then
17567 lt_cv_prog_compiler_c_o_GCJ=yes
17570 chmod u+w .
17571 $rm conftest*
17572 # SGI C++ compiler will create directory out/ii_files/ for
17573 # template instantiation
17574 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17575 $rm out/* && rmdir out
17576 cd ..
17577 rmdir conftest
17578 $rm conftest*
17581 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17582 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17585 hard_links="nottested"
17586 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17587 # do not overwrite the value of need_locks provided by the user
17588 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17589 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17590 hard_links=yes
17591 $rm conftest*
17592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17593 touch conftest.a
17594 ln conftest.a conftest.b 2>&5 || hard_links=no
17595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17596 echo "$as_me:$LINENO: result: $hard_links" >&5
17597 echo "${ECHO_T}$hard_links" >&6
17598 if test "$hard_links" = no; then
17599 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17600 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17601 need_locks=warn
17603 else
17604 need_locks=no
17607 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17608 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17610 runpath_var=
17611 allow_undefined_flag_GCJ=
17612 enable_shared_with_static_runtimes_GCJ=no
17613 archive_cmds_GCJ=
17614 archive_expsym_cmds_GCJ=
17615 old_archive_From_new_cmds_GCJ=
17616 old_archive_from_expsyms_cmds_GCJ=
17617 export_dynamic_flag_spec_GCJ=
17618 whole_archive_flag_spec_GCJ=
17619 thread_safe_flag_spec_GCJ=
17620 hardcode_libdir_flag_spec_GCJ=
17621 hardcode_libdir_flag_spec_ld_GCJ=
17622 hardcode_libdir_separator_GCJ=
17623 hardcode_direct_GCJ=no
17624 hardcode_minus_L_GCJ=no
17625 hardcode_shlibpath_var_GCJ=unsupported
17626 link_all_deplibs_GCJ=unknown
17627 hardcode_automatic_GCJ=no
17628 module_cmds_GCJ=
17629 module_expsym_cmds_GCJ=
17630 always_export_symbols_GCJ=no
17631 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17632 # include_expsyms should be a list of space-separated symbols to be *always*
17633 # included in the symbol list
17634 include_expsyms_GCJ=
17635 # exclude_expsyms can be an extended regexp of symbols to exclude
17636 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17637 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17638 # as well as any symbol that contains `d'.
17639 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17640 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17641 # platforms (ab)use it in PIC code, but their linkers get confused if
17642 # the symbol is explicitly referenced. Since portable code cannot
17643 # rely on this symbol name, it's probably fine to never include it in
17644 # preloaded symbol tables.
17645 extract_expsyms_cmds=
17647 case $host_os in
17648 cygwin* | mingw* | pw32*)
17649 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17650 # When not using gcc, we currently assume that we are using
17651 # Microsoft Visual C++.
17652 if test "$GCC" != yes; then
17653 with_gnu_ld=no
17656 openbsd*)
17657 with_gnu_ld=no
17659 esac
17661 ld_shlibs_GCJ=yes
17662 if test "$with_gnu_ld" = yes; then
17663 # If archive_cmds runs LD, not CC, wlarc should be empty
17664 wlarc='${wl}'
17666 # See if GNU ld supports shared libraries.
17667 case $host_os in
17668 aix3* | aix4* | aix5*)
17669 # On AIX/PPC, the GNU linker is very broken
17670 if test "$host_cpu" != ia64; then
17671 ld_shlibs_GCJ=no
17672 cat <<EOF 1>&2
17674 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17675 *** to be unable to reliably create shared libraries on AIX.
17676 *** Therefore, libtool is disabling shared libraries support. If you
17677 *** really care for shared libraries, you may want to modify your PATH
17678 *** so that a non-GNU linker is found, and then restart.
17684 amigaos*)
17685 archive_cmds_GCJ='$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)'
17686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17687 hardcode_minus_L_GCJ=yes
17689 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17690 # that the semantics of dynamic libraries on AmigaOS, at least up
17691 # to version 4, is to share data among multiple programs linked
17692 # with the same dynamic library. Since this doesn't match the
17693 # behavior of shared libraries on other platforms, we can't use
17694 # them.
17695 ld_shlibs_GCJ=no
17698 beos*)
17699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17700 allow_undefined_flag_GCJ=unsupported
17701 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17702 # support --undefined. This deserves some investigation. FIXME
17703 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17704 else
17705 ld_shlibs_GCJ=no
17709 cygwin* | mingw* | pw32*)
17710 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17711 # as there is no search path for DLLs.
17712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17713 allow_undefined_flag_GCJ=unsupported
17714 always_export_symbols_GCJ=no
17715 enable_shared_with_static_runtimes_GCJ=yes
17716 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17718 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17719 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17720 # If the export-symbols file already is a .def file (1st line
17721 # is EXPORTS), use it as is; otherwise, prepend...
17722 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17723 cp $export_symbols $output_objdir/$soname.def;
17724 else
17725 echo EXPORTS > $output_objdir/$soname.def;
17726 cat $export_symbols >> $output_objdir/$soname.def;
17728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17729 else
17730 ld_shlibs_GCJ=no
17734 netbsd*)
17735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17736 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17737 wlarc=
17738 else
17739 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17740 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17744 solaris* | sysv5*)
17745 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17746 ld_shlibs_GCJ=no
17747 cat <<EOF 1>&2
17749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17750 *** create shared libraries on Solaris systems. Therefore, libtool
17751 *** is disabling shared libraries support. We urge you to upgrade GNU
17752 *** binutils to release 2.9.1 or newer. Another option is to modify
17753 *** your PATH or compiler configuration so that the native linker is
17754 *** used, and then restart.
17757 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17758 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17759 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17760 else
17761 ld_shlibs_GCJ=no
17765 sunos4*)
17766 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17767 wlarc=
17768 hardcode_direct_GCJ=yes
17769 hardcode_shlibpath_var_GCJ=no
17772 linux*)
17773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17774 tmp_addflag=
17775 case $CC,$host_cpu in
17776 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17777 tmp_addflag=' -fpic' ;;
17778 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17779 tmp_addflag=' -i_dynamic' ;;
17780 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17781 tmp_addflag=' -i_dynamic -nofor_main' ;;
17782 ifc* | ifort*) # Intel Fortran compiler
17783 tmp_addflag=' -nofor_main' ;;
17784 esac
17785 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17786 supports_anon_versioning=no
17787 case `$LD -v 2>/dev/null` in
17788 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17789 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17790 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17791 *\ 2.11.*) ;; # other 2.11 versions
17792 *) supports_anon_versioning=yes ;;
17793 esac
17794 if test $supports_anon_versioning = yes; then
17795 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17797 $echo "local: *; };" >> $output_objdir/$libname.ver~
17798 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17799 else
17800 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
17802 else
17803 ld_shlibs_GCJ=no
17808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17809 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17810 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17811 else
17812 ld_shlibs_GCJ=no
17815 esac
17817 if test "$ld_shlibs_GCJ" = yes; then
17818 runpath_var=LD_RUN_PATH
17819 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17820 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17821 # ancient GNU ld didn't support --whole-archive et. al.
17822 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17823 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17824 else
17825 whole_archive_flag_spec_GCJ=
17828 else
17829 # PORTME fill in a description of your system's linker (not GNU ld)
17830 case $host_os in
17831 aix3*)
17832 allow_undefined_flag_GCJ=unsupported
17833 always_export_symbols_GCJ=yes
17834 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17835 # Note: this linker hardcodes the directories in LIBPATH if there
17836 # are no directories specified by -L.
17837 hardcode_minus_L_GCJ=yes
17838 if test "$GCC" = yes && test -z "$link_static_flag"; then
17839 # Neither direct hardcoding nor static linking is supported with a
17840 # broken collect2.
17841 hardcode_direct_GCJ=unsupported
17845 aix4* | aix5*)
17846 if test "$host_cpu" = ia64; then
17847 # On IA64, the linker does run time linking by default, so we don't
17848 # have to do anything special.
17849 aix_use_runtimelinking=no
17850 exp_sym_flag='-Bexport'
17851 no_entry_flag=""
17852 else
17853 # If we're using GNU nm, then we don't want the "-C" option.
17854 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17855 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17856 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17857 else
17858 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17860 aix_use_runtimelinking=no
17862 # Test if we are trying to use run time linking or normal
17863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17864 # need to do runtime linking.
17865 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17866 for ld_flag in $LDFLAGS; do
17867 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17868 aix_use_runtimelinking=yes
17869 break
17871 done
17872 esac
17874 exp_sym_flag='-bexport'
17875 no_entry_flag='-bnoentry'
17878 # When large executables or shared objects are built, AIX ld can
17879 # have problems creating the table of contents. If linking a library
17880 # or program results in "error TOC overflow" add -mminimal-toc to
17881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17884 archive_cmds_GCJ=''
17885 hardcode_direct_GCJ=yes
17886 hardcode_libdir_separator_GCJ=':'
17887 link_all_deplibs_GCJ=yes
17889 if test "$GCC" = yes; then
17890 case $host_os in aix4.[012]|aix4.[012].*)
17891 # We only want to do this on AIX 4.2 and lower, the check
17892 # below for broken collect2 doesn't work under 4.3+
17893 collect2name=`${CC} -print-prog-name=collect2`
17894 if test -f "$collect2name" && \
17895 strings "$collect2name" | grep resolve_lib_name >/dev/null
17896 then
17897 # We have reworked collect2
17898 hardcode_direct_GCJ=yes
17899 else
17900 # We have old collect2
17901 hardcode_direct_GCJ=unsupported
17902 # It fails to find uninstalled libraries when the uninstalled
17903 # path is not listed in the libpath. Setting hardcode_minus_L
17904 # to unsupported forces relinking
17905 hardcode_minus_L_GCJ=yes
17906 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17907 hardcode_libdir_separator_GCJ=
17909 esac
17910 shared_flag='-shared'
17911 if test "$aix_use_runtimelinking" = yes; then
17912 shared_flag="$shared_flag "'${wl}-G'
17914 else
17915 # not using gcc
17916 if test "$host_cpu" = ia64; then
17917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17918 # chokes on -Wl,-G. The following line is correct:
17919 shared_flag='-G'
17920 else
17921 if test "$aix_use_runtimelinking" = yes; then
17922 shared_flag='${wl}-G'
17923 else
17924 shared_flag='${wl}-bM:SRE'
17929 # It seems that -bexpall does not export symbols beginning with
17930 # underscore (_), so it is better to generate a list of symbols to export.
17931 always_export_symbols_GCJ=yes
17932 if test "$aix_use_runtimelinking" = yes; then
17933 # Warning - without using the other runtime loading flags (-brtl),
17934 # -berok will link without error, but may produce a broken library.
17935 allow_undefined_flag_GCJ='-berok'
17936 # Determine the default libpath from the value encoded in an empty executable.
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17945 main ()
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>conftest.er1
17955 ac_status=$?
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17977 # Check for a 64-bit object if we didn't find anything.
17978 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17979 }'`; fi
17980 else
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17985 rm -f conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17989 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17990 archive_expsym_cmds_GCJ="\$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"
17991 else
17992 if test "$host_cpu" = ia64; then
17993 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17994 allow_undefined_flag_GCJ="-z nodefs"
17995 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17996 else
17997 # Determine the default libpath from the value encoded in an empty executable.
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18006 main ()
18010 return 0;
18012 _ACEOF
18013 rm -f conftest.$ac_objext conftest$ac_exeext
18014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18015 (eval $ac_link) 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag"
18023 || test ! -s conftest.err'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest$ac_exeext'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18038 # Check for a 64-bit object if we didn't find anything.
18039 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18040 }'`; fi
18041 else
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18046 rm -f conftest.err conftest.$ac_objext \
18047 conftest$ac_exeext conftest.$ac_ext
18048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18050 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18051 # Warning - without using the other run time loading flags,
18052 # -berok will link without error, but may produce a broken library.
18053 no_undefined_flag_GCJ=' ${wl}-bernotok'
18054 allow_undefined_flag_GCJ=' ${wl}-berok'
18055 # -bexpall does not export symbols beginning with underscore (_)
18056 always_export_symbols_GCJ=yes
18057 # Exported symbols can be pulled into shared objects from archives
18058 whole_archive_flag_spec_GCJ=' '
18059 archive_cmds_need_lc_GCJ=yes
18060 # This is similar to how AIX traditionally builds it's shared libraries.
18061 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18066 amigaos*)
18067 archive_cmds_GCJ='$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)'
18068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18069 hardcode_minus_L_GCJ=yes
18070 # see comment about different semantics on the GNU ld section
18071 ld_shlibs_GCJ=no
18074 bsdi[45]*)
18075 export_dynamic_flag_spec_GCJ=-rdynamic
18078 cygwin* | mingw* | pw32*)
18079 # When not using gcc, we currently assume that we are using
18080 # Microsoft Visual C++.
18081 # hardcode_libdir_flag_spec is actually meaningless, as there is
18082 # no search path for DLLs.
18083 hardcode_libdir_flag_spec_GCJ=' '
18084 allow_undefined_flag_GCJ=unsupported
18085 # Tell ltmain to make .lib files, not .a files.
18086 libext=lib
18087 # Tell ltmain to make .dll files, not .so files.
18088 shrext_cmds=".dll"
18089 # FIXME: Setting linknames here is a bad hack.
18090 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18091 # The linker will automatically build a .lib file if we build a DLL.
18092 old_archive_From_new_cmds_GCJ='true'
18093 # FIXME: Should let the user specify the lib program.
18094 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18095 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18096 enable_shared_with_static_runtimes_GCJ=yes
18099 darwin* | rhapsody*)
18100 case "$host_os" in
18101 rhapsody* | darwin1.[012])
18102 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18104 *) # Darwin 1.3 on
18105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18106 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18107 else
18108 case ${MACOSX_DEPLOYMENT_TARGET} in
18109 10.[012])
18110 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18112 10.*)
18113 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18115 esac
18118 esac
18119 archive_cmds_need_lc_GCJ=no
18120 hardcode_direct_GCJ=no
18121 hardcode_automatic_GCJ=yes
18122 hardcode_shlibpath_var_GCJ=unsupported
18123 whole_archive_flag_spec_GCJ=''
18124 link_all_deplibs_GCJ=yes
18125 if test "$GCC" = yes ; then
18126 output_verbose_link_cmd='echo'
18127 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18128 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18130 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18131 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18132 else
18133 case "$cc_basename" in
18134 xlc*)
18135 output_verbose_link_cmd='echo'
18136 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18137 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18139 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18140 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18143 ld_shlibs_GCJ=no
18145 esac
18149 dgux*)
18150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18152 hardcode_shlibpath_var_GCJ=no
18155 freebsd1*)
18156 ld_shlibs_GCJ=no
18159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18160 # support. Future versions do this automatically, but an explicit c++rt0.o
18161 # does not break anything, and helps significantly (at the cost of a little
18162 # extra space).
18163 freebsd2.2*)
18164 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18165 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18166 hardcode_direct_GCJ=yes
18167 hardcode_shlibpath_var_GCJ=no
18170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18171 freebsd2*)
18172 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18173 hardcode_direct_GCJ=yes
18174 hardcode_minus_L_GCJ=yes
18175 hardcode_shlibpath_var_GCJ=no
18178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18179 freebsd* | kfreebsd*-gnu | dragonfly*)
18180 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18181 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18182 hardcode_direct_GCJ=yes
18183 hardcode_shlibpath_var_GCJ=no
18186 hpux9*)
18187 if test "$GCC" = yes; then
18188 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18189 else
18190 archive_cmds_GCJ='$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'
18192 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18193 hardcode_libdir_separator_GCJ=:
18194 hardcode_direct_GCJ=yes
18196 # hardcode_minus_L: Not really in the search PATH,
18197 # but as the default location of the library.
18198 hardcode_minus_L_GCJ=yes
18199 export_dynamic_flag_spec_GCJ='${wl}-E'
18202 hpux10* | hpux11*)
18203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18204 case "$host_cpu" in
18205 hppa*64*|ia64*)
18206 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18211 esac
18212 else
18213 case "$host_cpu" in
18214 hppa*64*|ia64*)
18215 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18218 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18220 esac
18222 if test "$with_gnu_ld" = no; then
18223 case "$host_cpu" in
18224 hppa*64*)
18225 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18226 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18227 hardcode_libdir_separator_GCJ=:
18228 hardcode_direct_GCJ=no
18229 hardcode_shlibpath_var_GCJ=no
18231 ia64*)
18232 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18233 hardcode_direct_GCJ=no
18234 hardcode_shlibpath_var_GCJ=no
18236 # hardcode_minus_L: Not really in the search PATH,
18237 # but as the default location of the library.
18238 hardcode_minus_L_GCJ=yes
18241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18242 hardcode_libdir_separator_GCJ=:
18243 hardcode_direct_GCJ=yes
18244 export_dynamic_flag_spec_GCJ='${wl}-E'
18246 # hardcode_minus_L: Not really in the search PATH,
18247 # but as the default location of the library.
18248 hardcode_minus_L_GCJ=yes
18250 esac
18254 irix5* | irix6* | nonstopux*)
18255 if test "$GCC" = yes; then
18256 archive_cmds_GCJ='$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'
18257 else
18258 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18259 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18262 hardcode_libdir_separator_GCJ=:
18263 link_all_deplibs_GCJ=yes
18266 netbsd*)
18267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18269 else
18270 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18273 hardcode_direct_GCJ=yes
18274 hardcode_shlibpath_var_GCJ=no
18277 newsos6)
18278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279 hardcode_direct_GCJ=yes
18280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18281 hardcode_libdir_separator_GCJ=:
18282 hardcode_shlibpath_var_GCJ=no
18285 openbsd*)
18286 hardcode_direct_GCJ=yes
18287 hardcode_shlibpath_var_GCJ=no
18288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18289 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18290 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18292 export_dynamic_flag_spec_GCJ='${wl}-E'
18293 else
18294 case $host_os in
18295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18296 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18303 esac
18307 os2*)
18308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18309 hardcode_minus_L_GCJ=yes
18310 allow_undefined_flag_GCJ=unsupported
18311 archive_cmds_GCJ='$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'
18312 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18315 osf3*)
18316 if test "$GCC" = yes; then
18317 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18318 archive_cmds_GCJ='$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'
18319 else
18320 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18321 archive_cmds_GCJ='$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'
18323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18324 hardcode_libdir_separator_GCJ=:
18327 osf4* | osf5*) # as osf3* with the addition of -msym flag
18328 if test "$GCC" = yes; then
18329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18330 archive_cmds_GCJ='$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'
18331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18332 else
18333 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18334 archive_cmds_GCJ='$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'
18335 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18336 $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'
18338 # Both c and cxx compiler support -rpath directly
18339 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18341 hardcode_libdir_separator_GCJ=:
18344 sco3.2v5*)
18345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346 hardcode_shlibpath_var_GCJ=no
18347 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18348 runpath_var=LD_RUN_PATH
18349 hardcode_runpath_var=yes
18352 solaris*)
18353 no_undefined_flag_GCJ=' -z text'
18354 if test "$GCC" = yes; then
18355 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18356 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18357 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18358 else
18359 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18363 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18364 hardcode_shlibpath_var_GCJ=no
18365 case $host_os in
18366 solaris2.[0-5] | solaris2.[0-5].*) ;;
18367 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18368 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
18369 esac
18370 link_all_deplibs_GCJ=yes
18373 sunos4*)
18374 if test "x$host_vendor" = xsequent; then
18375 # Use $CC to link under sequent, because it throws in some extra .o
18376 # files that make .init and .fini sections work.
18377 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18378 else
18379 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18382 hardcode_direct_GCJ=yes
18383 hardcode_minus_L_GCJ=yes
18384 hardcode_shlibpath_var_GCJ=no
18387 sysv4)
18388 case $host_vendor in
18389 sni)
18390 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_direct_GCJ=yes # is this really true???
18393 siemens)
18394 ## LD is ld it makes a PLAMLIB
18395 ## CC just makes a GrossModule.
18396 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18397 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18398 hardcode_direct_GCJ=no
18400 motorola)
18401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18402 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18404 esac
18405 runpath_var='LD_RUN_PATH'
18406 hardcode_shlibpath_var_GCJ=no
18409 sysv4.3*)
18410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411 hardcode_shlibpath_var_GCJ=no
18412 export_dynamic_flag_spec_GCJ='-Bexport'
18415 sysv4*MP*)
18416 if test -d /usr/nec; then
18417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18418 hardcode_shlibpath_var_GCJ=no
18419 runpath_var=LD_RUN_PATH
18420 hardcode_runpath_var=yes
18421 ld_shlibs_GCJ=yes
18425 sysv4.2uw2*)
18426 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18427 hardcode_direct_GCJ=yes
18428 hardcode_minus_L_GCJ=no
18429 hardcode_shlibpath_var_GCJ=no
18430 hardcode_runpath_var=yes
18431 runpath_var=LD_RUN_PATH
18434 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18435 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18436 if test "$GCC" = yes; then
18437 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18438 else
18439 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18441 runpath_var='LD_RUN_PATH'
18442 hardcode_shlibpath_var_GCJ=no
18445 sysv5*)
18446 no_undefined_flag_GCJ=' -z text'
18447 # $CC -shared without GNU ld will not create a library from C++
18448 # object files and a static libstdc++, better avoid it by now
18449 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18450 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18452 hardcode_libdir_flag_spec_GCJ=
18453 hardcode_shlibpath_var_GCJ=no
18454 runpath_var='LD_RUN_PATH'
18457 uts4*)
18458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18460 hardcode_shlibpath_var_GCJ=no
18464 ld_shlibs_GCJ=no
18466 esac
18469 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18470 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18471 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18474 if test "$GCC" = yes; then
18475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18479 # Do we need to explicitly link libc?
18481 case "x$archive_cmds_need_lc_GCJ" in
18482 x|xyes)
18483 # Assume -lc should be added
18484 archive_cmds_need_lc_GCJ=yes
18486 if test "$enable_shared" = yes && test "$GCC" = yes; then
18487 case $archive_cmds_GCJ in
18488 *'~'*)
18489 # FIXME: we may have to deal with multi-command sequences.
18491 '$CC '*)
18492 # Test whether the compiler implicitly links with -lc since on some
18493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18494 # to ld, don't add -lc before -lgcc.
18495 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18497 $rm conftest*
18498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18501 (eval $ac_compile) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } 2>conftest.err; then
18505 soname=conftest
18506 lib=conftest
18507 libobjs=conftest.$ac_objext
18508 deplibs=
18509 wl=$lt_prog_compiler_wl_GCJ
18510 compiler_flags=-v
18511 linker_flags=-v
18512 verstring=
18513 output_objdir=.
18514 libname=conftest
18515 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18516 allow_undefined_flag_GCJ=
18517 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18518 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }
18522 then
18523 archive_cmds_need_lc_GCJ=no
18524 else
18525 archive_cmds_need_lc_GCJ=yes
18527 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18528 else
18529 cat conftest.err 1>&5
18531 $rm conftest*
18532 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18533 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18535 esac
18538 esac
18540 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18542 library_names_spec=
18543 libname_spec='lib$name'
18544 soname_spec=
18545 shrext_cmds=".so"
18546 postinstall_cmds=
18547 postuninstall_cmds=
18548 finish_cmds=
18549 finish_eval=
18550 shlibpath_var=
18551 shlibpath_overrides_runpath=unknown
18552 version_type=none
18553 dynamic_linker="$host_os ld.so"
18554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18555 if test "$GCC" = yes; then
18556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18557 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18558 # if the path contains ";" then we assume it to be the separator
18559 # otherwise default to the standard path separator (i.e. ":") - it is
18560 # assumed that no part of a normal pathname contains ";" but that should
18561 # okay in the real world where ";" in dirpaths is itself problematic.
18562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18563 else
18564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18566 else
18567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18569 need_lib_prefix=unknown
18570 hardcode_into_libs=no
18572 # when you set need_version to no, make sure it does not cause -set_version
18573 # flags to be left without arguments
18574 need_version=unknown
18576 case $host_os in
18577 aix3*)
18578 version_type=linux
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18580 shlibpath_var=LIBPATH
18582 # AIX 3 has no versioning support, so we append a major version to the name.
18583 soname_spec='${libname}${release}${shared_ext}$major'
18586 aix4* | aix5*)
18587 version_type=linux
18588 need_lib_prefix=no
18589 need_version=no
18590 hardcode_into_libs=yes
18591 if test "$host_cpu" = ia64; then
18592 # AIX 5 supports IA64
18593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 else
18596 # With GCC up to 2.95.x, collect2 would create an import file
18597 # for dependence libraries. The import file would start with
18598 # the line `#! .'. This would cause the generated library to
18599 # depend on `.', always an invalid library. This was fixed in
18600 # development snapshots of GCC prior to 3.0.
18601 case $host_os in
18602 aix4 | aix4.[01] | aix4.[01].*)
18603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18604 echo ' yes '
18605 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18607 else
18608 can_build_shared=no
18611 esac
18612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18613 # soname into executable. Probably we can add versioning support to
18614 # collect2, so additional links can be useful in future.
18615 if test "$aix_use_runtimelinking" = yes; then
18616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18617 # instead of lib<name>.a to let people know that these are not
18618 # typical AIX shared libraries.
18619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620 else
18621 # We preserve .a as extension for shared libraries through AIX4.2
18622 # and later when we are not doing run time linking.
18623 library_names_spec='${libname}${release}.a $libname.a'
18624 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LIBPATH
18630 amigaos*)
18631 library_names_spec='$libname.ixlibrary $libname.a'
18632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18633 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'
18636 beos*)
18637 library_names_spec='${libname}${shared_ext}'
18638 dynamic_linker="$host_os ld.so"
18639 shlibpath_var=LIBRARY_PATH
18642 bsdi[45]*)
18643 version_type=linux
18644 need_version=no
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18648 shlibpath_var=LD_LIBRARY_PATH
18649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18651 # the default ld.so.conf also contains /usr/contrib/lib and
18652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18653 # libtool to hard-code these into programs
18656 cygwin* | mingw* | pw32*)
18657 version_type=windows
18658 shrext_cmds=".dll"
18659 need_version=no
18660 need_lib_prefix=no
18662 case $GCC,$host_os in
18663 yes,cygwin* | yes,mingw* | yes,pw32*)
18664 library_names_spec='$libname.dll.a'
18665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18666 postinstall_cmds='base_file=`basename \${file}`~
18667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18668 dldir=$destdir/`dirname \$dlpath`~
18669 test -d \$dldir || mkdir -p \$dldir~
18670 $install_prog $dir/$dlname \$dldir/$dlname'
18671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18672 dlpath=$dir/\$dldll~
18673 $rm \$dlpath'
18674 shlibpath_overrides_runpath=yes
18676 case $host_os in
18677 cygwin*)
18678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18680 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18682 mingw*)
18683 # MinGW DLLs use traditional 'lib' prefix
18684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18686 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18687 # It is most probably a Windows format PATH printed by
18688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18689 # path with ; separators, and with drive letters. We can handle the
18690 # drive letters (cygwin fileutils understands them), so leave them,
18691 # especially as we might pass files found there to a mingw objdump,
18692 # which wouldn't understand a cygwinified path. Ahh.
18693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18694 else
18695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18698 pw32*)
18699 # pw32 DLLs use 'pw' prefix rather than 'lib'
18700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18702 esac
18706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18708 esac
18709 dynamic_linker='Win32 ld.exe'
18710 # FIXME: first we should search . and the directory the executable is in
18711 shlibpath_var=PATH
18714 darwin* | rhapsody*)
18715 dynamic_linker="$host_os dyld"
18716 version_type=darwin
18717 need_lib_prefix=no
18718 need_version=no
18719 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18720 soname_spec='${libname}${release}${major}$shared_ext'
18721 shlibpath_overrides_runpath=yes
18722 shlibpath_var=DYLD_LIBRARY_PATH
18723 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18725 if test "$GCC" = yes; then
18726 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18727 else
18728 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18733 dgux*)
18734 version_type=linux
18735 need_lib_prefix=no
18736 need_version=no
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18738 soname_spec='${libname}${release}${shared_ext}$major'
18739 shlibpath_var=LD_LIBRARY_PATH
18742 freebsd1*)
18743 dynamic_linker=no
18746 kfreebsd*-gnu)
18747 version_type=linux
18748 need_lib_prefix=no
18749 need_version=no
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751 soname_spec='${libname}${release}${shared_ext}$major'
18752 shlibpath_var=LD_LIBRARY_PATH
18753 shlibpath_overrides_runpath=no
18754 hardcode_into_libs=yes
18755 dynamic_linker='GNU ld.so'
18758 freebsd* | dragonfly*)
18759 # DragonFly does not have aout. When/if they implement a new
18760 # versioning mechanism, adjust this.
18761 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18762 version_type=freebsd-$objformat
18763 case $version_type in
18764 freebsd-elf*)
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18766 need_version=no
18767 need_lib_prefix=no
18769 freebsd-*)
18770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18771 need_version=yes
18773 esac
18774 shlibpath_var=LD_LIBRARY_PATH
18775 case $host_os in
18776 freebsd2*)
18777 shlibpath_overrides_runpath=yes
18779 freebsd3.[01]* | freebsdelf3.[01]*)
18780 shlibpath_overrides_runpath=yes
18781 hardcode_into_libs=yes
18783 *) # from 3.2 on
18784 shlibpath_overrides_runpath=no
18785 hardcode_into_libs=yes
18787 esac
18790 gnu*)
18791 version_type=linux
18792 need_lib_prefix=no
18793 need_version=no
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 shlibpath_var=LD_LIBRARY_PATH
18797 hardcode_into_libs=yes
18800 hpux9* | hpux10* | hpux11*)
18801 # Give a soname corresponding to the major version so that dld.sl refuses to
18802 # link against other versions.
18803 version_type=sunos
18804 need_lib_prefix=no
18805 need_version=no
18806 case "$host_cpu" in
18807 ia64*)
18808 shrext_cmds='.so'
18809 hardcode_into_libs=yes
18810 dynamic_linker="$host_os dld.so"
18811 shlibpath_var=LD_LIBRARY_PATH
18812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18814 soname_spec='${libname}${release}${shared_ext}$major'
18815 if test "X$HPUX_IA64_MODE" = X32; then
18816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18817 else
18818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18822 hppa*64*)
18823 shrext_cmds='.sl'
18824 hardcode_into_libs=yes
18825 dynamic_linker="$host_os dld.sl"
18826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18834 shrext_cmds='.sl'
18835 dynamic_linker="$host_os dld.sl"
18836 shlibpath_var=SHLIB_PATH
18837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18841 esac
18842 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18843 postinstall_cmds='chmod 555 $lib'
18846 irix5* | irix6* | nonstopux*)
18847 case $host_os in
18848 nonstopux*) version_type=nonstopux ;;
18850 if test "$lt_cv_prog_gnu_ld" = yes; then
18851 version_type=linux
18852 else
18853 version_type=irix
18854 fi ;;
18855 esac
18856 need_lib_prefix=no
18857 need_version=no
18858 soname_spec='${libname}${release}${shared_ext}$major'
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18860 case $host_os in
18861 irix5* | nonstopux*)
18862 libsuff= shlibsuff=
18865 case $LD in # libtool.m4 will add one of these switches to LD
18866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18867 libsuff= shlibsuff= libmagic=32-bit;;
18868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18869 libsuff=32 shlibsuff=N32 libmagic=N32;;
18870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18872 *) libsuff= shlibsuff= libmagic=never-match;;
18873 esac
18875 esac
18876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18877 shlibpath_overrides_runpath=no
18878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18880 hardcode_into_libs=yes
18883 # No shared lib support for Linux oldld, aout, or coff.
18884 linux*oldld* | linux*aout* | linux*coff*)
18885 dynamic_linker=no
18888 # This must be Linux ELF.
18889 linux*)
18890 version_type=linux
18891 need_lib_prefix=no
18892 need_version=no
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 soname_spec='${libname}${release}${shared_ext}$major'
18895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18896 shlibpath_var=LD_LIBRARY_PATH
18897 shlibpath_overrides_runpath=no
18898 # This implies no fast_install, which is unacceptable.
18899 # Some rework will be needed to allow for fast_install
18900 # before this can be enabled.
18901 hardcode_into_libs=yes
18903 # Append ld.so.conf contents to the search path
18904 if test -f /etc/ld.so.conf; then
18905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18909 # We used to test for /lib/ld.so.1 and disable shared libraries on
18910 # powerpc, because MkLinux only supported shared libraries with the
18911 # GNU dynamic linker. Since this was broken with cross compilers,
18912 # most powerpc-linux boxes support dynamic linking these days and
18913 # people can always --disable-shared, the test was removed, and we
18914 # assume the GNU/Linux dynamic linker is in use.
18915 dynamic_linker='GNU/Linux ld.so'
18918 knetbsd*-gnu)
18919 version_type=linux
18920 need_lib_prefix=no
18921 need_version=no
18922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18923 soname_spec='${libname}${release}${shared_ext}$major'
18924 shlibpath_var=LD_LIBRARY_PATH
18925 shlibpath_overrides_runpath=no
18926 hardcode_into_libs=yes
18927 dynamic_linker='GNU ld.so'
18930 netbsd*)
18931 version_type=sunos
18932 need_lib_prefix=no
18933 need_version=no
18934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18937 dynamic_linker='NetBSD (a.out) ld.so'
18938 else
18939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18940 soname_spec='${libname}${release}${shared_ext}$major'
18941 dynamic_linker='NetBSD ld.elf_so'
18943 shlibpath_var=LD_LIBRARY_PATH
18944 shlibpath_overrides_runpath=yes
18945 hardcode_into_libs=yes
18948 newsos6)
18949 version_type=linux
18950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18951 shlibpath_var=LD_LIBRARY_PATH
18952 shlibpath_overrides_runpath=yes
18955 nto-qnx*)
18956 version_type=linux
18957 need_lib_prefix=no
18958 need_version=no
18959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960 soname_spec='${libname}${release}${shared_ext}$major'
18961 shlibpath_var=LD_LIBRARY_PATH
18962 shlibpath_overrides_runpath=yes
18965 openbsd*)
18966 version_type=sunos
18967 need_lib_prefix=no
18968 need_version=no
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18971 shlibpath_var=LD_LIBRARY_PATH
18972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18973 case $host_os in
18974 openbsd2.[89] | openbsd2.[89].*)
18975 shlibpath_overrides_runpath=no
18978 shlibpath_overrides_runpath=yes
18980 esac
18981 else
18982 shlibpath_overrides_runpath=yes
18986 os2*)
18987 libname_spec='$name'
18988 shrext_cmds=".dll"
18989 need_lib_prefix=no
18990 library_names_spec='$libname${shared_ext} $libname.a'
18991 dynamic_linker='OS/2 ld.exe'
18992 shlibpath_var=LIBPATH
18995 osf3* | osf4* | osf5*)
18996 version_type=osf
18997 need_lib_prefix=no
18998 need_version=no
18999 soname_spec='${libname}${release}${shared_ext}$major'
19000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001 shlibpath_var=LD_LIBRARY_PATH
19002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19006 sco3.2v5*)
19007 version_type=osf
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010 shlibpath_var=LD_LIBRARY_PATH
19013 solaris*)
19014 version_type=linux
19015 need_lib_prefix=no
19016 need_version=no
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 shlibpath_var=LD_LIBRARY_PATH
19020 shlibpath_overrides_runpath=yes
19021 hardcode_into_libs=yes
19022 # ldd complains unless libraries are executable
19023 postinstall_cmds='chmod +x $lib'
19026 sunos4*)
19027 version_type=sunos
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 shlibpath_overrides_runpath=yes
19032 if test "$with_gnu_ld" = yes; then
19033 need_lib_prefix=no
19035 need_version=yes
19038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19039 version_type=linux
19040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19041 soname_spec='${libname}${release}${shared_ext}$major'
19042 shlibpath_var=LD_LIBRARY_PATH
19043 case $host_vendor in
19044 sni)
19045 shlibpath_overrides_runpath=no
19046 need_lib_prefix=no
19047 export_dynamic_flag_spec='${wl}-Blargedynsym'
19048 runpath_var=LD_RUN_PATH
19050 siemens)
19051 need_lib_prefix=no
19053 motorola)
19054 need_lib_prefix=no
19055 need_version=no
19056 shlibpath_overrides_runpath=no
19057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19059 esac
19062 sysv4*MP*)
19063 if test -d /usr/nec ;then
19064 version_type=linux
19065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19066 soname_spec='$libname${shared_ext}.$major'
19067 shlibpath_var=LD_LIBRARY_PATH
19071 uts4*)
19072 version_type=linux
19073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19074 soname_spec='${libname}${release}${shared_ext}$major'
19075 shlibpath_var=LD_LIBRARY_PATH
19079 dynamic_linker=no
19081 esac
19082 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19083 echo "${ECHO_T}$dynamic_linker" >&6
19084 test "$dynamic_linker" = no && can_build_shared=no
19086 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19087 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19088 hardcode_action_GCJ=
19089 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19090 test -n "$runpath_var_GCJ" || \
19091 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19093 # We can hardcode non-existant directories.
19094 if test "$hardcode_direct_GCJ" != no &&
19095 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19096 # have to relink, otherwise we might link with an installed library
19097 # when we should be linking with a yet-to-be-installed one
19098 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19099 test "$hardcode_minus_L_GCJ" != no; then
19100 # Linking always hardcodes the temporary library directory.
19101 hardcode_action_GCJ=relink
19102 else
19103 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19104 hardcode_action_GCJ=immediate
19106 else
19107 # We cannot hardcode anything, or else we can only hardcode existing
19108 # directories.
19109 hardcode_action_GCJ=unsupported
19111 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19112 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19114 if test "$hardcode_action_GCJ" = relink; then
19115 # Fast installation is not supported
19116 enable_fast_install=no
19117 elif test "$shlibpath_overrides_runpath" = yes ||
19118 test "$enable_shared" = no; then
19119 # Fast installation is not necessary
19120 enable_fast_install=needless
19123 striplib=
19124 old_striplib=
19125 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19126 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19127 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19128 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19129 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19130 echo "$as_me:$LINENO: result: yes" >&5
19131 echo "${ECHO_T}yes" >&6
19132 else
19133 # FIXME - insert some real tests, host_os isn't really good enough
19134 case $host_os in
19135 darwin*)
19136 if test -n "$STRIP" ; then
19137 striplib="$STRIP -x"
19138 echo "$as_me:$LINENO: result: yes" >&5
19139 echo "${ECHO_T}yes" >&6
19140 else
19141 echo "$as_me:$LINENO: result: no" >&5
19142 echo "${ECHO_T}no" >&6
19146 echo "$as_me:$LINENO: result: no" >&5
19147 echo "${ECHO_T}no" >&6
19149 esac
19152 if test "x$enable_dlopen" != xyes; then
19153 enable_dlopen=unknown
19154 enable_dlopen_self=unknown
19155 enable_dlopen_self_static=unknown
19156 else
19157 lt_cv_dlopen=no
19158 lt_cv_dlopen_libs=
19160 case $host_os in
19161 beos*)
19162 lt_cv_dlopen="load_add_on"
19163 lt_cv_dlopen_libs=
19164 lt_cv_dlopen_self=yes
19167 mingw* | pw32*)
19168 lt_cv_dlopen="LoadLibrary"
19169 lt_cv_dlopen_libs=
19172 cygwin*)
19173 lt_cv_dlopen="dlopen"
19174 lt_cv_dlopen_libs=
19177 darwin*)
19178 # if libdl is installed we need to link against it
19179 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184 ac_check_lib_save_LIBS=$LIBS
19185 LIBS="-ldl $LIBS"
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19193 /* Override any gcc2 internal prototype to avoid an error. */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19199 char dlopen ();
19201 main ()
19203 dlopen ();
19205 return 0;
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_lib_dl_dlopen=yes
19231 else
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_cv_lib_dl_dlopen=no
19237 rm -f conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19241 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19242 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19243 if test $ac_cv_lib_dl_dlopen = yes; then
19244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19245 else
19247 lt_cv_dlopen="dyld"
19248 lt_cv_dlopen_libs=
19249 lt_cv_dlopen_self=yes
19256 echo "$as_me:$LINENO: checking for shl_load" >&5
19257 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19258 if test "${ac_cv_func_shl_load+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261 cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h. */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19269 #define shl_load innocuous_shl_load
19271 /* System header to define __stub macros and hopefully few prototypes,
19272 which can conflict with char shl_load (); below.
19273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19274 <limits.h> exists even on freestanding compilers. */
19276 #ifdef __STDC__
19277 # include <limits.h>
19278 #else
19279 # include <assert.h>
19280 #endif
19282 #undef shl_load
19284 /* Override any gcc2 internal prototype to avoid an error. */
19285 #ifdef __cplusplus
19286 extern "C"
19288 #endif
19289 /* We use char because int might match the return type of a gcc2
19290 builtin and then its argument prototype would still apply. */
19291 char shl_load ();
19292 /* The GNU C library defines this for functions which it implements
19293 to always fail with ENOSYS. Some functions are actually named
19294 something starting with __ and the normal name is an alias. */
19295 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19296 choke me
19297 #else
19298 char (*f) () = shl_load;
19299 #endif
19300 #ifdef __cplusplus
19302 #endif
19305 main ()
19307 return f != shl_load;
19309 return 0;
19311 _ACEOF
19312 rm -f conftest.$ac_objext conftest$ac_exeext
19313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19314 (eval $ac_link) 2>conftest.er1
19315 ac_status=$?
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
19321 { ac_try='test -z "$ac_c_werror_flag"
19322 || test ! -s conftest.err'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest$ac_exeext'
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_func_shl_load=yes
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_func_shl_load=no
19341 rm -f conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
19344 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19345 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19346 if test $ac_cv_func_shl_load = yes; then
19347 lt_cv_dlopen="shl_load"
19348 else
19349 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19350 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19351 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354 ac_check_lib_save_LIBS=$LIBS
19355 LIBS="-ldld $LIBS"
19356 cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h. */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19363 /* Override any gcc2 internal prototype to avoid an error. */
19364 #ifdef __cplusplus
19365 extern "C"
19366 #endif
19367 /* We use char because int might match the return type of a gcc2
19368 builtin and then its argument prototype would still apply. */
19369 char shl_load ();
19371 main ()
19373 shl_load ();
19375 return 0;
19377 _ACEOF
19378 rm -f conftest.$ac_objext conftest$ac_exeext
19379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19380 (eval $ac_link) 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag"
19388 || test ! -s conftest.err'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; } &&
19394 { ac_try='test -s conftest$ac_exeext'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_cv_lib_dld_shl_load=yes
19401 else
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_cv_lib_dld_shl_load=no
19407 rm -f conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19409 LIBS=$ac_check_lib_save_LIBS
19411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19412 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19413 if test $ac_cv_lib_dld_shl_load = yes; then
19414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19415 else
19416 echo "$as_me:$LINENO: checking for dlopen" >&5
19417 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19418 if test "${ac_cv_func_dlopen+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 else
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h. */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19429 #define dlopen innocuous_dlopen
19431 /* System header to define __stub macros and hopefully few prototypes,
19432 which can conflict with char dlopen (); below.
19433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19434 <limits.h> exists even on freestanding compilers. */
19436 #ifdef __STDC__
19437 # include <limits.h>
19438 #else
19439 # include <assert.h>
19440 #endif
19442 #undef dlopen
19444 /* Override any gcc2 internal prototype to avoid an error. */
19445 #ifdef __cplusplus
19446 extern "C"
19448 #endif
19449 /* We use char because int might match the return type of a gcc2
19450 builtin and then its argument prototype would still apply. */
19451 char dlopen ();
19452 /* The GNU C library defines this for functions which it implements
19453 to always fail with ENOSYS. Some functions are actually named
19454 something starting with __ and the normal name is an alias. */
19455 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19456 choke me
19457 #else
19458 char (*f) () = dlopen;
19459 #endif
19460 #ifdef __cplusplus
19462 #endif
19465 main ()
19467 return f != dlopen;
19469 return 0;
19471 _ACEOF
19472 rm -f conftest.$ac_objext conftest$ac_exeext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19474 (eval $ac_link) 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest$ac_exeext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_cv_func_dlopen=yes
19495 else
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_cv_func_dlopen=no
19501 rm -f conftest.err conftest.$ac_objext \
19502 conftest$ac_exeext conftest.$ac_ext
19504 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19505 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19506 if test $ac_cv_func_dlopen = yes; then
19507 lt_cv_dlopen="dlopen"
19508 else
19509 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19510 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19511 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514 ac_check_lib_save_LIBS=$LIBS
19515 LIBS="-ldl $LIBS"
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19523 /* Override any gcc2 internal prototype to avoid an error. */
19524 #ifdef __cplusplus
19525 extern "C"
19526 #endif
19527 /* We use char because int might match the return type of a gcc2
19528 builtin and then its argument prototype would still apply. */
19529 char dlopen ();
19531 main ()
19533 dlopen ();
19535 return 0;
19537 _ACEOF
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest$ac_exeext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_lib_dl_dlopen=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_cv_lib_dl_dlopen=no
19567 rm -f conftest.err conftest.$ac_objext \
19568 conftest$ac_exeext conftest.$ac_ext
19569 LIBS=$ac_check_lib_save_LIBS
19571 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19572 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19573 if test $ac_cv_lib_dl_dlopen = yes; then
19574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19575 else
19576 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19577 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19578 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581 ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lsvld $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19590 /* Override any gcc2 internal prototype to avoid an error. */
19591 #ifdef __cplusplus
19592 extern "C"
19593 #endif
19594 /* We use char because int might match the return type of a gcc2
19595 builtin and then its argument prototype would still apply. */
19596 char dlopen ();
19598 main ()
19600 dlopen ();
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607 (eval $ac_link) 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag"
19615 || test ! -s conftest.err'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest$ac_exeext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 ac_cv_lib_svld_dlopen=yes
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_cv_lib_svld_dlopen=no
19634 rm -f conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
19636 LIBS=$ac_check_lib_save_LIBS
19638 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19639 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19640 if test $ac_cv_lib_svld_dlopen = yes; then
19641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19642 else
19643 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19644 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19645 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 ac_check_lib_save_LIBS=$LIBS
19649 LIBS="-ldld $LIBS"
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19657 /* Override any gcc2 internal prototype to avoid an error. */
19658 #ifdef __cplusplus
19659 extern "C"
19660 #endif
19661 /* We use char because int might match the return type of a gcc2
19662 builtin and then its argument prototype would still apply. */
19663 char dld_link ();
19665 main ()
19667 dld_link ();
19669 return 0;
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674 (eval $ac_link) 2>conftest.er1
19675 ac_status=$?
19676 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } &&
19681 { ac_try='test -z "$ac_c_werror_flag"
19682 || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest$ac_exeext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_cv_lib_dld_dld_link=yes
19695 else
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_cv_lib_dld_dld_link=no
19701 rm -f conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19703 LIBS=$ac_check_lib_save_LIBS
19705 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19706 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19707 if test $ac_cv_lib_dld_dld_link = yes; then
19708 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19727 esac
19729 if test "x$lt_cv_dlopen" != xno; then
19730 enable_dlopen=yes
19731 else
19732 enable_dlopen=no
19735 case $lt_cv_dlopen in
19736 dlopen)
19737 save_CPPFLAGS="$CPPFLAGS"
19738 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19740 save_LDFLAGS="$LDFLAGS"
19741 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19743 save_LIBS="$LIBS"
19744 LIBS="$lt_cv_dlopen_libs $LIBS"
19746 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19747 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19748 if test "${lt_cv_dlopen_self+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751 if test "$cross_compiling" = yes; then :
19752 lt_cv_dlopen_self=cross
19753 else
19754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19755 lt_status=$lt_dlunknown
19756 cat > conftest.$ac_ext <<EOF
19757 #line 19757 "configure"
19758 #include "confdefs.h"
19760 #if HAVE_DLFCN_H
19761 #include <dlfcn.h>
19762 #endif
19764 #include <stdio.h>
19766 #ifdef RTLD_GLOBAL
19767 # define LT_DLGLOBAL RTLD_GLOBAL
19768 #else
19769 # ifdef DL_GLOBAL
19770 # define LT_DLGLOBAL DL_GLOBAL
19771 # else
19772 # define LT_DLGLOBAL 0
19773 # endif
19774 #endif
19776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19777 find out it does not work in some platform. */
19778 #ifndef LT_DLLAZY_OR_NOW
19779 # ifdef RTLD_LAZY
19780 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19781 # else
19782 # ifdef DL_LAZY
19783 # define LT_DLLAZY_OR_NOW DL_LAZY
19784 # else
19785 # ifdef RTLD_NOW
19786 # define LT_DLLAZY_OR_NOW RTLD_NOW
19787 # else
19788 # ifdef DL_NOW
19789 # define LT_DLLAZY_OR_NOW DL_NOW
19790 # else
19791 # define LT_DLLAZY_OR_NOW 0
19792 # endif
19793 # endif
19794 # endif
19795 # endif
19796 #endif
19798 #ifdef __cplusplus
19799 extern "C" void exit (int);
19800 #endif
19802 void fnord() { int i=42;}
19803 int main ()
19805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19806 int status = $lt_dlunknown;
19808 if (self)
19810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19811 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19812 /* dlclose (self); */
19815 exit (status);
19818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819 (eval $ac_link) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19823 (./conftest; exit; ) 2>/dev/null
19824 lt_status=$?
19825 case x$lt_status in
19826 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19827 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19828 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19829 esac
19830 else :
19831 # compilation failed
19832 lt_cv_dlopen_self=no
19835 rm -fr conftest*
19839 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19840 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19842 if test "x$lt_cv_dlopen_self" = xyes; then
19843 LDFLAGS="$LDFLAGS $link_static_flag"
19844 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19845 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19846 if test "${lt_cv_dlopen_self_static+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 if test "$cross_compiling" = yes; then :
19850 lt_cv_dlopen_self_static=cross
19851 else
19852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19853 lt_status=$lt_dlunknown
19854 cat > conftest.$ac_ext <<EOF
19855 #line 19855 "configure"
19856 #include "confdefs.h"
19858 #if HAVE_DLFCN_H
19859 #include <dlfcn.h>
19860 #endif
19862 #include <stdio.h>
19864 #ifdef RTLD_GLOBAL
19865 # define LT_DLGLOBAL RTLD_GLOBAL
19866 #else
19867 # ifdef DL_GLOBAL
19868 # define LT_DLGLOBAL DL_GLOBAL
19869 # else
19870 # define LT_DLGLOBAL 0
19871 # endif
19872 #endif
19874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19875 find out it does not work in some platform. */
19876 #ifndef LT_DLLAZY_OR_NOW
19877 # ifdef RTLD_LAZY
19878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19879 # else
19880 # ifdef DL_LAZY
19881 # define LT_DLLAZY_OR_NOW DL_LAZY
19882 # else
19883 # ifdef RTLD_NOW
19884 # define LT_DLLAZY_OR_NOW RTLD_NOW
19885 # else
19886 # ifdef DL_NOW
19887 # define LT_DLLAZY_OR_NOW DL_NOW
19888 # else
19889 # define LT_DLLAZY_OR_NOW 0
19890 # endif
19891 # endif
19892 # endif
19893 # endif
19894 #endif
19896 #ifdef __cplusplus
19897 extern "C" void exit (int);
19898 #endif
19900 void fnord() { int i=42;}
19901 int main ()
19903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19904 int status = $lt_dlunknown;
19906 if (self)
19908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19909 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19910 /* dlclose (self); */
19913 exit (status);
19916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19917 (eval $ac_link) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19921 (./conftest; exit; ) 2>/dev/null
19922 lt_status=$?
19923 case x$lt_status in
19924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19926 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19927 esac
19928 else :
19929 # compilation failed
19930 lt_cv_dlopen_self_static=no
19933 rm -fr conftest*
19937 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19938 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19941 CPPFLAGS="$save_CPPFLAGS"
19942 LDFLAGS="$save_LDFLAGS"
19943 LIBS="$save_LIBS"
19945 esac
19947 case $lt_cv_dlopen_self in
19948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19949 *) enable_dlopen_self=unknown ;;
19950 esac
19952 case $lt_cv_dlopen_self_static in
19953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19954 *) enable_dlopen_self_static=unknown ;;
19955 esac
19959 # The else clause should only fire when bootstrapping the
19960 # libtool distribution, otherwise you forgot to ship ltmain.sh
19961 # with your package, and you will get complaints that there are
19962 # no rules to generate ltmain.sh.
19963 if test -f "$ltmain"; then
19964 # See if we are running on zsh, and set the options which allow our commands through
19965 # without removal of \ escapes.
19966 if test -n "${ZSH_VERSION+set}" ; then
19967 setopt NO_GLOB_SUBST
19969 # Now quote all the things that may contain metacharacters while being
19970 # careful not to overquote the AC_SUBSTed values. We take copies of the
19971 # variables and quote the copies for generation of the libtool script.
19972 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19973 SED SHELL STRIP \
19974 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19975 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19976 deplibs_check_method reload_flag reload_cmds need_locks \
19977 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19978 lt_cv_sys_global_symbol_to_c_name_address \
19979 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19980 old_postinstall_cmds old_postuninstall_cmds \
19981 compiler_GCJ \
19982 CC_GCJ \
19983 LD_GCJ \
19984 lt_prog_compiler_wl_GCJ \
19985 lt_prog_compiler_pic_GCJ \
19986 lt_prog_compiler_static_GCJ \
19987 lt_prog_compiler_no_builtin_flag_GCJ \
19988 export_dynamic_flag_spec_GCJ \
19989 thread_safe_flag_spec_GCJ \
19990 whole_archive_flag_spec_GCJ \
19991 enable_shared_with_static_runtimes_GCJ \
19992 old_archive_cmds_GCJ \
19993 old_archive_from_new_cmds_GCJ \
19994 predep_objects_GCJ \
19995 postdep_objects_GCJ \
19996 predeps_GCJ \
19997 postdeps_GCJ \
19998 compiler_lib_search_path_GCJ \
19999 archive_cmds_GCJ \
20000 archive_expsym_cmds_GCJ \
20001 postinstall_cmds_GCJ \
20002 postuninstall_cmds_GCJ \
20003 old_archive_from_expsyms_cmds_GCJ \
20004 allow_undefined_flag_GCJ \
20005 no_undefined_flag_GCJ \
20006 export_symbols_cmds_GCJ \
20007 hardcode_libdir_flag_spec_GCJ \
20008 hardcode_libdir_flag_spec_ld_GCJ \
20009 hardcode_libdir_separator_GCJ \
20010 hardcode_automatic_GCJ \
20011 module_cmds_GCJ \
20012 module_expsym_cmds_GCJ \
20013 lt_cv_prog_compiler_c_o_GCJ \
20014 exclude_expsyms_GCJ \
20015 include_expsyms_GCJ; do
20017 case $var in
20018 old_archive_cmds_GCJ | \
20019 old_archive_from_new_cmds_GCJ | \
20020 archive_cmds_GCJ | \
20021 archive_expsym_cmds_GCJ | \
20022 module_cmds_GCJ | \
20023 module_expsym_cmds_GCJ | \
20024 old_archive_from_expsyms_cmds_GCJ | \
20025 export_symbols_cmds_GCJ | \
20026 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20027 postinstall_cmds | postuninstall_cmds | \
20028 old_postinstall_cmds | old_postuninstall_cmds | \
20029 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20030 # Double-quote double-evaled strings.
20031 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20036 esac
20037 done
20039 case $lt_echo in
20040 *'\$0 --fallback-echo"')
20041 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20043 esac
20045 cfgfile="$ofile"
20047 cat <<__EOF__ >> "$cfgfile"
20048 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20050 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20052 # Shell to use when invoking shell scripts.
20053 SHELL=$lt_SHELL
20055 # Whether or not to build shared libraries.
20056 build_libtool_libs=$enable_shared
20058 # Whether or not to build static libraries.
20059 build_old_libs=$enable_static
20061 # Whether or not to add -lc for building shared libraries.
20062 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20064 # Whether or not to disallow shared libs when runtime libs are static
20065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20067 # Whether or not to optimize for fast installation.
20068 fast_install=$enable_fast_install
20070 # The host system.
20071 host_alias=$host_alias
20072 host=$host
20073 host_os=$host_os
20075 # The build system.
20076 build_alias=$build_alias
20077 build=$build
20078 build_os=$build_os
20080 # An echo program that does not interpret backslashes.
20081 echo=$lt_echo
20083 # The archiver.
20084 AR=$lt_AR
20085 AR_FLAGS=$lt_AR_FLAGS
20087 # A C compiler.
20088 LTCC=$lt_LTCC
20090 # A language-specific compiler.
20091 CC=$lt_compiler_GCJ
20093 # Is the compiler the GNU C compiler?
20094 with_gcc=$GCC_GCJ
20096 # An ERE matcher.
20097 EGREP=$lt_EGREP
20099 # The linker used to build libraries.
20100 LD=$lt_LD_GCJ
20102 # Whether we need hard or soft links.
20103 LN_S=$lt_LN_S
20105 # A BSD-compatible nm program.
20106 NM=$lt_NM
20108 # A symbol stripping program
20109 STRIP=$lt_STRIP
20111 # Used to examine libraries when file_magic_cmd begins "file"
20112 MAGIC_CMD=$MAGIC_CMD
20114 # Used on cygwin: DLL creation program.
20115 DLLTOOL="$DLLTOOL"
20117 # Used on cygwin: object dumper.
20118 OBJDUMP="$OBJDUMP"
20120 # Used on cygwin: assembler.
20121 AS="$AS"
20123 # The name of the directory that contains temporary libtool files.
20124 objdir=$objdir
20126 # How to create reloadable object files.
20127 reload_flag=$lt_reload_flag
20128 reload_cmds=$lt_reload_cmds
20130 # How to pass a linker flag through the compiler.
20131 wl=$lt_lt_prog_compiler_wl_GCJ
20133 # Object file suffix (normally "o").
20134 objext="$ac_objext"
20136 # Old archive suffix (normally "a").
20137 libext="$libext"
20139 # Shared library suffix (normally ".so").
20140 shrext_cmds='$shrext_cmds'
20142 # Executable file suffix (normally "").
20143 exeext="$exeext"
20145 # Additional compiler flags for building library objects.
20146 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20147 pic_mode=$pic_mode
20149 # What is the maximum length of a command?
20150 max_cmd_len=$lt_cv_sys_max_cmd_len
20152 # Does compiler simultaneously support -c and -o options?
20153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20155 # Must we lock files when doing compilation ?
20156 need_locks=$lt_need_locks
20158 # Do we need the lib prefix for modules?
20159 need_lib_prefix=$need_lib_prefix
20161 # Do we need a version for libraries?
20162 need_version=$need_version
20164 # Whether dlopen is supported.
20165 dlopen_support=$enable_dlopen
20167 # Whether dlopen of programs is supported.
20168 dlopen_self=$enable_dlopen_self
20170 # Whether dlopen of statically linked programs is supported.
20171 dlopen_self_static=$enable_dlopen_self_static
20173 # Compiler flag to prevent dynamic linking.
20174 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20176 # Compiler flag to turn off builtin functions.
20177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20179 # Compiler flag to allow reflexive dlopens.
20180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20182 # Compiler flag to generate shared objects directly from archives.
20183 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20185 # Compiler flag to generate thread-safe objects.
20186 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20188 # Library versioning type.
20189 version_type=$version_type
20191 # Format of library name prefix.
20192 libname_spec=$lt_libname_spec
20194 # List of archive names. First name is the real one, the rest are links.
20195 # The last name is the one that the linker finds with -lNAME.
20196 library_names_spec=$lt_library_names_spec
20198 # The coded name of the library, if different from the real name.
20199 soname_spec=$lt_soname_spec
20201 # Commands used to build and install an old-style archive.
20202 RANLIB=$lt_RANLIB
20203 old_archive_cmds=$lt_old_archive_cmds_GCJ
20204 old_postinstall_cmds=$lt_old_postinstall_cmds
20205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20207 # Create an old-style archive from a shared archive.
20208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20210 # Create a temporary old-style archive to link instead of a shared archive.
20211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20213 # Commands used to build and install a shared archive.
20214 archive_cmds=$lt_archive_cmds_GCJ
20215 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20216 postinstall_cmds=$lt_postinstall_cmds
20217 postuninstall_cmds=$lt_postuninstall_cmds
20219 # Commands used to build a loadable module (assumed same as above if empty)
20220 module_cmds=$lt_module_cmds_GCJ
20221 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20223 # Commands to strip libraries.
20224 old_striplib=$lt_old_striplib
20225 striplib=$lt_striplib
20227 # Dependencies to place before the objects being linked to create a
20228 # shared library.
20229 predep_objects=$lt_predep_objects_GCJ
20231 # Dependencies to place after the objects being linked to create a
20232 # shared library.
20233 postdep_objects=$lt_postdep_objects_GCJ
20235 # Dependencies to place before the objects being linked to create a
20236 # shared library.
20237 predeps=$lt_predeps_GCJ
20239 # Dependencies to place after the objects being linked to create a
20240 # shared library.
20241 postdeps=$lt_postdeps_GCJ
20243 # The library search path used internally by the compiler when linking
20244 # a shared library.
20245 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20247 # Method to check whether dependent libraries are shared objects.
20248 deplibs_check_method=$lt_deplibs_check_method
20250 # Command to use when deplibs_check_method == file_magic.
20251 file_magic_cmd=$lt_file_magic_cmd
20253 # Flag that allows shared libraries with undefined symbols to be built.
20254 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20256 # Flag that forces no undefined symbols.
20257 no_undefined_flag=$lt_no_undefined_flag_GCJ
20259 # Commands used to finish a libtool library installation in a directory.
20260 finish_cmds=$lt_finish_cmds
20262 # Same as above, but a single script fragment to be evaled but not shown.
20263 finish_eval=$lt_finish_eval
20265 # Take the output of nm and produce a listing of raw symbols and C names.
20266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20268 # Transform the output of nm in a proper C declaration
20269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20271 # Transform the output of nm in a C name address pair
20272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20274 # This is the shared library runtime path variable.
20275 runpath_var=$runpath_var
20277 # This is the shared library path variable.
20278 shlibpath_var=$shlibpath_var
20280 # Is shlibpath searched before the hard-coded library search path?
20281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20283 # How to hardcode a shared library path into an executable.
20284 hardcode_action=$hardcode_action_GCJ
20286 # Whether we should hardcode library paths into libraries.
20287 hardcode_into_libs=$hardcode_into_libs
20289 # Flag to hardcode \$libdir into a binary during linking.
20290 # This must work even if \$libdir does not exist.
20291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20293 # If ld is used when linking, flag to hardcode \$libdir into
20294 # a binary during linking. This must work even if \$libdir does
20295 # not exist.
20296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20298 # Whether we need a single -rpath flag with a separated argument.
20299 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20302 # resulting binary.
20303 hardcode_direct=$hardcode_direct_GCJ
20305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20306 # resulting binary.
20307 hardcode_minus_L=$hardcode_minus_L_GCJ
20309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20310 # the resulting binary.
20311 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20313 # Set to yes if building a shared library automatically hardcodes DIR into the library
20314 # and all subsequent libraries and executables linked against it.
20315 hardcode_automatic=$hardcode_automatic_GCJ
20317 # Variables whose values should be saved in libtool wrapper scripts and
20318 # restored at relink time.
20319 variables_saved_for_relink="$variables_saved_for_relink"
20321 # Whether libtool must link a program against all its dependency libraries.
20322 link_all_deplibs=$link_all_deplibs_GCJ
20324 # Compile-time system search path for libraries
20325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20327 # Run-time system search path for libraries
20328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20330 # Fix the shell variable \$srcfile for the compiler.
20331 fix_srcfile_path="$fix_srcfile_path_GCJ"
20333 # Set to yes if exported symbols are required.
20334 always_export_symbols=$always_export_symbols_GCJ
20336 # The commands to list exported symbols.
20337 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20339 # The commands to extract the exported symbol list from a shared archive.
20340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20342 # Symbols that should not be listed in the preloaded symbols.
20343 exclude_expsyms=$lt_exclude_expsyms_GCJ
20345 # Symbols that must always be exported.
20346 include_expsyms=$lt_include_expsyms_GCJ
20348 # ### END LIBTOOL TAG CONFIG: $tagname
20350 __EOF__
20353 else
20354 # If there is no Makefile yet, we rely on a make rule to execute
20355 # `config.status --recheck' to rerun these tests and create the
20356 # libtool script then.
20357 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20358 if test -f "$ltmain_in"; then
20359 test -f Makefile && make "$ltmain"
20364 ac_ext=c
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20370 CC="$lt_save_CC"
20372 else
20373 tagname=""
20381 # Source file extension for RC test sources.
20382 ac_ext=rc
20384 # Object file extension for compiled RC test sources.
20385 objext=o
20386 objext_RC=$objext
20388 # Code to be used in simple compile tests
20389 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20391 # Code to be used in simple link tests
20392 lt_simple_link_test_code="$lt_simple_compile_test_code"
20394 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20396 # If no C compiler was specified, use CC.
20397 LTCC=${LTCC-"$CC"}
20399 # Allow CC to be a program name with arguments.
20400 compiler=$CC
20403 # Allow CC to be a program name with arguments.
20404 lt_save_CC="$CC"
20405 CC=${RC-"windres"}
20406 compiler=$CC
20407 compiler_RC=$CC
20408 lt_cv_prog_compiler_c_o_RC=yes
20410 # The else clause should only fire when bootstrapping the
20411 # libtool distribution, otherwise you forgot to ship ltmain.sh
20412 # with your package, and you will get complaints that there are
20413 # no rules to generate ltmain.sh.
20414 if test -f "$ltmain"; then
20415 # See if we are running on zsh, and set the options which allow our commands through
20416 # without removal of \ escapes.
20417 if test -n "${ZSH_VERSION+set}" ; then
20418 setopt NO_GLOB_SUBST
20420 # Now quote all the things that may contain metacharacters while being
20421 # careful not to overquote the AC_SUBSTed values. We take copies of the
20422 # variables and quote the copies for generation of the libtool script.
20423 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20424 SED SHELL STRIP \
20425 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20426 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20427 deplibs_check_method reload_flag reload_cmds need_locks \
20428 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20429 lt_cv_sys_global_symbol_to_c_name_address \
20430 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20431 old_postinstall_cmds old_postuninstall_cmds \
20432 compiler_RC \
20433 CC_RC \
20434 LD_RC \
20435 lt_prog_compiler_wl_RC \
20436 lt_prog_compiler_pic_RC \
20437 lt_prog_compiler_static_RC \
20438 lt_prog_compiler_no_builtin_flag_RC \
20439 export_dynamic_flag_spec_RC \
20440 thread_safe_flag_spec_RC \
20441 whole_archive_flag_spec_RC \
20442 enable_shared_with_static_runtimes_RC \
20443 old_archive_cmds_RC \
20444 old_archive_from_new_cmds_RC \
20445 predep_objects_RC \
20446 postdep_objects_RC \
20447 predeps_RC \
20448 postdeps_RC \
20449 compiler_lib_search_path_RC \
20450 archive_cmds_RC \
20451 archive_expsym_cmds_RC \
20452 postinstall_cmds_RC \
20453 postuninstall_cmds_RC \
20454 old_archive_from_expsyms_cmds_RC \
20455 allow_undefined_flag_RC \
20456 no_undefined_flag_RC \
20457 export_symbols_cmds_RC \
20458 hardcode_libdir_flag_spec_RC \
20459 hardcode_libdir_flag_spec_ld_RC \
20460 hardcode_libdir_separator_RC \
20461 hardcode_automatic_RC \
20462 module_cmds_RC \
20463 module_expsym_cmds_RC \
20464 lt_cv_prog_compiler_c_o_RC \
20465 exclude_expsyms_RC \
20466 include_expsyms_RC; do
20468 case $var in
20469 old_archive_cmds_RC | \
20470 old_archive_from_new_cmds_RC | \
20471 archive_cmds_RC | \
20472 archive_expsym_cmds_RC | \
20473 module_cmds_RC | \
20474 module_expsym_cmds_RC | \
20475 old_archive_from_expsyms_cmds_RC | \
20476 export_symbols_cmds_RC | \
20477 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20478 postinstall_cmds | postuninstall_cmds | \
20479 old_postinstall_cmds | old_postuninstall_cmds | \
20480 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20481 # Double-quote double-evaled strings.
20482 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20487 esac
20488 done
20490 case $lt_echo in
20491 *'\$0 --fallback-echo"')
20492 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20494 esac
20496 cfgfile="$ofile"
20498 cat <<__EOF__ >> "$cfgfile"
20499 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20501 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20503 # Shell to use when invoking shell scripts.
20504 SHELL=$lt_SHELL
20506 # Whether or not to build shared libraries.
20507 build_libtool_libs=$enable_shared
20509 # Whether or not to build static libraries.
20510 build_old_libs=$enable_static
20512 # Whether or not to add -lc for building shared libraries.
20513 build_libtool_need_lc=$archive_cmds_need_lc_RC
20515 # Whether or not to disallow shared libs when runtime libs are static
20516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20518 # Whether or not to optimize for fast installation.
20519 fast_install=$enable_fast_install
20521 # The host system.
20522 host_alias=$host_alias
20523 host=$host
20524 host_os=$host_os
20526 # The build system.
20527 build_alias=$build_alias
20528 build=$build
20529 build_os=$build_os
20531 # An echo program that does not interpret backslashes.
20532 echo=$lt_echo
20534 # The archiver.
20535 AR=$lt_AR
20536 AR_FLAGS=$lt_AR_FLAGS
20538 # A C compiler.
20539 LTCC=$lt_LTCC
20541 # A language-specific compiler.
20542 CC=$lt_compiler_RC
20544 # Is the compiler the GNU C compiler?
20545 with_gcc=$GCC_RC
20547 # An ERE matcher.
20548 EGREP=$lt_EGREP
20550 # The linker used to build libraries.
20551 LD=$lt_LD_RC
20553 # Whether we need hard or soft links.
20554 LN_S=$lt_LN_S
20556 # A BSD-compatible nm program.
20557 NM=$lt_NM
20559 # A symbol stripping program
20560 STRIP=$lt_STRIP
20562 # Used to examine libraries when file_magic_cmd begins "file"
20563 MAGIC_CMD=$MAGIC_CMD
20565 # Used on cygwin: DLL creation program.
20566 DLLTOOL="$DLLTOOL"
20568 # Used on cygwin: object dumper.
20569 OBJDUMP="$OBJDUMP"
20571 # Used on cygwin: assembler.
20572 AS="$AS"
20574 # The name of the directory that contains temporary libtool files.
20575 objdir=$objdir
20577 # How to create reloadable object files.
20578 reload_flag=$lt_reload_flag
20579 reload_cmds=$lt_reload_cmds
20581 # How to pass a linker flag through the compiler.
20582 wl=$lt_lt_prog_compiler_wl_RC
20584 # Object file suffix (normally "o").
20585 objext="$ac_objext"
20587 # Old archive suffix (normally "a").
20588 libext="$libext"
20590 # Shared library suffix (normally ".so").
20591 shrext_cmds='$shrext_cmds'
20593 # Executable file suffix (normally "").
20594 exeext="$exeext"
20596 # Additional compiler flags for building library objects.
20597 pic_flag=$lt_lt_prog_compiler_pic_RC
20598 pic_mode=$pic_mode
20600 # What is the maximum length of a command?
20601 max_cmd_len=$lt_cv_sys_max_cmd_len
20603 # Does compiler simultaneously support -c and -o options?
20604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20606 # Must we lock files when doing compilation ?
20607 need_locks=$lt_need_locks
20609 # Do we need the lib prefix for modules?
20610 need_lib_prefix=$need_lib_prefix
20612 # Do we need a version for libraries?
20613 need_version=$need_version
20615 # Whether dlopen is supported.
20616 dlopen_support=$enable_dlopen
20618 # Whether dlopen of programs is supported.
20619 dlopen_self=$enable_dlopen_self
20621 # Whether dlopen of statically linked programs is supported.
20622 dlopen_self_static=$enable_dlopen_self_static
20624 # Compiler flag to prevent dynamic linking.
20625 link_static_flag=$lt_lt_prog_compiler_static_RC
20627 # Compiler flag to turn off builtin functions.
20628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20630 # Compiler flag to allow reflexive dlopens.
20631 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20633 # Compiler flag to generate shared objects directly from archives.
20634 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20636 # Compiler flag to generate thread-safe objects.
20637 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20639 # Library versioning type.
20640 version_type=$version_type
20642 # Format of library name prefix.
20643 libname_spec=$lt_libname_spec
20645 # List of archive names. First name is the real one, the rest are links.
20646 # The last name is the one that the linker finds with -lNAME.
20647 library_names_spec=$lt_library_names_spec
20649 # The coded name of the library, if different from the real name.
20650 soname_spec=$lt_soname_spec
20652 # Commands used to build and install an old-style archive.
20653 RANLIB=$lt_RANLIB
20654 old_archive_cmds=$lt_old_archive_cmds_RC
20655 old_postinstall_cmds=$lt_old_postinstall_cmds
20656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20658 # Create an old-style archive from a shared archive.
20659 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20661 # Create a temporary old-style archive to link instead of a shared archive.
20662 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20664 # Commands used to build and install a shared archive.
20665 archive_cmds=$lt_archive_cmds_RC
20666 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20667 postinstall_cmds=$lt_postinstall_cmds
20668 postuninstall_cmds=$lt_postuninstall_cmds
20670 # Commands used to build a loadable module (assumed same as above if empty)
20671 module_cmds=$lt_module_cmds_RC
20672 module_expsym_cmds=$lt_module_expsym_cmds_RC
20674 # Commands to strip libraries.
20675 old_striplib=$lt_old_striplib
20676 striplib=$lt_striplib
20678 # Dependencies to place before the objects being linked to create a
20679 # shared library.
20680 predep_objects=$lt_predep_objects_RC
20682 # Dependencies to place after the objects being linked to create a
20683 # shared library.
20684 postdep_objects=$lt_postdep_objects_RC
20686 # Dependencies to place before the objects being linked to create a
20687 # shared library.
20688 predeps=$lt_predeps_RC
20690 # Dependencies to place after the objects being linked to create a
20691 # shared library.
20692 postdeps=$lt_postdeps_RC
20694 # The library search path used internally by the compiler when linking
20695 # a shared library.
20696 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20698 # Method to check whether dependent libraries are shared objects.
20699 deplibs_check_method=$lt_deplibs_check_method
20701 # Command to use when deplibs_check_method == file_magic.
20702 file_magic_cmd=$lt_file_magic_cmd
20704 # Flag that allows shared libraries with undefined symbols to be built.
20705 allow_undefined_flag=$lt_allow_undefined_flag_RC
20707 # Flag that forces no undefined symbols.
20708 no_undefined_flag=$lt_no_undefined_flag_RC
20710 # Commands used to finish a libtool library installation in a directory.
20711 finish_cmds=$lt_finish_cmds
20713 # Same as above, but a single script fragment to be evaled but not shown.
20714 finish_eval=$lt_finish_eval
20716 # Take the output of nm and produce a listing of raw symbols and C names.
20717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20719 # Transform the output of nm in a proper C declaration
20720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20722 # Transform the output of nm in a C name address pair
20723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20725 # This is the shared library runtime path variable.
20726 runpath_var=$runpath_var
20728 # This is the shared library path variable.
20729 shlibpath_var=$shlibpath_var
20731 # Is shlibpath searched before the hard-coded library search path?
20732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20734 # How to hardcode a shared library path into an executable.
20735 hardcode_action=$hardcode_action_RC
20737 # Whether we should hardcode library paths into libraries.
20738 hardcode_into_libs=$hardcode_into_libs
20740 # Flag to hardcode \$libdir into a binary during linking.
20741 # This must work even if \$libdir does not exist.
20742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20744 # If ld is used when linking, flag to hardcode \$libdir into
20745 # a binary during linking. This must work even if \$libdir does
20746 # not exist.
20747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20749 # Whether we need a single -rpath flag with a separated argument.
20750 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20752 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20753 # resulting binary.
20754 hardcode_direct=$hardcode_direct_RC
20756 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20757 # resulting binary.
20758 hardcode_minus_L=$hardcode_minus_L_RC
20760 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20761 # the resulting binary.
20762 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20764 # Set to yes if building a shared library automatically hardcodes DIR into the library
20765 # and all subsequent libraries and executables linked against it.
20766 hardcode_automatic=$hardcode_automatic_RC
20768 # Variables whose values should be saved in libtool wrapper scripts and
20769 # restored at relink time.
20770 variables_saved_for_relink="$variables_saved_for_relink"
20772 # Whether libtool must link a program against all its dependency libraries.
20773 link_all_deplibs=$link_all_deplibs_RC
20775 # Compile-time system search path for libraries
20776 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20778 # Run-time system search path for libraries
20779 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20781 # Fix the shell variable \$srcfile for the compiler.
20782 fix_srcfile_path="$fix_srcfile_path_RC"
20784 # Set to yes if exported symbols are required.
20785 always_export_symbols=$always_export_symbols_RC
20787 # The commands to list exported symbols.
20788 export_symbols_cmds=$lt_export_symbols_cmds_RC
20790 # The commands to extract the exported symbol list from a shared archive.
20791 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20793 # Symbols that should not be listed in the preloaded symbols.
20794 exclude_expsyms=$lt_exclude_expsyms_RC
20796 # Symbols that must always be exported.
20797 include_expsyms=$lt_include_expsyms_RC
20799 # ### END LIBTOOL TAG CONFIG: $tagname
20801 __EOF__
20804 else
20805 # If there is no Makefile yet, we rely on a make rule to execute
20806 # `config.status --recheck' to rerun these tests and create the
20807 # libtool script then.
20808 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20809 if test -f "$ltmain_in"; then
20810 test -f Makefile && make "$ltmain"
20815 ac_ext=c
20816 ac_cpp='$CPP $CPPFLAGS'
20817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821 CC="$lt_save_CC"
20826 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20827 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20828 { (exit 1); exit 1; }; }
20830 esac
20832 # Append the new tag name to the list of available tags.
20833 if test -n "$tagname" ; then
20834 available_tags="$available_tags $tagname"
20837 done
20838 IFS="$lt_save_ifs"
20840 # Now substitute the updated list of available tags.
20841 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20842 mv "${ofile}T" "$ofile"
20843 chmod +x "$ofile"
20844 else
20845 rm -f "${ofile}T"
20846 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20847 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20848 { (exit 1); exit 1; }; }
20854 # This can be used to rebuild libtool when needed
20855 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20857 # Always use our own libtool.
20858 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20860 # Prevent multiple expansion
20883 # Check whether --with-gnu-ld or --without-gnu-ld was given.
20884 if test "${with_gnu_ld+set}" = set; then
20885 withval="$with_gnu_ld"
20886 test "$withval" = no || with_gnu_ld=yes
20887 else
20888 with_gnu_ld=no
20890 # Prepare PATH_SEPARATOR.
20891 # The user is always right.
20892 if test "${PATH_SEPARATOR+set}" != set; then
20893 echo "#! /bin/sh" >conf$$.sh
20894 echo "exit 0" >>conf$$.sh
20895 chmod +x conf$$.sh
20896 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20897 PATH_SEPARATOR=';'
20898 else
20899 PATH_SEPARATOR=:
20901 rm -f conf$$.sh
20903 ac_prog=ld
20904 if test "$GCC" = yes; then
20905 # Check if gcc -print-prog-name=ld gives a path.
20906 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20907 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
20908 case $host in
20909 *-*-mingw*)
20910 # gcc leaves a trailing carriage return which upsets mingw
20911 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20913 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20914 esac
20915 case $ac_prog in
20916 # Accept absolute paths.
20917 [\\/]* | [A-Za-z]:[\\/]*)
20918 re_direlt='/[^/][^/]*/\.\./'
20919 # Canonicalize the path of ld
20920 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20921 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20922 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20923 done
20924 test -z "$LD" && LD="$ac_prog"
20927 # If it fails, then pretend we aren't using GCC.
20928 ac_prog=ld
20931 # If it is relative, then search for the first ld in PATH.
20932 with_gnu_ld=unknown
20934 esac
20935 elif test "$with_gnu_ld" = yes; then
20936 echo "$as_me:$LINENO: checking for GNU ld" >&5
20937 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20938 else
20939 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20940 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20942 if test "${acl_cv_path_LD+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945 if test -z "$LD"; then
20946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20947 for ac_dir in $PATH; do
20948 test -z "$ac_dir" && ac_dir=.
20949 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20950 acl_cv_path_LD="$ac_dir/$ac_prog"
20951 # Check to see if the program is GNU ld. I'd rather use --version,
20952 # but apparently some GNU ld's only accept -v.
20953 # Break only if it was the GNU/non-GNU ld that we prefer.
20954 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20955 *GNU* | *'with BFD'*)
20956 test "$with_gnu_ld" != no && break ;;
20958 test "$with_gnu_ld" != yes && break ;;
20959 esac
20961 done
20962 IFS="$ac_save_ifs"
20963 else
20964 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20968 LD="$acl_cv_path_LD"
20969 if test -n "$LD"; then
20970 echo "$as_me:$LINENO: result: $LD" >&5
20971 echo "${ECHO_T}$LD" >&6
20972 else
20973 echo "$as_me:$LINENO: result: no" >&5
20974 echo "${ECHO_T}no" >&6
20976 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20977 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20978 { (exit 1); exit 1; }; }
20979 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20980 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20981 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20985 case `$LD -v 2>&1 </dev/null` in
20986 *GNU* | *'with BFD'*)
20987 acl_cv_prog_gnu_ld=yes ;;
20989 acl_cv_prog_gnu_ld=no ;;
20990 esac
20992 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20993 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
20994 with_gnu_ld=$acl_cv_prog_gnu_ld
20998 echo "$as_me:$LINENO: checking for shared library path variable" >&5
20999 echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6
21000 if test "${acl_cv_libpath+set}" = set; then
21001 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 else
21004 LD="$LD" \
21005 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
21006 . ./conftest.sh
21007 rm -f ./conftest.sh
21008 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
21011 echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
21012 echo "${ECHO_T}$acl_cv_libpath" >&6
21013 shlibpath_var="$acl_cv_shlibpath_var"
21016 echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
21017 echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
21018 # Check whether --enable-relocatable or --disable-relocatable was given.
21019 if test "${enable_relocatable+set}" = set; then
21020 enableval="$enable_relocatable"
21021 if test "$enableval" != no; then
21022 RELOCATABLE=yes
21023 else
21024 RELOCATABLE=no
21027 else
21028 RELOCATABLE=no
21031 echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
21032 echo "${ECHO_T}$RELOCATABLE" >&6
21036 if test "X$prefix" = "XNONE"; then
21037 reloc_final_prefix="$ac_default_prefix"
21038 else
21039 reloc_final_prefix="$prefix"
21042 cat >>confdefs.h <<_ACEOF
21043 #define INSTALLPREFIX "${reloc_final_prefix}"
21044 _ACEOF
21052 use_elf_origin_trick=no
21053 if test $RELOCATABLE = yes; then
21054 # --enable-relocatable implies --disable-rpath
21055 enable_rpath=no
21056 case $LIBOBJS in
21057 "relocatable.$ac_objext" | \
21058 *" relocatable.$ac_objext" | \
21059 "relocatable.$ac_objext "* | \
21060 *" relocatable.$ac_objext "* ) ;;
21061 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext" ;;
21062 esac
21065 cat >>confdefs.h <<\_ACEOF
21066 #define ENABLE_RELOCATABLE 1
21067 _ACEOF
21069 case "$host_os" in
21070 linux*) use_elf_origin_trick=yes ;;
21071 esac
21072 if test $use_elf_origin_trick = yes; then
21073 case "$ac_aux_dir" in
21074 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
21075 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
21076 esac
21077 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
21078 else
21079 SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
21080 case "$ac_aux_dir" in
21081 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
21082 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
21083 esac
21085 else
21086 SET_RELOCATABLE=
21091 if test $use_elf_origin_trick = yes; then
21092 RELOCATABLE_VIA_LD_TRUE=
21093 RELOCATABLE_VIA_LD_FALSE='#'
21094 else
21095 RELOCATABLE_VIA_LD_TRUE='#'
21096 RELOCATABLE_VIA_LD_FALSE=
21102 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21104 if test "${ac_cv_header_stdc+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h. */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <stdlib.h>
21114 #include <stdarg.h>
21115 #include <string.h>
21116 #include <float.h>
21119 main ()
21123 return 0;
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128 (eval $ac_compile) 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -z "$ac_c_werror_flag"
21136 || test ! -s conftest.err'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; } &&
21142 { ac_try='test -s conftest.$ac_objext'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148 ac_cv_header_stdc=yes
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21153 ac_cv_header_stdc=no
21155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21157 if test $ac_cv_header_stdc = yes; then
21158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <string.h>
21167 _ACEOF
21168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21169 $EGREP "memchr" >/dev/null 2>&1; then
21171 else
21172 ac_cv_header_stdc=no
21174 rm -f conftest*
21178 if test $ac_cv_header_stdc = yes; then
21179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 #include <stdlib.h>
21188 _ACEOF
21189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21190 $EGREP "free" >/dev/null 2>&1; then
21192 else
21193 ac_cv_header_stdc=no
21195 rm -f conftest*
21199 if test $ac_cv_header_stdc = yes; then
21200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21201 if test "$cross_compiling" = yes; then
21203 else
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h. */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21210 #include <ctype.h>
21211 #if ((' ' & 0x0FF) == 0x020)
21212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21214 #else
21215 # define ISLOWER(c) \
21216 (('a' <= (c) && (c) <= 'i') \
21217 || ('j' <= (c) && (c) <= 'r') \
21218 || ('s' <= (c) && (c) <= 'z'))
21219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21220 #endif
21222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21224 main ()
21226 int i;
21227 for (i = 0; i < 256; i++)
21228 if (XOR (islower (i), ISLOWER (i))
21229 || toupper (i) != TOUPPER (i))
21230 exit(2);
21231 exit (0);
21233 _ACEOF
21234 rm -f conftest$ac_exeext
21235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21236 (eval $ac_link) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21246 else
21247 echo "$as_me: program exited with status $ac_status" >&5
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ( exit $ac_status )
21252 ac_cv_header_stdc=no
21254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21260 if test $ac_cv_header_stdc = yes; then
21262 cat >>confdefs.h <<\_ACEOF
21263 #define STDC_HEADERS 1
21264 _ACEOF
21275 for ac_header in limits.h malloc.h pwd.h string.h unistd.h utime.h values.h
21277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21279 echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21286 else
21287 # Is the header compilable?
21288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21297 #include <$ac_header>
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag"
21309 || test ! -s conftest.err'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_header_compiler=yes
21322 else
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21326 ac_header_compiler=no
21328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21330 echo "${ECHO_T}$ac_header_compiler" >&6
21332 # Is the header present?
21333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h. */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include <$ac_header>
21342 _ACEOF
21343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } >/dev/null; then
21351 if test -s conftest.err; then
21352 ac_cpp_err=$ac_c_preproc_warn_flag
21353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21354 else
21355 ac_cpp_err=
21357 else
21358 ac_cpp_err=yes
21360 if test -z "$ac_cpp_err"; then
21361 ac_header_preproc=yes
21362 else
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 ac_header_preproc=no
21368 rm -f conftest.err conftest.$ac_ext
21369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370 echo "${ECHO_T}$ac_header_preproc" >&6
21372 # So? What about this header?
21373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21374 yes:no: )
21375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21379 ac_header_preproc=yes
21381 no:yes:* )
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21395 cat <<\_ASBOX
21396 ## ------------------------------------------ ##
21397 ## Report this to the AC_PACKAGE_NAME lists. ##
21398 ## ------------------------------------------ ##
21399 _ASBOX
21401 sed "s/^/$as_me: WARNING: /" >&2
21403 esac
21404 echo "$as_me:$LINENO: checking for $ac_header" >&5
21405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409 eval "$as_ac_Header=\$ac_header_preproc"
21411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21416 cat >>confdefs.h <<_ACEOF
21417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21418 _ACEOF
21422 done
21424 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
21425 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
21426 if test "${ac_cv_header_stdbool_h+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h. */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21436 #include <stdbool.h>
21437 #ifndef bool
21438 "error: bool is not defined"
21439 #endif
21440 #ifndef false
21441 "error: false is not defined"
21442 #endif
21443 #if false
21444 "error: false is not 0"
21445 #endif
21446 #ifndef true
21447 "error: true is not defined"
21448 #endif
21449 #if true != 1
21450 "error: true is not 1"
21451 #endif
21452 #ifndef __bool_true_false_are_defined
21453 "error: __bool_true_false_are_defined is not defined"
21454 #endif
21456 struct s { _Bool s: 1; _Bool t; } s;
21458 char a[true == 1 ? 1 : -1];
21459 char b[false == 0 ? 1 : -1];
21460 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21461 char d[(bool) -0.5 == true ? 1 : -1];
21462 bool e = &s;
21463 char f[(_Bool) -0.0 == false ? 1 : -1];
21464 char g[true];
21465 char h[sizeof (_Bool)];
21466 char i[sizeof s.t];
21467 enum { j = false, k = true, l = false * true, m = true * 256 };
21468 _Bool n[m];
21469 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21472 main ()
21475 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
21476 + !m + !n + !o);
21479 return 0;
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484 (eval $ac_compile) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 ac_cv_header_stdbool_h=yes
21505 else
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ac_cv_header_stdbool_h=no
21511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21513 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
21514 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
21515 echo "$as_me:$LINENO: checking for _Bool" >&5
21516 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
21517 if test "${ac_cv_type__Bool+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520 cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h. */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 $ac_includes_default
21528 main ()
21530 if ((_Bool *) 0)
21531 return 0;
21532 if (sizeof (_Bool))
21533 return 0;
21535 return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540 (eval $ac_compile) 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -z "$ac_c_werror_flag"
21548 || test ! -s conftest.err'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; } &&
21554 { ac_try='test -s conftest.$ac_objext'
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; }; then
21560 ac_cv_type__Bool=yes
21561 else
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_cv_type__Bool=no
21567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21569 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
21570 echo "${ECHO_T}$ac_cv_type__Bool" >&6
21571 if test $ac_cv_type__Bool = yes; then
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE__BOOL 1
21575 _ACEOF
21580 if test $ac_cv_header_stdbool_h = yes; then
21582 cat >>confdefs.h <<\_ACEOF
21583 #define HAVE_STDBOOL_H 1
21584 _ACEOF
21590 # Define two additional variables used in the Makefile substitution.
21592 if test "$ac_cv_header_stdbool_h" = yes; then
21593 STDBOOL_H=''
21594 else
21595 STDBOOL_H='stdbool.h'
21599 if test "$ac_cv_type__Bool" = yes; then
21600 HAVE__BOOL=1
21601 else
21602 HAVE__BOOL=0
21607 echo "$as_me:$LINENO: checking for inline" >&5
21608 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21609 if test "${ac_cv_c_inline+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 ac_cv_c_inline=no
21613 for ac_kw in inline __inline__ __inline; do
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h. */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 #ifndef __cplusplus
21621 typedef int foo_t;
21622 static $ac_kw foo_t static_foo () {return 0; }
21623 $ac_kw foo_t foo () {return 0; }
21624 #endif
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21629 (eval $ac_compile) 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try='test -z "$ac_c_werror_flag"
21637 || test ! -s conftest.err'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; } &&
21643 { ac_try='test -s conftest.$ac_objext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_c_inline=$ac_kw; break
21650 else
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 done
21659 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21660 echo "${ECHO_T}$ac_cv_c_inline" >&6
21663 case $ac_cv_c_inline in
21664 inline | yes) ;;
21666 case $ac_cv_c_inline in
21667 no) ac_val=;;
21668 *) ac_val=$ac_cv_c_inline;;
21669 esac
21670 cat >>confdefs.h <<_ACEOF
21671 #ifndef __cplusplus
21672 #define inline $ac_val
21673 #endif
21674 _ACEOF
21676 esac
21679 echo "$as_me:$LINENO: checking for signed" >&5
21680 echo $ECHO_N "checking for signed... $ECHO_C" >&6
21681 if test "${bh_cv_c_signed+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 else
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h. */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21692 main ()
21694 signed char x;
21696 return 0;
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 bh_cv_c_signed=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 bh_cv_c_signed=no
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
21731 echo "${ECHO_T}$bh_cv_c_signed" >&6
21732 if test $bh_cv_c_signed = no; then
21734 cat >>confdefs.h <<\_ACEOF
21735 #define signed
21736 _ACEOF
21741 echo "$as_me:$LINENO: checking for unsigned long long" >&5
21742 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
21743 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746 cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h. */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21752 unsigned long long ull = 1ULL; int i = 63;
21754 main ()
21756 unsigned long long ullmax = (unsigned long long) -1;
21757 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
21759 return 0;
21761 _ACEOF
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21764 (eval $ac_link) 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -z "$ac_c_werror_flag"
21772 || test ! -s conftest.err'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; } &&
21778 { ac_try='test -s conftest$ac_exeext'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; }; then
21784 ac_cv_type_unsigned_long_long=yes
21785 else
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 ac_cv_type_unsigned_long_long=no
21791 rm -f conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21794 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
21795 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
21796 if test $ac_cv_type_unsigned_long_long = yes; then
21798 cat >>confdefs.h <<\_ACEOF
21799 #define HAVE_UNSIGNED_LONG_LONG 1
21800 _ACEOF
21804 echo "$as_me:$LINENO: checking for size_t" >&5
21805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21806 if test "${ac_cv_type_size_t+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 else
21809 cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h. */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21815 $ac_includes_default
21817 main ()
21819 if ((size_t *) 0)
21820 return 0;
21821 if (sizeof (size_t))
21822 return 0;
21824 return 0;
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829 (eval $ac_compile) 2>conftest.er1
21830 ac_status=$?
21831 grep -v '^ *+' conftest.er1 >conftest.err
21832 rm -f conftest.er1
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
21836 { ac_try='test -z "$ac_c_werror_flag"
21837 || test ! -s conftest.err'
21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; } &&
21843 { ac_try='test -s conftest.$ac_objext'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_cv_type_size_t=yes
21850 else
21851 echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_cv_type_size_t=no
21856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21858 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21859 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21860 if test $ac_cv_type_size_t = yes; then
21862 else
21864 cat >>confdefs.h <<_ACEOF
21865 #define size_t unsigned
21866 _ACEOF
21870 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21871 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21872 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 $ac_includes_default
21883 main ()
21885 if ((ptrdiff_t *) 0)
21886 return 0;
21887 if (sizeof (ptrdiff_t))
21888 return 0;
21890 return 0;
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21895 (eval $ac_compile) 2>conftest.er1
21896 ac_status=$?
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -z "$ac_c_werror_flag"
21903 || test ! -s conftest.err'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; } &&
21909 { ac_try='test -s conftest.$ac_objext'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 ac_cv_type_ptrdiff_t=yes
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_cv_type_ptrdiff_t=no
21922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21924 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21925 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21926 if test $ac_cv_type_ptrdiff_t = yes; then
21928 cat >>confdefs.h <<_ACEOF
21929 #define HAVE_PTRDIFF_T 1
21930 _ACEOF
21936 echo "$as_me:$LINENO: checking for inttypes.h" >&5
21937 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
21938 if test "${gl_cv_header_inttypes_h+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941 cat >conftest.$ac_ext <<_ACEOF
21942 /* confdefs.h. */
21943 _ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h. */
21947 #include <sys/types.h>
21948 #include <inttypes.h>
21950 main ()
21952 uintmax_t i = (uintmax_t) -1;
21954 return 0;
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959 (eval $ac_compile) 2>conftest.er1
21960 ac_status=$?
21961 grep -v '^ *+' conftest.er1 >conftest.err
21962 rm -f conftest.er1
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } &&
21966 { ac_try='test -z "$ac_c_werror_flag"
21967 || test ! -s conftest.err'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 gl_cv_header_inttypes_h=yes
21980 else
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 gl_cv_header_inttypes_h=no
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21988 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21989 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
21990 if test $gl_cv_header_inttypes_h = yes; then
21992 cat >>confdefs.h <<_ACEOF
21993 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
21994 _ACEOF
21999 echo "$as_me:$LINENO: checking for stdint.h" >&5
22000 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22001 if test "${gl_cv_header_stdint_h+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 #include <sys/types.h>
22011 #include <stdint.h>
22013 main ()
22015 uintmax_t i = (uintmax_t) -1;
22017 return 0;
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22023 ac_status=$?
22024 grep -v '^ *+' conftest.er1 >conftest.err
22025 rm -f conftest.er1
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 gl_cv_header_stdint_h=yes
22043 else
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 gl_cv_header_stdint_h=no
22049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22051 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22052 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
22053 if test $gl_cv_header_stdint_h = yes; then
22055 cat >>confdefs.h <<_ACEOF
22056 #define HAVE_STDINT_H_WITH_UINTMAX 1
22057 _ACEOF
22064 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22066 test $ac_cv_type_unsigned_long_long = yes \
22067 && ac_type='unsigned long long' \
22068 || ac_type='unsigned long'
22070 cat >>confdefs.h <<_ACEOF
22071 #define uintmax_t $ac_type
22072 _ACEOF
22074 else
22076 cat >>confdefs.h <<\_ACEOF
22077 #define HAVE_UINTMAX_T 1
22078 _ACEOF
22083 echo "$as_me:$LINENO: checking for ssize_t" >&5
22084 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22085 if test "${gt_cv_ssize_t+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 #include <sys/types.h>
22096 main ()
22098 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22100 return 0;
22102 _ACEOF
22103 rm -f conftest.$ac_objext
22104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22105 (eval $ac_compile) 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag"
22113 || test ! -s conftest.err'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest.$ac_objext'
22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; }; then
22125 gt_cv_ssize_t=yes
22126 else
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22130 gt_cv_ssize_t=no
22132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22134 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
22135 echo "${ECHO_T}$gt_cv_ssize_t" >&6
22136 if test $gt_cv_ssize_t = no; then
22138 cat >>confdefs.h <<\_ACEOF
22139 #define ssize_t int
22140 _ACEOF
22144 echo "$as_me:$LINENO: checking for pid_t" >&5
22145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22146 if test "${ac_cv_type_pid_t+set}" = set; then
22147 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 else
22149 cat >conftest.$ac_ext <<_ACEOF
22150 /* confdefs.h. */
22151 _ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155 $ac_includes_default
22157 main ()
22159 if ((pid_t *) 0)
22160 return 0;
22161 if (sizeof (pid_t))
22162 return 0;
22164 return 0;
22166 _ACEOF
22167 rm -f conftest.$ac_objext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22169 (eval $ac_compile) 2>conftest.er1
22170 ac_status=$?
22171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } &&
22176 { ac_try='test -z "$ac_c_werror_flag"
22177 || test ! -s conftest.err'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; } &&
22183 { ac_try='test -s conftest.$ac_objext'
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_type_pid_t=yes
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_cv_type_pid_t=no
22196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22200 if test $ac_cv_type_pid_t = yes; then
22202 else
22204 cat >>confdefs.h <<_ACEOF
22205 #define pid_t int
22206 _ACEOF
22210 echo "$as_me:$LINENO: checking for mode_t" >&5
22211 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22212 if test "${ac_cv_type_mode_t+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215 cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h. */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 $ac_includes_default
22223 main ()
22225 if ((mode_t *) 0)
22226 return 0;
22227 if (sizeof (mode_t))
22228 return 0;
22230 return 0;
22232 _ACEOF
22233 rm -f conftest.$ac_objext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22235 (eval $ac_compile) 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } &&
22242 { ac_try='test -z "$ac_c_werror_flag"
22243 || test ! -s conftest.err'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; } &&
22249 { ac_try='test -s conftest.$ac_objext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ac_cv_type_mode_t=yes
22256 else
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_cv_type_mode_t=no
22262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22265 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22266 if test $ac_cv_type_mode_t = yes; then
22268 else
22270 cat >>confdefs.h <<_ACEOF
22271 #define mode_t int
22272 _ACEOF
22277 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22278 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22279 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22282 cat >conftest.$ac_ext <<_ACEOF
22283 /* confdefs.h. */
22284 _ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288 #include <signal.h>
22291 main ()
22293 if ((sig_atomic_t *) 0)
22294 return 0;
22295 if (sizeof (sig_atomic_t))
22296 return 0;
22298 return 0;
22300 _ACEOF
22301 rm -f conftest.$ac_objext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22303 (eval $ac_compile) 2>conftest.er1
22304 ac_status=$?
22305 grep -v '^ *+' conftest.er1 >conftest.err
22306 rm -f conftest.er1
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } &&
22310 { ac_try='test -z "$ac_c_werror_flag"
22311 || test ! -s conftest.err'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; } &&
22317 { ac_try='test -s conftest.$ac_objext'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 ac_cv_type_sig_atomic_t=yes
22324 else
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ac_cv_type_sig_atomic_t=no
22330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22332 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22333 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
22334 if test $ac_cv_type_sig_atomic_t = yes; then
22336 cat >>confdefs.h <<_ACEOF
22337 #define HAVE_SIG_ATOMIC_T 1
22338 _ACEOF
22341 else
22343 cat >>confdefs.h <<\_ACEOF
22344 #define sig_atomic_t int
22345 _ACEOF
22351 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22352 # for constant arguments. Useless!
22353 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22354 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22355 if test "${ac_cv_working_alloca_h+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358 cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h. */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22364 #include <alloca.h>
22366 main ()
22368 char *p = (char *) alloca (2 * sizeof (int));
22370 return 0;
22372 _ACEOF
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22375 (eval $ac_link) 2>conftest.er1
22376 ac_status=$?
22377 grep -v '^ *+' conftest.er1 >conftest.err
22378 rm -f conftest.er1
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } &&
22382 { ac_try='test -z "$ac_c_werror_flag"
22383 || test ! -s conftest.err'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; } &&
22389 { ac_try='test -s conftest$ac_exeext'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 ac_cv_working_alloca_h=yes
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_cv_working_alloca_h=no
22402 rm -f conftest.err conftest.$ac_objext \
22403 conftest$ac_exeext conftest.$ac_ext
22405 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22406 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22407 if test $ac_cv_working_alloca_h = yes; then
22409 cat >>confdefs.h <<\_ACEOF
22410 #define HAVE_ALLOCA_H 1
22411 _ACEOF
22415 echo "$as_me:$LINENO: checking for alloca" >&5
22416 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22417 if test "${ac_cv_func_alloca_works+set}" = set; then
22418 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 else
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #ifdef __GNUC__
22427 # define alloca __builtin_alloca
22428 #else
22429 # ifdef _MSC_VER
22430 # include <malloc.h>
22431 # define alloca _alloca
22432 # else
22433 # if HAVE_ALLOCA_H
22434 # include <alloca.h>
22435 # else
22436 # ifdef _AIX
22437 #pragma alloca
22438 # else
22439 # ifndef alloca /* predefined by HP cc +Olibcalls */
22440 char *alloca ();
22441 # endif
22442 # endif
22443 # endif
22444 # endif
22445 #endif
22448 main ()
22450 char *p = (char *) alloca (1);
22452 return 0;
22454 _ACEOF
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22457 (eval $ac_link) 2>conftest.er1
22458 ac_status=$?
22459 grep -v '^ *+' conftest.er1 >conftest.err
22460 rm -f conftest.er1
22461 cat conftest.err >&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } &&
22464 { ac_try='test -z "$ac_c_werror_flag"
22465 || test ! -s conftest.err'
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; } &&
22471 { ac_try='test -s conftest$ac_exeext'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; }; then
22477 ac_cv_func_alloca_works=yes
22478 else
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ac_cv_func_alloca_works=no
22484 rm -f conftest.err conftest.$ac_objext \
22485 conftest$ac_exeext conftest.$ac_ext
22487 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22488 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22490 if test $ac_cv_func_alloca_works = yes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_ALLOCA 1
22494 _ACEOF
22496 else
22497 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22498 # that cause trouble. Some versions do not even contain alloca or
22499 # contain a buggy version. If you still want to use their alloca,
22500 # use ar to extract alloca.o from them instead of compiling alloca.c.
22502 ALLOCA=alloca.$ac_objext
22504 cat >>confdefs.h <<\_ACEOF
22505 #define C_ALLOCA 1
22506 _ACEOF
22509 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22510 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22511 if test "${ac_cv_os_cray+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514 cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h. */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 #if defined(CRAY) && ! defined(CRAY2)
22521 webecray
22522 #else
22523 wenotbecray
22524 #endif
22526 _ACEOF
22527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22528 $EGREP "webecray" >/dev/null 2>&1; then
22529 ac_cv_os_cray=yes
22530 else
22531 ac_cv_os_cray=no
22533 rm -f conftest*
22536 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22537 echo "${ECHO_T}$ac_cv_os_cray" >&6
22538 if test $ac_cv_os_cray = yes; then
22539 for ac_func in _getb67 GETB67 getb67; do
22540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22541 echo "$as_me:$LINENO: checking for $ac_func" >&5
22542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22543 if eval "test \"\${$as_ac_var+set}\" = set"; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22546 cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h. */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22554 #define $ac_func innocuous_$ac_func
22556 /* System header to define __stub macros and hopefully few prototypes,
22557 which can conflict with char $ac_func (); below.
22558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22559 <limits.h> exists even on freestanding compilers. */
22561 #ifdef __STDC__
22562 # include <limits.h>
22563 #else
22564 # include <assert.h>
22565 #endif
22567 #undef $ac_func
22569 /* Override any gcc2 internal prototype to avoid an error. */
22570 #ifdef __cplusplus
22571 extern "C"
22573 #endif
22574 /* We use char because int might match the return type of a gcc2
22575 builtin and then its argument prototype would still apply. */
22576 char $ac_func ();
22577 /* The GNU C library defines this for functions which it implements
22578 to always fail with ENOSYS. Some functions are actually named
22579 something starting with __ and the normal name is an alias. */
22580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22581 choke me
22582 #else
22583 char (*f) () = $ac_func;
22584 #endif
22585 #ifdef __cplusplus
22587 #endif
22590 main ()
22592 return f != $ac_func;
22594 return 0;
22596 _ACEOF
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } &&
22606 { ac_try='test -z "$ac_c_werror_flag"
22607 || test ! -s conftest.err'
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; } &&
22613 { ac_try='test -s conftest$ac_exeext'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22619 eval "$as_ac_var=yes"
22620 else
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 eval "$as_ac_var=no"
22626 rm -f conftest.err conftest.$ac_objext \
22627 conftest$ac_exeext conftest.$ac_ext
22629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22631 if test `eval echo '${'$as_ac_var'}'` = yes; then
22633 cat >>confdefs.h <<_ACEOF
22634 #define CRAY_STACKSEG_END $ac_func
22635 _ACEOF
22637 break
22640 done
22643 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22644 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22645 if test "${ac_cv_c_stack_direction+set}" = set; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 else
22648 if test "$cross_compiling" = yes; then
22649 ac_cv_c_stack_direction=0
22650 else
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22658 find_stack_direction ()
22660 static char *addr = 0;
22661 auto char dummy;
22662 if (addr == 0)
22664 addr = &dummy;
22665 return find_stack_direction ();
22667 else
22668 return (&dummy > addr) ? 1 : -1;
22672 main ()
22674 exit (find_stack_direction () < 0);
22676 _ACEOF
22677 rm -f conftest$ac_exeext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679 (eval $ac_link) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 ac_cv_c_stack_direction=1
22689 else
22690 echo "$as_me: program exited with status $ac_status" >&5
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22694 ( exit $ac_status )
22695 ac_cv_c_stack_direction=-1
22697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22700 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22701 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22703 cat >>confdefs.h <<_ACEOF
22704 #define STACK_DIRECTION $ac_cv_c_stack_direction
22705 _ACEOF
22712 for ac_header in stdlib.h
22714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22716 echo "$as_me:$LINENO: checking for $ac_header" >&5
22717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22723 else
22724 # Is the header compilable?
22725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h. */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 $ac_includes_default
22734 #include <$ac_header>
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22738 (eval $ac_compile) 2>conftest.er1
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
22745 { ac_try='test -z "$ac_c_werror_flag"
22746 || test ! -s conftest.err'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; } &&
22752 { ac_try='test -s conftest.$ac_objext'
22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754 (eval $ac_try) 2>&5
22755 ac_status=$?
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; }; then
22758 ac_header_compiler=yes
22759 else
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22763 ac_header_compiler=no
22765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22767 echo "${ECHO_T}$ac_header_compiler" >&6
22769 # Is the header present?
22770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 #include <$ac_header>
22779 _ACEOF
22780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } >/dev/null; then
22788 if test -s conftest.err; then
22789 ac_cpp_err=$ac_c_preproc_warn_flag
22790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22791 else
22792 ac_cpp_err=
22794 else
22795 ac_cpp_err=yes
22797 if test -z "$ac_cpp_err"; then
22798 ac_header_preproc=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_header_preproc=no
22805 rm -f conftest.err conftest.$ac_ext
22806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22807 echo "${ECHO_T}$ac_header_preproc" >&6
22809 # So? What about this header?
22810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22811 yes:no: )
22812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22816 ac_header_preproc=yes
22818 no:yes:* )
22819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22832 cat <<\_ASBOX
22833 ## ------------------------------------------ ##
22834 ## Report this to the AC_PACKAGE_NAME lists. ##
22835 ## ------------------------------------------ ##
22836 _ASBOX
22838 sed "s/^/$as_me: WARNING: /" >&2
22840 esac
22841 echo "$as_me:$LINENO: checking for $ac_header" >&5
22842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846 eval "$as_ac_Header=\$ac_header_preproc"
22848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22853 cat >>confdefs.h <<_ACEOF
22854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22855 _ACEOF
22859 done
22864 for ac_header in string.h
22866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22868 echo "$as_me:$LINENO: checking for $ac_header" >&5
22869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22875 else
22876 # Is the header compilable?
22877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22879 cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h. */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22885 $ac_includes_default
22886 #include <$ac_header>
22887 _ACEOF
22888 rm -f conftest.$ac_objext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22890 (eval $ac_compile) 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } &&
22897 { ac_try='test -z "$ac_c_werror_flag"
22898 || test ! -s conftest.err'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; } &&
22904 { ac_try='test -s conftest.$ac_objext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 ac_header_compiler=yes
22911 else
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22915 ac_header_compiler=no
22917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22919 echo "${ECHO_T}$ac_header_compiler" >&6
22921 # Is the header present?
22922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 #include <$ac_header>
22931 _ACEOF
22932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22934 ac_status=$?
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } >/dev/null; then
22940 if test -s conftest.err; then
22941 ac_cpp_err=$ac_c_preproc_warn_flag
22942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22943 else
22944 ac_cpp_err=
22946 else
22947 ac_cpp_err=yes
22949 if test -z "$ac_cpp_err"; then
22950 ac_header_preproc=yes
22951 else
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 ac_header_preproc=no
22957 rm -f conftest.err conftest.$ac_ext
22958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22959 echo "${ECHO_T}$ac_header_preproc" >&6
22961 # So? What about this header?
22962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22963 yes:no: )
22964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22968 ac_header_preproc=yes
22970 no:yes:* )
22971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22984 cat <<\_ASBOX
22985 ## ------------------------------------------ ##
22986 ## Report this to the AC_PACKAGE_NAME lists. ##
22987 ## ------------------------------------------ ##
22988 _ASBOX
22990 sed "s/^/$as_me: WARNING: /" >&2
22992 esac
22993 echo "$as_me:$LINENO: checking for $ac_header" >&5
22994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 else
22998 eval "$as_ac_Header=\$ac_header_preproc"
23000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23005 cat >>confdefs.h <<_ACEOF
23006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23007 _ACEOF
23011 done
23019 if test $ac_cv_func_alloca_works = no; then
23034 # Define an additional variable used in the Makefile substitution.
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23043 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
23044 Need own alloca
23045 #endif
23047 _ACEOF
23048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23049 $EGREP "Need own alloca" >/dev/null 2>&1; then
23050 ALLOCA_H=alloca.h
23051 else
23052 ALLOCA_H=
23054 rm -f conftest*
23060 for ac_header in stdlib.h
23062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23064 echo "$as_me:$LINENO: checking for $ac_header" >&5
23065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23067 echo $ECHO_N "(cached) $ECHO_C" >&6
23069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23071 else
23072 # Is the header compilable?
23073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23075 cat >conftest.$ac_ext <<_ACEOF
23076 /* confdefs.h. */
23077 _ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h. */
23081 $ac_includes_default
23082 #include <$ac_header>
23083 _ACEOF
23084 rm -f conftest.$ac_objext
23085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23086 (eval $ac_compile) 2>conftest.er1
23087 ac_status=$?
23088 grep -v '^ *+' conftest.er1 >conftest.err
23089 rm -f conftest.er1
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } &&
23093 { ac_try='test -z "$ac_c_werror_flag"
23094 || test ! -s conftest.err'
23095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096 (eval $ac_try) 2>&5
23097 ac_status=$?
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); }; } &&
23100 { ac_try='test -s conftest.$ac_objext'
23101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23102 (eval $ac_try) 2>&5
23103 ac_status=$?
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); }; }; then
23106 ac_header_compiler=yes
23107 else
23108 echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23111 ac_header_compiler=no
23113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23115 echo "${ECHO_T}$ac_header_compiler" >&6
23117 # Is the header present?
23118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h. */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <$ac_header>
23127 _ACEOF
23128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } >/dev/null; then
23136 if test -s conftest.err; then
23137 ac_cpp_err=$ac_c_preproc_warn_flag
23138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23139 else
23140 ac_cpp_err=
23142 else
23143 ac_cpp_err=yes
23145 if test -z "$ac_cpp_err"; then
23146 ac_header_preproc=yes
23147 else
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 ac_header_preproc=no
23153 rm -f conftest.err conftest.$ac_ext
23154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23155 echo "${ECHO_T}$ac_header_preproc" >&6
23157 # So? What about this header?
23158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23159 yes:no: )
23160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23164 ac_header_preproc=yes
23166 no:yes:* )
23167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23180 cat <<\_ASBOX
23181 ## ------------------------------------------ ##
23182 ## Report this to the AC_PACKAGE_NAME lists. ##
23183 ## ------------------------------------------ ##
23184 _ASBOX
23186 sed "s/^/$as_me: WARNING: /" >&2
23188 esac
23189 echo "$as_me:$LINENO: checking for $ac_header" >&5
23190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 else
23194 eval "$as_ac_Header=\$ac_header_preproc"
23196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23201 cat >>confdefs.h <<_ACEOF
23202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23203 _ACEOF
23207 done
23209 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23210 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
23211 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214 if test "$cross_compiling" = yes; then
23215 ac_cv_func_malloc_0_nonnull=no
23216 else
23217 cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h. */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23223 #if STDC_HEADERS || HAVE_STDLIB_H
23224 # include <stdlib.h>
23225 #else
23226 char *malloc ();
23227 #endif
23230 main ()
23232 exit (malloc (0) ? 0 : 1);
23234 return 0;
23236 _ACEOF
23237 rm -f conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239 (eval $ac_link) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_cv_func_malloc_0_nonnull=yes
23249 else
23250 echo "$as_me: program exited with status $ac_status" >&5
23251 echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23254 ( exit $ac_status )
23255 ac_cv_func_malloc_0_nonnull=no
23257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23260 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23261 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
23262 if test $ac_cv_func_malloc_0_nonnull = yes; then
23263 gl_cv_func_malloc_0_nonnull=1
23264 else
23265 gl_cv_func_malloc_0_nonnull=0
23270 cat >>confdefs.h <<_ACEOF
23271 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
23272 _ACEOF
23276 echo "$as_me:$LINENO: checking for long long" >&5
23277 echo $ECHO_N "checking for long long... $ECHO_C" >&6
23278 if test "${ac_cv_type_long_long+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280 else
23281 cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h. */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23287 long long ll = 1LL; int i = 63;
23289 main ()
23291 long long llmax = (long long) -1;
23292 return ll << i | ll >> i | llmax / ll | llmax % ll;
23294 return 0;
23296 _ACEOF
23297 rm -f conftest.$ac_objext conftest$ac_exeext
23298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23299 (eval $ac_link) 2>conftest.er1
23300 ac_status=$?
23301 grep -v '^ *+' conftest.er1 >conftest.err
23302 rm -f conftest.er1
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
23306 { ac_try='test -z "$ac_c_werror_flag"
23307 || test ! -s conftest.err'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; } &&
23313 { ac_try='test -s conftest$ac_exeext'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; }; then
23319 ac_cv_type_long_long=yes
23320 else
23321 echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23324 ac_cv_type_long_long=no
23326 rm -f conftest.err conftest.$ac_objext \
23327 conftest$ac_exeext conftest.$ac_ext
23329 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23330 echo "${ECHO_T}$ac_cv_type_long_long" >&6
23331 if test $ac_cv_type_long_long = yes; then
23333 cat >>confdefs.h <<\_ACEOF
23334 #define HAVE_LONG_LONG 1
23335 _ACEOF
23340 echo "$as_me:$LINENO: checking for long double" >&5
23341 echo $ECHO_N "checking for long double... $ECHO_C" >&6
23342 if test "${gt_cv_c_long_double+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 else
23345 if test "$GCC" = yes; then
23346 gt_cv_c_long_double=yes
23347 else
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23355 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
23356 long double foo = 0.0;
23357 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23358 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23361 main ()
23365 return 0;
23367 _ACEOF
23368 rm -f conftest.$ac_objext
23369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23370 (eval $ac_compile) 2>conftest.er1
23371 ac_status=$?
23372 grep -v '^ *+' conftest.er1 >conftest.err
23373 rm -f conftest.er1
23374 cat conftest.err >&5
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } &&
23377 { ac_try='test -z "$ac_c_werror_flag"
23378 || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest.$ac_objext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 gt_cv_c_long_double=yes
23391 else
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23395 gt_cv_c_long_double=no
23397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23400 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23401 echo "${ECHO_T}$gt_cv_c_long_double" >&6
23402 if test $gt_cv_c_long_double = yes; then
23404 cat >>confdefs.h <<\_ACEOF
23405 #define HAVE_LONG_DOUBLE 1
23406 _ACEOF
23417 for ac_func in vprintf
23419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23420 echo "$as_me:$LINENO: checking for $ac_func" >&5
23421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23422 if eval "test \"\${$as_ac_var+set}\" = set"; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23433 #define $ac_func innocuous_$ac_func
23435 /* System header to define __stub macros and hopefully few prototypes,
23436 which can conflict with char $ac_func (); below.
23437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23438 <limits.h> exists even on freestanding compilers. */
23440 #ifdef __STDC__
23441 # include <limits.h>
23442 #else
23443 # include <assert.h>
23444 #endif
23446 #undef $ac_func
23448 /* Override any gcc2 internal prototype to avoid an error. */
23449 #ifdef __cplusplus
23450 extern "C"
23452 #endif
23453 /* We use char because int might match the return type of a gcc2
23454 builtin and then its argument prototype would still apply. */
23455 char $ac_func ();
23456 /* The GNU C library defines this for functions which it implements
23457 to always fail with ENOSYS. Some functions are actually named
23458 something starting with __ and the normal name is an alias. */
23459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23460 choke me
23461 #else
23462 char (*f) () = $ac_func;
23463 #endif
23464 #ifdef __cplusplus
23466 #endif
23469 main ()
23471 return f != $ac_func;
23473 return 0;
23475 _ACEOF
23476 rm -f conftest.$ac_objext conftest$ac_exeext
23477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23478 (eval $ac_link) 2>conftest.er1
23479 ac_status=$?
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
23485 { ac_try='test -z "$ac_c_werror_flag"
23486 || test ! -s conftest.err'
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; } &&
23492 { ac_try='test -s conftest$ac_exeext'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 eval "$as_ac_var=yes"
23499 else
23500 echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23503 eval "$as_ac_var=no"
23505 rm -f conftest.err conftest.$ac_objext \
23506 conftest$ac_exeext conftest.$ac_ext
23508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23510 if test `eval echo '${'$as_ac_var'}'` = yes; then
23511 cat >>confdefs.h <<_ACEOF
23512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23513 _ACEOF
23515 echo "$as_me:$LINENO: checking for _doprnt" >&5
23516 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
23517 if test "${ac_cv_func__doprnt+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520 cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h. */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23528 #define _doprnt innocuous__doprnt
23530 /* System header to define __stub macros and hopefully few prototypes,
23531 which can conflict with char _doprnt (); below.
23532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23533 <limits.h> exists even on freestanding compilers. */
23535 #ifdef __STDC__
23536 # include <limits.h>
23537 #else
23538 # include <assert.h>
23539 #endif
23541 #undef _doprnt
23543 /* Override any gcc2 internal prototype to avoid an error. */
23544 #ifdef __cplusplus
23545 extern "C"
23547 #endif
23548 /* We use char because int might match the return type of a gcc2
23549 builtin and then its argument prototype would still apply. */
23550 char _doprnt ();
23551 /* The GNU C library defines this for functions which it implements
23552 to always fail with ENOSYS. Some functions are actually named
23553 something starting with __ and the normal name is an alias. */
23554 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23555 choke me
23556 #else
23557 char (*f) () = _doprnt;
23558 #endif
23559 #ifdef __cplusplus
23561 #endif
23564 main ()
23566 return f != _doprnt;
23568 return 0;
23570 _ACEOF
23571 rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573 (eval $ac_link) 2>conftest.er1
23574 ac_status=$?
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } &&
23580 { ac_try='test -z "$ac_c_werror_flag"
23581 || test ! -s conftest.err'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; } &&
23587 { ac_try='test -s conftest$ac_exeext'
23588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23590 ac_status=$?
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; }; then
23593 ac_cv_func__doprnt=yes
23594 else
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ac_cv_func__doprnt=no
23600 rm -f conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
23603 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23604 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
23605 if test $ac_cv_func__doprnt = yes; then
23607 cat >>confdefs.h <<\_ACEOF
23608 #define HAVE_DOPRNT 1
23609 _ACEOF
23614 done
23628 for ac_func in chown getcwd posix_spawn raise select strerror strtoul uname \
23629 utime utimes waitid
23631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23632 echo "$as_me:$LINENO: checking for $ac_func" >&5
23633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23634 if eval "test \"\${$as_ac_var+set}\" = set"; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637 cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h. */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23645 #define $ac_func innocuous_$ac_func
23647 /* System header to define __stub macros and hopefully few prototypes,
23648 which can conflict with char $ac_func (); below.
23649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23650 <limits.h> exists even on freestanding compilers. */
23652 #ifdef __STDC__
23653 # include <limits.h>
23654 #else
23655 # include <assert.h>
23656 #endif
23658 #undef $ac_func
23660 /* Override any gcc2 internal prototype to avoid an error. */
23661 #ifdef __cplusplus
23662 extern "C"
23664 #endif
23665 /* We use char because int might match the return type of a gcc2
23666 builtin and then its argument prototype would still apply. */
23667 char $ac_func ();
23668 /* The GNU C library defines this for functions which it implements
23669 to always fail with ENOSYS. Some functions are actually named
23670 something starting with __ and the normal name is an alias. */
23671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23672 choke me
23673 #else
23674 char (*f) () = $ac_func;
23675 #endif
23676 #ifdef __cplusplus
23678 #endif
23681 main ()
23683 return f != $ac_func;
23685 return 0;
23687 _ACEOF
23688 rm -f conftest.$ac_objext conftest$ac_exeext
23689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23690 (eval $ac_link) 2>conftest.er1
23691 ac_status=$?
23692 grep -v '^ *+' conftest.er1 >conftest.err
23693 rm -f conftest.er1
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } &&
23697 { ac_try='test -z "$ac_c_werror_flag"
23698 || test ! -s conftest.err'
23699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700 (eval $ac_try) 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; } &&
23704 { ac_try='test -s conftest$ac_exeext'
23705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; }; then
23710 eval "$as_ac_var=yes"
23711 else
23712 echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 eval "$as_ac_var=no"
23717 rm -f conftest.err conftest.$ac_objext \
23718 conftest$ac_exeext conftest.$ac_ext
23720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23722 if test `eval echo '${'$as_ac_var'}'` = yes; then
23723 cat >>confdefs.h <<_ACEOF
23724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23725 _ACEOF
23728 done
23738 for ac_func in atexit memmove memset stpcpy strcspn \
23739 strpbrk strstr vasprintf
23741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23742 echo "$as_me:$LINENO: checking for $ac_func" >&5
23743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23744 if eval "test \"\${$as_ac_var+set}\" = set"; then
23745 echo $ECHO_N "(cached) $ECHO_C" >&6
23746 else
23747 cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h. */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h. */
23753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23755 #define $ac_func innocuous_$ac_func
23757 /* System header to define __stub macros and hopefully few prototypes,
23758 which can conflict with char $ac_func (); below.
23759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23760 <limits.h> exists even on freestanding compilers. */
23762 #ifdef __STDC__
23763 # include <limits.h>
23764 #else
23765 # include <assert.h>
23766 #endif
23768 #undef $ac_func
23770 /* Override any gcc2 internal prototype to avoid an error. */
23771 #ifdef __cplusplus
23772 extern "C"
23774 #endif
23775 /* We use char because int might match the return type of a gcc2
23776 builtin and then its argument prototype would still apply. */
23777 char $ac_func ();
23778 /* The GNU C library defines this for functions which it implements
23779 to always fail with ENOSYS. Some functions are actually named
23780 something starting with __ and the normal name is an alias. */
23781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23782 choke me
23783 #else
23784 char (*f) () = $ac_func;
23785 #endif
23786 #ifdef __cplusplus
23788 #endif
23791 main ()
23793 return f != $ac_func;
23795 return 0;
23797 _ACEOF
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800 (eval $ac_link) 2>conftest.er1
23801 ac_status=$?
23802 grep -v '^ *+' conftest.er1 >conftest.err
23803 rm -f conftest.er1
23804 cat conftest.err >&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } &&
23807 { ac_try='test -z "$ac_c_werror_flag"
23808 || test ! -s conftest.err'
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; } &&
23814 { ac_try='test -s conftest$ac_exeext'
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 eval "$as_ac_var=yes"
23821 else
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 eval "$as_ac_var=no"
23827 rm -f conftest.err conftest.$ac_objext \
23828 conftest$ac_exeext conftest.$ac_ext
23830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23832 if test `eval echo '${'$as_ac_var'}'` = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23835 _ACEOF
23837 else
23838 case $LIBOBJS in
23839 "$ac_func.$ac_objext" | \
23840 *" $ac_func.$ac_objext" | \
23841 "$ac_func.$ac_objext "* | \
23842 *" $ac_func.$ac_objext "* ) ;;
23843 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23844 esac
23847 done
23853 am_getline_needs_run_time_check=no
23854 echo "$as_me:$LINENO: checking for getline" >&5
23855 echo $ECHO_N "checking for getline... $ECHO_C" >&6
23856 if test "${ac_cv_func_getline+set}" = set; then
23857 echo $ECHO_N "(cached) $ECHO_C" >&6
23858 else
23859 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h. */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23865 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
23866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23867 #define getline innocuous_getline
23869 /* System header to define __stub macros and hopefully few prototypes,
23870 which can conflict with char getline (); below.
23871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23872 <limits.h> exists even on freestanding compilers. */
23874 #ifdef __STDC__
23875 # include <limits.h>
23876 #else
23877 # include <assert.h>
23878 #endif
23880 #undef getline
23882 /* Override any gcc2 internal prototype to avoid an error. */
23883 #ifdef __cplusplus
23884 extern "C"
23886 #endif
23887 /* We use char because int might match the return type of a gcc2
23888 builtin and then its argument prototype would still apply. */
23889 char getline ();
23890 /* The GNU C library defines this for functions which it implements
23891 to always fail with ENOSYS. Some functions are actually named
23892 something starting with __ and the normal name is an alias. */
23893 #if defined (__stub_getline) || defined (__stub___getline)
23894 choke me
23895 #else
23896 char (*f) () = getline;
23897 #endif
23898 #ifdef __cplusplus
23900 #endif
23903 main ()
23905 return f != getline;
23907 return 0;
23909 _ACEOF
23910 rm -f conftest.$ac_objext conftest$ac_exeext
23911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23912 (eval $ac_link) 2>conftest.er1
23913 ac_status=$?
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } &&
23919 { ac_try='test -z "$ac_c_werror_flag"
23920 || test ! -s conftest.err'
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; } &&
23926 { ac_try='test -s conftest$ac_exeext'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; }; then
23932 ac_cv_func_getline=yes
23933 else
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 ac_cv_func_getline=no
23939 rm -f conftest.err conftest.$ac_objext \
23940 conftest$ac_exeext conftest.$ac_ext
23942 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
23943 echo "${ECHO_T}$ac_cv_func_getline" >&6
23944 if test $ac_cv_func_getline = yes; then
23945 am_getline_needs_run_time_check=yes
23946 else
23947 am_cv_func_working_getline=no
23950 if test $am_getline_needs_run_time_check = yes; then
23951 echo "$as_me:$LINENO: checking for working getline function" >&5
23952 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
23953 if test "${am_cv_func_working_getline+set}" = set; then
23954 echo $ECHO_N "(cached) $ECHO_C" >&6
23955 else
23956 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
23957 if test "$cross_compiling" = yes; then
23958 am_cv_func_working_getline=no
23959 else
23960 cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h. */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23967 # include <stdio.h>
23968 # include <stdlib.h>
23969 # include <string.h>
23970 int main ()
23971 { /* Based on a test program from Karl Heuer. */
23972 char *line = NULL;
23973 size_t siz = 0;
23974 int len;
23975 FILE *in = fopen ("./conftest.data", "r");
23976 if (!in)
23977 return 1;
23978 len = getline (&line, &siz, in);
23979 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
23982 _ACEOF
23983 rm -f conftest$ac_exeext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23985 (eval $ac_link) 2>&5
23986 ac_status=$?
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990 (eval $ac_try) 2>&5
23991 ac_status=$?
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); }; }; then
23994 am_cv_func_working_getline=yes
23995 else
23996 echo "$as_me: program exited with status $ac_status" >&5
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ( exit $ac_status )
24001 am_cv_func_working_getline=no
24003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24006 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
24007 echo "${ECHO_T}$am_cv_func_working_getline" >&6
24010 if test $am_cv_func_working_getline = no; then
24012 cat >>confdefs.h <<\_ACEOF
24013 #define getline gnu_getline
24014 _ACEOF
24016 case $LIBOBJS in
24017 "getline.$ac_objext" | \
24018 *" getline.$ac_objext" | \
24019 "getline.$ac_objext "* | \
24020 *" getline.$ac_objext "* ) ;;
24021 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
24022 esac
24024 case $LIBOBJS in
24025 "getndelim2.$ac_objext" | \
24026 *" getndelim2.$ac_objext" | \
24027 "getndelim2.$ac_objext "* | \
24028 *" getndelim2.$ac_objext "* ) ;;
24029 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
24030 esac
24034 for ac_func in getdelim
24036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24037 echo "$as_me:$LINENO: checking for $ac_func" >&5
24038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24039 if eval "test \"\${$as_ac_var+set}\" = set"; then
24040 echo $ECHO_N "(cached) $ECHO_C" >&6
24041 else
24042 cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h. */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24050 #define $ac_func innocuous_$ac_func
24052 /* System header to define __stub macros and hopefully few prototypes,
24053 which can conflict with char $ac_func (); below.
24054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24055 <limits.h> exists even on freestanding compilers. */
24057 #ifdef __STDC__
24058 # include <limits.h>
24059 #else
24060 # include <assert.h>
24061 #endif
24063 #undef $ac_func
24065 /* Override any gcc2 internal prototype to avoid an error. */
24066 #ifdef __cplusplus
24067 extern "C"
24069 #endif
24070 /* We use char because int might match the return type of a gcc2
24071 builtin and then its argument prototype would still apply. */
24072 char $ac_func ();
24073 /* The GNU C library defines this for functions which it implements
24074 to always fail with ENOSYS. Some functions are actually named
24075 something starting with __ and the normal name is an alias. */
24076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24077 choke me
24078 #else
24079 char (*f) () = $ac_func;
24080 #endif
24081 #ifdef __cplusplus
24083 #endif
24086 main ()
24088 return f != $ac_func;
24090 return 0;
24092 _ACEOF
24093 rm -f conftest.$ac_objext conftest$ac_exeext
24094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24095 (eval $ac_link) 2>conftest.er1
24096 ac_status=$?
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
24102 { ac_try='test -z "$ac_c_werror_flag"
24103 || test ! -s conftest.err'
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; } &&
24109 { ac_try='test -s conftest$ac_exeext'
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 eval "$as_ac_var=yes"
24116 else
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 eval "$as_ac_var=no"
24122 rm -f conftest.err conftest.$ac_objext \
24123 conftest$ac_exeext conftest.$ac_ext
24125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24127 if test `eval echo '${'$as_ac_var'}'` = yes; then
24128 cat >>confdefs.h <<_ACEOF
24129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24130 _ACEOF
24133 done
24142 if test $am_cv_func_working_getline != yes; then
24144 for ac_func in getdelim
24146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24147 echo "$as_me:$LINENO: checking for $ac_func" >&5
24148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24149 if eval "test \"\${$as_ac_var+set}\" = set"; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 else
24152 cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h. */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24160 #define $ac_func innocuous_$ac_func
24162 /* System header to define __stub macros and hopefully few prototypes,
24163 which can conflict with char $ac_func (); below.
24164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24165 <limits.h> exists even on freestanding compilers. */
24167 #ifdef __STDC__
24168 # include <limits.h>
24169 #else
24170 # include <assert.h>
24171 #endif
24173 #undef $ac_func
24175 /* Override any gcc2 internal prototype to avoid an error. */
24176 #ifdef __cplusplus
24177 extern "C"
24179 #endif
24180 /* We use char because int might match the return type of a gcc2
24181 builtin and then its argument prototype would still apply. */
24182 char $ac_func ();
24183 /* The GNU C library defines this for functions which it implements
24184 to always fail with ENOSYS. Some functions are actually named
24185 something starting with __ and the normal name is an alias. */
24186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24187 choke me
24188 #else
24189 char (*f) () = $ac_func;
24190 #endif
24191 #ifdef __cplusplus
24193 #endif
24196 main ()
24198 return f != $ac_func;
24200 return 0;
24202 _ACEOF
24203 rm -f conftest.$ac_objext conftest$ac_exeext
24204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24205 (eval $ac_link) 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
24212 { ac_try='test -z "$ac_c_werror_flag"
24213 || test ! -s conftest.err'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest$ac_exeext'
24220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221 (eval $ac_try) 2>&5
24222 ac_status=$?
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); }; }; then
24225 eval "$as_ac_var=yes"
24226 else
24227 echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24230 eval "$as_ac_var=no"
24232 rm -f conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24237 if test `eval echo '${'$as_ac_var'}'` = yes; then
24238 cat >>confdefs.h <<_ACEOF
24239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24240 _ACEOF
24243 done
24249 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24250 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24251 if test "${ac_cv_c_const+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 else
24254 cat >conftest.$ac_ext <<_ACEOF
24255 /* confdefs.h. */
24256 _ACEOF
24257 cat confdefs.h >>conftest.$ac_ext
24258 cat >>conftest.$ac_ext <<_ACEOF
24259 /* end confdefs.h. */
24262 main ()
24264 /* FIXME: Include the comments suggested by Paul. */
24265 #ifndef __cplusplus
24266 /* Ultrix mips cc rejects this. */
24267 typedef int charset[2];
24268 const charset x;
24269 /* SunOS 4.1.1 cc rejects this. */
24270 char const *const *ccp;
24271 char **p;
24272 /* NEC SVR4.0.2 mips cc rejects this. */
24273 struct point {int x, y;};
24274 static struct point const zero = {0,0};
24275 /* AIX XL C 1.02.0.0 rejects this.
24276 It does not let you subtract one const X* pointer from another in
24277 an arm of an if-expression whose if-part is not a constant
24278 expression */
24279 const char *g = "string";
24280 ccp = &g + (g ? g-g : 0);
24281 /* HPUX 7.0 cc rejects these. */
24282 ++ccp;
24283 p = (char**) ccp;
24284 ccp = (char const *const *) p;
24285 { /* SCO 3.2v4 cc rejects this. */
24286 char *t;
24287 char const *s = 0 ? (char *) 0 : (char const *) 0;
24289 *t++ = 0;
24291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24292 int x[] = {25, 17};
24293 const int *foo = &x[0];
24294 ++foo;
24296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24297 typedef const int *iptr;
24298 iptr p = 0;
24299 ++p;
24301 { /* AIX XL C 1.02.0.0 rejects this saying
24302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24303 struct s { int j; const int *ap[3]; };
24304 struct s *b; b->j = 5;
24306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24307 const int foo = 10;
24309 #endif
24312 return 0;
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317 (eval $ac_compile) 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
24324 { ac_try='test -z "$ac_c_werror_flag"
24325 || test ! -s conftest.err'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest.$ac_objext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 ac_cv_c_const=yes
24338 else
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24342 ac_cv_c_const=no
24344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24346 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24347 echo "${ECHO_T}$ac_cv_c_const" >&6
24348 if test $ac_cv_c_const = no; then
24350 cat >>confdefs.h <<\_ACEOF
24351 #define const
24352 _ACEOF
24356 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24357 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24358 if test "${ac_cv_type_mbstate_t+set}" = set; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24360 else
24361 cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h. */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24367 $ac_includes_default
24368 # include <wchar.h>
24370 main ()
24372 mbstate_t x; return sizeof x;
24374 return 0;
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24379 (eval $ac_compile) 2>conftest.er1
24380 ac_status=$?
24381 grep -v '^ *+' conftest.er1 >conftest.err
24382 rm -f conftest.er1
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } &&
24386 { ac_try='test -z "$ac_c_werror_flag"
24387 || test ! -s conftest.err'
24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24390 ac_status=$?
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; } &&
24393 { ac_try='test -s conftest.$ac_objext'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399 ac_cv_type_mbstate_t=yes
24400 else
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24404 ac_cv_type_mbstate_t=no
24406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24408 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24409 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
24410 if test $ac_cv_type_mbstate_t = yes; then
24412 cat >>confdefs.h <<\_ACEOF
24413 #define HAVE_MBSTATE_T 1
24414 _ACEOF
24416 else
24418 cat >>confdefs.h <<\_ACEOF
24419 #define mbstate_t int
24420 _ACEOF
24424 FNMATCH_H=
24425 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
24426 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
24427 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24429 else
24430 if test "$cross_compiling" = yes; then
24431 ac_cv_func_fnmatch_posix=cross
24432 else
24433 cat >conftest.$ac_ext <<_ACEOF
24434 /* confdefs.h. */
24435 _ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h. */
24440 # include <stdlib.h>
24441 # include <fnmatch.h>
24442 # define y(a, b, c) (fnmatch (a, b, c) == 0)
24443 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
24446 main ()
24448 exit
24449 (!(y ("a*", "abc", 0)
24450 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
24451 && y ("a\\\\bc", "abc", 0)
24452 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
24453 && y ("*x", ".x", 0)
24454 && n ("*x", ".x", FNM_PERIOD)
24455 && 1));
24457 return 0;
24459 _ACEOF
24460 rm -f conftest$ac_exeext
24461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24462 (eval $ac_link) 2>&5
24463 ac_status=$?
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24468 ac_status=$?
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; }; then
24471 ac_cv_func_fnmatch_posix=yes
24472 else
24473 echo "$as_me: program exited with status $ac_status" >&5
24474 echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 ( exit $ac_status )
24478 ac_cv_func_fnmatch_posix=no
24480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24483 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
24484 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
24485 if test $ac_cv_func_fnmatch_posix = yes; then
24486 rm -f lib/fnmatch.h
24487 else
24488 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
24489 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
24490 if test "${ac_cv_have_decl_getenv+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493 cat >conftest.$ac_ext <<_ACEOF
24494 /* confdefs.h. */
24495 _ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h. */
24499 $ac_includes_default
24501 main ()
24503 #ifndef getenv
24504 char *p = (char *) getenv;
24505 #endif
24508 return 0;
24510 _ACEOF
24511 rm -f conftest.$ac_objext
24512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24513 (eval $ac_compile) 2>conftest.er1
24514 ac_status=$?
24515 grep -v '^ *+' conftest.er1 >conftest.err
24516 rm -f conftest.er1
24517 cat conftest.err >&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); } &&
24520 { ac_try='test -z "$ac_c_werror_flag"
24521 || test ! -s conftest.err'
24522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523 (eval $ac_try) 2>&5
24524 ac_status=$?
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; } &&
24527 { ac_try='test -s conftest.$ac_objext'
24528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; }; then
24533 ac_cv_have_decl_getenv=yes
24534 else
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_cv_have_decl_getenv=no
24540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24542 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
24543 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
24544 if test $ac_cv_have_decl_getenv = yes; then
24546 cat >>confdefs.h <<_ACEOF
24547 #define HAVE_DECL_GETENV 1
24548 _ACEOF
24551 else
24552 cat >>confdefs.h <<_ACEOF
24553 #define HAVE_DECL_GETENV 0
24554 _ACEOF
24566 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
24568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24569 echo "$as_me:$LINENO: checking for $ac_func" >&5
24570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24571 if eval "test \"\${$as_ac_var+set}\" = set"; then
24572 echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574 cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h. */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24582 #define $ac_func innocuous_$ac_func
24584 /* System header to define __stub macros and hopefully few prototypes,
24585 which can conflict with char $ac_func (); below.
24586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24587 <limits.h> exists even on freestanding compilers. */
24589 #ifdef __STDC__
24590 # include <limits.h>
24591 #else
24592 # include <assert.h>
24593 #endif
24595 #undef $ac_func
24597 /* Override any gcc2 internal prototype to avoid an error. */
24598 #ifdef __cplusplus
24599 extern "C"
24601 #endif
24602 /* We use char because int might match the return type of a gcc2
24603 builtin and then its argument prototype would still apply. */
24604 char $ac_func ();
24605 /* The GNU C library defines this for functions which it implements
24606 to always fail with ENOSYS. Some functions are actually named
24607 something starting with __ and the normal name is an alias. */
24608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24609 choke me
24610 #else
24611 char (*f) () = $ac_func;
24612 #endif
24613 #ifdef __cplusplus
24615 #endif
24618 main ()
24620 return f != $ac_func;
24622 return 0;
24624 _ACEOF
24625 rm -f conftest.$ac_objext conftest$ac_exeext
24626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24627 (eval $ac_link) 2>conftest.er1
24628 ac_status=$?
24629 grep -v '^ *+' conftest.er1 >conftest.err
24630 rm -f conftest.er1
24631 cat conftest.err >&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } &&
24634 { ac_try='test -z "$ac_c_werror_flag"
24635 || test ! -s conftest.err'
24636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637 (eval $ac_try) 2>&5
24638 ac_status=$?
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; } &&
24641 { ac_try='test -s conftest$ac_exeext'
24642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643 (eval $ac_try) 2>&5
24644 ac_status=$?
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); }; }; then
24647 eval "$as_ac_var=yes"
24648 else
24649 echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24652 eval "$as_ac_var=no"
24654 rm -f conftest.err conftest.$ac_objext \
24655 conftest$ac_exeext conftest.$ac_ext
24657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24659 if test `eval echo '${'$as_ac_var'}'` = yes; then
24660 cat >>confdefs.h <<_ACEOF
24661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24662 _ACEOF
24665 done
24669 for ac_header in wchar.h wctype.h
24671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24673 echo "$as_me:$LINENO: checking for $ac_header" >&5
24674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24676 echo $ECHO_N "(cached) $ECHO_C" >&6
24678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24680 else
24681 # Is the header compilable?
24682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690 $ac_includes_default
24691 #include <$ac_header>
24692 _ACEOF
24693 rm -f conftest.$ac_objext
24694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24695 (eval $ac_compile) 2>conftest.er1
24696 ac_status=$?
24697 grep -v '^ *+' conftest.er1 >conftest.err
24698 rm -f conftest.er1
24699 cat conftest.err >&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } &&
24702 { ac_try='test -z "$ac_c_werror_flag"
24703 || test ! -s conftest.err'
24704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24705 (eval $ac_try) 2>&5
24706 ac_status=$?
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); }; } &&
24709 { ac_try='test -s conftest.$ac_objext'
24710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24711 (eval $ac_try) 2>&5
24712 ac_status=$?
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); }; }; then
24715 ac_header_compiler=yes
24716 else
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ac_header_compiler=no
24722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24724 echo "${ECHO_T}$ac_header_compiler" >&6
24726 # Is the header present?
24727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24729 cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h. */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24735 #include <$ac_header>
24736 _ACEOF
24737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24739 ac_status=$?
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } >/dev/null; then
24745 if test -s conftest.err; then
24746 ac_cpp_err=$ac_c_preproc_warn_flag
24747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24748 else
24749 ac_cpp_err=
24751 else
24752 ac_cpp_err=yes
24754 if test -z "$ac_cpp_err"; then
24755 ac_header_preproc=yes
24756 else
24757 echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24760 ac_header_preproc=no
24762 rm -f conftest.err conftest.$ac_ext
24763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 echo "${ECHO_T}$ac_header_preproc" >&6
24766 # So? What about this header?
24767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24768 yes:no: )
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24773 ac_header_preproc=yes
24775 no:yes:* )
24776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24789 cat <<\_ASBOX
24790 ## ------------------------------------------ ##
24791 ## Report this to the AC_PACKAGE_NAME lists. ##
24792 ## ------------------------------------------ ##
24793 _ASBOX
24795 sed "s/^/$as_me: WARNING: /" >&2
24797 esac
24798 echo "$as_me:$LINENO: checking for $ac_header" >&5
24799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24802 else
24803 eval "$as_ac_Header=\$ac_header_preproc"
24805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24810 cat >>confdefs.h <<_ACEOF
24811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24812 _ACEOF
24816 done
24818 case $LIBOBJS in
24819 "fnmatch.$ac_objext" | \
24820 *" fnmatch.$ac_objext" | \
24821 "fnmatch.$ac_objext "* | \
24822 *" fnmatch.$ac_objext "* ) ;;
24823 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
24824 esac
24826 FNMATCH_H=fnmatch.h
24831 if test $ac_cv_func_fnmatch_posix != yes; then
24833 cat >>confdefs.h <<\_ACEOF
24834 #define fnmatch posix_fnmatch
24835 _ACEOF
24843 if test -z "$GETOPT_H"; then
24844 GETOPT_H=
24846 for ac_header in getopt.h
24848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24850 echo "$as_me:$LINENO: checking for $ac_header" >&5
24851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24857 else
24858 # Is the header compilable?
24859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24861 cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h. */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867 $ac_includes_default
24868 #include <$ac_header>
24869 _ACEOF
24870 rm -f conftest.$ac_objext
24871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24872 (eval $ac_compile) 2>conftest.er1
24873 ac_status=$?
24874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } &&
24879 { ac_try='test -z "$ac_c_werror_flag"
24880 || test ! -s conftest.err'
24881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); }; } &&
24886 { ac_try='test -s conftest.$ac_objext'
24887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; }; then
24892 ac_header_compiler=yes
24893 else
24894 echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24897 ac_header_compiler=no
24899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24901 echo "${ECHO_T}$ac_header_compiler" >&6
24903 # Is the header present?
24904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24906 cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h. */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 #include <$ac_header>
24913 _ACEOF
24914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } >/dev/null; then
24922 if test -s conftest.err; then
24923 ac_cpp_err=$ac_c_preproc_warn_flag
24924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24925 else
24926 ac_cpp_err=
24928 else
24929 ac_cpp_err=yes
24931 if test -z "$ac_cpp_err"; then
24932 ac_header_preproc=yes
24933 else
24934 echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ac_header_preproc=no
24939 rm -f conftest.err conftest.$ac_ext
24940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24941 echo "${ECHO_T}$ac_header_preproc" >&6
24943 # So? What about this header?
24944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24945 yes:no: )
24946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24950 ac_header_preproc=yes
24952 no:yes:* )
24953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24966 cat <<\_ASBOX
24967 ## ------------------------------------------ ##
24968 ## Report this to the AC_PACKAGE_NAME lists. ##
24969 ## ------------------------------------------ ##
24970 _ASBOX
24972 sed "s/^/$as_me: WARNING: /" >&2
24974 esac
24975 echo "$as_me:$LINENO: checking for $ac_header" >&5
24976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980 eval "$as_ac_Header=\$ac_header_preproc"
24982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24987 cat >>confdefs.h <<_ACEOF
24988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24989 _ACEOF
24991 else
24992 GETOPT_H=getopt.h
24995 done
24998 for ac_func in getopt_long_only
25000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25001 echo "$as_me:$LINENO: checking for $ac_func" >&5
25002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25003 if eval "test \"\${$as_ac_var+set}\" = set"; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25006 cat >conftest.$ac_ext <<_ACEOF
25007 /* confdefs.h. */
25008 _ACEOF
25009 cat confdefs.h >>conftest.$ac_ext
25010 cat >>conftest.$ac_ext <<_ACEOF
25011 /* end confdefs.h. */
25012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25014 #define $ac_func innocuous_$ac_func
25016 /* System header to define __stub macros and hopefully few prototypes,
25017 which can conflict with char $ac_func (); below.
25018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25019 <limits.h> exists even on freestanding compilers. */
25021 #ifdef __STDC__
25022 # include <limits.h>
25023 #else
25024 # include <assert.h>
25025 #endif
25027 #undef $ac_func
25029 /* Override any gcc2 internal prototype to avoid an error. */
25030 #ifdef __cplusplus
25031 extern "C"
25033 #endif
25034 /* We use char because int might match the return type of a gcc2
25035 builtin and then its argument prototype would still apply. */
25036 char $ac_func ();
25037 /* The GNU C library defines this for functions which it implements
25038 to always fail with ENOSYS. Some functions are actually named
25039 something starting with __ and the normal name is an alias. */
25040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25041 choke me
25042 #else
25043 char (*f) () = $ac_func;
25044 #endif
25045 #ifdef __cplusplus
25047 #endif
25050 main ()
25052 return f != $ac_func;
25054 return 0;
25056 _ACEOF
25057 rm -f conftest.$ac_objext conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059 (eval $ac_link) 2>conftest.er1
25060 ac_status=$?
25061 grep -v '^ *+' conftest.er1 >conftest.err
25062 rm -f conftest.er1
25063 cat conftest.err >&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
25066 { ac_try='test -z "$ac_c_werror_flag"
25067 || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 eval "$as_ac_var=yes"
25080 else
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25084 eval "$as_ac_var=no"
25086 rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
25089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25091 if test `eval echo '${'$as_ac_var'}'` = yes; then
25092 cat >>confdefs.h <<_ACEOF
25093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25094 _ACEOF
25096 else
25097 GETOPT_H=getopt.h
25099 done
25102 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
25103 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
25104 if test "${ac_cv_have_decl_optreset+set}" = set; then
25105 echo $ECHO_N "(cached) $ECHO_C" >&6
25106 else
25107 cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h. */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113 #include <getopt.h>
25116 main ()
25118 #ifndef optreset
25119 char *p = (char *) optreset;
25120 #endif
25123 return 0;
25125 _ACEOF
25126 rm -f conftest.$ac_objext
25127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25128 (eval $ac_compile) 2>conftest.er1
25129 ac_status=$?
25130 grep -v '^ *+' conftest.er1 >conftest.err
25131 rm -f conftest.er1
25132 cat conftest.err >&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } &&
25135 { ac_try='test -z "$ac_c_werror_flag"
25136 || test ! -s conftest.err'
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; } &&
25142 { ac_try='test -s conftest.$ac_objext'
25143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144 (eval $ac_try) 2>&5
25145 ac_status=$?
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; }; then
25148 ac_cv_have_decl_optreset=yes
25149 else
25150 echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25153 ac_cv_have_decl_optreset=no
25155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25157 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
25158 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
25159 if test $ac_cv_have_decl_optreset = yes; then
25160 GETOPT_H=getopt.h
25164 if test -n "$GETOPT_H"; then
25166 GETOPT_H=getopt.h
25167 case $LIBOBJS in
25168 "getopt.$ac_objext" | \
25169 *" getopt.$ac_objext" | \
25170 "getopt.$ac_objext "* | \
25171 *" getopt.$ac_objext "* ) ;;
25172 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
25173 esac
25175 case $LIBOBJS in
25176 "getopt1.$ac_objext" | \
25177 *" getopt1.$ac_objext" | \
25178 "getopt1.$ac_objext "* | \
25179 *" getopt1.$ac_objext "* ) ;;
25180 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
25181 esac
25184 cat >>confdefs.h <<\_ACEOF
25185 #define __GETOPT_PREFIX rpl_
25186 _ACEOF
25194 echo "$as_me:$LINENO: checking for eaccess" >&5
25195 echo $ECHO_N "checking for eaccess... $ECHO_C" >&6
25196 if test "${ac_cv_func_eaccess+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199 cat >conftest.$ac_ext <<_ACEOF
25200 /* confdefs.h. */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25205 /* Define eaccess to an innocuous variant, in case <limits.h> declares eaccess.
25206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25207 #define eaccess innocuous_eaccess
25209 /* System header to define __stub macros and hopefully few prototypes,
25210 which can conflict with char eaccess (); below.
25211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25212 <limits.h> exists even on freestanding compilers. */
25214 #ifdef __STDC__
25215 # include <limits.h>
25216 #else
25217 # include <assert.h>
25218 #endif
25220 #undef eaccess
25222 /* Override any gcc2 internal prototype to avoid an error. */
25223 #ifdef __cplusplus
25224 extern "C"
25226 #endif
25227 /* We use char because int might match the return type of a gcc2
25228 builtin and then its argument prototype would still apply. */
25229 char eaccess ();
25230 /* The GNU C library defines this for functions which it implements
25231 to always fail with ENOSYS. Some functions are actually named
25232 something starting with __ and the normal name is an alias. */
25233 #if defined (__stub_eaccess) || defined (__stub___eaccess)
25234 choke me
25235 #else
25236 char (*f) () = eaccess;
25237 #endif
25238 #ifdef __cplusplus
25240 #endif
25243 main ()
25245 return f != eaccess;
25247 return 0;
25249 _ACEOF
25250 rm -f conftest.$ac_objext conftest$ac_exeext
25251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25252 (eval $ac_link) 2>conftest.er1
25253 ac_status=$?
25254 grep -v '^ *+' conftest.er1 >conftest.err
25255 rm -f conftest.er1
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } &&
25259 { ac_try='test -z "$ac_c_werror_flag"
25260 || test ! -s conftest.err'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; } &&
25266 { ac_try='test -s conftest$ac_exeext'
25267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25272 ac_cv_func_eaccess=yes
25273 else
25274 echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25277 ac_cv_func_eaccess=no
25279 rm -f conftest.err conftest.$ac_objext \
25280 conftest$ac_exeext conftest.$ac_ext
25282 echo "$as_me:$LINENO: result: $ac_cv_func_eaccess" >&5
25283 echo "${ECHO_T}$ac_cv_func_eaccess" >&6
25284 if test $ac_cv_func_eaccess = yes; then
25286 else
25288 cat >>confdefs.h <<\_ACEOF
25289 #define eaccess access
25290 _ACEOF
25299 echo "$as_me:$LINENO: checking for working stpncpy" >&5
25300 echo $ECHO_N "checking for working stpncpy... $ECHO_C" >&6
25301 if test "${gl_cv_func_stpncpy+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25303 else
25305 if test "$cross_compiling" = yes; then
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h. */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25313 #include <features.h>
25314 #ifdef __GNU_LIBRARY__
25315 Thanks for using GNU
25316 #endif
25318 _ACEOF
25319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25320 $EGREP "Thanks for using GNU" >/dev/null 2>&1; then
25321 gl_cv_func_stpncpy=yes
25322 else
25323 gl_cv_func_stpncpy=no
25325 rm -f conftest*
25327 else
25328 cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h. */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h. */
25335 #include <stdlib.h>
25336 extern char *stpncpy (char *dest, const char *src, size_t n);
25337 int main () {
25338 const char *src = "Hello";
25339 char dest[10];
25340 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here. */
25341 strcpy (dest, "\377\377\377\377\377\377");
25342 if (stpncpy (dest, src, 2) != dest + 2) exit(1);
25343 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here. */
25344 strcpy (dest, "\377\377\377\377\377\377");
25345 if (stpncpy (dest, src, 5) != dest + 5) exit(1);
25346 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here. */
25347 strcpy (dest, "\377\377\377\377\377\377");
25348 if (stpncpy (dest, src, 7) != dest + 5) exit(1);
25349 exit(0);
25352 _ACEOF
25353 rm -f conftest$ac_exeext
25354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355 (eval $ac_link) 2>&5
25356 ac_status=$?
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; }; then
25364 gl_cv_func_stpncpy=yes
25365 else
25366 echo "$as_me: program exited with status $ac_status" >&5
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ( exit $ac_status )
25371 gl_cv_func_stpncpy=no
25373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25376 echo "$as_me:$LINENO: result: $gl_cv_func_stpncpy" >&5
25377 echo "${ECHO_T}$gl_cv_func_stpncpy" >&6
25379 if test $gl_cv_func_stpncpy = yes; then
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_STPNCPY 1
25383 _ACEOF
25385 else
25386 case $LIBOBJS in
25387 "stpncpy.$ac_objext" | \
25388 *" stpncpy.$ac_objext" | \
25389 "stpncpy.$ac_objext "* | \
25390 *" stpncpy.$ac_objext "* ) ;;
25391 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
25392 esac
25402 for ac_func in strcasecmp
25404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25405 echo "$as_me:$LINENO: checking for $ac_func" >&5
25406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25407 if eval "test \"\${$as_ac_var+set}\" = set"; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h. */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25418 #define $ac_func innocuous_$ac_func
25420 /* System header to define __stub macros and hopefully few prototypes,
25421 which can conflict with char $ac_func (); below.
25422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25423 <limits.h> exists even on freestanding compilers. */
25425 #ifdef __STDC__
25426 # include <limits.h>
25427 #else
25428 # include <assert.h>
25429 #endif
25431 #undef $ac_func
25433 /* Override any gcc2 internal prototype to avoid an error. */
25434 #ifdef __cplusplus
25435 extern "C"
25437 #endif
25438 /* We use char because int might match the return type of a gcc2
25439 builtin and then its argument prototype would still apply. */
25440 char $ac_func ();
25441 /* The GNU C library defines this for functions which it implements
25442 to always fail with ENOSYS. Some functions are actually named
25443 something starting with __ and the normal name is an alias. */
25444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25445 choke me
25446 #else
25447 char (*f) () = $ac_func;
25448 #endif
25449 #ifdef __cplusplus
25451 #endif
25454 main ()
25456 return f != $ac_func;
25458 return 0;
25460 _ACEOF
25461 rm -f conftest.$ac_objext conftest$ac_exeext
25462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25463 (eval $ac_link) 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } &&
25470 { ac_try='test -z "$ac_c_werror_flag"
25471 || test ! -s conftest.err'
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; } &&
25477 { ac_try='test -s conftest$ac_exeext'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 eval "$as_ac_var=yes"
25484 else
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25488 eval "$as_ac_var=no"
25490 rm -f conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
25493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25495 if test `eval echo '${'$as_ac_var'}'` = yes; then
25496 cat >>confdefs.h <<_ACEOF
25497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25498 _ACEOF
25500 else
25501 case $LIBOBJS in
25502 "$ac_func.$ac_objext" | \
25503 *" $ac_func.$ac_objext" | \
25504 "$ac_func.$ac_objext "* | \
25505 *" $ac_func.$ac_objext "* ) ;;
25506 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25507 esac
25510 done
25513 if test $ac_cv_func_strcasecmp = no; then
25521 for ac_func in strncasecmp
25523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25524 echo "$as_me:$LINENO: checking for $ac_func" >&5
25525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25526 if eval "test \"\${$as_ac_var+set}\" = set"; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25528 else
25529 cat >conftest.$ac_ext <<_ACEOF
25530 /* confdefs.h. */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25537 #define $ac_func innocuous_$ac_func
25539 /* System header to define __stub macros and hopefully few prototypes,
25540 which can conflict with char $ac_func (); below.
25541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25542 <limits.h> exists even on freestanding compilers. */
25544 #ifdef __STDC__
25545 # include <limits.h>
25546 #else
25547 # include <assert.h>
25548 #endif
25550 #undef $ac_func
25552 /* Override any gcc2 internal prototype to avoid an error. */
25553 #ifdef __cplusplus
25554 extern "C"
25556 #endif
25557 /* We use char because int might match the return type of a gcc2
25558 builtin and then its argument prototype would still apply. */
25559 char $ac_func ();
25560 /* The GNU C library defines this for functions which it implements
25561 to always fail with ENOSYS. Some functions are actually named
25562 something starting with __ and the normal name is an alias. */
25563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25564 choke me
25565 #else
25566 char (*f) () = $ac_func;
25567 #endif
25568 #ifdef __cplusplus
25570 #endif
25573 main ()
25575 return f != $ac_func;
25577 return 0;
25579 _ACEOF
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582 (eval $ac_link) 2>conftest.er1
25583 ac_status=$?
25584 grep -v '^ *+' conftest.er1 >conftest.err
25585 rm -f conftest.er1
25586 cat conftest.err >&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } &&
25589 { ac_try='test -z "$ac_c_werror_flag"
25590 || test ! -s conftest.err'
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
25596 { ac_try='test -s conftest$ac_exeext'
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 eval "$as_ac_var=yes"
25603 else
25604 echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.$ac_ext >&5
25607 eval "$as_ac_var=no"
25609 rm -f conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
25612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25614 if test `eval echo '${'$as_ac_var'}'` = yes; then
25615 cat >>confdefs.h <<_ACEOF
25616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25617 _ACEOF
25619 else
25620 case $LIBOBJS in
25621 "$ac_func.$ac_objext" | \
25622 *" $ac_func.$ac_objext" | \
25623 "$ac_func.$ac_objext "* | \
25624 *" $ac_func.$ac_objext "* ) ;;
25625 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25626 esac
25629 done
25632 if test $ac_cv_func_strncasecmp = no; then
25641 for ac_func in isascii
25643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25644 echo "$as_me:$LINENO: checking for $ac_func" >&5
25645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25646 if eval "test \"\${$as_ac_var+set}\" = set"; then
25647 echo $ECHO_N "(cached) $ECHO_C" >&6
25648 else
25649 cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h. */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h. */
25655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25657 #define $ac_func innocuous_$ac_func
25659 /* System header to define __stub macros and hopefully few prototypes,
25660 which can conflict with char $ac_func (); below.
25661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25662 <limits.h> exists even on freestanding compilers. */
25664 #ifdef __STDC__
25665 # include <limits.h>
25666 #else
25667 # include <assert.h>
25668 #endif
25670 #undef $ac_func
25672 /* Override any gcc2 internal prototype to avoid an error. */
25673 #ifdef __cplusplus
25674 extern "C"
25676 #endif
25677 /* We use char because int might match the return type of a gcc2
25678 builtin and then its argument prototype would still apply. */
25679 char $ac_func ();
25680 /* The GNU C library defines this for functions which it implements
25681 to always fail with ENOSYS. Some functions are actually named
25682 something starting with __ and the normal name is an alias. */
25683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25684 choke me
25685 #else
25686 char (*f) () = $ac_func;
25687 #endif
25688 #ifdef __cplusplus
25690 #endif
25693 main ()
25695 return f != $ac_func;
25697 return 0;
25699 _ACEOF
25700 rm -f conftest.$ac_objext conftest$ac_exeext
25701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25702 (eval $ac_link) 2>conftest.er1
25703 ac_status=$?
25704 grep -v '^ *+' conftest.er1 >conftest.err
25705 rm -f conftest.er1
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } &&
25709 { ac_try='test -z "$ac_c_werror_flag"
25710 || test ! -s conftest.err'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; } &&
25716 { ac_try='test -s conftest$ac_exeext'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; }; then
25722 eval "$as_ac_var=yes"
25723 else
25724 echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 eval "$as_ac_var=no"
25729 rm -f conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext conftest.$ac_ext
25732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25734 if test `eval echo '${'$as_ac_var'}'` = yes; then
25735 cat >>confdefs.h <<_ACEOF
25736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25737 _ACEOF
25740 done
25745 for ac_func in strtoul
25747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25748 echo "$as_me:$LINENO: checking for $ac_func" >&5
25749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25750 if eval "test \"\${$as_ac_var+set}\" = set"; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 else
25753 cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h. */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25761 #define $ac_func innocuous_$ac_func
25763 /* System header to define __stub macros and hopefully few prototypes,
25764 which can conflict with char $ac_func (); below.
25765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25766 <limits.h> exists even on freestanding compilers. */
25768 #ifdef __STDC__
25769 # include <limits.h>
25770 #else
25771 # include <assert.h>
25772 #endif
25774 #undef $ac_func
25776 /* Override any gcc2 internal prototype to avoid an error. */
25777 #ifdef __cplusplus
25778 extern "C"
25780 #endif
25781 /* We use char because int might match the return type of a gcc2
25782 builtin and then its argument prototype would still apply. */
25783 char $ac_func ();
25784 /* The GNU C library defines this for functions which it implements
25785 to always fail with ENOSYS. Some functions are actually named
25786 something starting with __ and the normal name is an alias. */
25787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25788 choke me
25789 #else
25790 char (*f) () = $ac_func;
25791 #endif
25792 #ifdef __cplusplus
25794 #endif
25797 main ()
25799 return f != $ac_func;
25801 return 0;
25803 _ACEOF
25804 rm -f conftest.$ac_objext conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806 (eval $ac_link) 2>conftest.er1
25807 ac_status=$?
25808 grep -v '^ *+' conftest.er1 >conftest.err
25809 rm -f conftest.er1
25810 cat conftest.err >&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } &&
25813 { ac_try='test -z "$ac_c_werror_flag"
25814 || test ! -s conftest.err'
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25817 ac_status=$?
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; } &&
25820 { ac_try='test -s conftest$ac_exeext'
25821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822 (eval $ac_try) 2>&5
25823 ac_status=$?
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); }; }; then
25826 eval "$as_ac_var=yes"
25827 else
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 eval "$as_ac_var=no"
25833 rm -f conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
25836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25838 if test `eval echo '${'$as_ac_var'}'` = yes; then
25839 cat >>confdefs.h <<_ACEOF
25840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25841 _ACEOF
25843 else
25844 case $LIBOBJS in
25845 "$ac_func.$ac_objext" | \
25846 *" $ac_func.$ac_objext" | \
25847 "$ac_func.$ac_objext "* | \
25848 *" $ac_func.$ac_objext "* ) ;;
25849 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25850 esac
25853 done
25856 if test $ac_cv_func_strtoul = no; then
25873 for ac_header in wchar.h
25875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25877 echo "$as_me:$LINENO: checking for $ac_header" >&5
25878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25884 else
25885 # Is the header compilable?
25886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25888 cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h. */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25895 #include <$ac_header>
25896 _ACEOF
25897 rm -f conftest.$ac_objext
25898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899 (eval $ac_compile) 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest.$ac_objext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 ac_header_compiler=yes
25920 else
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25924 ac_header_compiler=no
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25928 echo "${ECHO_T}$ac_header_compiler" >&6
25930 # Is the header present?
25931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25933 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h. */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 #include <$ac_header>
25940 _ACEOF
25941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25943 ac_status=$?
25944 grep -v '^ *+' conftest.er1 >conftest.err
25945 rm -f conftest.er1
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } >/dev/null; then
25949 if test -s conftest.err; then
25950 ac_cpp_err=$ac_c_preproc_warn_flag
25951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25952 else
25953 ac_cpp_err=
25955 else
25956 ac_cpp_err=yes
25958 if test -z "$ac_cpp_err"; then
25959 ac_header_preproc=yes
25960 else
25961 echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25964 ac_header_preproc=no
25966 rm -f conftest.err conftest.$ac_ext
25967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25968 echo "${ECHO_T}$ac_header_preproc" >&6
25970 # So? What about this header?
25971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25972 yes:no: )
25973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25977 ac_header_preproc=yes
25979 no:yes:* )
25980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25993 cat <<\_ASBOX
25994 ## ------------------------------------------ ##
25995 ## Report this to the AC_PACKAGE_NAME lists. ##
25996 ## ------------------------------------------ ##
25997 _ASBOX
25999 sed "s/^/$as_me: WARNING: /" >&2
26001 esac
26002 echo "$as_me:$LINENO: checking for $ac_header" >&5
26003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26005 echo $ECHO_N "(cached) $ECHO_C" >&6
26006 else
26007 eval "$as_ac_Header=\$ac_header_preproc"
26009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014 cat >>confdefs.h <<_ACEOF
26015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26016 _ACEOF
26020 done
26025 for ac_header in wctype.h
26027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26029 echo "$as_me:$LINENO: checking for $ac_header" >&5
26030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26032 echo $ECHO_N "(cached) $ECHO_C" >&6
26034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26036 else
26037 # Is the header compilable?
26038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26040 cat >conftest.$ac_ext <<_ACEOF
26041 /* confdefs.h. */
26042 _ACEOF
26043 cat confdefs.h >>conftest.$ac_ext
26044 cat >>conftest.$ac_ext <<_ACEOF
26045 /* end confdefs.h. */
26046 $ac_includes_default
26047 #include <$ac_header>
26048 _ACEOF
26049 rm -f conftest.$ac_objext
26050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26051 (eval $ac_compile) 2>conftest.er1
26052 ac_status=$?
26053 grep -v '^ *+' conftest.er1 >conftest.err
26054 rm -f conftest.er1
26055 cat conftest.err >&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); } &&
26058 { ac_try='test -z "$ac_c_werror_flag"
26059 || test ! -s conftest.err'
26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); }; } &&
26065 { ac_try='test -s conftest.$ac_objext'
26066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); }; }; then
26071 ac_header_compiler=yes
26072 else
26073 echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26076 ac_header_compiler=no
26078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26080 echo "${ECHO_T}$ac_header_compiler" >&6
26082 # Is the header present?
26083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26085 cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h. */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 #include <$ac_header>
26092 _ACEOF
26093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26095 ac_status=$?
26096 grep -v '^ *+' conftest.er1 >conftest.err
26097 rm -f conftest.er1
26098 cat conftest.err >&5
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } >/dev/null; then
26101 if test -s conftest.err; then
26102 ac_cpp_err=$ac_c_preproc_warn_flag
26103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26104 else
26105 ac_cpp_err=
26107 else
26108 ac_cpp_err=yes
26110 if test -z "$ac_cpp_err"; then
26111 ac_header_preproc=yes
26112 else
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 ac_header_preproc=no
26118 rm -f conftest.err conftest.$ac_ext
26119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26120 echo "${ECHO_T}$ac_header_preproc" >&6
26122 # So? What about this header?
26123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26124 yes:no: )
26125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26129 ac_header_preproc=yes
26131 no:yes:* )
26132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26145 cat <<\_ASBOX
26146 ## ------------------------------------------ ##
26147 ## Report this to the AC_PACKAGE_NAME lists. ##
26148 ## ------------------------------------------ ##
26149 _ASBOX
26151 sed "s/^/$as_me: WARNING: /" >&2
26153 esac
26154 echo "$as_me:$LINENO: checking for $ac_header" >&5
26155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159 eval "$as_ac_Header=\$ac_header_preproc"
26161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26166 cat >>confdefs.h <<_ACEOF
26167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26168 _ACEOF
26172 done
26177 for ac_func in iswprint
26179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26180 echo "$as_me:$LINENO: checking for $ac_func" >&5
26181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26182 if eval "test \"\${$as_ac_var+set}\" = set"; then
26183 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 else
26185 cat >conftest.$ac_ext <<_ACEOF
26186 /* confdefs.h. */
26187 _ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h. */
26191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26193 #define $ac_func innocuous_$ac_func
26195 /* System header to define __stub macros and hopefully few prototypes,
26196 which can conflict with char $ac_func (); below.
26197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26198 <limits.h> exists even on freestanding compilers. */
26200 #ifdef __STDC__
26201 # include <limits.h>
26202 #else
26203 # include <assert.h>
26204 #endif
26206 #undef $ac_func
26208 /* Override any gcc2 internal prototype to avoid an error. */
26209 #ifdef __cplusplus
26210 extern "C"
26212 #endif
26213 /* We use char because int might match the return type of a gcc2
26214 builtin and then its argument prototype would still apply. */
26215 char $ac_func ();
26216 /* The GNU C library defines this for functions which it implements
26217 to always fail with ENOSYS. Some functions are actually named
26218 something starting with __ and the normal name is an alias. */
26219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26220 choke me
26221 #else
26222 char (*f) () = $ac_func;
26223 #endif
26224 #ifdef __cplusplus
26226 #endif
26229 main ()
26231 return f != $ac_func;
26233 return 0;
26235 _ACEOF
26236 rm -f conftest.$ac_objext conftest$ac_exeext
26237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26238 (eval $ac_link) 2>conftest.er1
26239 ac_status=$?
26240 grep -v '^ *+' conftest.er1 >conftest.err
26241 rm -f conftest.er1
26242 cat conftest.err >&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } &&
26245 { ac_try='test -z "$ac_c_werror_flag"
26246 || test ! -s conftest.err'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; } &&
26252 { ac_try='test -s conftest$ac_exeext'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 eval "$as_ac_var=yes"
26259 else
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26263 eval "$as_ac_var=no"
26265 rm -f conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
26268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26270 if test `eval echo '${'$as_ac_var'}'` = yes; then
26271 cat >>confdefs.h <<_ACEOF
26272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26273 _ACEOF
26276 done
26281 for ac_func in mbsinit
26283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26284 echo "$as_me:$LINENO: checking for $ac_func" >&5
26285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26286 if eval "test \"\${$as_ac_var+set}\" = set"; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26288 else
26289 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h. */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26297 #define $ac_func innocuous_$ac_func
26299 /* System header to define __stub macros and hopefully few prototypes,
26300 which can conflict with char $ac_func (); below.
26301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26302 <limits.h> exists even on freestanding compilers. */
26304 #ifdef __STDC__
26305 # include <limits.h>
26306 #else
26307 # include <assert.h>
26308 #endif
26310 #undef $ac_func
26312 /* Override any gcc2 internal prototype to avoid an error. */
26313 #ifdef __cplusplus
26314 extern "C"
26316 #endif
26317 /* We use char because int might match the return type of a gcc2
26318 builtin and then its argument prototype would still apply. */
26319 char $ac_func ();
26320 /* The GNU C library defines this for functions which it implements
26321 to always fail with ENOSYS. Some functions are actually named
26322 something starting with __ and the normal name is an alias. */
26323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26324 choke me
26325 #else
26326 char (*f) () = $ac_func;
26327 #endif
26328 #ifdef __cplusplus
26330 #endif
26333 main ()
26335 return f != $ac_func;
26337 return 0;
26339 _ACEOF
26340 rm -f conftest.$ac_objext conftest$ac_exeext
26341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26342 (eval $ac_link) 2>conftest.er1
26343 ac_status=$?
26344 grep -v '^ *+' conftest.er1 >conftest.err
26345 rm -f conftest.er1
26346 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } &&
26349 { ac_try='test -z "$ac_c_werror_flag"
26350 || test ! -s conftest.err'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; } &&
26356 { ac_try='test -s conftest$ac_exeext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 eval "$as_ac_var=yes"
26363 else
26364 echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26367 eval "$as_ac_var=no"
26369 rm -f conftest.err conftest.$ac_objext \
26370 conftest$ac_exeext conftest.$ac_ext
26372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26374 if test `eval echo '${'$as_ac_var'}'` = yes; then
26375 cat >>confdefs.h <<_ACEOF
26376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26377 _ACEOF
26380 done
26409 for ac_func in iswcntrl wcwidth
26411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26412 echo "$as_me:$LINENO: checking for $ac_func" >&5
26413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_var+set}\" = set"; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417 cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h. */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26425 #define $ac_func innocuous_$ac_func
26427 /* System header to define __stub macros and hopefully few prototypes,
26428 which can conflict with char $ac_func (); below.
26429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26430 <limits.h> exists even on freestanding compilers. */
26432 #ifdef __STDC__
26433 # include <limits.h>
26434 #else
26435 # include <assert.h>
26436 #endif
26438 #undef $ac_func
26440 /* Override any gcc2 internal prototype to avoid an error. */
26441 #ifdef __cplusplus
26442 extern "C"
26444 #endif
26445 /* We use char because int might match the return type of a gcc2
26446 builtin and then its argument prototype would still apply. */
26447 char $ac_func ();
26448 /* The GNU C library defines this for functions which it implements
26449 to always fail with ENOSYS. Some functions are actually named
26450 something starting with __ and the normal name is an alias. */
26451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26452 choke me
26453 #else
26454 char (*f) () = $ac_func;
26455 #endif
26456 #ifdef __cplusplus
26458 #endif
26461 main ()
26463 return f != $ac_func;
26465 return 0;
26467 _ACEOF
26468 rm -f conftest.$ac_objext conftest$ac_exeext
26469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26470 (eval $ac_link) 2>conftest.er1
26471 ac_status=$?
26472 grep -v '^ *+' conftest.er1 >conftest.err
26473 rm -f conftest.er1
26474 cat conftest.err >&5
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } &&
26477 { ac_try='test -z "$ac_c_werror_flag"
26478 || test ! -s conftest.err'
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; } &&
26484 { ac_try='test -s conftest$ac_exeext'
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; }; then
26490 eval "$as_ac_var=yes"
26491 else
26492 echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26495 eval "$as_ac_var=no"
26497 rm -f conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
26500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26502 if test `eval echo '${'$as_ac_var'}'` = yes; then
26503 cat >>confdefs.h <<_ACEOF
26504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26505 _ACEOF
26508 done
26511 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
26512 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
26513 if test "${gl_cv_func_mbrtowc+set}" = set; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 else
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h. */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26522 #include <wchar.h>
26524 main ()
26526 mbstate_t state; return ! (sizeof state && mbrtowc);
26528 return 0;
26530 _ACEOF
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533 (eval $ac_link) 2>conftest.er1
26534 ac_status=$?
26535 grep -v '^ *+' conftest.er1 >conftest.err
26536 rm -f conftest.er1
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest$ac_exeext'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26550 ac_status=$?
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553 gl_cv_func_mbrtowc=yes
26554 else
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26558 gl_cv_func_mbrtowc=no
26560 rm -f conftest.err conftest.$ac_objext \
26561 conftest$ac_exeext conftest.$ac_ext
26563 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
26564 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
26565 if test $gl_cv_func_mbrtowc = yes; then
26567 cat >>confdefs.h <<\_ACEOF
26568 #define HAVE_MBRTOWC 1
26569 _ACEOF
26574 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
26575 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
26576 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26578 else
26579 cat >conftest.$ac_ext <<_ACEOF
26580 /* confdefs.h. */
26581 _ACEOF
26582 cat confdefs.h >>conftest.$ac_ext
26583 cat >>conftest.$ac_ext <<_ACEOF
26584 /* end confdefs.h. */
26586 /* AIX 3.2.5 declares wcwidth in <string.h>. */
26587 #if HAVE_STRING_H
26588 # include <string.h>
26589 #endif
26590 #if HAVE_WCHAR_H
26591 # include <wchar.h>
26592 #endif
26595 main ()
26598 #ifndef wcwidth
26599 char *p = (char *) wcwidth;
26600 #endif
26603 return 0;
26605 _ACEOF
26606 rm -f conftest.$ac_objext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26608 (eval $ac_compile) 2>conftest.er1
26609 ac_status=$?
26610 grep -v '^ *+' conftest.er1 >conftest.err
26611 rm -f conftest.er1
26612 cat conftest.err >&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } &&
26615 { ac_try='test -z "$ac_c_werror_flag"
26616 || test ! -s conftest.err'
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26619 ac_status=$?
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; } &&
26622 { ac_try='test -s conftest.$ac_objext'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; }; then
26628 ac_cv_have_decl_wcwidth=yes
26629 else
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 ac_cv_have_decl_wcwidth=no
26635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26637 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
26638 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
26639 if test $ac_cv_have_decl_wcwidth = yes; then
26640 ac_val=1
26641 else
26642 ac_val=0
26645 cat >>confdefs.h <<_ACEOF
26646 #define HAVE_DECL_WCWIDTH $ac_val
26647 _ACEOF
26650 echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
26651 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6
26652 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 else
26655 cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h. */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h. */
26662 #if HAVE_WCHAR_H
26663 # include <wchar.h>
26664 #endif
26667 main ()
26670 char *p = (char *) mbswidth;
26673 return 0;
26675 _ACEOF
26676 rm -f conftest.$ac_objext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26678 (eval $ac_compile) 2>conftest.er1
26679 ac_status=$?
26680 grep -v '^ *+' conftest.er1 >conftest.err
26681 rm -f conftest.er1
26682 cat conftest.err >&5
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
26685 { ac_try='test -z "$ac_c_werror_flag"
26686 || test ! -s conftest.err'
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; } &&
26692 { ac_try='test -s conftest.$ac_objext'
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 ac_cv_have_decl_mbswidth=yes
26699 else
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_cv_have_decl_mbswidth=no
26705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26707 echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
26708 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6
26709 if test $ac_cv_have_decl_mbswidth = yes; then
26710 ac_val=1
26711 else
26712 ac_val=0
26715 cat >>confdefs.h <<_ACEOF
26716 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
26717 _ACEOF
26720 echo "$as_me:$LINENO: checking for mbstate_t" >&5
26721 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
26722 if test "${ac_cv_type_mbstate_t+set}" = set; then
26723 echo $ECHO_N "(cached) $ECHO_C" >&6
26724 else
26725 cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h. */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26731 $ac_includes_default
26732 # include <wchar.h>
26734 main ()
26736 mbstate_t x; return sizeof x;
26738 return 0;
26740 _ACEOF
26741 rm -f conftest.$ac_objext
26742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26743 (eval $ac_compile) 2>conftest.er1
26744 ac_status=$?
26745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
26750 { ac_try='test -z "$ac_c_werror_flag"
26751 || test ! -s conftest.err'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; } &&
26757 { ac_try='test -s conftest.$ac_objext'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ac_cv_type_mbstate_t=yes
26764 else
26765 echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26768 ac_cv_type_mbstate_t=no
26770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26772 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26773 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
26774 if test $ac_cv_type_mbstate_t = yes; then
26776 cat >>confdefs.h <<\_ACEOF
26777 #define HAVE_MBSTATE_T 1
26778 _ACEOF
26780 else
26782 cat >>confdefs.h <<\_ACEOF
26783 #define mbstate_t int
26784 _ACEOF
26793 ac_header_dirent=no
26794 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26795 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26796 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26797 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26800 else
26801 cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h. */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 #include <sys/types.h>
26808 #include <$ac_hdr>
26811 main ()
26813 if ((DIR *) 0)
26814 return 0;
26816 return 0;
26818 _ACEOF
26819 rm -f conftest.$ac_objext
26820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26821 (eval $ac_compile) 2>conftest.er1
26822 ac_status=$?
26823 grep -v '^ *+' conftest.er1 >conftest.err
26824 rm -f conftest.er1
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } &&
26828 { ac_try='test -z "$ac_c_werror_flag"
26829 || test ! -s conftest.err'
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; } &&
26835 { ac_try='test -s conftest.$ac_objext'
26836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; }; then
26841 eval "$as_ac_Header=yes"
26842 else
26843 echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26846 eval "$as_ac_Header=no"
26848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26853 cat >>confdefs.h <<_ACEOF
26854 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26855 _ACEOF
26857 ac_header_dirent=$ac_hdr; break
26860 done
26861 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26862 if test $ac_header_dirent = dirent.h; then
26863 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26864 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26865 if test "${ac_cv_search_opendir+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868 ac_func_search_save_LIBS=$LIBS
26869 ac_cv_search_opendir=no
26870 cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h. */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h. */
26877 /* Override any gcc2 internal prototype to avoid an error. */
26878 #ifdef __cplusplus
26879 extern "C"
26880 #endif
26881 /* We use char because int might match the return type of a gcc2
26882 builtin and then its argument prototype would still apply. */
26883 char opendir ();
26885 main ()
26887 opendir ();
26889 return 0;
26891 _ACEOF
26892 rm -f conftest.$ac_objext conftest$ac_exeext
26893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26894 (eval $ac_link) 2>conftest.er1
26895 ac_status=$?
26896 grep -v '^ *+' conftest.er1 >conftest.err
26897 rm -f conftest.er1
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } &&
26901 { ac_try='test -z "$ac_c_werror_flag"
26902 || test ! -s conftest.err'
26903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26904 (eval $ac_try) 2>&5
26905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); }; } &&
26908 { ac_try='test -s conftest$ac_exeext'
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; }; then
26914 ac_cv_search_opendir="none required"
26915 else
26916 echo "$as_me: failed program was:" >&5
26917 sed 's/^/| /' conftest.$ac_ext >&5
26920 rm -f conftest.err conftest.$ac_objext \
26921 conftest$ac_exeext conftest.$ac_ext
26922 if test "$ac_cv_search_opendir" = no; then
26923 for ac_lib in dir; do
26924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26925 cat >conftest.$ac_ext <<_ACEOF
26926 /* confdefs.h. */
26927 _ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26932 /* Override any gcc2 internal prototype to avoid an error. */
26933 #ifdef __cplusplus
26934 extern "C"
26935 #endif
26936 /* We use char because int might match the return type of a gcc2
26937 builtin and then its argument prototype would still apply. */
26938 char opendir ();
26940 main ()
26942 opendir ();
26944 return 0;
26946 _ACEOF
26947 rm -f conftest.$ac_objext conftest$ac_exeext
26948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26949 (eval $ac_link) 2>conftest.er1
26950 ac_status=$?
26951 grep -v '^ *+' conftest.er1 >conftest.err
26952 rm -f conftest.er1
26953 cat conftest.err >&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } &&
26956 { ac_try='test -z "$ac_c_werror_flag"
26957 || test ! -s conftest.err'
26958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; } &&
26963 { ac_try='test -s conftest$ac_exeext'
26964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); }; }; then
26969 ac_cv_search_opendir="-l$ac_lib"
26970 break
26971 else
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26976 rm -f conftest.err conftest.$ac_objext \
26977 conftest$ac_exeext conftest.$ac_ext
26978 done
26980 LIBS=$ac_func_search_save_LIBS
26982 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26983 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26984 if test "$ac_cv_search_opendir" != no; then
26985 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26989 else
26990 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26991 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26992 if test "${ac_cv_search_opendir+set}" = set; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26994 else
26995 ac_func_search_save_LIBS=$LIBS
26996 ac_cv_search_opendir=no
26997 cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h. */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27004 /* Override any gcc2 internal prototype to avoid an error. */
27005 #ifdef __cplusplus
27006 extern "C"
27007 #endif
27008 /* We use char because int might match the return type of a gcc2
27009 builtin and then its argument prototype would still apply. */
27010 char opendir ();
27012 main ()
27014 opendir ();
27016 return 0;
27018 _ACEOF
27019 rm -f conftest.$ac_objext conftest$ac_exeext
27020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27021 (eval $ac_link) 2>conftest.er1
27022 ac_status=$?
27023 grep -v '^ *+' conftest.er1 >conftest.err
27024 rm -f conftest.er1
27025 cat conftest.err >&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } &&
27028 { ac_try='test -z "$ac_c_werror_flag"
27029 || test ! -s conftest.err'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; } &&
27035 { ac_try='test -s conftest$ac_exeext'
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
27041 ac_cv_search_opendir="none required"
27042 else
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27047 rm -f conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27049 if test "$ac_cv_search_opendir" = no; then
27050 for ac_lib in x; do
27051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27052 cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h. */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27059 /* Override any gcc2 internal prototype to avoid an error. */
27060 #ifdef __cplusplus
27061 extern "C"
27062 #endif
27063 /* We use char because int might match the return type of a gcc2
27064 builtin and then its argument prototype would still apply. */
27065 char opendir ();
27067 main ()
27069 opendir ();
27071 return 0;
27073 _ACEOF
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27076 (eval $ac_link) 2>conftest.er1
27077 ac_status=$?
27078 grep -v '^ *+' conftest.er1 >conftest.err
27079 rm -f conftest.er1
27080 cat conftest.err >&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } &&
27083 { ac_try='test -z "$ac_c_werror_flag"
27084 || test ! -s conftest.err'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; } &&
27090 { ac_try='test -s conftest$ac_exeext'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096 ac_cv_search_opendir="-l$ac_lib"
27097 break
27098 else
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27103 rm -f conftest.err conftest.$ac_objext \
27104 conftest$ac_exeext conftest.$ac_ext
27105 done
27107 LIBS=$ac_func_search_save_LIBS
27109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27111 if test "$ac_cv_search_opendir" != no; then
27112 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27120 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27121 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27122 if test "${ac_cv_func_closedir_void+set}" = set; then
27123 echo $ECHO_N "(cached) $ECHO_C" >&6
27124 else
27125 if test "$cross_compiling" = yes; then
27126 ac_cv_func_closedir_void=yes
27127 else
27128 cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h. */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h. */
27134 $ac_includes_default
27135 #include <$ac_header_dirent>
27136 #ifndef __cplusplus
27137 int closedir ();
27138 #endif
27141 main ()
27143 exit (closedir (opendir (".")) != 0);
27145 return 0;
27147 _ACEOF
27148 rm -f conftest$ac_exeext
27149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27150 (eval $ac_link) 2>&5
27151 ac_status=$?
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 ac_cv_func_closedir_void=no
27160 else
27161 echo "$as_me: program exited with status $ac_status" >&5
27162 echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 ( exit $ac_status )
27166 ac_cv_func_closedir_void=yes
27168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27171 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27172 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
27173 if test $ac_cv_func_closedir_void = yes; then
27175 cat >>confdefs.h <<\_ACEOF
27176 #define CLOSEDIR_VOID 1
27177 _ACEOF
27182 for ac_header in string.h
27184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27186 echo "$as_me:$LINENO: checking for $ac_header" >&5
27187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27189 echo $ECHO_N "(cached) $ECHO_C" >&6
27191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27193 else
27194 # Is the header compilable?
27195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27197 cat >conftest.$ac_ext <<_ACEOF
27198 /* confdefs.h. */
27199 _ACEOF
27200 cat confdefs.h >>conftest.$ac_ext
27201 cat >>conftest.$ac_ext <<_ACEOF
27202 /* end confdefs.h. */
27203 $ac_includes_default
27204 #include <$ac_header>
27205 _ACEOF
27206 rm -f conftest.$ac_objext
27207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27208 (eval $ac_compile) 2>conftest.er1
27209 ac_status=$?
27210 grep -v '^ *+' conftest.er1 >conftest.err
27211 rm -f conftest.er1
27212 cat conftest.err >&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } &&
27215 { ac_try='test -z "$ac_c_werror_flag"
27216 || test ! -s conftest.err'
27217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; } &&
27222 { ac_try='test -s conftest.$ac_objext'
27223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27224 (eval $ac_try) 2>&5
27225 ac_status=$?
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; }; then
27228 ac_header_compiler=yes
27229 else
27230 echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27233 ac_header_compiler=no
27235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27237 echo "${ECHO_T}$ac_header_compiler" >&6
27239 # Is the header present?
27240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27242 cat >conftest.$ac_ext <<_ACEOF
27243 /* confdefs.h. */
27244 _ACEOF
27245 cat confdefs.h >>conftest.$ac_ext
27246 cat >>conftest.$ac_ext <<_ACEOF
27247 /* end confdefs.h. */
27248 #include <$ac_header>
27249 _ACEOF
27250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27252 ac_status=$?
27253 grep -v '^ *+' conftest.er1 >conftest.err
27254 rm -f conftest.er1
27255 cat conftest.err >&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } >/dev/null; then
27258 if test -s conftest.err; then
27259 ac_cpp_err=$ac_c_preproc_warn_flag
27260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27261 else
27262 ac_cpp_err=
27264 else
27265 ac_cpp_err=yes
27267 if test -z "$ac_cpp_err"; then
27268 ac_header_preproc=yes
27269 else
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 ac_header_preproc=no
27275 rm -f conftest.err conftest.$ac_ext
27276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27277 echo "${ECHO_T}$ac_header_preproc" >&6
27279 # So? What about this header?
27280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27281 yes:no: )
27282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27286 ac_header_preproc=yes
27288 no:yes:* )
27289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27302 cat <<\_ASBOX
27303 ## ------------------------------------------ ##
27304 ## Report this to the AC_PACKAGE_NAME lists. ##
27305 ## ------------------------------------------ ##
27306 _ASBOX
27308 sed "s/^/$as_me: WARNING: /" >&2
27310 esac
27311 echo "$as_me:$LINENO: checking for $ac_header" >&5
27312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27315 else
27316 eval "$as_ac_Header=\$ac_header_preproc"
27318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27323 cat >>confdefs.h <<_ACEOF
27324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27325 _ACEOF
27329 done
27331 echo "$as_me:$LINENO: checking for long file names" >&5
27332 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
27333 if test "${ac_cv_sys_long_file_names+set}" = set; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 else
27336 ac_cv_sys_long_file_names=yes
27337 # Test for long file names in all the places we know might matter:
27338 # . the current directory, where building will happen
27339 # $prefix/lib where we will be installing things
27340 # $exec_prefix/lib likewise
27341 # eval it to expand exec_prefix.
27342 # $TMPDIR if set, where it might want to write temporary files
27343 # if $TMPDIR is not set:
27344 # /tmp where it might want to write temporary files
27345 # /var/tmp likewise
27346 # /usr/tmp likewise
27347 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
27348 ac_tmpdirs=$TMPDIR
27349 else
27350 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
27352 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
27353 test -d $ac_dir || continue
27354 test -w $ac_dir || continue # It is less confusing to not echo anything here.
27355 ac_xdir=$ac_dir/cf$$
27356 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
27357 ac_tf1=$ac_xdir/conftest9012345
27358 ac_tf2=$ac_xdir/conftest9012346
27359 (echo 1 >$ac_tf1) 2>/dev/null
27360 (echo 2 >$ac_tf2) 2>/dev/null
27361 ac_val=`cat $ac_tf1 2>/dev/null`
27362 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
27363 ac_cv_sys_long_file_names=no
27364 rm -rf $ac_xdir 2>/dev/null
27365 break
27367 rm -rf $ac_xdir 2>/dev/null
27368 done
27370 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
27371 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
27372 if test $ac_cv_sys_long_file_names = yes; then
27374 cat >>confdefs.h <<\_ACEOF
27375 #define HAVE_LONG_FILE_NAMES 1
27376 _ACEOF
27381 for ac_func in pathconf
27383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27384 echo "$as_me:$LINENO: checking for $ac_func" >&5
27385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27386 if eval "test \"\${$as_ac_var+set}\" = set"; then
27387 echo $ECHO_N "(cached) $ECHO_C" >&6
27388 else
27389 cat >conftest.$ac_ext <<_ACEOF
27390 /* confdefs.h. */
27391 _ACEOF
27392 cat confdefs.h >>conftest.$ac_ext
27393 cat >>conftest.$ac_ext <<_ACEOF
27394 /* end confdefs.h. */
27395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27397 #define $ac_func innocuous_$ac_func
27399 /* System header to define __stub macros and hopefully few prototypes,
27400 which can conflict with char $ac_func (); below.
27401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27402 <limits.h> exists even on freestanding compilers. */
27404 #ifdef __STDC__
27405 # include <limits.h>
27406 #else
27407 # include <assert.h>
27408 #endif
27410 #undef $ac_func
27412 /* Override any gcc2 internal prototype to avoid an error. */
27413 #ifdef __cplusplus
27414 extern "C"
27416 #endif
27417 /* We use char because int might match the return type of a gcc2
27418 builtin and then its argument prototype would still apply. */
27419 char $ac_func ();
27420 /* The GNU C library defines this for functions which it implements
27421 to always fail with ENOSYS. Some functions are actually named
27422 something starting with __ and the normal name is an alias. */
27423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27424 choke me
27425 #else
27426 char (*f) () = $ac_func;
27427 #endif
27428 #ifdef __cplusplus
27430 #endif
27433 main ()
27435 return f != $ac_func;
27437 return 0;
27439 _ACEOF
27440 rm -f conftest.$ac_objext conftest$ac_exeext
27441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27442 (eval $ac_link) 2>conftest.er1
27443 ac_status=$?
27444 grep -v '^ *+' conftest.er1 >conftest.err
27445 rm -f conftest.er1
27446 cat conftest.err >&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } &&
27449 { ac_try='test -z "$ac_c_werror_flag"
27450 || test ! -s conftest.err'
27451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452 (eval $ac_try) 2>&5
27453 ac_status=$?
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); }; } &&
27456 { ac_try='test -s conftest$ac_exeext'
27457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; }; then
27462 eval "$as_ac_var=yes"
27463 else
27464 echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27467 eval "$as_ac_var=no"
27469 rm -f conftest.err conftest.$ac_objext \
27470 conftest$ac_exeext conftest.$ac_ext
27472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27474 if test `eval echo '${'$as_ac_var'}'` = yes; then
27475 cat >>confdefs.h <<_ACEOF
27476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27477 _ACEOF
27480 done
27484 for ac_header in string.h unistd.h
27486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27488 echo "$as_me:$LINENO: checking for $ac_header" >&5
27489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27495 else
27496 # Is the header compilable?
27497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27499 cat >conftest.$ac_ext <<_ACEOF
27500 /* confdefs.h. */
27501 _ACEOF
27502 cat confdefs.h >>conftest.$ac_ext
27503 cat >>conftest.$ac_ext <<_ACEOF
27504 /* end confdefs.h. */
27505 $ac_includes_default
27506 #include <$ac_header>
27507 _ACEOF
27508 rm -f conftest.$ac_objext
27509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27510 (eval $ac_compile) 2>conftest.er1
27511 ac_status=$?
27512 grep -v '^ *+' conftest.er1 >conftest.err
27513 rm -f conftest.er1
27514 cat conftest.err >&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); } &&
27517 { ac_try='test -z "$ac_c_werror_flag"
27518 || test ! -s conftest.err'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; } &&
27524 { ac_try='test -s conftest.$ac_objext'
27525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27526 (eval $ac_try) 2>&5
27527 ac_status=$?
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; }; then
27530 ac_header_compiler=yes
27531 else
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_header_compiler=no
27537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27539 echo "${ECHO_T}$ac_header_compiler" >&6
27541 # Is the header present?
27542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27544 cat >conftest.$ac_ext <<_ACEOF
27545 /* confdefs.h. */
27546 _ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h. */
27550 #include <$ac_header>
27551 _ACEOF
27552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } >/dev/null; then
27560 if test -s conftest.err; then
27561 ac_cpp_err=$ac_c_preproc_warn_flag
27562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27563 else
27564 ac_cpp_err=
27566 else
27567 ac_cpp_err=yes
27569 if test -z "$ac_cpp_err"; then
27570 ac_header_preproc=yes
27571 else
27572 echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27575 ac_header_preproc=no
27577 rm -f conftest.err conftest.$ac_ext
27578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27579 echo "${ECHO_T}$ac_header_preproc" >&6
27581 # So? What about this header?
27582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27583 yes:no: )
27584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27588 ac_header_preproc=yes
27590 no:yes:* )
27591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27604 cat <<\_ASBOX
27605 ## ------------------------------------------ ##
27606 ## Report this to the AC_PACKAGE_NAME lists. ##
27607 ## ------------------------------------------ ##
27608 _ASBOX
27610 sed "s/^/$as_me: WARNING: /" >&2
27612 esac
27613 echo "$as_me:$LINENO: checking for $ac_header" >&5
27614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618 eval "$as_ac_Header=\$ac_header_preproc"
27620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27625 cat >>confdefs.h <<_ACEOF
27626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27627 _ACEOF
27631 done
27636 for ac_header in unistd.h vfork.h
27638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27640 echo "$as_me:$LINENO: checking for $ac_header" >&5
27641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27647 else
27648 # Is the header compilable?
27649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27651 cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h. */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h. */
27657 $ac_includes_default
27658 #include <$ac_header>
27659 _ACEOF
27660 rm -f conftest.$ac_objext
27661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27662 (eval $ac_compile) 2>conftest.er1
27663 ac_status=$?
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
27669 { ac_try='test -z "$ac_c_werror_flag"
27670 || test ! -s conftest.err'
27671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27672 (eval $ac_try) 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest.$ac_objext'
27677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; }; then
27682 ac_header_compiler=yes
27683 else
27684 echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27687 ac_header_compiler=no
27689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27691 echo "${ECHO_T}$ac_header_compiler" >&6
27693 # Is the header present?
27694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27696 cat >conftest.$ac_ext <<_ACEOF
27697 /* confdefs.h. */
27698 _ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h. */
27702 #include <$ac_header>
27703 _ACEOF
27704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27706 ac_status=$?
27707 grep -v '^ *+' conftest.er1 >conftest.err
27708 rm -f conftest.er1
27709 cat conftest.err >&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } >/dev/null; then
27712 if test -s conftest.err; then
27713 ac_cpp_err=$ac_c_preproc_warn_flag
27714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27715 else
27716 ac_cpp_err=
27718 else
27719 ac_cpp_err=yes
27721 if test -z "$ac_cpp_err"; then
27722 ac_header_preproc=yes
27723 else
27724 echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27727 ac_header_preproc=no
27729 rm -f conftest.err conftest.$ac_ext
27730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27731 echo "${ECHO_T}$ac_header_preproc" >&6
27733 # So? What about this header?
27734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27735 yes:no: )
27736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27740 ac_header_preproc=yes
27742 no:yes:* )
27743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27756 cat <<\_ASBOX
27757 ## ------------------------------------------ ##
27758 ## Report this to the AC_PACKAGE_NAME lists. ##
27759 ## ------------------------------------------ ##
27760 _ASBOX
27762 sed "s/^/$as_me: WARNING: /" >&2
27764 esac
27765 echo "$as_me:$LINENO: checking for $ac_header" >&5
27766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27768 echo $ECHO_N "(cached) $ECHO_C" >&6
27769 else
27770 eval "$as_ac_Header=\$ac_header_preproc"
27772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27777 cat >>confdefs.h <<_ACEOF
27778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27779 _ACEOF
27783 done
27787 for ac_func in fork vfork
27789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27790 echo "$as_me:$LINENO: checking for $ac_func" >&5
27791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27792 if eval "test \"\${$as_ac_var+set}\" = set"; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27794 else
27795 cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h. */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27803 #define $ac_func innocuous_$ac_func
27805 /* System header to define __stub macros and hopefully few prototypes,
27806 which can conflict with char $ac_func (); below.
27807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27808 <limits.h> exists even on freestanding compilers. */
27810 #ifdef __STDC__
27811 # include <limits.h>
27812 #else
27813 # include <assert.h>
27814 #endif
27816 #undef $ac_func
27818 /* Override any gcc2 internal prototype to avoid an error. */
27819 #ifdef __cplusplus
27820 extern "C"
27822 #endif
27823 /* We use char because int might match the return type of a gcc2
27824 builtin and then its argument prototype would still apply. */
27825 char $ac_func ();
27826 /* The GNU C library defines this for functions which it implements
27827 to always fail with ENOSYS. Some functions are actually named
27828 something starting with __ and the normal name is an alias. */
27829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27830 choke me
27831 #else
27832 char (*f) () = $ac_func;
27833 #endif
27834 #ifdef __cplusplus
27836 #endif
27839 main ()
27841 return f != $ac_func;
27843 return 0;
27845 _ACEOF
27846 rm -f conftest.$ac_objext conftest$ac_exeext
27847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27848 (eval $ac_link) 2>conftest.er1
27849 ac_status=$?
27850 grep -v '^ *+' conftest.er1 >conftest.err
27851 rm -f conftest.er1
27852 cat conftest.err >&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
27855 { ac_try='test -z "$ac_c_werror_flag"
27856 || test ! -s conftest.err'
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest$ac_exeext'
27863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; }; then
27868 eval "$as_ac_var=yes"
27869 else
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27873 eval "$as_ac_var=no"
27875 rm -f conftest.err conftest.$ac_objext \
27876 conftest$ac_exeext conftest.$ac_ext
27878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27880 if test `eval echo '${'$as_ac_var'}'` = yes; then
27881 cat >>confdefs.h <<_ACEOF
27882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27883 _ACEOF
27886 done
27888 if test "x$ac_cv_func_fork" = xyes; then
27889 echo "$as_me:$LINENO: checking for working fork" >&5
27890 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
27891 if test "${ac_cv_func_fork_works+set}" = set; then
27892 echo $ECHO_N "(cached) $ECHO_C" >&6
27893 else
27894 if test "$cross_compiling" = yes; then
27895 ac_cv_func_fork_works=cross
27896 else
27897 cat >conftest.$ac_ext <<_ACEOF
27898 /* By Ruediger Kuhlmann. */
27899 #include <sys/types.h>
27900 #if HAVE_UNISTD_H
27901 # include <unistd.h>
27902 #endif
27903 /* Some systems only have a dummy stub for fork() */
27904 int main ()
27906 if (fork() < 0)
27907 exit (1);
27908 exit (0);
27910 _ACEOF
27911 rm -f conftest$ac_exeext
27912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27913 (eval $ac_link) 2>&5
27914 ac_status=$?
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27919 ac_status=$?
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; }; then
27922 ac_cv_func_fork_works=yes
27923 else
27924 echo "$as_me: program exited with status $ac_status" >&5
27925 echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27928 ( exit $ac_status )
27929 ac_cv_func_fork_works=no
27931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27934 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
27935 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
27937 else
27938 ac_cv_func_fork_works=$ac_cv_func_fork
27940 if test "x$ac_cv_func_fork_works" = xcross; then
27941 case $host in
27942 *-*-amigaos* | *-*-msdosdjgpp*)
27943 # Override, as these systems have only a dummy fork() stub
27944 ac_cv_func_fork_works=no
27947 ac_cv_func_fork_works=yes
27949 esac
27950 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27951 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27953 ac_cv_func_vfork_works=$ac_cv_func_vfork
27954 if test "x$ac_cv_func_vfork" = xyes; then
27955 echo "$as_me:$LINENO: checking for working vfork" >&5
27956 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
27957 if test "${ac_cv_func_vfork_works+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960 if test "$cross_compiling" = yes; then
27961 ac_cv_func_vfork_works=cross
27962 else
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h. */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27969 /* Thanks to Paul Eggert for this test. */
27970 #include <stdio.h>
27971 #include <stdlib.h>
27972 #include <sys/types.h>
27973 #include <sys/stat.h>
27974 #include <sys/wait.h>
27975 #if HAVE_UNISTD_H
27976 # include <unistd.h>
27977 #endif
27978 #if HAVE_VFORK_H
27979 # include <vfork.h>
27980 #endif
27981 /* On some sparc systems, changes by the child to local and incoming
27982 argument registers are propagated back to the parent. The compiler
27983 is told about this with #include <vfork.h>, but some compilers
27984 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
27985 static variable whose address is put into a register that is
27986 clobbered by the vfork. */
27987 static void
27988 #ifdef __cplusplus
27989 sparc_address_test (int arg)
27990 # else
27991 sparc_address_test (arg) int arg;
27992 #endif
27994 static pid_t child;
27995 if (!child) {
27996 child = vfork ();
27997 if (child < 0) {
27998 perror ("vfork");
27999 _exit(2);
28001 if (!child) {
28002 arg = getpid();
28003 write(-1, "", 0);
28004 _exit (arg);
28010 main ()
28012 pid_t parent = getpid ();
28013 pid_t child;
28015 sparc_address_test (0);
28017 child = vfork ();
28019 if (child == 0) {
28020 /* Here is another test for sparc vfork register problems. This
28021 test uses lots of local variables, at least as many local
28022 variables as main has allocated so far including compiler
28023 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
28024 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
28025 reuse the register of parent for one of the local variables,
28026 since it will think that parent can't possibly be used any more
28027 in this routine. Assigning to the local variable will thus
28028 munge parent in the parent process. */
28029 pid_t
28030 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
28031 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
28032 /* Convince the compiler that p..p7 are live; otherwise, it might
28033 use the same hardware register for all 8 local variables. */
28034 if (p != p1 || p != p2 || p != p3 || p != p4
28035 || p != p5 || p != p6 || p != p7)
28036 _exit(1);
28038 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
28039 from child file descriptors. If the child closes a descriptor
28040 before it execs or exits, this munges the parent's descriptor
28041 as well. Test for this by closing stdout in the child. */
28042 _exit(close(fileno(stdout)) != 0);
28043 } else {
28044 int status;
28045 struct stat st;
28047 while (wait(&status) != child)
28049 exit(
28050 /* Was there some problem with vforking? */
28051 child < 0
28053 /* Did the child fail? (This shouldn't happen.) */
28054 || status
28056 /* Did the vfork/compiler bug occur? */
28057 || parent != getpid()
28059 /* Did the file descriptor bug occur? */
28060 || fstat(fileno(stdout), &st) != 0
28064 _ACEOF
28065 rm -f conftest$ac_exeext
28066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28067 (eval $ac_link) 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; }; then
28076 ac_cv_func_vfork_works=yes
28077 else
28078 echo "$as_me: program exited with status $ac_status" >&5
28079 echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28082 ( exit $ac_status )
28083 ac_cv_func_vfork_works=no
28085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28088 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
28089 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
28092 if test "x$ac_cv_func_fork_works" = xcross; then
28093 ac_cv_func_vfork_works=$ac_cv_func_vfork
28094 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
28095 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
28098 if test "x$ac_cv_func_vfork_works" = xyes; then
28100 cat >>confdefs.h <<\_ACEOF
28101 #define HAVE_WORKING_VFORK 1
28102 _ACEOF
28104 else
28106 cat >>confdefs.h <<\_ACEOF
28107 #define vfork fork
28108 _ACEOF
28111 if test "x$ac_cv_func_fork_works" = xyes; then
28113 cat >>confdefs.h <<\_ACEOF
28114 #define HAVE_WORKING_FORK 1
28115 _ACEOF
28121 for ac_func in waitpid
28123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28124 echo "$as_me:$LINENO: checking for $ac_func" >&5
28125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28126 if eval "test \"\${$as_ac_var+set}\" = set"; then
28127 echo $ECHO_N "(cached) $ECHO_C" >&6
28128 else
28129 cat >conftest.$ac_ext <<_ACEOF
28130 /* confdefs.h. */
28131 _ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h. */
28135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28137 #define $ac_func innocuous_$ac_func
28139 /* System header to define __stub macros and hopefully few prototypes,
28140 which can conflict with char $ac_func (); below.
28141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28142 <limits.h> exists even on freestanding compilers. */
28144 #ifdef __STDC__
28145 # include <limits.h>
28146 #else
28147 # include <assert.h>
28148 #endif
28150 #undef $ac_func
28152 /* Override any gcc2 internal prototype to avoid an error. */
28153 #ifdef __cplusplus
28154 extern "C"
28156 #endif
28157 /* We use char because int might match the return type of a gcc2
28158 builtin and then its argument prototype would still apply. */
28159 char $ac_func ();
28160 /* The GNU C library defines this for functions which it implements
28161 to always fail with ENOSYS. Some functions are actually named
28162 something starting with __ and the normal name is an alias. */
28163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28164 choke me
28165 #else
28166 char (*f) () = $ac_func;
28167 #endif
28168 #ifdef __cplusplus
28170 #endif
28173 main ()
28175 return f != $ac_func;
28177 return 0;
28179 _ACEOF
28180 rm -f conftest.$ac_objext conftest$ac_exeext
28181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28182 (eval $ac_link) 2>conftest.er1
28183 ac_status=$?
28184 grep -v '^ *+' conftest.er1 >conftest.err
28185 rm -f conftest.er1
28186 cat conftest.err >&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); } &&
28189 { ac_try='test -z "$ac_c_werror_flag"
28190 || test ! -s conftest.err'
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest$ac_exeext'
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202 eval "$as_ac_var=yes"
28203 else
28204 echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28207 eval "$as_ac_var=no"
28209 rm -f conftest.err conftest.$ac_objext \
28210 conftest$ac_exeext conftest.$ac_ext
28212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28214 if test `eval echo '${'$as_ac_var'}'` = yes; then
28215 cat >>confdefs.h <<_ACEOF
28216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28217 _ACEOF
28220 done
28222 echo "$as_me:$LINENO: checking for union wait" >&5
28223 echo $ECHO_N "checking for union wait... $ECHO_C" >&6
28224 if test "${gt_cv_union_wait+set}" = set; then
28225 echo $ECHO_N "(cached) $ECHO_C" >&6
28226 else
28227 cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h. */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h. */
28233 #include <sys/types.h>
28234 #include <sys/wait.h>
28236 main ()
28238 union wait status; int pid; pid = wait (&status);
28239 #ifdef WEXITSTATUS
28240 /* Some POSIXoid systems have both the new-style macros and the old
28241 union wait type, and they do not work together. If union wait
28242 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
28243 if (WEXITSTATUS (status) != 0) pid = -1;
28244 #ifdef WTERMSIG
28245 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
28246 -- blow chunks here --
28247 #endif
28248 #endif
28249 #ifdef HAVE_WAITPID
28250 /* Make sure union wait works with waitpid. */
28251 pid = waitpid (-1, &status, 0);
28252 #endif
28255 return 0;
28257 _ACEOF
28258 rm -f conftest.$ac_objext conftest$ac_exeext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260 (eval $ac_link) 2>conftest.er1
28261 ac_status=$?
28262 grep -v '^ *+' conftest.er1 >conftest.err
28263 rm -f conftest.er1
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } &&
28267 { ac_try='test -z "$ac_c_werror_flag"
28268 || test ! -s conftest.err'
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; } &&
28274 { ac_try='test -s conftest$ac_exeext'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 gt_cv_union_wait=yes
28281 else
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 gt_cv_union_wait=no
28287 rm -f conftest.err conftest.$ac_objext \
28288 conftest$ac_exeext conftest.$ac_ext
28291 if test "$gt_cv_union_wait" = yes; then
28293 cat >>confdefs.h <<\_ACEOF
28294 #define HAVE_UNION_WAIT 1
28295 _ACEOF
28298 echo "$as_me:$LINENO: result: $gt_cv_union_wait" >&5
28299 echo "${ECHO_T}$gt_cv_union_wait" >&6
28302 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28303 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
28304 if test "${ac_cv_header_stat_broken+set}" = set; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
28306 else
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h. */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28313 #include <sys/types.h>
28314 #include <sys/stat.h>
28316 #if defined(S_ISBLK) && defined(S_IFDIR)
28317 # if S_ISBLK (S_IFDIR)
28318 You lose.
28319 # endif
28320 #endif
28322 #if defined(S_ISBLK) && defined(S_IFCHR)
28323 # if S_ISBLK (S_IFCHR)
28324 You lose.
28325 # endif
28326 #endif
28328 #if defined(S_ISLNK) && defined(S_IFREG)
28329 # if S_ISLNK (S_IFREG)
28330 You lose.
28331 # endif
28332 #endif
28334 #if defined(S_ISSOCK) && defined(S_IFREG)
28335 # if S_ISSOCK (S_IFREG)
28336 You lose.
28337 # endif
28338 #endif
28340 _ACEOF
28341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28342 $EGREP "You lose" >/dev/null 2>&1; then
28343 ac_cv_header_stat_broken=yes
28344 else
28345 ac_cv_header_stat_broken=no
28347 rm -f conftest*
28350 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28351 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
28352 if test $ac_cv_header_stat_broken = yes; then
28354 cat >>confdefs.h <<\_ACEOF
28355 #define STAT_MACROS_BROKEN 1
28356 _ACEOF
28361 for ac_func in __secure_getenv
28363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28364 echo "$as_me:$LINENO: checking for $ac_func" >&5
28365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28366 if eval "test \"\${$as_ac_var+set}\" = set"; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28368 else
28369 cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h. */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28377 #define $ac_func innocuous_$ac_func
28379 /* System header to define __stub macros and hopefully few prototypes,
28380 which can conflict with char $ac_func (); below.
28381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28382 <limits.h> exists even on freestanding compilers. */
28384 #ifdef __STDC__
28385 # include <limits.h>
28386 #else
28387 # include <assert.h>
28388 #endif
28390 #undef $ac_func
28392 /* Override any gcc2 internal prototype to avoid an error. */
28393 #ifdef __cplusplus
28394 extern "C"
28396 #endif
28397 /* We use char because int might match the return type of a gcc2
28398 builtin and then its argument prototype would still apply. */
28399 char $ac_func ();
28400 /* The GNU C library defines this for functions which it implements
28401 to always fail with ENOSYS. Some functions are actually named
28402 something starting with __ and the normal name is an alias. */
28403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28404 choke me
28405 #else
28406 char (*f) () = $ac_func;
28407 #endif
28408 #ifdef __cplusplus
28410 #endif
28413 main ()
28415 return f != $ac_func;
28417 return 0;
28419 _ACEOF
28420 rm -f conftest.$ac_objext conftest$ac_exeext
28421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28422 (eval $ac_link) 2>conftest.er1
28423 ac_status=$?
28424 grep -v '^ *+' conftest.er1 >conftest.err
28425 rm -f conftest.er1
28426 cat conftest.err >&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); } &&
28429 { ac_try='test -z "$ac_c_werror_flag"
28430 || test ! -s conftest.err'
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; } &&
28436 { ac_try='test -s conftest$ac_exeext'
28437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438 (eval $ac_try) 2>&5
28439 ac_status=$?
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); }; }; then
28442 eval "$as_ac_var=yes"
28443 else
28444 echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28447 eval "$as_ac_var=no"
28449 rm -f conftest.err conftest.$ac_objext \
28450 conftest$ac_exeext conftest.$ac_ext
28452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28454 if test `eval echo '${'$as_ac_var'}'` = yes; then
28455 cat >>confdefs.h <<_ACEOF
28456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28457 _ACEOF
28460 done
28465 for ac_header in sys/time.h
28467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28469 echo "$as_me:$LINENO: checking for $ac_header" >&5
28470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28476 else
28477 # Is the header compilable?
28478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28480 cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h. */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28486 $ac_includes_default
28487 #include <$ac_header>
28488 _ACEOF
28489 rm -f conftest.$ac_objext
28490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28491 (eval $ac_compile) 2>conftest.er1
28492 ac_status=$?
28493 grep -v '^ *+' conftest.er1 >conftest.err
28494 rm -f conftest.er1
28495 cat conftest.err >&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } &&
28498 { ac_try='test -z "$ac_c_werror_flag"
28499 || test ! -s conftest.err'
28500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501 (eval $ac_try) 2>&5
28502 ac_status=$?
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; } &&
28505 { ac_try='test -s conftest.$ac_objext'
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
28511 ac_header_compiler=yes
28512 else
28513 echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28516 ac_header_compiler=no
28518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28520 echo "${ECHO_T}$ac_header_compiler" >&6
28522 # Is the header present?
28523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28525 cat >conftest.$ac_ext <<_ACEOF
28526 /* confdefs.h. */
28527 _ACEOF
28528 cat confdefs.h >>conftest.$ac_ext
28529 cat >>conftest.$ac_ext <<_ACEOF
28530 /* end confdefs.h. */
28531 #include <$ac_header>
28532 _ACEOF
28533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28535 ac_status=$?
28536 grep -v '^ *+' conftest.er1 >conftest.err
28537 rm -f conftest.er1
28538 cat conftest.err >&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } >/dev/null; then
28541 if test -s conftest.err; then
28542 ac_cpp_err=$ac_c_preproc_warn_flag
28543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28544 else
28545 ac_cpp_err=
28547 else
28548 ac_cpp_err=yes
28550 if test -z "$ac_cpp_err"; then
28551 ac_header_preproc=yes
28552 else
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ac_header_preproc=no
28558 rm -f conftest.err conftest.$ac_ext
28559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28560 echo "${ECHO_T}$ac_header_preproc" >&6
28562 # So? What about this header?
28563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28564 yes:no: )
28565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28569 ac_header_preproc=yes
28571 no:yes:* )
28572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28585 cat <<\_ASBOX
28586 ## ------------------------------------------ ##
28587 ## Report this to the AC_PACKAGE_NAME lists. ##
28588 ## ------------------------------------------ ##
28589 _ASBOX
28591 sed "s/^/$as_me: WARNING: /" >&2
28593 esac
28594 echo "$as_me:$LINENO: checking for $ac_header" >&5
28595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28597 echo $ECHO_N "(cached) $ECHO_C" >&6
28598 else
28599 eval "$as_ac_Header=\$ac_header_preproc"
28601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28608 _ACEOF
28612 done
28617 for ac_header in unistd.h
28619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28621 echo "$as_me:$LINENO: checking for $ac_header" >&5
28622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28628 else
28629 # Is the header compilable?
28630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28632 cat >conftest.$ac_ext <<_ACEOF
28633 /* confdefs.h. */
28634 _ACEOF
28635 cat confdefs.h >>conftest.$ac_ext
28636 cat >>conftest.$ac_ext <<_ACEOF
28637 /* end confdefs.h. */
28638 $ac_includes_default
28639 #include <$ac_header>
28640 _ACEOF
28641 rm -f conftest.$ac_objext
28642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28643 (eval $ac_compile) 2>conftest.er1
28644 ac_status=$?
28645 grep -v '^ *+' conftest.er1 >conftest.err
28646 rm -f conftest.er1
28647 cat conftest.err >&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } &&
28650 { ac_try='test -z "$ac_c_werror_flag"
28651 || test ! -s conftest.err'
28652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653 (eval $ac_try) 2>&5
28654 ac_status=$?
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; } &&
28657 { ac_try='test -s conftest.$ac_objext'
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; }; then
28663 ac_header_compiler=yes
28664 else
28665 echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28668 ac_header_compiler=no
28670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28672 echo "${ECHO_T}$ac_header_compiler" >&6
28674 # Is the header present?
28675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28677 cat >conftest.$ac_ext <<_ACEOF
28678 /* confdefs.h. */
28679 _ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h. */
28683 #include <$ac_header>
28684 _ACEOF
28685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28687 ac_status=$?
28688 grep -v '^ *+' conftest.er1 >conftest.err
28689 rm -f conftest.er1
28690 cat conftest.err >&5
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); } >/dev/null; then
28693 if test -s conftest.err; then
28694 ac_cpp_err=$ac_c_preproc_warn_flag
28695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28696 else
28697 ac_cpp_err=
28699 else
28700 ac_cpp_err=yes
28702 if test -z "$ac_cpp_err"; then
28703 ac_header_preproc=yes
28704 else
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28708 ac_header_preproc=no
28710 rm -f conftest.err conftest.$ac_ext
28711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28712 echo "${ECHO_T}$ac_header_preproc" >&6
28714 # So? What about this header?
28715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28716 yes:no: )
28717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28721 ac_header_preproc=yes
28723 no:yes:* )
28724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28737 cat <<\_ASBOX
28738 ## ------------------------------------------ ##
28739 ## Report this to the AC_PACKAGE_NAME lists. ##
28740 ## ------------------------------------------ ##
28741 _ASBOX
28743 sed "s/^/$as_me: WARNING: /" >&2
28745 esac
28746 echo "$as_me:$LINENO: checking for $ac_header" >&5
28747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28750 else
28751 eval "$as_ac_Header=\$ac_header_preproc"
28753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28758 cat >>confdefs.h <<_ACEOF
28759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28760 _ACEOF
28764 done
28769 for ac_func in mkdtemp
28771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28772 echo "$as_me:$LINENO: checking for $ac_func" >&5
28773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28774 if eval "test \"\${$as_ac_var+set}\" = set"; then
28775 echo $ECHO_N "(cached) $ECHO_C" >&6
28776 else
28777 cat >conftest.$ac_ext <<_ACEOF
28778 /* confdefs.h. */
28779 _ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h. */
28783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28785 #define $ac_func innocuous_$ac_func
28787 /* System header to define __stub macros and hopefully few prototypes,
28788 which can conflict with char $ac_func (); below.
28789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28790 <limits.h> exists even on freestanding compilers. */
28792 #ifdef __STDC__
28793 # include <limits.h>
28794 #else
28795 # include <assert.h>
28796 #endif
28798 #undef $ac_func
28800 /* Override any gcc2 internal prototype to avoid an error. */
28801 #ifdef __cplusplus
28802 extern "C"
28804 #endif
28805 /* We use char because int might match the return type of a gcc2
28806 builtin and then its argument prototype would still apply. */
28807 char $ac_func ();
28808 /* The GNU C library defines this for functions which it implements
28809 to always fail with ENOSYS. Some functions are actually named
28810 something starting with __ and the normal name is an alias. */
28811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28812 choke me
28813 #else
28814 char (*f) () = $ac_func;
28815 #endif
28816 #ifdef __cplusplus
28818 #endif
28821 main ()
28823 return f != $ac_func;
28825 return 0;
28827 _ACEOF
28828 rm -f conftest.$ac_objext conftest$ac_exeext
28829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28830 (eval $ac_link) 2>conftest.er1
28831 ac_status=$?
28832 grep -v '^ *+' conftest.er1 >conftest.err
28833 rm -f conftest.er1
28834 cat conftest.err >&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); } &&
28837 { ac_try='test -z "$ac_c_werror_flag"
28838 || test ! -s conftest.err'
28839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 (eval $ac_try) 2>&5
28841 ac_status=$?
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; } &&
28844 { ac_try='test -s conftest$ac_exeext'
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; }; then
28850 eval "$as_ac_var=yes"
28851 else
28852 echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28855 eval "$as_ac_var=no"
28857 rm -f conftest.err conftest.$ac_objext \
28858 conftest$ac_exeext conftest.$ac_ext
28860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28862 if test `eval echo '${'$as_ac_var'}'` = yes; then
28863 cat >>confdefs.h <<_ACEOF
28864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28865 _ACEOF
28867 else
28868 case $LIBOBJS in
28869 "$ac_func.$ac_objext" | \
28870 *" $ac_func.$ac_objext" | \
28871 "$ac_func.$ac_objext "* | \
28872 *" $ac_func.$ac_objext "* ) ;;
28873 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28874 esac
28877 done
28880 if test $ac_cv_func_mkdtemp = no; then
28894 for ac_header in time.h
28896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28898 echo "$as_me:$LINENO: checking for $ac_header" >&5
28899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28905 else
28906 # Is the header compilable?
28907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28909 cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h. */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h. */
28915 $ac_includes_default
28916 #include <$ac_header>
28917 _ACEOF
28918 rm -f conftest.$ac_objext
28919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28920 (eval $ac_compile) 2>conftest.er1
28921 ac_status=$?
28922 grep -v '^ *+' conftest.er1 >conftest.err
28923 rm -f conftest.er1
28924 cat conftest.err >&5
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); } &&
28927 { ac_try='test -z "$ac_c_werror_flag"
28928 || test ! -s conftest.err'
28929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; } &&
28934 { ac_try='test -s conftest.$ac_objext'
28935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28936 (eval $ac_try) 2>&5
28937 ac_status=$?
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; }; then
28940 ac_header_compiler=yes
28941 else
28942 echo "$as_me: failed program was:" >&5
28943 sed 's/^/| /' conftest.$ac_ext >&5
28945 ac_header_compiler=no
28947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28949 echo "${ECHO_T}$ac_header_compiler" >&6
28951 # Is the header present?
28952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28954 cat >conftest.$ac_ext <<_ACEOF
28955 /* confdefs.h. */
28956 _ACEOF
28957 cat confdefs.h >>conftest.$ac_ext
28958 cat >>conftest.$ac_ext <<_ACEOF
28959 /* end confdefs.h. */
28960 #include <$ac_header>
28961 _ACEOF
28962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28964 ac_status=$?
28965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } >/dev/null; then
28970 if test -s conftest.err; then
28971 ac_cpp_err=$ac_c_preproc_warn_flag
28972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28973 else
28974 ac_cpp_err=
28976 else
28977 ac_cpp_err=yes
28979 if test -z "$ac_cpp_err"; then
28980 ac_header_preproc=yes
28981 else
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ac_header_preproc=no
28987 rm -f conftest.err conftest.$ac_ext
28988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28989 echo "${ECHO_T}$ac_header_preproc" >&6
28991 # So? What about this header?
28992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28993 yes:no: )
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28998 ac_header_preproc=yes
29000 no:yes:* )
29001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29014 cat <<\_ASBOX
29015 ## ------------------------------------------ ##
29016 ## Report this to the AC_PACKAGE_NAME lists. ##
29017 ## ------------------------------------------ ##
29018 _ASBOX
29020 sed "s/^/$as_me: WARNING: /" >&2
29022 esac
29023 echo "$as_me:$LINENO: checking for $ac_header" >&5
29024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028 eval "$as_ac_Header=\$ac_header_preproc"
29030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29037 _ACEOF
29041 done
29045 for ac_func in gettimeofday
29047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29048 echo "$as_me:$LINENO: checking for $ac_func" >&5
29049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29050 if eval "test \"\${$as_ac_var+set}\" = set"; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
29053 cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h. */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29061 #define $ac_func innocuous_$ac_func
29063 /* System header to define __stub macros and hopefully few prototypes,
29064 which can conflict with char $ac_func (); below.
29065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29066 <limits.h> exists even on freestanding compilers. */
29068 #ifdef __STDC__
29069 # include <limits.h>
29070 #else
29071 # include <assert.h>
29072 #endif
29074 #undef $ac_func
29076 /* Override any gcc2 internal prototype to avoid an error. */
29077 #ifdef __cplusplus
29078 extern "C"
29080 #endif
29081 /* We use char because int might match the return type of a gcc2
29082 builtin and then its argument prototype would still apply. */
29083 char $ac_func ();
29084 /* The GNU C library defines this for functions which it implements
29085 to always fail with ENOSYS. Some functions are actually named
29086 something starting with __ and the normal name is an alias. */
29087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29088 choke me
29089 #else
29090 char (*f) () = $ac_func;
29091 #endif
29092 #ifdef __cplusplus
29094 #endif
29097 main ()
29099 return f != $ac_func;
29101 return 0;
29103 _ACEOF
29104 rm -f conftest.$ac_objext conftest$ac_exeext
29105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29106 (eval $ac_link) 2>conftest.er1
29107 ac_status=$?
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag"
29114 || test ! -s conftest.err'
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; } &&
29120 { ac_try='test -s conftest$ac_exeext'
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 eval "$as_ac_var=yes"
29127 else
29128 echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29131 eval "$as_ac_var=no"
29133 rm -f conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
29136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29138 if test `eval echo '${'$as_ac_var'}'` = yes; then
29139 cat >>confdefs.h <<_ACEOF
29140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29141 _ACEOF
29144 done
29150 signals_not_posix=
29151 cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h. */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h. */
29157 #include <signal.h>
29159 _ACEOF
29160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29161 $EGREP "sigset_t" >/dev/null 2>&1; then
29163 else
29164 signals_not_posix=1
29166 rm -f conftest*
29168 if test -z "$signals_not_posix"; then
29169 echo "$as_me:$LINENO: checking for sigprocmask" >&5
29170 echo $ECHO_N "checking for sigprocmask... $ECHO_C" >&6
29171 if test "${ac_cv_func_sigprocmask+set}" = set; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174 cat >conftest.$ac_ext <<_ACEOF
29175 /* confdefs.h. */
29176 _ACEOF
29177 cat confdefs.h >>conftest.$ac_ext
29178 cat >>conftest.$ac_ext <<_ACEOF
29179 /* end confdefs.h. */
29180 /* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
29181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29182 #define sigprocmask innocuous_sigprocmask
29184 /* System header to define __stub macros and hopefully few prototypes,
29185 which can conflict with char sigprocmask (); below.
29186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29187 <limits.h> exists even on freestanding compilers. */
29189 #ifdef __STDC__
29190 # include <limits.h>
29191 #else
29192 # include <assert.h>
29193 #endif
29195 #undef sigprocmask
29197 /* Override any gcc2 internal prototype to avoid an error. */
29198 #ifdef __cplusplus
29199 extern "C"
29201 #endif
29202 /* We use char because int might match the return type of a gcc2
29203 builtin and then its argument prototype would still apply. */
29204 char sigprocmask ();
29205 /* The GNU C library defines this for functions which it implements
29206 to always fail with ENOSYS. Some functions are actually named
29207 something starting with __ and the normal name is an alias. */
29208 #if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
29209 choke me
29210 #else
29211 char (*f) () = sigprocmask;
29212 #endif
29213 #ifdef __cplusplus
29215 #endif
29218 main ()
29220 return f != sigprocmask;
29222 return 0;
29224 _ACEOF
29225 rm -f conftest.$ac_objext conftest$ac_exeext
29226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29227 (eval $ac_link) 2>conftest.er1
29228 ac_status=$?
29229 grep -v '^ *+' conftest.er1 >conftest.err
29230 rm -f conftest.er1
29231 cat conftest.err >&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } &&
29234 { ac_try='test -z "$ac_c_werror_flag"
29235 || test ! -s conftest.err'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest$ac_exeext'
29242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243 (eval $ac_try) 2>&5
29244 ac_status=$?
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_cv_func_sigprocmask=yes
29248 else
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_cv_func_sigprocmask=no
29254 rm -f conftest.err conftest.$ac_objext \
29255 conftest$ac_exeext conftest.$ac_ext
29257 echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
29258 echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6
29259 if test $ac_cv_func_sigprocmask = yes; then
29261 cat >>confdefs.h <<\_ACEOF
29262 #define HAVE_POSIX_SIGNALBLOCKING 1
29263 _ACEOF
29270 echo "$as_me:$LINENO: checking for signal handlers with siginfo_t" >&5
29271 echo $ECHO_N "checking for signal handlers with siginfo_t... $ECHO_C" >&6
29272 if test "${gt_cv_siginfo_t+set}" = set; then
29273 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 else
29275 cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h. */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29282 #include <signal.h>
29284 main ()
29287 struct sigaction action;
29288 siginfo_t info;
29289 action.sa_flags = SA_SIGINFO;
29290 action.sa_sigaction = (void *) 0;
29293 return 0;
29295 _ACEOF
29296 rm -f conftest.$ac_objext
29297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29298 (eval $ac_compile) 2>conftest.er1
29299 ac_status=$?
29300 grep -v '^ *+' conftest.er1 >conftest.err
29301 rm -f conftest.er1
29302 cat conftest.err >&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); } &&
29305 { ac_try='test -z "$ac_c_werror_flag"
29306 || test ! -s conftest.err'
29307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308 (eval $ac_try) 2>&5
29309 ac_status=$?
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; } &&
29312 { ac_try='test -s conftest.$ac_objext'
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; }; then
29318 gt_cv_siginfo_t=yes
29319 else
29320 echo "$as_me: failed program was:" >&5
29321 sed 's/^/| /' conftest.$ac_ext >&5
29323 gt_cv_siginfo_t=no
29325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29327 echo "$as_me:$LINENO: result: $gt_cv_siginfo_t" >&5
29328 echo "${ECHO_T}$gt_cv_siginfo_t" >&6
29329 if test $gt_cv_siginfo_t = yes; then
29331 cat >>confdefs.h <<\_ACEOF
29332 #define HAVE_SIGINFO 1
29333 _ACEOF
29340 for ac_func in setenv unsetenv
29342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29343 echo "$as_me:$LINENO: checking for $ac_func" >&5
29344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29345 if eval "test \"\${$as_ac_var+set}\" = set"; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348 cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h. */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h. */
29354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29356 #define $ac_func innocuous_$ac_func
29358 /* System header to define __stub macros and hopefully few prototypes,
29359 which can conflict with char $ac_func (); below.
29360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29361 <limits.h> exists even on freestanding compilers. */
29363 #ifdef __STDC__
29364 # include <limits.h>
29365 #else
29366 # include <assert.h>
29367 #endif
29369 #undef $ac_func
29371 /* Override any gcc2 internal prototype to avoid an error. */
29372 #ifdef __cplusplus
29373 extern "C"
29375 #endif
29376 /* We use char because int might match the return type of a gcc2
29377 builtin and then its argument prototype would still apply. */
29378 char $ac_func ();
29379 /* The GNU C library defines this for functions which it implements
29380 to always fail with ENOSYS. Some functions are actually named
29381 something starting with __ and the normal name is an alias. */
29382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29383 choke me
29384 #else
29385 char (*f) () = $ac_func;
29386 #endif
29387 #ifdef __cplusplus
29389 #endif
29392 main ()
29394 return f != $ac_func;
29396 return 0;
29398 _ACEOF
29399 rm -f conftest.$ac_objext conftest$ac_exeext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401 (eval $ac_link) 2>conftest.er1
29402 ac_status=$?
29403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag"
29409 || test ! -s conftest.err'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; } &&
29415 { ac_try='test -s conftest$ac_exeext'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421 eval "$as_ac_var=yes"
29422 else
29423 echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29426 eval "$as_ac_var=no"
29428 rm -f conftest.err conftest.$ac_objext \
29429 conftest$ac_exeext conftest.$ac_ext
29431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29433 if test `eval echo '${'$as_ac_var'}'` = yes; then
29434 cat >>confdefs.h <<_ACEOF
29435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29436 _ACEOF
29438 else
29439 case $LIBOBJS in
29440 "$ac_func.$ac_objext" | \
29441 *" $ac_func.$ac_objext" | \
29442 "$ac_func.$ac_objext "* | \
29443 *" $ac_func.$ac_objext "* ) ;;
29444 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29445 esac
29448 done
29451 if test $ac_cv_func_setenv = no; then
29462 for ac_header in search.h
29464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29466 echo "$as_me:$LINENO: checking for $ac_header" >&5
29467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29469 echo $ECHO_N "(cached) $ECHO_C" >&6
29471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29473 else
29474 # Is the header compilable?
29475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29477 cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h. */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h. */
29483 $ac_includes_default
29484 #include <$ac_header>
29485 _ACEOF
29486 rm -f conftest.$ac_objext
29487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29488 (eval $ac_compile) 2>conftest.er1
29489 ac_status=$?
29490 grep -v '^ *+' conftest.er1 >conftest.err
29491 rm -f conftest.er1
29492 cat conftest.err >&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
29495 { ac_try='test -z "$ac_c_werror_flag"
29496 || test ! -s conftest.err'
29497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; } &&
29502 { ac_try='test -s conftest.$ac_objext'
29503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504 (eval $ac_try) 2>&5
29505 ac_status=$?
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); }; }; then
29508 ac_header_compiler=yes
29509 else
29510 echo "$as_me: failed program was:" >&5
29511 sed 's/^/| /' conftest.$ac_ext >&5
29513 ac_header_compiler=no
29515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6
29519 # Is the header present?
29520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h. */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <$ac_header>
29529 _ACEOF
29530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29532 ac_status=$?
29533 grep -v '^ *+' conftest.er1 >conftest.err
29534 rm -f conftest.er1
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } >/dev/null; then
29538 if test -s conftest.err; then
29539 ac_cpp_err=$ac_c_preproc_warn_flag
29540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29541 else
29542 ac_cpp_err=
29544 else
29545 ac_cpp_err=yes
29547 if test -z "$ac_cpp_err"; then
29548 ac_header_preproc=yes
29549 else
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29553 ac_header_preproc=no
29555 rm -f conftest.err conftest.$ac_ext
29556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557 echo "${ECHO_T}$ac_header_preproc" >&6
29559 # So? What about this header?
29560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29561 yes:no: )
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29566 ac_header_preproc=yes
29568 no:yes:* )
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29582 cat <<\_ASBOX
29583 ## ------------------------------------------ ##
29584 ## Report this to the AC_PACKAGE_NAME lists. ##
29585 ## ------------------------------------------ ##
29586 _ASBOX
29588 sed "s/^/$as_me: WARNING: /" >&2
29590 esac
29591 echo "$as_me:$LINENO: checking for $ac_header" >&5
29592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 else
29596 eval "$as_ac_Header=\$ac_header_preproc"
29598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29603 cat >>confdefs.h <<_ACEOF
29604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29605 _ACEOF
29609 done
29612 for ac_func in tsearch
29614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29615 echo "$as_me:$LINENO: checking for $ac_func" >&5
29616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29617 if eval "test \"\${$as_ac_var+set}\" = set"; then
29618 echo $ECHO_N "(cached) $ECHO_C" >&6
29619 else
29620 cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h. */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29628 #define $ac_func innocuous_$ac_func
29630 /* System header to define __stub macros and hopefully few prototypes,
29631 which can conflict with char $ac_func (); below.
29632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29633 <limits.h> exists even on freestanding compilers. */
29635 #ifdef __STDC__
29636 # include <limits.h>
29637 #else
29638 # include <assert.h>
29639 #endif
29641 #undef $ac_func
29643 /* Override any gcc2 internal prototype to avoid an error. */
29644 #ifdef __cplusplus
29645 extern "C"
29647 #endif
29648 /* We use char because int might match the return type of a gcc2
29649 builtin and then its argument prototype would still apply. */
29650 char $ac_func ();
29651 /* The GNU C library defines this for functions which it implements
29652 to always fail with ENOSYS. Some functions are actually named
29653 something starting with __ and the normal name is an alias. */
29654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29655 choke me
29656 #else
29657 char (*f) () = $ac_func;
29658 #endif
29659 #ifdef __cplusplus
29661 #endif
29664 main ()
29666 return f != $ac_func;
29668 return 0;
29670 _ACEOF
29671 rm -f conftest.$ac_objext conftest$ac_exeext
29672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29673 (eval $ac_link) 2>conftest.er1
29674 ac_status=$?
29675 grep -v '^ *+' conftest.er1 >conftest.err
29676 rm -f conftest.er1
29677 cat conftest.err >&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } &&
29680 { ac_try='test -z "$ac_c_werror_flag"
29681 || test ! -s conftest.err'
29682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683 (eval $ac_try) 2>&5
29684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest$ac_exeext'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693 eval "$as_ac_var=yes"
29694 else
29695 echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29698 eval "$as_ac_var=no"
29700 rm -f conftest.err conftest.$ac_objext \
29701 conftest$ac_exeext conftest.$ac_ext
29703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29705 if test `eval echo '${'$as_ac_var'}'` = yes; then
29706 cat >>confdefs.h <<_ACEOF
29707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29708 _ACEOF
29711 done
29715 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
29716 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
29717 if test "${gt_cv_var_errno_declaration+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29719 else
29721 cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h. */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h. */
29727 #include <errno.h>
29728 extern struct { int foo; } errno;
29730 main ()
29732 errno.foo = 1;
29734 return 0;
29736 _ACEOF
29737 rm -f conftest.$ac_objext
29738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29739 (eval $ac_compile) 2>conftest.er1
29740 ac_status=$?
29741 grep -v '^ *+' conftest.er1 >conftest.err
29742 rm -f conftest.er1
29743 cat conftest.err >&5
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); } &&
29746 { ac_try='test -z "$ac_c_werror_flag"
29747 || test ! -s conftest.err'
29748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749 (eval $ac_try) 2>&5
29750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; } &&
29753 { ac_try='test -s conftest.$ac_objext'
29754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755 (eval $ac_try) 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); }; }; then
29759 gt_cv_var_errno_declaration=no
29760 else
29761 echo "$as_me: failed program was:" >&5
29762 sed 's/^/| /' conftest.$ac_ext >&5
29764 gt_cv_var_errno_declaration=yes
29766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29769 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
29770 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
29771 if test $gt_cv_var_errno_declaration = yes; then
29773 cat >>confdefs.h <<\_ACEOF
29774 #define HAVE_ERRNO_DECL 1
29775 _ACEOF
29781 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
29782 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
29783 if test "${gt_cv_var_environ_declaration+set}" = set; then
29784 echo $ECHO_N "(cached) $ECHO_C" >&6
29785 else
29787 cat >conftest.$ac_ext <<_ACEOF
29788 /* confdefs.h. */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29793 #include <unistd.h>
29794 extern struct { int foo; } environ;
29796 main ()
29798 environ.foo = 1;
29800 return 0;
29802 _ACEOF
29803 rm -f conftest.$ac_objext
29804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29805 (eval $ac_compile) 2>conftest.er1
29806 ac_status=$?
29807 grep -v '^ *+' conftest.er1 >conftest.err
29808 rm -f conftest.er1
29809 cat conftest.err >&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); } &&
29812 { ac_try='test -z "$ac_c_werror_flag"
29813 || test ! -s conftest.err'
29814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29815 (eval $ac_try) 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; } &&
29819 { ac_try='test -s conftest.$ac_objext'
29820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29821 (eval $ac_try) 2>&5
29822 ac_status=$?
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); }; }; then
29825 gt_cv_var_environ_declaration=no
29826 else
29827 echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29830 gt_cv_var_environ_declaration=yes
29832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29835 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
29836 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
29837 if test $gt_cv_var_environ_declaration = yes; then
29839 cat >>confdefs.h <<\_ACEOF
29840 #define HAVE_ENVIRON_DECL 1
29841 _ACEOF
29847 if test $ac_cv_func_unsetenv = no; then
29858 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
29859 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
29860 if test "${gt_cv_var_errno_declaration+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 else
29864 cat >conftest.$ac_ext <<_ACEOF
29865 /* confdefs.h. */
29866 _ACEOF
29867 cat confdefs.h >>conftest.$ac_ext
29868 cat >>conftest.$ac_ext <<_ACEOF
29869 /* end confdefs.h. */
29870 #include <errno.h>
29871 extern struct { int foo; } errno;
29873 main ()
29875 errno.foo = 1;
29877 return 0;
29879 _ACEOF
29880 rm -f conftest.$ac_objext
29881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29882 (eval $ac_compile) 2>conftest.er1
29883 ac_status=$?
29884 grep -v '^ *+' conftest.er1 >conftest.err
29885 rm -f conftest.er1
29886 cat conftest.err >&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } &&
29889 { ac_try='test -z "$ac_c_werror_flag"
29890 || test ! -s conftest.err'
29891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892 (eval $ac_try) 2>&5
29893 ac_status=$?
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; } &&
29896 { ac_try='test -s conftest.$ac_objext'
29897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898 (eval $ac_try) 2>&5
29899 ac_status=$?
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; }; then
29902 gt_cv_var_errno_declaration=no
29903 else
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29907 gt_cv_var_errno_declaration=yes
29909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29912 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
29913 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
29914 if test $gt_cv_var_errno_declaration = yes; then
29916 cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_ERRNO_DECL 1
29918 _ACEOF
29924 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
29925 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
29926 if test "${gt_cv_var_environ_declaration+set}" = set; then
29927 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 else
29930 cat >conftest.$ac_ext <<_ACEOF
29931 /* confdefs.h. */
29932 _ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h. */
29936 #include <unistd.h>
29937 extern struct { int foo; } environ;
29939 main ()
29941 environ.foo = 1;
29943 return 0;
29945 _ACEOF
29946 rm -f conftest.$ac_objext
29947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29948 (eval $ac_compile) 2>conftest.er1
29949 ac_status=$?
29950 grep -v '^ *+' conftest.er1 >conftest.err
29951 rm -f conftest.er1
29952 cat conftest.err >&5
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); } &&
29955 { ac_try='test -z "$ac_c_werror_flag"
29956 || test ! -s conftest.err'
29957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29958 (eval $ac_try) 2>&5
29959 ac_status=$?
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); }; } &&
29962 { ac_try='test -s conftest.$ac_objext'
29963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29964 (eval $ac_try) 2>&5
29965 ac_status=$?
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); }; }; then
29968 gt_cv_var_environ_declaration=no
29969 else
29970 echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.$ac_ext >&5
29973 gt_cv_var_environ_declaration=yes
29975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29978 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
29979 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
29980 if test $gt_cv_var_environ_declaration = yes; then
29982 cat >>confdefs.h <<\_ACEOF
29983 #define HAVE_ENVIRON_DECL 1
29984 _ACEOF
29989 else
29990 echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
29991 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
29992 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995 cat >conftest.$ac_ext <<_ACEOF
29996 /* confdefs.h. */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h. */
30001 #include <stdlib.h>
30002 extern
30003 #ifdef __cplusplus
30005 #endif
30006 #if defined(__STDC__) || defined(__cplusplus)
30007 int unsetenv (const char *name);
30008 #else
30009 int unsetenv();
30010 #endif
30013 main ()
30017 return 0;
30019 _ACEOF
30020 rm -f conftest.$ac_objext
30021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30022 (eval $ac_compile) 2>conftest.er1
30023 ac_status=$?
30024 grep -v '^ *+' conftest.er1 >conftest.err
30025 rm -f conftest.er1
30026 cat conftest.err >&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); } &&
30029 { ac_try='test -z "$ac_c_werror_flag"
30030 || test ! -s conftest.err'
30031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032 (eval $ac_try) 2>&5
30033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; } &&
30036 { ac_try='test -s conftest.$ac_objext'
30037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038 (eval $ac_try) 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 gt_cv_func_unsetenv_ret='int'
30043 else
30044 echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30047 gt_cv_func_unsetenv_ret='void'
30049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30051 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
30052 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
30053 if test $gt_cv_func_unsetenv_ret = 'void'; then
30055 cat >>confdefs.h <<\_ACEOF
30056 #define VOID_UNSETENV 1
30057 _ACEOF
30064 for ac_func in strerror
30066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30067 echo "$as_me:$LINENO: checking for $ac_func" >&5
30068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30069 if eval "test \"\${$as_ac_var+set}\" = set"; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072 cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h. */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30080 #define $ac_func innocuous_$ac_func
30082 /* System header to define __stub macros and hopefully few prototypes,
30083 which can conflict with char $ac_func (); below.
30084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085 <limits.h> exists even on freestanding compilers. */
30087 #ifdef __STDC__
30088 # include <limits.h>
30089 #else
30090 # include <assert.h>
30091 #endif
30093 #undef $ac_func
30095 /* Override any gcc2 internal prototype to avoid an error. */
30096 #ifdef __cplusplus
30097 extern "C"
30099 #endif
30100 /* We use char because int might match the return type of a gcc2
30101 builtin and then its argument prototype would still apply. */
30102 char $ac_func ();
30103 /* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
30106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30107 choke me
30108 #else
30109 char (*f) () = $ac_func;
30110 #endif
30111 #ifdef __cplusplus
30113 #endif
30116 main ()
30118 return f != $ac_func;
30120 return 0;
30122 _ACEOF
30123 rm -f conftest.$ac_objext conftest$ac_exeext
30124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30125 (eval $ac_link) 2>conftest.er1
30126 ac_status=$?
30127 grep -v '^ *+' conftest.er1 >conftest.err
30128 rm -f conftest.er1
30129 cat conftest.err >&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
30132 { ac_try='test -z "$ac_c_werror_flag"
30133 || test ! -s conftest.err'
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; } &&
30139 { ac_try='test -s conftest$ac_exeext'
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 eval "$as_ac_var=yes"
30146 else
30147 echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.$ac_ext >&5
30150 eval "$as_ac_var=no"
30152 rm -f conftest.err conftest.$ac_objext \
30153 conftest$ac_exeext conftest.$ac_ext
30155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30157 if test `eval echo '${'$as_ac_var'}'` = yes; then
30158 cat >>confdefs.h <<_ACEOF
30159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160 _ACEOF
30162 else
30163 case $LIBOBJS in
30164 "$ac_func.$ac_objext" | \
30165 *" $ac_func.$ac_objext" | \
30166 "$ac_func.$ac_objext "* | \
30167 *" $ac_func.$ac_objext "* ) ;;
30168 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
30169 esac
30172 done
30175 if test $ac_cv_func_strerror = no; then
30182 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
30183 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
30184 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
30185 echo $ECHO_N "(cached) $ECHO_C" >&6
30186 else
30187 cat >conftest.$ac_ext <<_ACEOF
30188 /* confdefs.h. */
30189 _ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h. */
30193 $ac_includes_default
30195 main ()
30197 #ifndef clearerr_unlocked
30198 char *p = (char *) clearerr_unlocked;
30199 #endif
30202 return 0;
30204 _ACEOF
30205 rm -f conftest.$ac_objext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30207 (eval $ac_compile) 2>conftest.er1
30208 ac_status=$?
30209 grep -v '^ *+' conftest.er1 >conftest.err
30210 rm -f conftest.er1
30211 cat conftest.err >&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } &&
30214 { ac_try='test -z "$ac_c_werror_flag"
30215 || test ! -s conftest.err'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest.$ac_objext'
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30227 ac_cv_have_decl_clearerr_unlocked=yes
30228 else
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30232 ac_cv_have_decl_clearerr_unlocked=no
30234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
30237 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
30238 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
30240 cat >>confdefs.h <<_ACEOF
30241 #define HAVE_DECL_CLEARERR_UNLOCKED 1
30242 _ACEOF
30245 else
30246 cat >>confdefs.h <<_ACEOF
30247 #define HAVE_DECL_CLEARERR_UNLOCKED 0
30248 _ACEOF
30256 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
30257 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
30258 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30260 else
30261 cat >conftest.$ac_ext <<_ACEOF
30262 /* confdefs.h. */
30263 _ACEOF
30264 cat confdefs.h >>conftest.$ac_ext
30265 cat >>conftest.$ac_ext <<_ACEOF
30266 /* end confdefs.h. */
30267 $ac_includes_default
30269 main ()
30271 #ifndef feof_unlocked
30272 char *p = (char *) feof_unlocked;
30273 #endif
30276 return 0;
30278 _ACEOF
30279 rm -f conftest.$ac_objext
30280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30281 (eval $ac_compile) 2>conftest.er1
30282 ac_status=$?
30283 grep -v '^ *+' conftest.er1 >conftest.err
30284 rm -f conftest.er1
30285 cat conftest.err >&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); } &&
30288 { ac_try='test -z "$ac_c_werror_flag"
30289 || test ! -s conftest.err'
30290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30291 (eval $ac_try) 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try='test -s conftest.$ac_objext'
30296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30297 (eval $ac_try) 2>&5
30298 ac_status=$?
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); }; }; then
30301 ac_cv_have_decl_feof_unlocked=yes
30302 else
30303 echo "$as_me: failed program was:" >&5
30304 sed 's/^/| /' conftest.$ac_ext >&5
30306 ac_cv_have_decl_feof_unlocked=no
30308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30310 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
30311 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
30312 if test $ac_cv_have_decl_feof_unlocked = yes; then
30314 cat >>confdefs.h <<_ACEOF
30315 #define HAVE_DECL_FEOF_UNLOCKED 1
30316 _ACEOF
30319 else
30320 cat >>confdefs.h <<_ACEOF
30321 #define HAVE_DECL_FEOF_UNLOCKED 0
30322 _ACEOF
30330 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
30331 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
30332 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30334 else
30335 cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h. */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h. */
30341 $ac_includes_default
30343 main ()
30345 #ifndef ferror_unlocked
30346 char *p = (char *) ferror_unlocked;
30347 #endif
30350 return 0;
30352 _ACEOF
30353 rm -f conftest.$ac_objext
30354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30355 (eval $ac_compile) 2>conftest.er1
30356 ac_status=$?
30357 grep -v '^ *+' conftest.er1 >conftest.err
30358 rm -f conftest.er1
30359 cat conftest.err >&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); } &&
30362 { ac_try='test -z "$ac_c_werror_flag"
30363 || test ! -s conftest.err'
30364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365 (eval $ac_try) 2>&5
30366 ac_status=$?
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); }; } &&
30369 { ac_try='test -s conftest.$ac_objext'
30370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371 (eval $ac_try) 2>&5
30372 ac_status=$?
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; }; then
30375 ac_cv_have_decl_ferror_unlocked=yes
30376 else
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_cv_have_decl_ferror_unlocked=no
30382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
30385 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
30386 if test $ac_cv_have_decl_ferror_unlocked = yes; then
30388 cat >>confdefs.h <<_ACEOF
30389 #define HAVE_DECL_FERROR_UNLOCKED 1
30390 _ACEOF
30393 else
30394 cat >>confdefs.h <<_ACEOF
30395 #define HAVE_DECL_FERROR_UNLOCKED 0
30396 _ACEOF
30404 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
30405 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
30406 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
30407 echo $ECHO_N "(cached) $ECHO_C" >&6
30408 else
30409 cat >conftest.$ac_ext <<_ACEOF
30410 /* confdefs.h. */
30411 _ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h. */
30415 $ac_includes_default
30417 main ()
30419 #ifndef fflush_unlocked
30420 char *p = (char *) fflush_unlocked;
30421 #endif
30424 return 0;
30426 _ACEOF
30427 rm -f conftest.$ac_objext
30428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30429 (eval $ac_compile) 2>conftest.er1
30430 ac_status=$?
30431 grep -v '^ *+' conftest.er1 >conftest.err
30432 rm -f conftest.er1
30433 cat conftest.err >&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } &&
30436 { ac_try='test -z "$ac_c_werror_flag"
30437 || test ! -s conftest.err'
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest.$ac_objext'
30444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445 (eval $ac_try) 2>&5
30446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; }; then
30449 ac_cv_have_decl_fflush_unlocked=yes
30450 else
30451 echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30454 ac_cv_have_decl_fflush_unlocked=no
30456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30458 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
30459 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
30460 if test $ac_cv_have_decl_fflush_unlocked = yes; then
30462 cat >>confdefs.h <<_ACEOF
30463 #define HAVE_DECL_FFLUSH_UNLOCKED 1
30464 _ACEOF
30467 else
30468 cat >>confdefs.h <<_ACEOF
30469 #define HAVE_DECL_FFLUSH_UNLOCKED 0
30470 _ACEOF
30478 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
30479 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
30480 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
30481 echo $ECHO_N "(cached) $ECHO_C" >&6
30482 else
30483 cat >conftest.$ac_ext <<_ACEOF
30484 /* confdefs.h. */
30485 _ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h. */
30489 $ac_includes_default
30491 main ()
30493 #ifndef fgets_unlocked
30494 char *p = (char *) fgets_unlocked;
30495 #endif
30498 return 0;
30500 _ACEOF
30501 rm -f conftest.$ac_objext
30502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30503 (eval $ac_compile) 2>conftest.er1
30504 ac_status=$?
30505 grep -v '^ *+' conftest.er1 >conftest.err
30506 rm -f conftest.er1
30507 cat conftest.err >&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } &&
30510 { ac_try='test -z "$ac_c_werror_flag"
30511 || test ! -s conftest.err'
30512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30513 (eval $ac_try) 2>&5
30514 ac_status=$?
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; } &&
30517 { ac_try='test -s conftest.$ac_objext'
30518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519 (eval $ac_try) 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; }; then
30523 ac_cv_have_decl_fgets_unlocked=yes
30524 else
30525 echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30528 ac_cv_have_decl_fgets_unlocked=no
30530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
30533 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
30534 if test $ac_cv_have_decl_fgets_unlocked = yes; then
30536 cat >>confdefs.h <<_ACEOF
30537 #define HAVE_DECL_FGETS_UNLOCKED 1
30538 _ACEOF
30541 else
30542 cat >>confdefs.h <<_ACEOF
30543 #define HAVE_DECL_FGETS_UNLOCKED 0
30544 _ACEOF
30552 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
30553 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
30554 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556 else
30557 cat >conftest.$ac_ext <<_ACEOF
30558 /* confdefs.h. */
30559 _ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h. */
30563 $ac_includes_default
30565 main ()
30567 #ifndef fputc_unlocked
30568 char *p = (char *) fputc_unlocked;
30569 #endif
30572 return 0;
30574 _ACEOF
30575 rm -f conftest.$ac_objext
30576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30577 (eval $ac_compile) 2>conftest.er1
30578 ac_status=$?
30579 grep -v '^ *+' conftest.er1 >conftest.err
30580 rm -f conftest.er1
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } &&
30584 { ac_try='test -z "$ac_c_werror_flag"
30585 || test ! -s conftest.err'
30586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587 (eval $ac_try) 2>&5
30588 ac_status=$?
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; } &&
30591 { ac_try='test -s conftest.$ac_objext'
30592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593 (eval $ac_try) 2>&5
30594 ac_status=$?
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; }; then
30597 ac_cv_have_decl_fputc_unlocked=yes
30598 else
30599 echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.$ac_ext >&5
30602 ac_cv_have_decl_fputc_unlocked=no
30604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30606 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
30607 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
30608 if test $ac_cv_have_decl_fputc_unlocked = yes; then
30610 cat >>confdefs.h <<_ACEOF
30611 #define HAVE_DECL_FPUTC_UNLOCKED 1
30612 _ACEOF
30615 else
30616 cat >>confdefs.h <<_ACEOF
30617 #define HAVE_DECL_FPUTC_UNLOCKED 0
30618 _ACEOF
30626 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
30627 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
30628 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30630 else
30631 cat >conftest.$ac_ext <<_ACEOF
30632 /* confdefs.h. */
30633 _ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h. */
30637 $ac_includes_default
30639 main ()
30641 #ifndef fputs_unlocked
30642 char *p = (char *) fputs_unlocked;
30643 #endif
30646 return 0;
30648 _ACEOF
30649 rm -f conftest.$ac_objext
30650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30651 (eval $ac_compile) 2>conftest.er1
30652 ac_status=$?
30653 grep -v '^ *+' conftest.er1 >conftest.err
30654 rm -f conftest.er1
30655 cat conftest.err >&5
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); } &&
30658 { ac_try='test -z "$ac_c_werror_flag"
30659 || test ! -s conftest.err'
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; } &&
30665 { ac_try='test -s conftest.$ac_objext'
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30668 ac_status=$?
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; }; then
30671 ac_cv_have_decl_fputs_unlocked=yes
30672 else
30673 echo "$as_me: failed program was:" >&5
30674 sed 's/^/| /' conftest.$ac_ext >&5
30676 ac_cv_have_decl_fputs_unlocked=no
30678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30680 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
30681 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
30682 if test $ac_cv_have_decl_fputs_unlocked = yes; then
30684 cat >>confdefs.h <<_ACEOF
30685 #define HAVE_DECL_FPUTS_UNLOCKED 1
30686 _ACEOF
30689 else
30690 cat >>confdefs.h <<_ACEOF
30691 #define HAVE_DECL_FPUTS_UNLOCKED 0
30692 _ACEOF
30700 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
30701 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
30702 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705 cat >conftest.$ac_ext <<_ACEOF
30706 /* confdefs.h. */
30707 _ACEOF
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h. */
30711 $ac_includes_default
30713 main ()
30715 #ifndef fread_unlocked
30716 char *p = (char *) fread_unlocked;
30717 #endif
30720 return 0;
30722 _ACEOF
30723 rm -f conftest.$ac_objext
30724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30725 (eval $ac_compile) 2>conftest.er1
30726 ac_status=$?
30727 grep -v '^ *+' conftest.er1 >conftest.err
30728 rm -f conftest.er1
30729 cat conftest.err >&5
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); } &&
30732 { ac_try='test -z "$ac_c_werror_flag"
30733 || test ! -s conftest.err'
30734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735 (eval $ac_try) 2>&5
30736 ac_status=$?
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; } &&
30739 { ac_try='test -s conftest.$ac_objext'
30740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741 (eval $ac_try) 2>&5
30742 ac_status=$?
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; }; then
30745 ac_cv_have_decl_fread_unlocked=yes
30746 else
30747 echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30750 ac_cv_have_decl_fread_unlocked=no
30752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30754 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
30755 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
30756 if test $ac_cv_have_decl_fread_unlocked = yes; then
30758 cat >>confdefs.h <<_ACEOF
30759 #define HAVE_DECL_FREAD_UNLOCKED 1
30760 _ACEOF
30763 else
30764 cat >>confdefs.h <<_ACEOF
30765 #define HAVE_DECL_FREAD_UNLOCKED 0
30766 _ACEOF
30774 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
30775 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
30776 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
30777 echo $ECHO_N "(cached) $ECHO_C" >&6
30778 else
30779 cat >conftest.$ac_ext <<_ACEOF
30780 /* confdefs.h. */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30785 $ac_includes_default
30787 main ()
30789 #ifndef fwrite_unlocked
30790 char *p = (char *) fwrite_unlocked;
30791 #endif
30794 return 0;
30796 _ACEOF
30797 rm -f conftest.$ac_objext
30798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30799 (eval $ac_compile) 2>conftest.er1
30800 ac_status=$?
30801 grep -v '^ *+' conftest.er1 >conftest.err
30802 rm -f conftest.er1
30803 cat conftest.err >&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); } &&
30806 { ac_try='test -z "$ac_c_werror_flag"
30807 || test ! -s conftest.err'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30810 ac_status=$?
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; } &&
30813 { ac_try='test -s conftest.$ac_objext'
30814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30815 (eval $ac_try) 2>&5
30816 ac_status=$?
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); }; }; then
30819 ac_cv_have_decl_fwrite_unlocked=yes
30820 else
30821 echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30824 ac_cv_have_decl_fwrite_unlocked=no
30826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
30829 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
30830 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
30832 cat >>confdefs.h <<_ACEOF
30833 #define HAVE_DECL_FWRITE_UNLOCKED 1
30834 _ACEOF
30837 else
30838 cat >>confdefs.h <<_ACEOF
30839 #define HAVE_DECL_FWRITE_UNLOCKED 0
30840 _ACEOF
30848 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
30849 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
30850 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
30851 echo $ECHO_N "(cached) $ECHO_C" >&6
30852 else
30853 cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h. */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h. */
30859 $ac_includes_default
30861 main ()
30863 #ifndef getc_unlocked
30864 char *p = (char *) getc_unlocked;
30865 #endif
30868 return 0;
30870 _ACEOF
30871 rm -f conftest.$ac_objext
30872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30873 (eval $ac_compile) 2>conftest.er1
30874 ac_status=$?
30875 grep -v '^ *+' conftest.er1 >conftest.err
30876 rm -f conftest.er1
30877 cat conftest.err >&5
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } &&
30880 { ac_try='test -z "$ac_c_werror_flag"
30881 || test ! -s conftest.err'
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; } &&
30887 { ac_try='test -s conftest.$ac_objext'
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; }; then
30893 ac_cv_have_decl_getc_unlocked=yes
30894 else
30895 echo "$as_me: failed program was:" >&5
30896 sed 's/^/| /' conftest.$ac_ext >&5
30898 ac_cv_have_decl_getc_unlocked=no
30900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30902 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
30903 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
30904 if test $ac_cv_have_decl_getc_unlocked = yes; then
30906 cat >>confdefs.h <<_ACEOF
30907 #define HAVE_DECL_GETC_UNLOCKED 1
30908 _ACEOF
30911 else
30912 cat >>confdefs.h <<_ACEOF
30913 #define HAVE_DECL_GETC_UNLOCKED 0
30914 _ACEOF
30922 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
30923 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
30924 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30926 else
30927 cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h. */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 $ac_includes_default
30935 main ()
30937 #ifndef getchar_unlocked
30938 char *p = (char *) getchar_unlocked;
30939 #endif
30942 return 0;
30944 _ACEOF
30945 rm -f conftest.$ac_objext
30946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30947 (eval $ac_compile) 2>conftest.er1
30948 ac_status=$?
30949 grep -v '^ *+' conftest.er1 >conftest.err
30950 rm -f conftest.er1
30951 cat conftest.err >&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); } &&
30954 { ac_try='test -z "$ac_c_werror_flag"
30955 || test ! -s conftest.err'
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; } &&
30961 { ac_try='test -s conftest.$ac_objext'
30962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963 (eval $ac_try) 2>&5
30964 ac_status=$?
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; }; then
30967 ac_cv_have_decl_getchar_unlocked=yes
30968 else
30969 echo "$as_me: failed program was:" >&5
30970 sed 's/^/| /' conftest.$ac_ext >&5
30972 ac_cv_have_decl_getchar_unlocked=no
30974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
30977 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
30978 if test $ac_cv_have_decl_getchar_unlocked = yes; then
30980 cat >>confdefs.h <<_ACEOF
30981 #define HAVE_DECL_GETCHAR_UNLOCKED 1
30982 _ACEOF
30985 else
30986 cat >>confdefs.h <<_ACEOF
30987 #define HAVE_DECL_GETCHAR_UNLOCKED 0
30988 _ACEOF
30996 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
30997 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
30998 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
30999 echo $ECHO_N "(cached) $ECHO_C" >&6
31000 else
31001 cat >conftest.$ac_ext <<_ACEOF
31002 /* confdefs.h. */
31003 _ACEOF
31004 cat confdefs.h >>conftest.$ac_ext
31005 cat >>conftest.$ac_ext <<_ACEOF
31006 /* end confdefs.h. */
31007 $ac_includes_default
31009 main ()
31011 #ifndef putc_unlocked
31012 char *p = (char *) putc_unlocked;
31013 #endif
31016 return 0;
31018 _ACEOF
31019 rm -f conftest.$ac_objext
31020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31021 (eval $ac_compile) 2>conftest.er1
31022 ac_status=$?
31023 grep -v '^ *+' conftest.er1 >conftest.err
31024 rm -f conftest.er1
31025 cat conftest.err >&5
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); } &&
31028 { ac_try='test -z "$ac_c_werror_flag"
31029 || test ! -s conftest.err'
31030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31031 (eval $ac_try) 2>&5
31032 ac_status=$?
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); }; } &&
31035 { ac_try='test -s conftest.$ac_objext'
31036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037 (eval $ac_try) 2>&5
31038 ac_status=$?
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; }; then
31041 ac_cv_have_decl_putc_unlocked=yes
31042 else
31043 echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31046 ac_cv_have_decl_putc_unlocked=no
31048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31050 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
31051 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
31052 if test $ac_cv_have_decl_putc_unlocked = yes; then
31054 cat >>confdefs.h <<_ACEOF
31055 #define HAVE_DECL_PUTC_UNLOCKED 1
31056 _ACEOF
31059 else
31060 cat >>confdefs.h <<_ACEOF
31061 #define HAVE_DECL_PUTC_UNLOCKED 0
31062 _ACEOF
31070 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
31071 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
31072 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
31073 echo $ECHO_N "(cached) $ECHO_C" >&6
31074 else
31075 cat >conftest.$ac_ext <<_ACEOF
31076 /* confdefs.h. */
31077 _ACEOF
31078 cat confdefs.h >>conftest.$ac_ext
31079 cat >>conftest.$ac_ext <<_ACEOF
31080 /* end confdefs.h. */
31081 $ac_includes_default
31083 main ()
31085 #ifndef putchar_unlocked
31086 char *p = (char *) putchar_unlocked;
31087 #endif
31090 return 0;
31092 _ACEOF
31093 rm -f conftest.$ac_objext
31094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31095 (eval $ac_compile) 2>conftest.er1
31096 ac_status=$?
31097 grep -v '^ *+' conftest.er1 >conftest.err
31098 rm -f conftest.er1
31099 cat conftest.err >&5
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); } &&
31102 { ac_try='test -z "$ac_c_werror_flag"
31103 || test ! -s conftest.err'
31104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31105 (eval $ac_try) 2>&5
31106 ac_status=$?
31107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108 (exit $ac_status); }; } &&
31109 { ac_try='test -s conftest.$ac_objext'
31110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111 (eval $ac_try) 2>&5
31112 ac_status=$?
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; }; then
31115 ac_cv_have_decl_putchar_unlocked=yes
31116 else
31117 echo "$as_me: failed program was:" >&5
31118 sed 's/^/| /' conftest.$ac_ext >&5
31120 ac_cv_have_decl_putchar_unlocked=no
31122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31124 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
31125 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
31126 if test $ac_cv_have_decl_putchar_unlocked = yes; then
31128 cat >>confdefs.h <<_ACEOF
31129 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
31130 _ACEOF
31133 else
31134 cat >>confdefs.h <<_ACEOF
31135 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
31136 _ACEOF
31145 cat >>confdefs.h <<\_ACEOF
31146 #define USE_UNLOCKED_IO 1
31147 _ACEOF
31196 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
31197 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
31198 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
31199 echo $ECHO_N "(cached) $ECHO_C" >&6
31200 else
31201 cat >conftest.$ac_ext <<_ACEOF
31202 /* confdefs.h. */
31203 _ACEOF
31204 cat confdefs.h >>conftest.$ac_ext
31205 cat >>conftest.$ac_ext <<_ACEOF
31206 /* end confdefs.h. */
31207 $ac_includes_default
31209 main ()
31211 #ifndef strerror_r
31212 char *p = (char *) strerror_r;
31213 #endif
31216 return 0;
31218 _ACEOF
31219 rm -f conftest.$ac_objext
31220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31221 (eval $ac_compile) 2>conftest.er1
31222 ac_status=$?
31223 grep -v '^ *+' conftest.er1 >conftest.err
31224 rm -f conftest.er1
31225 cat conftest.err >&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); } &&
31228 { ac_try='test -z "$ac_c_werror_flag"
31229 || test ! -s conftest.err'
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; } &&
31235 { ac_try='test -s conftest.$ac_objext'
31236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31237 (eval $ac_try) 2>&5
31238 ac_status=$?
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); }; }; then
31241 ac_cv_have_decl_strerror_r=yes
31242 else
31243 echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31246 ac_cv_have_decl_strerror_r=no
31248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31250 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
31251 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
31252 if test $ac_cv_have_decl_strerror_r = yes; then
31254 cat >>confdefs.h <<_ACEOF
31255 #define HAVE_DECL_STRERROR_R 1
31256 _ACEOF
31259 else
31260 cat >>confdefs.h <<_ACEOF
31261 #define HAVE_DECL_STRERROR_R 0
31262 _ACEOF
31269 for ac_func in strerror_r
31271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31272 echo "$as_me:$LINENO: checking for $ac_func" >&5
31273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31274 if eval "test \"\${$as_ac_var+set}\" = set"; then
31275 echo $ECHO_N "(cached) $ECHO_C" >&6
31276 else
31277 cat >conftest.$ac_ext <<_ACEOF
31278 /* confdefs.h. */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h. */
31283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31285 #define $ac_func innocuous_$ac_func
31287 /* System header to define __stub macros and hopefully few prototypes,
31288 which can conflict with char $ac_func (); below.
31289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31290 <limits.h> exists even on freestanding compilers. */
31292 #ifdef __STDC__
31293 # include <limits.h>
31294 #else
31295 # include <assert.h>
31296 #endif
31298 #undef $ac_func
31300 /* Override any gcc2 internal prototype to avoid an error. */
31301 #ifdef __cplusplus
31302 extern "C"
31304 #endif
31305 /* We use char because int might match the return type of a gcc2
31306 builtin and then its argument prototype would still apply. */
31307 char $ac_func ();
31308 /* The GNU C library defines this for functions which it implements
31309 to always fail with ENOSYS. Some functions are actually named
31310 something starting with __ and the normal name is an alias. */
31311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31312 choke me
31313 #else
31314 char (*f) () = $ac_func;
31315 #endif
31316 #ifdef __cplusplus
31318 #endif
31321 main ()
31323 return f != $ac_func;
31325 return 0;
31327 _ACEOF
31328 rm -f conftest.$ac_objext conftest$ac_exeext
31329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31330 (eval $ac_link) 2>conftest.er1
31331 ac_status=$?
31332 grep -v '^ *+' conftest.er1 >conftest.err
31333 rm -f conftest.er1
31334 cat conftest.err >&5
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); } &&
31337 { ac_try='test -z "$ac_c_werror_flag"
31338 || test ! -s conftest.err'
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
31350 eval "$as_ac_var=yes"
31351 else
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 eval "$as_ac_var=no"
31357 rm -f conftest.err conftest.$ac_objext \
31358 conftest$ac_exeext conftest.$ac_ext
31360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31362 if test `eval echo '${'$as_ac_var'}'` = yes; then
31363 cat >>confdefs.h <<_ACEOF
31364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31365 _ACEOF
31368 done
31370 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
31371 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
31372 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31376 ac_cv_func_strerror_r_char_p=no
31377 if test $ac_cv_have_decl_strerror_r = yes; then
31378 cat >conftest.$ac_ext <<_ACEOF
31379 /* confdefs.h. */
31380 _ACEOF
31381 cat confdefs.h >>conftest.$ac_ext
31382 cat >>conftest.$ac_ext <<_ACEOF
31383 /* end confdefs.h. */
31384 $ac_includes_default
31386 main ()
31389 char buf[100];
31390 char x = *strerror_r (0, buf, sizeof buf);
31391 char *p = strerror_r (0, buf, sizeof buf);
31394 return 0;
31396 _ACEOF
31397 rm -f conftest.$ac_objext
31398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31399 (eval $ac_compile) 2>conftest.er1
31400 ac_status=$?
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
31406 { ac_try='test -z "$ac_c_werror_flag"
31407 || test ! -s conftest.err'
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest.$ac_objext'
31414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415 (eval $ac_try) 2>&5
31416 ac_status=$?
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
31419 ac_cv_func_strerror_r_char_p=yes
31420 else
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31426 else
31427 # strerror_r is not declared. Choose between
31428 # systems that have relatively inaccessible declarations for the
31429 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
31430 # former has a strerror_r that returns char*, while the latter
31431 # has a strerror_r that returns `int'.
31432 # This test should segfault on the DEC system.
31433 if test "$cross_compiling" = yes; then
31435 else
31436 cat >conftest.$ac_ext <<_ACEOF
31437 /* confdefs.h. */
31438 _ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h. */
31442 $ac_includes_default
31443 extern char *strerror_r ();
31445 main ()
31447 char buf[100];
31448 char x = *strerror_r (0, buf, sizeof buf);
31449 exit (!isalpha (x));
31451 return 0;
31453 _ACEOF
31454 rm -f conftest$ac_exeext
31455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31456 (eval $ac_link) 2>&5
31457 ac_status=$?
31458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31461 (eval $ac_try) 2>&5
31462 ac_status=$?
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); }; }; then
31465 ac_cv_func_strerror_r_char_p=yes
31466 else
31467 echo "$as_me: program exited with status $ac_status" >&5
31468 echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.$ac_ext >&5
31472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31477 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
31478 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
31479 if test $ac_cv_func_strerror_r_char_p = yes; then
31481 cat >>confdefs.h <<\_ACEOF
31482 #define STRERROR_R_CHAR_P 1
31483 _ACEOF
31488 echo "$as_me:$LINENO: checking for error_at_line" >&5
31489 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
31490 if test "${ac_cv_lib_error_at_line+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h. */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 $ac_includes_default
31501 main ()
31503 error_at_line (0, 0, "", 0, "");
31505 return 0;
31507 _ACEOF
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31510 (eval $ac_link) 2>conftest.er1
31511 ac_status=$?
31512 grep -v '^ *+' conftest.er1 >conftest.err
31513 rm -f conftest.er1
31514 cat conftest.err >&5
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); } &&
31517 { ac_try='test -z "$ac_c_werror_flag"
31518 || test ! -s conftest.err'
31519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520 (eval $ac_try) 2>&5
31521 ac_status=$?
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); }; } &&
31524 { ac_try='test -s conftest$ac_exeext'
31525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31526 (eval $ac_try) 2>&5
31527 ac_status=$?
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; }; then
31530 ac_cv_lib_error_at_line=yes
31531 else
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31535 ac_cv_lib_error_at_line=no
31537 rm -f conftest.err conftest.$ac_objext \
31538 conftest$ac_exeext conftest.$ac_ext
31540 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
31541 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
31542 if test $ac_cv_lib_error_at_line = no; then
31543 case $LIBOBJS in
31544 "error.$ac_objext" | \
31545 *" error.$ac_objext" | \
31546 "error.$ac_objext "* | \
31547 *" error.$ac_objext "* ) ;;
31548 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
31549 esac
31579 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31580 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31581 if test "${ac_cv_type_mbstate_t+set}" = set; then
31582 echo $ECHO_N "(cached) $ECHO_C" >&6
31583 else
31584 cat >conftest.$ac_ext <<_ACEOF
31585 /* confdefs.h. */
31586 _ACEOF
31587 cat confdefs.h >>conftest.$ac_ext
31588 cat >>conftest.$ac_ext <<_ACEOF
31589 /* end confdefs.h. */
31590 $ac_includes_default
31591 # include <wchar.h>
31593 main ()
31595 mbstate_t x; return sizeof x;
31597 return 0;
31599 _ACEOF
31600 rm -f conftest.$ac_objext
31601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31602 (eval $ac_compile) 2>conftest.er1
31603 ac_status=$?
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
31609 { ac_try='test -z "$ac_c_werror_flag"
31610 || test ! -s conftest.err'
31611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612 (eval $ac_try) 2>&5
31613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; } &&
31616 { ac_try='test -s conftest.$ac_objext'
31617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618 (eval $ac_try) 2>&5
31619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
31622 ac_cv_type_mbstate_t=yes
31623 else
31624 echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.$ac_ext >&5
31627 ac_cv_type_mbstate_t=no
31629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31631 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31632 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31633 if test $ac_cv_type_mbstate_t = yes; then
31635 cat >>confdefs.h <<\_ACEOF
31636 #define HAVE_MBSTATE_T 1
31637 _ACEOF
31639 else
31641 cat >>confdefs.h <<\_ACEOF
31642 #define mbstate_t int
31643 _ACEOF
31647 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
31648 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
31649 if test "${gl_cv_func_mbrtowc+set}" = set; then
31650 echo $ECHO_N "(cached) $ECHO_C" >&6
31651 else
31652 cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h. */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31658 #include <wchar.h>
31660 main ()
31662 mbstate_t state; return ! (sizeof state && mbrtowc);
31664 return 0;
31666 _ACEOF
31667 rm -f conftest.$ac_objext conftest$ac_exeext
31668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31669 (eval $ac_link) 2>conftest.er1
31670 ac_status=$?
31671 grep -v '^ *+' conftest.er1 >conftest.err
31672 rm -f conftest.er1
31673 cat conftest.err >&5
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } &&
31676 { ac_try='test -z "$ac_c_werror_flag"
31677 || test ! -s conftest.err'
31678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31679 (eval $ac_try) 2>&5
31680 ac_status=$?
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); }; } &&
31683 { ac_try='test -s conftest$ac_exeext'
31684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31685 (eval $ac_try) 2>&5
31686 ac_status=$?
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; }; then
31689 gl_cv_func_mbrtowc=yes
31690 else
31691 echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31694 gl_cv_func_mbrtowc=no
31696 rm -f conftest.err conftest.$ac_objext \
31697 conftest$ac_exeext conftest.$ac_ext
31699 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
31700 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
31701 if test $gl_cv_func_mbrtowc = yes; then
31703 cat >>confdefs.h <<\_ACEOF
31704 #define HAVE_MBRTOWC 1
31705 _ACEOF
31714 for ac_header in sys/param.h
31716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31718 echo "$as_me:$LINENO: checking for $ac_header" >&5
31719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31721 echo $ECHO_N "(cached) $ECHO_C" >&6
31723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31725 else
31726 # Is the header compilable?
31727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31729 cat >conftest.$ac_ext <<_ACEOF
31730 /* confdefs.h. */
31731 _ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h. */
31735 $ac_includes_default
31736 #include <$ac_header>
31737 _ACEOF
31738 rm -f conftest.$ac_objext
31739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31740 (eval $ac_compile) 2>conftest.er1
31741 ac_status=$?
31742 grep -v '^ *+' conftest.er1 >conftest.err
31743 rm -f conftest.er1
31744 cat conftest.err >&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); } &&
31747 { ac_try='test -z "$ac_c_werror_flag"
31748 || test ! -s conftest.err'
31749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750 (eval $ac_try) 2>&5
31751 ac_status=$?
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; } &&
31754 { ac_try='test -s conftest.$ac_objext'
31755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31756 (eval $ac_try) 2>&5
31757 ac_status=$?
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
31760 ac_header_compiler=yes
31761 else
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 ac_header_compiler=no
31767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31769 echo "${ECHO_T}$ac_header_compiler" >&6
31771 # Is the header present?
31772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31774 cat >conftest.$ac_ext <<_ACEOF
31775 /* confdefs.h. */
31776 _ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h. */
31780 #include <$ac_header>
31781 _ACEOF
31782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31784 ac_status=$?
31785 grep -v '^ *+' conftest.er1 >conftest.err
31786 rm -f conftest.er1
31787 cat conftest.err >&5
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); } >/dev/null; then
31790 if test -s conftest.err; then
31791 ac_cpp_err=$ac_c_preproc_warn_flag
31792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31793 else
31794 ac_cpp_err=
31796 else
31797 ac_cpp_err=yes
31799 if test -z "$ac_cpp_err"; then
31800 ac_header_preproc=yes
31801 else
31802 echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31805 ac_header_preproc=no
31807 rm -f conftest.err conftest.$ac_ext
31808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31809 echo "${ECHO_T}$ac_header_preproc" >&6
31811 # So? What about this header?
31812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31813 yes:no: )
31814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31818 ac_header_preproc=yes
31820 no:yes:* )
31821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31834 cat <<\_ASBOX
31835 ## ------------------------------------------ ##
31836 ## Report this to the AC_PACKAGE_NAME lists. ##
31837 ## ------------------------------------------ ##
31838 _ASBOX
31840 sed "s/^/$as_me: WARNING: /" >&2
31842 esac
31843 echo "$as_me:$LINENO: checking for $ac_header" >&5
31844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31846 echo $ECHO_N "(cached) $ECHO_C" >&6
31847 else
31848 eval "$as_ac_Header=\$ac_header_preproc"
31850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31855 cat >>confdefs.h <<_ACEOF
31856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31857 _ACEOF
31861 done
31878 for ac_func in readlink
31880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31881 echo "$as_me:$LINENO: checking for $ac_func" >&5
31882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31883 if eval "test \"\${$as_ac_var+set}\" = set"; then
31884 echo $ECHO_N "(cached) $ECHO_C" >&6
31885 else
31886 cat >conftest.$ac_ext <<_ACEOF
31887 /* confdefs.h. */
31888 _ACEOF
31889 cat confdefs.h >>conftest.$ac_ext
31890 cat >>conftest.$ac_ext <<_ACEOF
31891 /* end confdefs.h. */
31892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31894 #define $ac_func innocuous_$ac_func
31896 /* System header to define __stub macros and hopefully few prototypes,
31897 which can conflict with char $ac_func (); below.
31898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31899 <limits.h> exists even on freestanding compilers. */
31901 #ifdef __STDC__
31902 # include <limits.h>
31903 #else
31904 # include <assert.h>
31905 #endif
31907 #undef $ac_func
31909 /* Override any gcc2 internal prototype to avoid an error. */
31910 #ifdef __cplusplus
31911 extern "C"
31913 #endif
31914 /* We use char because int might match the return type of a gcc2
31915 builtin and then its argument prototype would still apply. */
31916 char $ac_func ();
31917 /* The GNU C library defines this for functions which it implements
31918 to always fail with ENOSYS. Some functions are actually named
31919 something starting with __ and the normal name is an alias. */
31920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31921 choke me
31922 #else
31923 char (*f) () = $ac_func;
31924 #endif
31925 #ifdef __cplusplus
31927 #endif
31930 main ()
31932 return f != $ac_func;
31934 return 0;
31936 _ACEOF
31937 rm -f conftest.$ac_objext conftest$ac_exeext
31938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31939 (eval $ac_link) 2>conftest.er1
31940 ac_status=$?
31941 grep -v '^ *+' conftest.er1 >conftest.err
31942 rm -f conftest.er1
31943 cat conftest.err >&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); } &&
31946 { ac_try='test -z "$ac_c_werror_flag"
31947 || test ! -s conftest.err'
31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949 (eval $ac_try) 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; } &&
31953 { ac_try='test -s conftest$ac_exeext'
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; }; then
31959 eval "$as_ac_var=yes"
31960 else
31961 echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.$ac_ext >&5
31964 eval "$as_ac_var=no"
31966 rm -f conftest.err conftest.$ac_objext \
31967 conftest$ac_exeext conftest.$ac_ext
31969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31971 if test `eval echo '${'$as_ac_var'}'` = yes; then
31972 cat >>confdefs.h <<_ACEOF
31973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31974 _ACEOF
31977 done
31979 if test $ac_cv_func_readlink = no; then
31980 case $LIBOBJS in
31981 "readlink.$ac_objext" | \
31982 *" readlink.$ac_objext" | \
31983 "readlink.$ac_objext "* | \
31984 *" readlink.$ac_objext "* ) ;;
31985 *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
31986 esac
32005 for ac_func in canonicalize_file_name
32007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32008 echo "$as_me:$LINENO: checking for $ac_func" >&5
32009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32010 if eval "test \"\${$as_ac_var+set}\" = set"; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32012 else
32013 cat >conftest.$ac_ext <<_ACEOF
32014 /* confdefs.h. */
32015 _ACEOF
32016 cat confdefs.h >>conftest.$ac_ext
32017 cat >>conftest.$ac_ext <<_ACEOF
32018 /* end confdefs.h. */
32019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32021 #define $ac_func innocuous_$ac_func
32023 /* System header to define __stub macros and hopefully few prototypes,
32024 which can conflict with char $ac_func (); below.
32025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32026 <limits.h> exists even on freestanding compilers. */
32028 #ifdef __STDC__
32029 # include <limits.h>
32030 #else
32031 # include <assert.h>
32032 #endif
32034 #undef $ac_func
32036 /* Override any gcc2 internal prototype to avoid an error. */
32037 #ifdef __cplusplus
32038 extern "C"
32040 #endif
32041 /* We use char because int might match the return type of a gcc2
32042 builtin and then its argument prototype would still apply. */
32043 char $ac_func ();
32044 /* The GNU C library defines this for functions which it implements
32045 to always fail with ENOSYS. Some functions are actually named
32046 something starting with __ and the normal name is an alias. */
32047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32048 choke me
32049 #else
32050 char (*f) () = $ac_func;
32051 #endif
32052 #ifdef __cplusplus
32054 #endif
32057 main ()
32059 return f != $ac_func;
32061 return 0;
32063 _ACEOF
32064 rm -f conftest.$ac_objext conftest$ac_exeext
32065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32066 (eval $ac_link) 2>conftest.er1
32067 ac_status=$?
32068 grep -v '^ *+' conftest.er1 >conftest.err
32069 rm -f conftest.er1
32070 cat conftest.err >&5
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); } &&
32073 { ac_try='test -z "$ac_c_werror_flag"
32074 || test ! -s conftest.err'
32075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076 (eval $ac_try) 2>&5
32077 ac_status=$?
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; } &&
32080 { ac_try='test -s conftest$ac_exeext'
32081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32082 (eval $ac_try) 2>&5
32083 ac_status=$?
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; }; then
32086 eval "$as_ac_var=yes"
32087 else
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 eval "$as_ac_var=no"
32093 rm -f conftest.err conftest.$ac_objext \
32094 conftest$ac_exeext conftest.$ac_ext
32096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32098 if test `eval echo '${'$as_ac_var'}'` = yes; then
32099 cat >>confdefs.h <<_ACEOF
32100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32101 _ACEOF
32104 done
32106 if test $ac_cv_func_canonicalize_file_name = no; then
32107 case $LIBOBJS in
32108 "canonicalize.$ac_objext" | \
32109 *" canonicalize.$ac_objext" | \
32110 "canonicalize.$ac_objext "* | \
32111 *" canonicalize.$ac_objext "* ) ;;
32112 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
32113 esac
32116 cat >>confdefs.h <<\_ACEOF
32117 #define realpath rpl_realpath
32118 _ACEOF
32133 for ac_func in getcwd readlink
32135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32136 echo "$as_me:$LINENO: checking for $ac_func" >&5
32137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32138 if eval "test \"\${$as_ac_var+set}\" = set"; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32140 else
32141 cat >conftest.$ac_ext <<_ACEOF
32142 /* confdefs.h. */
32143 _ACEOF
32144 cat confdefs.h >>conftest.$ac_ext
32145 cat >>conftest.$ac_ext <<_ACEOF
32146 /* end confdefs.h. */
32147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32149 #define $ac_func innocuous_$ac_func
32151 /* System header to define __stub macros and hopefully few prototypes,
32152 which can conflict with char $ac_func (); below.
32153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32154 <limits.h> exists even on freestanding compilers. */
32156 #ifdef __STDC__
32157 # include <limits.h>
32158 #else
32159 # include <assert.h>
32160 #endif
32162 #undef $ac_func
32164 /* Override any gcc2 internal prototype to avoid an error. */
32165 #ifdef __cplusplus
32166 extern "C"
32168 #endif
32169 /* We use char because int might match the return type of a gcc2
32170 builtin and then its argument prototype would still apply. */
32171 char $ac_func ();
32172 /* The GNU C library defines this for functions which it implements
32173 to always fail with ENOSYS. Some functions are actually named
32174 something starting with __ and the normal name is an alias. */
32175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32176 choke me
32177 #else
32178 char (*f) () = $ac_func;
32179 #endif
32180 #ifdef __cplusplus
32182 #endif
32185 main ()
32187 return f != $ac_func;
32189 return 0;
32191 _ACEOF
32192 rm -f conftest.$ac_objext conftest$ac_exeext
32193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32194 (eval $ac_link) 2>conftest.er1
32195 ac_status=$?
32196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } &&
32201 { ac_try='test -z "$ac_c_werror_flag"
32202 || test ! -s conftest.err'
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest$ac_exeext'
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; }; then
32214 eval "$as_ac_var=yes"
32215 else
32216 echo "$as_me: failed program was:" >&5
32217 sed 's/^/| /' conftest.$ac_ext >&5
32219 eval "$as_ac_var=no"
32221 rm -f conftest.err conftest.$ac_objext \
32222 conftest$ac_exeext conftest.$ac_ext
32224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32226 if test `eval echo '${'$as_ac_var'}'` = yes; then
32227 cat >>confdefs.h <<_ACEOF
32228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32229 _ACEOF
32232 done
32239 for ac_header in locale.h
32241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32243 echo "$as_me:$LINENO: checking for $ac_header" >&5
32244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32246 echo $ECHO_N "(cached) $ECHO_C" >&6
32248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32250 else
32251 # Is the header compilable?
32252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32254 cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h. */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h. */
32260 $ac_includes_default
32261 #include <$ac_header>
32262 _ACEOF
32263 rm -f conftest.$ac_objext
32264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32265 (eval $ac_compile) 2>conftest.er1
32266 ac_status=$?
32267 grep -v '^ *+' conftest.er1 >conftest.err
32268 rm -f conftest.er1
32269 cat conftest.err >&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } &&
32272 { ac_try='test -z "$ac_c_werror_flag"
32273 || test ! -s conftest.err'
32274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32275 (eval $ac_try) 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; } &&
32279 { ac_try='test -s conftest.$ac_objext'
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32282 ac_status=$?
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; }; then
32285 ac_header_compiler=yes
32286 else
32287 echo "$as_me: failed program was:" >&5
32288 sed 's/^/| /' conftest.$ac_ext >&5
32290 ac_header_compiler=no
32292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32294 echo "${ECHO_T}$ac_header_compiler" >&6
32296 # Is the header present?
32297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32299 cat >conftest.$ac_ext <<_ACEOF
32300 /* confdefs.h. */
32301 _ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h. */
32305 #include <$ac_header>
32306 _ACEOF
32307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32309 ac_status=$?
32310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } >/dev/null; then
32315 if test -s conftest.err; then
32316 ac_cpp_err=$ac_c_preproc_warn_flag
32317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32318 else
32319 ac_cpp_err=
32321 else
32322 ac_cpp_err=yes
32324 if test -z "$ac_cpp_err"; then
32325 ac_header_preproc=yes
32326 else
32327 echo "$as_me: failed program was:" >&5
32328 sed 's/^/| /' conftest.$ac_ext >&5
32330 ac_header_preproc=no
32332 rm -f conftest.err conftest.$ac_ext
32333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32334 echo "${ECHO_T}$ac_header_preproc" >&6
32336 # So? What about this header?
32337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32338 yes:no: )
32339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32343 ac_header_preproc=yes
32345 no:yes:* )
32346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32359 cat <<\_ASBOX
32360 ## ------------------------------------------ ##
32361 ## Report this to the AC_PACKAGE_NAME lists. ##
32362 ## ------------------------------------------ ##
32363 _ASBOX
32365 sed "s/^/$as_me: WARNING: /" >&2
32367 esac
32368 echo "$as_me:$LINENO: checking for $ac_header" >&5
32369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32371 echo $ECHO_N "(cached) $ECHO_C" >&6
32372 else
32373 eval "$as_ac_Header=\$ac_header_preproc"
32375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32380 cat >>confdefs.h <<_ACEOF
32381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32382 _ACEOF
32386 done
32388 echo "$as_me:$LINENO: checking for setlocale declaration" >&5
32389 echo $ECHO_N "checking for setlocale declaration... $ECHO_C" >&6
32390 if test "${gt_cv_proto_setlocale+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32392 else
32394 cat >conftest.$ac_ext <<_ACEOF
32395 /* confdefs.h. */
32396 _ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h. */
32401 #include <stdlib.h>
32402 #include <locale.h>
32403 extern
32404 #ifdef __cplusplus
32406 #endif
32407 #if defined(__STDC__) || defined(__cplusplus)
32408 char *setlocale (int category, char *locale);
32409 #else
32410 char *setlocale();
32411 #endif
32414 main ()
32418 return 0;
32420 _ACEOF
32421 rm -f conftest.$ac_objext
32422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32423 (eval $ac_compile) 2>conftest.er1
32424 ac_status=$?
32425 grep -v '^ *+' conftest.er1 >conftest.err
32426 rm -f conftest.er1
32427 cat conftest.err >&5
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 (exit $ac_status); } &&
32430 { ac_try='test -z "$ac_c_werror_flag"
32431 || test ! -s conftest.err'
32432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433 (eval $ac_try) 2>&5
32434 ac_status=$?
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; } &&
32437 { ac_try='test -s conftest.$ac_objext'
32438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 (eval $ac_try) 2>&5
32440 ac_status=$?
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); }; }; then
32443 gt_cv_proto_setlocale_arg1=""
32444 else
32445 echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32448 gt_cv_proto_setlocale_arg1="const"
32450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32451 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
32454 gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
32455 echo "$as_me:$LINENO: result: ${ac_t:-
32456 }$gt_cv_proto_setlocale" >&5
32457 echo "${ECHO_T}${ac_t:-
32458 }$gt_cv_proto_setlocale" >&6
32460 cat >>confdefs.h <<_ACEOF
32461 #define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
32462 _ACEOF
32467 for ac_header in stdint.h
32469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32471 echo "$as_me:$LINENO: checking for $ac_header" >&5
32472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32478 else
32479 # Is the header compilable?
32480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32482 cat >conftest.$ac_ext <<_ACEOF
32483 /* confdefs.h. */
32484 _ACEOF
32485 cat confdefs.h >>conftest.$ac_ext
32486 cat >>conftest.$ac_ext <<_ACEOF
32487 /* end confdefs.h. */
32488 $ac_includes_default
32489 #include <$ac_header>
32490 _ACEOF
32491 rm -f conftest.$ac_objext
32492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32493 (eval $ac_compile) 2>conftest.er1
32494 ac_status=$?
32495 grep -v '^ *+' conftest.er1 >conftest.err
32496 rm -f conftest.er1
32497 cat conftest.err >&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_c_werror_flag"
32501 || test ! -s conftest.err'
32502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32503 (eval $ac_try) 2>&5
32504 ac_status=$?
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; } &&
32507 { ac_try='test -s conftest.$ac_objext'
32508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509 (eval $ac_try) 2>&5
32510 ac_status=$?
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; }; then
32513 ac_header_compiler=yes
32514 else
32515 echo "$as_me: failed program was:" >&5
32516 sed 's/^/| /' conftest.$ac_ext >&5
32518 ac_header_compiler=no
32520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32522 echo "${ECHO_T}$ac_header_compiler" >&6
32524 # Is the header present?
32525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32527 cat >conftest.$ac_ext <<_ACEOF
32528 /* confdefs.h. */
32529 _ACEOF
32530 cat confdefs.h >>conftest.$ac_ext
32531 cat >>conftest.$ac_ext <<_ACEOF
32532 /* end confdefs.h. */
32533 #include <$ac_header>
32534 _ACEOF
32535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32537 ac_status=$?
32538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } >/dev/null; then
32543 if test -s conftest.err; then
32544 ac_cpp_err=$ac_c_preproc_warn_flag
32545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32546 else
32547 ac_cpp_err=
32549 else
32550 ac_cpp_err=yes
32552 if test -z "$ac_cpp_err"; then
32553 ac_header_preproc=yes
32554 else
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32558 ac_header_preproc=no
32560 rm -f conftest.err conftest.$ac_ext
32561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32562 echo "${ECHO_T}$ac_header_preproc" >&6
32564 # So? What about this header?
32565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32566 yes:no: )
32567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32571 ac_header_preproc=yes
32573 no:yes:* )
32574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32587 cat <<\_ASBOX
32588 ## ------------------------------------------ ##
32589 ## Report this to the AC_PACKAGE_NAME lists. ##
32590 ## ------------------------------------------ ##
32591 _ASBOX
32593 sed "s/^/$as_me: WARNING: /" >&2
32595 esac
32596 echo "$as_me:$LINENO: checking for $ac_header" >&5
32597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32599 echo $ECHO_N "(cached) $ECHO_C" >&6
32600 else
32601 eval "$as_ac_Header=\$ac_header_preproc"
32603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32608 cat >>confdefs.h <<_ACEOF
32609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32610 _ACEOF
32614 done
32616 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
32617 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
32618 result=
32619 cat >conftest.$ac_ext <<_ACEOF
32620 /* confdefs.h. */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32626 #include <limits.h>
32627 #if HAVE_STDINT_H
32628 #include <stdint.h>
32629 #endif
32630 #ifdef SIZE_MAX
32631 Found it
32632 #endif
32634 _ACEOF
32635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32636 $EGREP "Found it" >/dev/null 2>&1; then
32637 result=yes
32639 rm -f conftest*
32641 if test -z "$result"; then
32642 if test "$cross_compiling" = yes; then
32643 # Depending upon the size, compute the lo and hi bounds.
32644 cat >conftest.$ac_ext <<_ACEOF
32645 /* confdefs.h. */
32646 _ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32650 #include <stddef.h>
32652 main ()
32654 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
32655 test_array [0] = 0
32658 return 0;
32660 _ACEOF
32661 rm -f conftest.$ac_objext
32662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32663 (eval $ac_compile) 2>conftest.er1
32664 ac_status=$?
32665 grep -v '^ *+' conftest.er1 >conftest.err
32666 rm -f conftest.er1
32667 cat conftest.err >&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); } &&
32670 { ac_try='test -z "$ac_c_werror_flag"
32671 || test ! -s conftest.err'
32672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32673 (eval $ac_try) 2>&5
32674 ac_status=$?
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; } &&
32677 { ac_try='test -s conftest.$ac_objext'
32678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679 (eval $ac_try) 2>&5
32680 ac_status=$?
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; }; then
32683 ac_lo=0 ac_mid=0
32684 while :; do
32685 cat >conftest.$ac_ext <<_ACEOF
32686 /* confdefs.h. */
32687 _ACEOF
32688 cat confdefs.h >>conftest.$ac_ext
32689 cat >>conftest.$ac_ext <<_ACEOF
32690 /* end confdefs.h. */
32691 #include <stddef.h>
32693 main ()
32695 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
32696 test_array [0] = 0
32699 return 0;
32701 _ACEOF
32702 rm -f conftest.$ac_objext
32703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32704 (eval $ac_compile) 2>conftest.er1
32705 ac_status=$?
32706 grep -v '^ *+' conftest.er1 >conftest.err
32707 rm -f conftest.er1
32708 cat conftest.err >&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); } &&
32711 { ac_try='test -z "$ac_c_werror_flag"
32712 || test ! -s conftest.err'
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32715 ac_status=$?
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; } &&
32718 { ac_try='test -s conftest.$ac_objext'
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32721 ac_status=$?
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; }; then
32724 ac_hi=$ac_mid; break
32725 else
32726 echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32729 ac_lo=`expr $ac_mid + 1`
32730 if test $ac_lo -le $ac_mid; then
32731 ac_lo= ac_hi=
32732 break
32734 ac_mid=`expr 2 '*' $ac_mid + 1`
32736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32737 done
32738 else
32739 echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32742 cat >conftest.$ac_ext <<_ACEOF
32743 /* confdefs.h. */
32744 _ACEOF
32745 cat confdefs.h >>conftest.$ac_ext
32746 cat >>conftest.$ac_ext <<_ACEOF
32747 /* end confdefs.h. */
32748 #include <stddef.h>
32750 main ()
32752 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
32753 test_array [0] = 0
32756 return 0;
32758 _ACEOF
32759 rm -f conftest.$ac_objext
32760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32761 (eval $ac_compile) 2>conftest.er1
32762 ac_status=$?
32763 grep -v '^ *+' conftest.er1 >conftest.err
32764 rm -f conftest.er1
32765 cat conftest.err >&5
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); } &&
32768 { ac_try='test -z "$ac_c_werror_flag"
32769 || test ! -s conftest.err'
32770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771 (eval $ac_try) 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest.$ac_objext'
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 ac_hi=-1 ac_mid=-1
32782 while :; do
32783 cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h. */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h. */
32789 #include <stddef.h>
32791 main ()
32793 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
32794 test_array [0] = 0
32797 return 0;
32799 _ACEOF
32800 rm -f conftest.$ac_objext
32801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32802 (eval $ac_compile) 2>conftest.er1
32803 ac_status=$?
32804 grep -v '^ *+' conftest.er1 >conftest.err
32805 rm -f conftest.er1
32806 cat conftest.err >&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); } &&
32809 { ac_try='test -z "$ac_c_werror_flag"
32810 || test ! -s conftest.err'
32811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812 (eval $ac_try) 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; } &&
32816 { ac_try='test -s conftest.$ac_objext'
32817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32818 (eval $ac_try) 2>&5
32819 ac_status=$?
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); }; }; then
32822 ac_lo=$ac_mid; break
32823 else
32824 echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32827 ac_hi=`expr '(' $ac_mid ')' - 1`
32828 if test $ac_mid -le $ac_hi; then
32829 ac_lo= ac_hi=
32830 break
32832 ac_mid=`expr 2 '*' $ac_mid`
32834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32835 done
32836 else
32837 echo "$as_me: failed program was:" >&5
32838 sed 's/^/| /' conftest.$ac_ext >&5
32840 ac_lo= ac_hi=
32842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32845 # Binary search between lo and hi bounds.
32846 while test "x$ac_lo" != "x$ac_hi"; do
32847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32848 cat >conftest.$ac_ext <<_ACEOF
32849 /* confdefs.h. */
32850 _ACEOF
32851 cat confdefs.h >>conftest.$ac_ext
32852 cat >>conftest.$ac_ext <<_ACEOF
32853 /* end confdefs.h. */
32854 #include <stddef.h>
32856 main ()
32858 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
32859 test_array [0] = 0
32862 return 0;
32864 _ACEOF
32865 rm -f conftest.$ac_objext
32866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32867 (eval $ac_compile) 2>conftest.er1
32868 ac_status=$?
32869 grep -v '^ *+' conftest.er1 >conftest.err
32870 rm -f conftest.er1
32871 cat conftest.err >&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } &&
32874 { ac_try='test -z "$ac_c_werror_flag"
32875 || test ! -s conftest.err'
32876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32877 (eval $ac_try) 2>&5
32878 ac_status=$?
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); }; } &&
32881 { ac_try='test -s conftest.$ac_objext'
32882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32883 (eval $ac_try) 2>&5
32884 ac_status=$?
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; }; then
32887 ac_hi=$ac_mid
32888 else
32889 echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32892 ac_lo=`expr '(' $ac_mid ')' + 1`
32894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32895 done
32896 case $ac_lo in
32897 ?*) res_hi=$ac_lo;;
32898 '') result=? ;;
32899 esac
32900 else
32901 if test "$cross_compiling" = yes; then
32902 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32903 See \`config.log' for more details." >&5
32904 echo "$as_me: error: cannot run test program while cross compiling
32905 See \`config.log' for more details." >&2;}
32906 { (exit 1); exit 1; }; }
32907 else
32908 cat >conftest.$ac_ext <<_ACEOF
32909 /* confdefs.h. */
32910 _ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h. */
32914 #include <stddef.h>
32915 long longval () { return ~(size_t)0 / 10; }
32916 unsigned long ulongval () { return ~(size_t)0 / 10; }
32917 #include <stdio.h>
32918 #include <stdlib.h>
32920 main ()
32923 FILE *f = fopen ("conftest.val", "w");
32924 if (! f)
32925 exit (1);
32926 if ((~(size_t)0 / 10) < 0)
32928 long i = longval ();
32929 if (i != (~(size_t)0 / 10))
32930 exit (1);
32931 fprintf (f, "%ld\n", i);
32933 else
32935 unsigned long i = ulongval ();
32936 if (i != (~(size_t)0 / 10))
32937 exit (1);
32938 fprintf (f, "%lu\n", i);
32940 exit (ferror (f) || fclose (f) != 0);
32943 return 0;
32945 _ACEOF
32946 rm -f conftest$ac_exeext
32947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32948 (eval $ac_link) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 res_hi=`cat conftest.val`
32958 else
32959 echo "$as_me: program exited with status $ac_status" >&5
32960 echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32963 ( exit $ac_status )
32964 result=?
32966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32969 rm -f conftest.val
32970 if test "$cross_compiling" = yes; then
32971 # Depending upon the size, compute the lo and hi bounds.
32972 cat >conftest.$ac_ext <<_ACEOF
32973 /* confdefs.h. */
32974 _ACEOF
32975 cat confdefs.h >>conftest.$ac_ext
32976 cat >>conftest.$ac_ext <<_ACEOF
32977 /* end confdefs.h. */
32978 #include <stddef.h>
32980 main ()
32982 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
32983 test_array [0] = 0
32986 return 0;
32988 _ACEOF
32989 rm -f conftest.$ac_objext
32990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32991 (eval $ac_compile) 2>conftest.er1
32992 ac_status=$?
32993 grep -v '^ *+' conftest.er1 >conftest.err
32994 rm -f conftest.er1
32995 cat conftest.err >&5
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); } &&
32998 { ac_try='test -z "$ac_c_werror_flag"
32999 || test ! -s conftest.err'
33000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001 (eval $ac_try) 2>&5
33002 ac_status=$?
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); }; } &&
33005 { ac_try='test -s conftest.$ac_objext'
33006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007 (eval $ac_try) 2>&5
33008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; }; then
33011 ac_lo=0 ac_mid=0
33012 while :; do
33013 cat >conftest.$ac_ext <<_ACEOF
33014 /* confdefs.h. */
33015 _ACEOF
33016 cat confdefs.h >>conftest.$ac_ext
33017 cat >>conftest.$ac_ext <<_ACEOF
33018 /* end confdefs.h. */
33019 #include <stddef.h>
33021 main ()
33023 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
33024 test_array [0] = 0
33027 return 0;
33029 _ACEOF
33030 rm -f conftest.$ac_objext
33031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33032 (eval $ac_compile) 2>conftest.er1
33033 ac_status=$?
33034 grep -v '^ *+' conftest.er1 >conftest.err
33035 rm -f conftest.er1
33036 cat conftest.err >&5
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); } &&
33039 { ac_try='test -z "$ac_c_werror_flag"
33040 || test ! -s conftest.err'
33041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042 (eval $ac_try) 2>&5
33043 ac_status=$?
33044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045 (exit $ac_status); }; } &&
33046 { ac_try='test -s conftest.$ac_objext'
33047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048 (eval $ac_try) 2>&5
33049 ac_status=$?
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); }; }; then
33052 ac_hi=$ac_mid; break
33053 else
33054 echo "$as_me: failed program was:" >&5
33055 sed 's/^/| /' conftest.$ac_ext >&5
33057 ac_lo=`expr $ac_mid + 1`
33058 if test $ac_lo -le $ac_mid; then
33059 ac_lo= ac_hi=
33060 break
33062 ac_mid=`expr 2 '*' $ac_mid + 1`
33064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33065 done
33066 else
33067 echo "$as_me: failed program was:" >&5
33068 sed 's/^/| /' conftest.$ac_ext >&5
33070 cat >conftest.$ac_ext <<_ACEOF
33071 /* confdefs.h. */
33072 _ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33076 #include <stddef.h>
33078 main ()
33080 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
33081 test_array [0] = 0
33084 return 0;
33086 _ACEOF
33087 rm -f conftest.$ac_objext
33088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33089 (eval $ac_compile) 2>conftest.er1
33090 ac_status=$?
33091 grep -v '^ *+' conftest.er1 >conftest.err
33092 rm -f conftest.er1
33093 cat conftest.err >&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } &&
33096 { ac_try='test -z "$ac_c_werror_flag"
33097 || test ! -s conftest.err'
33098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099 (eval $ac_try) 2>&5
33100 ac_status=$?
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); }; } &&
33103 { ac_try='test -s conftest.$ac_objext'
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; }; then
33109 ac_hi=-1 ac_mid=-1
33110 while :; do
33111 cat >conftest.$ac_ext <<_ACEOF
33112 /* confdefs.h. */
33113 _ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33117 #include <stddef.h>
33119 main ()
33121 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
33122 test_array [0] = 0
33125 return 0;
33127 _ACEOF
33128 rm -f conftest.$ac_objext
33129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33130 (eval $ac_compile) 2>conftest.er1
33131 ac_status=$?
33132 grep -v '^ *+' conftest.er1 >conftest.err
33133 rm -f conftest.er1
33134 cat conftest.err >&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); } &&
33137 { ac_try='test -z "$ac_c_werror_flag"
33138 || test ! -s conftest.err'
33139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33140 (eval $ac_try) 2>&5
33141 ac_status=$?
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); }; } &&
33144 { ac_try='test -s conftest.$ac_objext'
33145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146 (eval $ac_try) 2>&5
33147 ac_status=$?
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; }; then
33150 ac_lo=$ac_mid; break
33151 else
33152 echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33155 ac_hi=`expr '(' $ac_mid ')' - 1`
33156 if test $ac_mid -le $ac_hi; then
33157 ac_lo= ac_hi=
33158 break
33160 ac_mid=`expr 2 '*' $ac_mid`
33162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33163 done
33164 else
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 ac_lo= ac_hi=
33170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33173 # Binary search between lo and hi bounds.
33174 while test "x$ac_lo" != "x$ac_hi"; do
33175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33176 cat >conftest.$ac_ext <<_ACEOF
33177 /* confdefs.h. */
33178 _ACEOF
33179 cat confdefs.h >>conftest.$ac_ext
33180 cat >>conftest.$ac_ext <<_ACEOF
33181 /* end confdefs.h. */
33182 #include <stddef.h>
33184 main ()
33186 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
33187 test_array [0] = 0
33190 return 0;
33192 _ACEOF
33193 rm -f conftest.$ac_objext
33194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33195 (eval $ac_compile) 2>conftest.er1
33196 ac_status=$?
33197 grep -v '^ *+' conftest.er1 >conftest.err
33198 rm -f conftest.er1
33199 cat conftest.err >&5
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); } &&
33202 { ac_try='test -z "$ac_c_werror_flag"
33203 || test ! -s conftest.err'
33204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33205 (eval $ac_try) 2>&5
33206 ac_status=$?
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); }; } &&
33209 { ac_try='test -s conftest.$ac_objext'
33210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211 (eval $ac_try) 2>&5
33212 ac_status=$?
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); }; }; then
33215 ac_hi=$ac_mid
33216 else
33217 echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33220 ac_lo=`expr '(' $ac_mid ')' + 1`
33222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33223 done
33224 case $ac_lo in
33225 ?*) res_lo=$ac_lo;;
33226 '') result=? ;;
33227 esac
33228 else
33229 if test "$cross_compiling" = yes; then
33230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33231 See \`config.log' for more details." >&5
33232 echo "$as_me: error: cannot run test program while cross compiling
33233 See \`config.log' for more details." >&2;}
33234 { (exit 1); exit 1; }; }
33235 else
33236 cat >conftest.$ac_ext <<_ACEOF
33237 /* confdefs.h. */
33238 _ACEOF
33239 cat confdefs.h >>conftest.$ac_ext
33240 cat >>conftest.$ac_ext <<_ACEOF
33241 /* end confdefs.h. */
33242 #include <stddef.h>
33243 long longval () { return ~(size_t)0 % 10; }
33244 unsigned long ulongval () { return ~(size_t)0 % 10; }
33245 #include <stdio.h>
33246 #include <stdlib.h>
33248 main ()
33251 FILE *f = fopen ("conftest.val", "w");
33252 if (! f)
33253 exit (1);
33254 if ((~(size_t)0 % 10) < 0)
33256 long i = longval ();
33257 if (i != (~(size_t)0 % 10))
33258 exit (1);
33259 fprintf (f, "%ld\n", i);
33261 else
33263 unsigned long i = ulongval ();
33264 if (i != (~(size_t)0 % 10))
33265 exit (1);
33266 fprintf (f, "%lu\n", i);
33268 exit (ferror (f) || fclose (f) != 0);
33271 return 0;
33273 _ACEOF
33274 rm -f conftest$ac_exeext
33275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33276 (eval $ac_link) 2>&5
33277 ac_status=$?
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281 (eval $ac_try) 2>&5
33282 ac_status=$?
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); }; }; then
33285 res_lo=`cat conftest.val`
33286 else
33287 echo "$as_me: program exited with status $ac_status" >&5
33288 echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33291 ( exit $ac_status )
33292 result=?
33294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33297 rm -f conftest.val
33298 if test "$cross_compiling" = yes; then
33299 # Depending upon the size, compute the lo and hi bounds.
33300 cat >conftest.$ac_ext <<_ACEOF
33301 /* confdefs.h. */
33302 _ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h. */
33306 #include <stddef.h>
33308 main ()
33310 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
33311 test_array [0] = 0
33314 return 0;
33316 _ACEOF
33317 rm -f conftest.$ac_objext
33318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33319 (eval $ac_compile) 2>conftest.er1
33320 ac_status=$?
33321 grep -v '^ *+' conftest.er1 >conftest.err
33322 rm -f conftest.er1
33323 cat conftest.err >&5
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); } &&
33326 { ac_try='test -z "$ac_c_werror_flag"
33327 || test ! -s conftest.err'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; } &&
33333 { ac_try='test -s conftest.$ac_objext'
33334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 (eval $ac_try) 2>&5
33336 ac_status=$?
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; }; then
33339 ac_lo=0 ac_mid=0
33340 while :; do
33341 cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h. */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h. */
33347 #include <stddef.h>
33349 main ()
33351 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
33352 test_array [0] = 0
33355 return 0;
33357 _ACEOF
33358 rm -f conftest.$ac_objext
33359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33360 (eval $ac_compile) 2>conftest.er1
33361 ac_status=$?
33362 grep -v '^ *+' conftest.er1 >conftest.err
33363 rm -f conftest.er1
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } &&
33367 { ac_try='test -z "$ac_c_werror_flag"
33368 || test ! -s conftest.err'
33369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370 (eval $ac_try) 2>&5
33371 ac_status=$?
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; } &&
33374 { ac_try='test -s conftest.$ac_objext'
33375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376 (eval $ac_try) 2>&5
33377 ac_status=$?
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); }; }; then
33380 ac_hi=$ac_mid; break
33381 else
33382 echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33385 ac_lo=`expr $ac_mid + 1`
33386 if test $ac_lo -le $ac_mid; then
33387 ac_lo= ac_hi=
33388 break
33390 ac_mid=`expr 2 '*' $ac_mid + 1`
33392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33393 done
33394 else
33395 echo "$as_me: failed program was:" >&5
33396 sed 's/^/| /' conftest.$ac_ext >&5
33398 cat >conftest.$ac_ext <<_ACEOF
33399 /* confdefs.h. */
33400 _ACEOF
33401 cat confdefs.h >>conftest.$ac_ext
33402 cat >>conftest.$ac_ext <<_ACEOF
33403 /* end confdefs.h. */
33404 #include <stddef.h>
33406 main ()
33408 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
33409 test_array [0] = 0
33412 return 0;
33414 _ACEOF
33415 rm -f conftest.$ac_objext
33416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33417 (eval $ac_compile) 2>conftest.er1
33418 ac_status=$?
33419 grep -v '^ *+' conftest.er1 >conftest.err
33420 rm -f conftest.er1
33421 cat conftest.err >&5
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); } &&
33424 { ac_try='test -z "$ac_c_werror_flag"
33425 || test ! -s conftest.err'
33426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33427 (eval $ac_try) 2>&5
33428 ac_status=$?
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); }; } &&
33431 { ac_try='test -s conftest.$ac_objext'
33432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433 (eval $ac_try) 2>&5
33434 ac_status=$?
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); }; }; then
33437 ac_hi=-1 ac_mid=-1
33438 while :; do
33439 cat >conftest.$ac_ext <<_ACEOF
33440 /* confdefs.h. */
33441 _ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h. */
33445 #include <stddef.h>
33447 main ()
33449 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
33450 test_array [0] = 0
33453 return 0;
33455 _ACEOF
33456 rm -f conftest.$ac_objext
33457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33458 (eval $ac_compile) 2>conftest.er1
33459 ac_status=$?
33460 grep -v '^ *+' conftest.er1 >conftest.err
33461 rm -f conftest.er1
33462 cat conftest.err >&5
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); } &&
33465 { ac_try='test -z "$ac_c_werror_flag"
33466 || test ! -s conftest.err'
33467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468 (eval $ac_try) 2>&5
33469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); }; } &&
33472 { ac_try='test -s conftest.$ac_objext'
33473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474 (eval $ac_try) 2>&5
33475 ac_status=$?
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
33478 ac_lo=$ac_mid; break
33479 else
33480 echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 ac_hi=`expr '(' $ac_mid ')' - 1`
33484 if test $ac_mid -le $ac_hi; then
33485 ac_lo= ac_hi=
33486 break
33488 ac_mid=`expr 2 '*' $ac_mid`
33490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33491 done
33492 else
33493 echo "$as_me: failed program was:" >&5
33494 sed 's/^/| /' conftest.$ac_ext >&5
33496 ac_lo= ac_hi=
33498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33501 # Binary search between lo and hi bounds.
33502 while test "x$ac_lo" != "x$ac_hi"; do
33503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33504 cat >conftest.$ac_ext <<_ACEOF
33505 /* confdefs.h. */
33506 _ACEOF
33507 cat confdefs.h >>conftest.$ac_ext
33508 cat >>conftest.$ac_ext <<_ACEOF
33509 /* end confdefs.h. */
33510 #include <stddef.h>
33512 main ()
33514 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
33515 test_array [0] = 0
33518 return 0;
33520 _ACEOF
33521 rm -f conftest.$ac_objext
33522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33523 (eval $ac_compile) 2>conftest.er1
33524 ac_status=$?
33525 grep -v '^ *+' conftest.er1 >conftest.err
33526 rm -f conftest.er1
33527 cat conftest.err >&5
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); } &&
33530 { ac_try='test -z "$ac_c_werror_flag"
33531 || test ! -s conftest.err'
33532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533 (eval $ac_try) 2>&5
33534 ac_status=$?
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); }; } &&
33537 { ac_try='test -s conftest.$ac_objext'
33538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539 (eval $ac_try) 2>&5
33540 ac_status=$?
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; }; then
33543 ac_hi=$ac_mid
33544 else
33545 echo "$as_me: failed program was:" >&5
33546 sed 's/^/| /' conftest.$ac_ext >&5
33548 ac_lo=`expr '(' $ac_mid ')' + 1`
33550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33551 done
33552 case $ac_lo in
33553 ?*) fits_in_uint=$ac_lo;;
33554 '') result=? ;;
33555 esac
33556 else
33557 if test "$cross_compiling" = yes; then
33558 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33559 See \`config.log' for more details." >&5
33560 echo "$as_me: error: cannot run test program while cross compiling
33561 See \`config.log' for more details." >&2;}
33562 { (exit 1); exit 1; }; }
33563 else
33564 cat >conftest.$ac_ext <<_ACEOF
33565 /* confdefs.h. */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h. */
33570 #include <stddef.h>
33571 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
33572 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
33573 #include <stdio.h>
33574 #include <stdlib.h>
33576 main ()
33579 FILE *f = fopen ("conftest.val", "w");
33580 if (! f)
33581 exit (1);
33582 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
33584 long i = longval ();
33585 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
33586 exit (1);
33587 fprintf (f, "%ld\n", i);
33589 else
33591 unsigned long i = ulongval ();
33592 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
33593 exit (1);
33594 fprintf (f, "%lu\n", i);
33596 exit (ferror (f) || fclose (f) != 0);
33599 return 0;
33601 _ACEOF
33602 rm -f conftest$ac_exeext
33603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33604 (eval $ac_link) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 fits_in_uint=`cat conftest.val`
33614 else
33615 echo "$as_me: program exited with status $ac_status" >&5
33616 echo "$as_me: failed program was:" >&5
33617 sed 's/^/| /' conftest.$ac_ext >&5
33619 ( exit $ac_status )
33620 result=?
33622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33625 rm -f conftest.val
33626 if test "$fits_in_uint" = 1; then
33627 cat >conftest.$ac_ext <<_ACEOF
33628 /* confdefs.h. */
33629 _ACEOF
33630 cat confdefs.h >>conftest.$ac_ext
33631 cat >>conftest.$ac_ext <<_ACEOF
33632 /* end confdefs.h. */
33633 #include <stddef.h>
33634 extern size_t foo;
33635 extern unsigned long foo;
33638 main ()
33642 return 0;
33644 _ACEOF
33645 rm -f conftest.$ac_objext
33646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33647 (eval $ac_compile) 2>conftest.er1
33648 ac_status=$?
33649 grep -v '^ *+' conftest.er1 >conftest.err
33650 rm -f conftest.er1
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_c_werror_flag"
33655 || test ! -s conftest.err'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33658 ac_status=$?
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; } &&
33661 { ac_try='test -s conftest.$ac_objext'
33662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 (eval $ac_try) 2>&5
33664 ac_status=$?
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
33667 fits_in_uint=0
33668 else
33669 echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33675 if test -z "$result"; then
33676 if test "$fits_in_uint" = 1; then
33677 result="$res_hi$res_lo"U
33678 else
33679 result="$res_hi$res_lo"UL
33681 else
33682 result='~(size_t)0'
33685 echo "$as_me:$LINENO: result: $result" >&5
33686 echo "${ECHO_T}$result" >&6
33687 if test "$result" != yes; then
33689 cat >>confdefs.h <<_ACEOF
33690 #define SIZE_MAX $result
33691 _ACEOF
33699 for ac_header in stdint.h
33701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33703 echo "$as_me:$LINENO: checking for $ac_header" >&5
33704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33706 echo $ECHO_N "(cached) $ECHO_C" >&6
33708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33710 else
33711 # Is the header compilable?
33712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33714 cat >conftest.$ac_ext <<_ACEOF
33715 /* confdefs.h. */
33716 _ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h. */
33720 $ac_includes_default
33721 #include <$ac_header>
33722 _ACEOF
33723 rm -f conftest.$ac_objext
33724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33725 (eval $ac_compile) 2>conftest.er1
33726 ac_status=$?
33727 grep -v '^ *+' conftest.er1 >conftest.err
33728 rm -f conftest.er1
33729 cat conftest.err >&5
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); } &&
33732 { ac_try='test -z "$ac_c_werror_flag"
33733 || test ! -s conftest.err'
33734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33735 (eval $ac_try) 2>&5
33736 ac_status=$?
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); }; } &&
33739 { ac_try='test -s conftest.$ac_objext'
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
33745 ac_header_compiler=yes
33746 else
33747 echo "$as_me: failed program was:" >&5
33748 sed 's/^/| /' conftest.$ac_ext >&5
33750 ac_header_compiler=no
33752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33754 echo "${ECHO_T}$ac_header_compiler" >&6
33756 # Is the header present?
33757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33759 cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h. */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33765 #include <$ac_header>
33766 _ACEOF
33767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33769 ac_status=$?
33770 grep -v '^ *+' conftest.er1 >conftest.err
33771 rm -f conftest.er1
33772 cat conftest.err >&5
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); } >/dev/null; then
33775 if test -s conftest.err; then
33776 ac_cpp_err=$ac_c_preproc_warn_flag
33777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33778 else
33779 ac_cpp_err=
33781 else
33782 ac_cpp_err=yes
33784 if test -z "$ac_cpp_err"; then
33785 ac_header_preproc=yes
33786 else
33787 echo "$as_me: failed program was:" >&5
33788 sed 's/^/| /' conftest.$ac_ext >&5
33790 ac_header_preproc=no
33792 rm -f conftest.err conftest.$ac_ext
33793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33794 echo "${ECHO_T}$ac_header_preproc" >&6
33796 # So? What about this header?
33797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33798 yes:no: )
33799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33803 ac_header_preproc=yes
33805 no:yes:* )
33806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33819 cat <<\_ASBOX
33820 ## ------------------------------------------ ##
33821 ## Report this to the AC_PACKAGE_NAME lists. ##
33822 ## ------------------------------------------ ##
33823 _ASBOX
33825 sed "s/^/$as_me: WARNING: /" >&2
33827 esac
33828 echo "$as_me:$LINENO: checking for $ac_header" >&5
33829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33831 echo $ECHO_N "(cached) $ECHO_C" >&6
33832 else
33833 eval "$as_ac_Header=\$ac_header_preproc"
33835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33840 cat >>confdefs.h <<_ACEOF
33841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33842 _ACEOF
33846 done
33850 echo "$as_me:$LINENO: checking whether strdup is declared" >&5
33851 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
33852 if test "${ac_cv_have_decl_strdup+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855 cat >conftest.$ac_ext <<_ACEOF
33856 /* confdefs.h. */
33857 _ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h. */
33861 $ac_includes_default
33863 main ()
33865 #ifndef strdup
33866 char *p = (char *) strdup;
33867 #endif
33870 return 0;
33872 _ACEOF
33873 rm -f conftest.$ac_objext
33874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33875 (eval $ac_compile) 2>conftest.er1
33876 ac_status=$?
33877 grep -v '^ *+' conftest.er1 >conftest.err
33878 rm -f conftest.er1
33879 cat conftest.err >&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } &&
33882 { ac_try='test -z "$ac_c_werror_flag"
33883 || test ! -s conftest.err'
33884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885 (eval $ac_try) 2>&5
33886 ac_status=$?
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); }; } &&
33889 { ac_try='test -s conftest.$ac_objext'
33890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891 (eval $ac_try) 2>&5
33892 ac_status=$?
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_cv_have_decl_strdup=yes
33896 else
33897 echo "$as_me: failed program was:" >&5
33898 sed 's/^/| /' conftest.$ac_ext >&5
33900 ac_cv_have_decl_strdup=no
33902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33904 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
33905 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
33906 if test $ac_cv_have_decl_strdup = yes; then
33908 cat >>confdefs.h <<_ACEOF
33909 #define HAVE_DECL_STRDUP 1
33910 _ACEOF
33913 else
33914 cat >>confdefs.h <<_ACEOF
33915 #define HAVE_DECL_STRDUP 0
33916 _ACEOF
33923 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
33924 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
33925 if test "${gl_cv_c_restrict+set}" = set; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
33927 else
33928 gl_cv_c_restrict=no
33929 # Try the official restrict keyword, then gcc's __restrict, and
33930 # the less common variants.
33931 for ac_kw in restrict __restrict __restrict__ _Restrict; do
33932 cat >conftest.$ac_ext <<_ACEOF
33933 /* confdefs.h. */
33934 _ACEOF
33935 cat confdefs.h >>conftest.$ac_ext
33936 cat >>conftest.$ac_ext <<_ACEOF
33937 /* end confdefs.h. */
33938 float * $ac_kw x;
33939 _ACEOF
33940 rm -f conftest.$ac_objext
33941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33942 (eval $ac_compile) 2>conftest.er1
33943 ac_status=$?
33944 grep -v '^ *+' conftest.er1 >conftest.err
33945 rm -f conftest.er1
33946 cat conftest.err >&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } &&
33949 { ac_try='test -z "$ac_c_werror_flag"
33950 || test ! -s conftest.err'
33951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33952 (eval $ac_try) 2>&5
33953 ac_status=$?
33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955 (exit $ac_status); }; } &&
33956 { ac_try='test -s conftest.$ac_objext'
33957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33958 (eval $ac_try) 2>&5
33959 ac_status=$?
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); }; }; then
33962 gl_cv_c_restrict=$ac_kw; break
33963 else
33964 echo "$as_me: failed program was:" >&5
33965 sed 's/^/| /' conftest.$ac_ext >&5
33968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33969 done
33972 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
33973 echo "${ECHO_T}$gl_cv_c_restrict" >&6
33974 case $gl_cv_c_restrict in
33975 restrict) ;;
33977 cat >>confdefs.h <<\_ACEOF
33978 #define restrict
33979 _ACEOF
33981 *) cat >>confdefs.h <<_ACEOF
33982 #define restrict $gl_cv_c_restrict
33983 _ACEOF
33985 esac
33989 for ac_func in mempcpy
33991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33992 echo "$as_me:$LINENO: checking for $ac_func" >&5
33993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33994 if eval "test \"\${$as_ac_var+set}\" = set"; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33996 else
33997 cat >conftest.$ac_ext <<_ACEOF
33998 /* confdefs.h. */
33999 _ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h. */
34003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34005 #define $ac_func innocuous_$ac_func
34007 /* System header to define __stub macros and hopefully few prototypes,
34008 which can conflict with char $ac_func (); below.
34009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34010 <limits.h> exists even on freestanding compilers. */
34012 #ifdef __STDC__
34013 # include <limits.h>
34014 #else
34015 # include <assert.h>
34016 #endif
34018 #undef $ac_func
34020 /* Override any gcc2 internal prototype to avoid an error. */
34021 #ifdef __cplusplus
34022 extern "C"
34024 #endif
34025 /* We use char because int might match the return type of a gcc2
34026 builtin and then its argument prototype would still apply. */
34027 char $ac_func ();
34028 /* The GNU C library defines this for functions which it implements
34029 to always fail with ENOSYS. Some functions are actually named
34030 something starting with __ and the normal name is an alias. */
34031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34032 choke me
34033 #else
34034 char (*f) () = $ac_func;
34035 #endif
34036 #ifdef __cplusplus
34038 #endif
34041 main ()
34043 return f != $ac_func;
34045 return 0;
34047 _ACEOF
34048 rm -f conftest.$ac_objext conftest$ac_exeext
34049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34050 (eval $ac_link) 2>conftest.er1
34051 ac_status=$?
34052 grep -v '^ *+' conftest.er1 >conftest.err
34053 rm -f conftest.er1
34054 cat conftest.err >&5
34055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056 (exit $ac_status); } &&
34057 { ac_try='test -z "$ac_c_werror_flag"
34058 || test ! -s conftest.err'
34059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34060 (eval $ac_try) 2>&5
34061 ac_status=$?
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); }; } &&
34064 { ac_try='test -s conftest$ac_exeext'
34065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066 (eval $ac_try) 2>&5
34067 ac_status=$?
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); }; }; then
34070 eval "$as_ac_var=yes"
34071 else
34072 echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34075 eval "$as_ac_var=no"
34077 rm -f conftest.err conftest.$ac_objext \
34078 conftest$ac_exeext conftest.$ac_ext
34080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34082 if test `eval echo '${'$as_ac_var'}'` = yes; then
34083 cat >>confdefs.h <<_ACEOF
34084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34085 _ACEOF
34088 done
34099 for ac_func in memchr
34101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34102 echo "$as_me:$LINENO: checking for $ac_func" >&5
34103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34104 if eval "test \"\${$as_ac_var+set}\" = set"; then
34105 echo $ECHO_N "(cached) $ECHO_C" >&6
34106 else
34107 cat >conftest.$ac_ext <<_ACEOF
34108 /* confdefs.h. */
34109 _ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h. */
34113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34115 #define $ac_func innocuous_$ac_func
34117 /* System header to define __stub macros and hopefully few prototypes,
34118 which can conflict with char $ac_func (); below.
34119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34120 <limits.h> exists even on freestanding compilers. */
34122 #ifdef __STDC__
34123 # include <limits.h>
34124 #else
34125 # include <assert.h>
34126 #endif
34128 #undef $ac_func
34130 /* Override any gcc2 internal prototype to avoid an error. */
34131 #ifdef __cplusplus
34132 extern "C"
34134 #endif
34135 /* We use char because int might match the return type of a gcc2
34136 builtin and then its argument prototype would still apply. */
34137 char $ac_func ();
34138 /* The GNU C library defines this for functions which it implements
34139 to always fail with ENOSYS. Some functions are actually named
34140 something starting with __ and the normal name is an alias. */
34141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34142 choke me
34143 #else
34144 char (*f) () = $ac_func;
34145 #endif
34146 #ifdef __cplusplus
34148 #endif
34151 main ()
34153 return f != $ac_func;
34155 return 0;
34157 _ACEOF
34158 rm -f conftest.$ac_objext conftest$ac_exeext
34159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34160 (eval $ac_link) 2>conftest.er1
34161 ac_status=$?
34162 grep -v '^ *+' conftest.er1 >conftest.err
34163 rm -f conftest.er1
34164 cat conftest.err >&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); } &&
34167 { ac_try='test -z "$ac_c_werror_flag"
34168 || test ! -s conftest.err'
34169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34170 (eval $ac_try) 2>&5
34171 ac_status=$?
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); }; } &&
34174 { ac_try='test -s conftest$ac_exeext'
34175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34176 (eval $ac_try) 2>&5
34177 ac_status=$?
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); }; }; then
34180 eval "$as_ac_var=yes"
34181 else
34182 echo "$as_me: failed program was:" >&5
34183 sed 's/^/| /' conftest.$ac_ext >&5
34185 eval "$as_ac_var=no"
34187 rm -f conftest.err conftest.$ac_objext \
34188 conftest$ac_exeext conftest.$ac_ext
34190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34192 if test `eval echo '${'$as_ac_var'}'` = yes; then
34193 cat >>confdefs.h <<_ACEOF
34194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34195 _ACEOF
34197 else
34198 LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext"
34200 done
34202 if test $ac_cv_func_memchr = no; then
34205 for ac_header in bp-sym.h
34207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34209 echo "$as_me:$LINENO: checking for $ac_header" >&5
34210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34216 else
34217 # Is the header compilable?
34218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34220 cat >conftest.$ac_ext <<_ACEOF
34221 /* confdefs.h. */
34222 _ACEOF
34223 cat confdefs.h >>conftest.$ac_ext
34224 cat >>conftest.$ac_ext <<_ACEOF
34225 /* end confdefs.h. */
34226 $ac_includes_default
34227 #include <$ac_header>
34228 _ACEOF
34229 rm -f conftest.$ac_objext
34230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34231 (eval $ac_compile) 2>conftest.er1
34232 ac_status=$?
34233 grep -v '^ *+' conftest.er1 >conftest.err
34234 rm -f conftest.er1
34235 cat conftest.err >&5
34236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237 (exit $ac_status); } &&
34238 { ac_try='test -z "$ac_c_werror_flag"
34239 || test ! -s conftest.err'
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34242 ac_status=$?
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; } &&
34245 { ac_try='test -s conftest.$ac_objext'
34246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 (eval $ac_try) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; }; then
34251 ac_header_compiler=yes
34252 else
34253 echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34256 ac_header_compiler=no
34258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34260 echo "${ECHO_T}$ac_header_compiler" >&6
34262 # Is the header present?
34263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34265 cat >conftest.$ac_ext <<_ACEOF
34266 /* confdefs.h. */
34267 _ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h. */
34271 #include <$ac_header>
34272 _ACEOF
34273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34275 ac_status=$?
34276 grep -v '^ *+' conftest.er1 >conftest.err
34277 rm -f conftest.er1
34278 cat conftest.err >&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); } >/dev/null; then
34281 if test -s conftest.err; then
34282 ac_cpp_err=$ac_c_preproc_warn_flag
34283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34284 else
34285 ac_cpp_err=
34287 else
34288 ac_cpp_err=yes
34290 if test -z "$ac_cpp_err"; then
34291 ac_header_preproc=yes
34292 else
34293 echo "$as_me: failed program was:" >&5
34294 sed 's/^/| /' conftest.$ac_ext >&5
34296 ac_header_preproc=no
34298 rm -f conftest.err conftest.$ac_ext
34299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34300 echo "${ECHO_T}$ac_header_preproc" >&6
34302 # So? What about this header?
34303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34304 yes:no: )
34305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34309 ac_header_preproc=yes
34311 no:yes:* )
34312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34325 cat <<\_ASBOX
34326 ## ------------------------------------------ ##
34327 ## Report this to the AC_PACKAGE_NAME lists. ##
34328 ## ------------------------------------------ ##
34329 _ASBOX
34331 sed "s/^/$as_me: WARNING: /" >&2
34333 esac
34334 echo "$as_me:$LINENO: checking for $ac_header" >&5
34335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339 eval "$as_ac_Header=\$ac_header_preproc"
34341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34346 cat >>confdefs.h <<_ACEOF
34347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34348 _ACEOF
34352 done
34359 for ac_func in strdup
34361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34362 echo "$as_me:$LINENO: checking for $ac_func" >&5
34363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34364 if eval "test \"\${$as_ac_var+set}\" = set"; then
34365 echo $ECHO_N "(cached) $ECHO_C" >&6
34366 else
34367 cat >conftest.$ac_ext <<_ACEOF
34368 /* confdefs.h. */
34369 _ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h. */
34373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34375 #define $ac_func innocuous_$ac_func
34377 /* System header to define __stub macros and hopefully few prototypes,
34378 which can conflict with char $ac_func (); below.
34379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34380 <limits.h> exists even on freestanding compilers. */
34382 #ifdef __STDC__
34383 # include <limits.h>
34384 #else
34385 # include <assert.h>
34386 #endif
34388 #undef $ac_func
34390 /* Override any gcc2 internal prototype to avoid an error. */
34391 #ifdef __cplusplus
34392 extern "C"
34394 #endif
34395 /* We use char because int might match the return type of a gcc2
34396 builtin and then its argument prototype would still apply. */
34397 char $ac_func ();
34398 /* The GNU C library defines this for functions which it implements
34399 to always fail with ENOSYS. Some functions are actually named
34400 something starting with __ and the normal name is an alias. */
34401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34402 choke me
34403 #else
34404 char (*f) () = $ac_func;
34405 #endif
34406 #ifdef __cplusplus
34408 #endif
34411 main ()
34413 return f != $ac_func;
34415 return 0;
34417 _ACEOF
34418 rm -f conftest.$ac_objext conftest$ac_exeext
34419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34420 (eval $ac_link) 2>conftest.er1
34421 ac_status=$?
34422 grep -v '^ *+' conftest.er1 >conftest.err
34423 rm -f conftest.er1
34424 cat conftest.err >&5
34425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); } &&
34427 { ac_try='test -z "$ac_c_werror_flag"
34428 || test ! -s conftest.err'
34429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34430 (eval $ac_try) 2>&5
34431 ac_status=$?
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); }; } &&
34434 { ac_try='test -s conftest$ac_exeext'
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; }; then
34440 eval "$as_ac_var=yes"
34441 else
34442 echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34445 eval "$as_ac_var=no"
34447 rm -f conftest.err conftest.$ac_objext \
34448 conftest$ac_exeext conftest.$ac_ext
34450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34452 if test `eval echo '${'$as_ac_var'}'` = yes; then
34453 cat >>confdefs.h <<_ACEOF
34454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34455 _ACEOF
34457 else
34458 LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext"
34460 done
34473 # Assume we'll default to using the included regex.c.
34474 ac_use_included_regex=yes
34476 # However, if the system regex support is good enough that it passes the
34477 # the following run test, then default to *not* using the included regex.c.
34478 # If cross compiling, assume the test would fail and use the included
34479 # regex.c. The first failing regular expression is from `Spencer ere
34480 # test #75' in grep-2.3.
34481 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
34482 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
34483 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
34484 echo $ECHO_N "(cached) $ECHO_C" >&6
34485 else
34486 if test "$cross_compiling" = yes; then
34487 jm_cv_func_working_re_compile_pattern=no
34488 else
34489 cat >conftest.$ac_ext <<_ACEOF
34490 /* confdefs.h. */
34491 _ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h. */
34495 #include <stdio.h>
34496 #include <string.h>
34497 #include <regex.h>
34499 main ()
34501 static struct re_pattern_buffer regex;
34502 const char *s;
34503 struct re_registers regs;
34504 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
34505 memset (&regex, 0, sizeof (regex));
34506 s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
34507 /* This should fail with _Invalid character class name_ error. */
34508 if (!s)
34509 exit (1);
34511 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
34512 memset (&regex, 0, sizeof (regex));
34513 s = re_compile_pattern ("{1", 2, &regex);
34515 if (s)
34516 exit (1);
34518 /* The following example is derived from a problem report
34519 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
34520 memset (&regex, 0, sizeof (regex));
34521 s = re_compile_pattern ("[an\371]*n", 7, &regex);
34522 if (s)
34523 exit (1);
34525 /* This should match, but doesn't for e.g. glibc-2.2.1. */
34526 if (re_match (&regex, "an", 2, 0, &regs) != 2)
34527 exit (1);
34529 memset (&regex, 0, sizeof (regex));
34530 s = re_compile_pattern ("x", 1, &regex);
34531 if (s)
34532 exit (1);
34534 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
34535 work with a negative RANGE argument. */
34536 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
34537 exit (1);
34539 exit (0);
34542 _ACEOF
34543 rm -f conftest$ac_exeext
34544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34545 (eval $ac_link) 2>&5
34546 ac_status=$?
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550 (eval $ac_try) 2>&5
34551 ac_status=$?
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); }; }; then
34554 jm_cv_func_working_re_compile_pattern=yes
34555 else
34556 echo "$as_me: program exited with status $ac_status" >&5
34557 echo "$as_me: failed program was:" >&5
34558 sed 's/^/| /' conftest.$ac_ext >&5
34560 ( exit $ac_status )
34561 jm_cv_func_working_re_compile_pattern=no
34563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34566 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
34567 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
34568 if test $jm_cv_func_working_re_compile_pattern = yes; then
34569 ac_use_included_regex=no
34572 test -n "libgrep/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
34573 echo "$as_me: error: missing argument" >&2;}
34574 { (exit 1); exit 1; }; }
34578 # Check whether --with-included-regex or --without-included-regex was given.
34579 if test "${with_included_regex+set}" = set; then
34580 withval="$with_included_regex"
34581 jm_with_regex=$withval
34582 else
34583 jm_with_regex=$ac_use_included_regex
34585 if test "$jm_with_regex" = yes; then
34586 LIBGREPOBJS="$LIBGREPOBJS regex.$ac_objext"
34615 for ac_func in btowc
34617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34618 echo "$as_me:$LINENO: checking for $ac_func" >&5
34619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34620 if eval "test \"\${$as_ac_var+set}\" = set"; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34622 else
34623 cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h. */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34631 #define $ac_func innocuous_$ac_func
34633 /* System header to define __stub macros and hopefully few prototypes,
34634 which can conflict with char $ac_func (); below.
34635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34636 <limits.h> exists even on freestanding compilers. */
34638 #ifdef __STDC__
34639 # include <limits.h>
34640 #else
34641 # include <assert.h>
34642 #endif
34644 #undef $ac_func
34646 /* Override any gcc2 internal prototype to avoid an error. */
34647 #ifdef __cplusplus
34648 extern "C"
34650 #endif
34651 /* We use char because int might match the return type of a gcc2
34652 builtin and then its argument prototype would still apply. */
34653 char $ac_func ();
34654 /* The GNU C library defines this for functions which it implements
34655 to always fail with ENOSYS. Some functions are actually named
34656 something starting with __ and the normal name is an alias. */
34657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34658 choke me
34659 #else
34660 char (*f) () = $ac_func;
34661 #endif
34662 #ifdef __cplusplus
34664 #endif
34667 main ()
34669 return f != $ac_func;
34671 return 0;
34673 _ACEOF
34674 rm -f conftest.$ac_objext conftest$ac_exeext
34675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34676 (eval $ac_link) 2>conftest.er1
34677 ac_status=$?
34678 grep -v '^ *+' conftest.er1 >conftest.err
34679 rm -f conftest.er1
34680 cat conftest.err >&5
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); } &&
34683 { ac_try='test -z "$ac_c_werror_flag"
34684 || test ! -s conftest.err'
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest$ac_exeext'
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; }; then
34696 eval "$as_ac_var=yes"
34697 else
34698 echo "$as_me: failed program was:" >&5
34699 sed 's/^/| /' conftest.$ac_ext >&5
34701 eval "$as_ac_var=no"
34703 rm -f conftest.err conftest.$ac_objext \
34704 conftest$ac_exeext conftest.$ac_ext
34706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34708 if test `eval echo '${'$as_ac_var'}'` = yes; then
34709 cat >>confdefs.h <<_ACEOF
34710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34711 _ACEOF
34714 done
34728 for ac_header in arpa/inet.h
34730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34732 echo "$as_me:$LINENO: checking for $ac_header" >&5
34733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34735 echo $ECHO_N "(cached) $ECHO_C" >&6
34737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34739 else
34740 # Is the header compilable?
34741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34743 cat >conftest.$ac_ext <<_ACEOF
34744 /* confdefs.h. */
34745 _ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h. */
34749 $ac_includes_default
34750 #include <$ac_header>
34751 _ACEOF
34752 rm -f conftest.$ac_objext
34753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34754 (eval $ac_compile) 2>conftest.er1
34755 ac_status=$?
34756 grep -v '^ *+' conftest.er1 >conftest.err
34757 rm -f conftest.er1
34758 cat conftest.err >&5
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); } &&
34761 { ac_try='test -z "$ac_c_werror_flag"
34762 || test ! -s conftest.err'
34763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764 (eval $ac_try) 2>&5
34765 ac_status=$?
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); }; } &&
34768 { ac_try='test -s conftest.$ac_objext'
34769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770 (eval $ac_try) 2>&5
34771 ac_status=$?
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; }; then
34774 ac_header_compiler=yes
34775 else
34776 echo "$as_me: failed program was:" >&5
34777 sed 's/^/| /' conftest.$ac_ext >&5
34779 ac_header_compiler=no
34781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34783 echo "${ECHO_T}$ac_header_compiler" >&6
34785 # Is the header present?
34786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34788 cat >conftest.$ac_ext <<_ACEOF
34789 /* confdefs.h. */
34790 _ACEOF
34791 cat confdefs.h >>conftest.$ac_ext
34792 cat >>conftest.$ac_ext <<_ACEOF
34793 /* end confdefs.h. */
34794 #include <$ac_header>
34795 _ACEOF
34796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34798 ac_status=$?
34799 grep -v '^ *+' conftest.er1 >conftest.err
34800 rm -f conftest.er1
34801 cat conftest.err >&5
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); } >/dev/null; then
34804 if test -s conftest.err; then
34805 ac_cpp_err=$ac_c_preproc_warn_flag
34806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34807 else
34808 ac_cpp_err=
34810 else
34811 ac_cpp_err=yes
34813 if test -z "$ac_cpp_err"; then
34814 ac_header_preproc=yes
34815 else
34816 echo "$as_me: failed program was:" >&5
34817 sed 's/^/| /' conftest.$ac_ext >&5
34819 ac_header_preproc=no
34821 rm -f conftest.err conftest.$ac_ext
34822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34823 echo "${ECHO_T}$ac_header_preproc" >&6
34825 # So? What about this header?
34826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34827 yes:no: )
34828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34832 ac_header_preproc=yes
34834 no:yes:* )
34835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34848 cat <<\_ASBOX
34849 ## ------------------------------------------ ##
34850 ## Report this to the AC_PACKAGE_NAME lists. ##
34851 ## ------------------------------------------ ##
34852 _ASBOX
34854 sed "s/^/$as_me: WARNING: /" >&2
34856 esac
34857 echo "$as_me:$LINENO: checking for $ac_header" >&5
34858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34861 else
34862 eval "$as_ac_Header=\$ac_header_preproc"
34864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34869 cat >>confdefs.h <<_ACEOF
34870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34871 _ACEOF
34875 done
34880 for ac_func in gethostname gethostbyname inet_ntop
34882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34883 echo "$as_me:$LINENO: checking for $ac_func" >&5
34884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34885 if eval "test \"\${$as_ac_var+set}\" = set"; then
34886 echo $ECHO_N "(cached) $ECHO_C" >&6
34887 else
34888 cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h. */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h. */
34894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34896 #define $ac_func innocuous_$ac_func
34898 /* System header to define __stub macros and hopefully few prototypes,
34899 which can conflict with char $ac_func (); below.
34900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34901 <limits.h> exists even on freestanding compilers. */
34903 #ifdef __STDC__
34904 # include <limits.h>
34905 #else
34906 # include <assert.h>
34907 #endif
34909 #undef $ac_func
34911 /* Override any gcc2 internal prototype to avoid an error. */
34912 #ifdef __cplusplus
34913 extern "C"
34915 #endif
34916 /* We use char because int might match the return type of a gcc2
34917 builtin and then its argument prototype would still apply. */
34918 char $ac_func ();
34919 /* The GNU C library defines this for functions which it implements
34920 to always fail with ENOSYS. Some functions are actually named
34921 something starting with __ and the normal name is an alias. */
34922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34923 choke me
34924 #else
34925 char (*f) () = $ac_func;
34926 #endif
34927 #ifdef __cplusplus
34929 #endif
34932 main ()
34934 return f != $ac_func;
34936 return 0;
34938 _ACEOF
34939 rm -f conftest.$ac_objext conftest$ac_exeext
34940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34941 (eval $ac_link) 2>conftest.er1
34942 ac_status=$?
34943 grep -v '^ *+' conftest.er1 >conftest.err
34944 rm -f conftest.er1
34945 cat conftest.err >&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); } &&
34948 { ac_try='test -z "$ac_c_werror_flag"
34949 || test ! -s conftest.err'
34950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951 (eval $ac_try) 2>&5
34952 ac_status=$?
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); }; } &&
34955 { ac_try='test -s conftest$ac_exeext'
34956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34957 (eval $ac_try) 2>&5
34958 ac_status=$?
34959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960 (exit $ac_status); }; }; then
34961 eval "$as_ac_var=yes"
34962 else
34963 echo "$as_me: failed program was:" >&5
34964 sed 's/^/| /' conftest.$ac_ext >&5
34966 eval "$as_ac_var=no"
34968 rm -f conftest.err conftest.$ac_objext \
34969 conftest$ac_exeext conftest.$ac_ext
34971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34973 if test `eval echo '${'$as_ac_var'}'` = yes; then
34974 cat >>confdefs.h <<_ACEOF
34975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34976 _ACEOF
34979 done
34982 echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
34983 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6
34984 if test "${gt_cv_socket_ipv6+set}" = set; then
34985 echo $ECHO_N "(cached) $ECHO_C" >&6
34986 else
34988 cat >conftest.$ac_ext <<_ACEOF
34989 /* confdefs.h. */
34990 _ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h. */
34995 #include <sys/types.h>
34996 #include <sys/socket.h>
34997 #include <netinet/in.h>
34999 main ()
35001 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
35003 return 0;
35005 _ACEOF
35006 rm -f conftest.$ac_objext
35007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35008 (eval $ac_compile) 2>conftest.er1
35009 ac_status=$?
35010 grep -v '^ *+' conftest.er1 >conftest.err
35011 rm -f conftest.er1
35012 cat conftest.err >&5
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); } &&
35015 { ac_try='test -z "$ac_c_werror_flag"
35016 || test ! -s conftest.err'
35017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018 (eval $ac_try) 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; } &&
35022 { ac_try='test -s conftest.$ac_objext'
35023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35024 (eval $ac_try) 2>&5
35025 ac_status=$?
35026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); }; }; then
35028 gt_cv_socket_ipv6=yes
35029 else
35030 echo "$as_me: failed program was:" >&5
35031 sed 's/^/| /' conftest.$ac_ext >&5
35033 gt_cv_socket_ipv6=no
35035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35039 echo "$as_me:$LINENO: result: $gt_cv_socket_ipv6" >&5
35040 echo "${ECHO_T}$gt_cv_socket_ipv6" >&6
35041 if test $gt_cv_socket_ipv6 = yes; then
35043 cat >>confdefs.h <<\_ACEOF
35044 #define HAVE_IPV6 1
35045 _ACEOF
35052 MKINSTALLDIRS=
35053 if test -n "$ac_aux_dir"; then
35054 case "$ac_aux_dir" in
35055 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
35056 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
35057 esac
35059 if test -z "$MKINSTALLDIRS"; then
35060 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
35065 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
35066 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
35067 # Check whether --enable-nls or --disable-nls was given.
35068 if test "${enable_nls+set}" = set; then
35069 enableval="$enable_nls"
35070 USE_NLS=$enableval
35071 else
35072 USE_NLS=yes
35074 echo "$as_me:$LINENO: result: $USE_NLS" >&5
35075 echo "${ECHO_T}$USE_NLS" >&6
35082 # Prepare PATH_SEPARATOR.
35083 # The user is always right.
35084 if test "${PATH_SEPARATOR+set}" != set; then
35085 echo "#! /bin/sh" >conf$$.sh
35086 echo "exit 0" >>conf$$.sh
35087 chmod +x conf$$.sh
35088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35089 PATH_SEPARATOR=';'
35090 else
35091 PATH_SEPARATOR=:
35093 rm -f conf$$.sh
35096 # Find out how to test for executable files. Don't use a zero-byte file,
35097 # as systems may use methods other than mode bits to determine executability.
35098 cat >conf$$.file <<_ASEOF
35099 #! /bin/sh
35100 exit 0
35101 _ASEOF
35102 chmod +x conf$$.file
35103 if test -x conf$$.file >/dev/null 2>&1; then
35104 ac_executable_p="test -x"
35105 else
35106 ac_executable_p="test -f"
35108 rm -f conf$$.file
35110 # Extract the first word of "msgfmt", so it can be a program name with args.
35111 set dummy msgfmt; ac_word=$2
35112 echo "$as_me:$LINENO: checking for $ac_word" >&5
35113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35114 if test "${ac_cv_path_MSGFMT+set}" = set; then
35115 echo $ECHO_N "(cached) $ECHO_C" >&6
35116 else
35117 case "$MSGFMT" in
35118 [\\/]* | ?:[\\/]*)
35119 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
35122 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35123 for ac_dir in $PATH; do
35124 IFS="$ac_save_IFS"
35125 test -z "$ac_dir" && ac_dir=.
35126 for ac_exec_ext in '' $ac_executable_extensions; do
35127 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35128 echo "$as_me: trying $ac_dir/$ac_word..." >&5
35129 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
35130 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35131 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
35132 break 2
35135 done
35136 done
35137 IFS="$ac_save_IFS"
35138 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
35140 esac
35142 MSGFMT="$ac_cv_path_MSGFMT"
35143 if test "$MSGFMT" != ":"; then
35144 echo "$as_me:$LINENO: result: $MSGFMT" >&5
35145 echo "${ECHO_T}$MSGFMT" >&6
35146 else
35147 echo "$as_me:$LINENO: result: no" >&5
35148 echo "${ECHO_T}no" >&6
35151 # Extract the first word of "gmsgfmt", so it can be a program name with args.
35152 set dummy gmsgfmt; ac_word=$2
35153 echo "$as_me:$LINENO: checking for $ac_word" >&5
35154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35155 if test "${ac_cv_path_GMSGFMT+set}" = set; then
35156 echo $ECHO_N "(cached) $ECHO_C" >&6
35157 else
35158 case $GMSGFMT in
35159 [\\/]* | ?:[\\/]*)
35160 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
35163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35164 for as_dir in $PATH
35166 IFS=$as_save_IFS
35167 test -z "$as_dir" && as_dir=.
35168 for ac_exec_ext in '' $ac_executable_extensions; do
35169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35170 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
35171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35172 break 2
35174 done
35175 done
35177 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
35179 esac
35181 GMSGFMT=$ac_cv_path_GMSGFMT
35183 if test -n "$GMSGFMT"; then
35184 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
35185 echo "${ECHO_T}$GMSGFMT" >&6
35186 else
35187 echo "$as_me:$LINENO: result: no" >&5
35188 echo "${ECHO_T}no" >&6
35193 # Prepare PATH_SEPARATOR.
35194 # The user is always right.
35195 if test "${PATH_SEPARATOR+set}" != set; then
35196 echo "#! /bin/sh" >conf$$.sh
35197 echo "exit 0" >>conf$$.sh
35198 chmod +x conf$$.sh
35199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35200 PATH_SEPARATOR=';'
35201 else
35202 PATH_SEPARATOR=:
35204 rm -f conf$$.sh
35207 # Find out how to test for executable files. Don't use a zero-byte file,
35208 # as systems may use methods other than mode bits to determine executability.
35209 cat >conf$$.file <<_ASEOF
35210 #! /bin/sh
35211 exit 0
35212 _ASEOF
35213 chmod +x conf$$.file
35214 if test -x conf$$.file >/dev/null 2>&1; then
35215 ac_executable_p="test -x"
35216 else
35217 ac_executable_p="test -f"
35219 rm -f conf$$.file
35221 # Extract the first word of "xgettext", so it can be a program name with args.
35222 set dummy xgettext; ac_word=$2
35223 echo "$as_me:$LINENO: checking for $ac_word" >&5
35224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35225 if test "${ac_cv_path_XGETTEXT+set}" = set; then
35226 echo $ECHO_N "(cached) $ECHO_C" >&6
35227 else
35228 case "$XGETTEXT" in
35229 [\\/]* | ?:[\\/]*)
35230 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
35233 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35234 for ac_dir in $PATH; do
35235 IFS="$ac_save_IFS"
35236 test -z "$ac_dir" && ac_dir=.
35237 for ac_exec_ext in '' $ac_executable_extensions; do
35238 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35239 echo "$as_me: trying $ac_dir/$ac_word..." >&5
35240 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
35241 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35242 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
35243 break 2
35246 done
35247 done
35248 IFS="$ac_save_IFS"
35249 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
35251 esac
35253 XGETTEXT="$ac_cv_path_XGETTEXT"
35254 if test "$XGETTEXT" != ":"; then
35255 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
35256 echo "${ECHO_T}$XGETTEXT" >&6
35257 else
35258 echo "$as_me:$LINENO: result: no" >&5
35259 echo "${ECHO_T}no" >&6
35262 rm -f messages.po
35265 # Prepare PATH_SEPARATOR.
35266 # The user is always right.
35267 if test "${PATH_SEPARATOR+set}" != set; then
35268 echo "#! /bin/sh" >conf$$.sh
35269 echo "exit 0" >>conf$$.sh
35270 chmod +x conf$$.sh
35271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35272 PATH_SEPARATOR=';'
35273 else
35274 PATH_SEPARATOR=:
35276 rm -f conf$$.sh
35279 # Find out how to test for executable files. Don't use a zero-byte file,
35280 # as systems may use methods other than mode bits to determine executability.
35281 cat >conf$$.file <<_ASEOF
35282 #! /bin/sh
35283 exit 0
35284 _ASEOF
35285 chmod +x conf$$.file
35286 if test -x conf$$.file >/dev/null 2>&1; then
35287 ac_executable_p="test -x"
35288 else
35289 ac_executable_p="test -f"
35291 rm -f conf$$.file
35293 # Extract the first word of "msgmerge", so it can be a program name with args.
35294 set dummy msgmerge; ac_word=$2
35295 echo "$as_me:$LINENO: checking for $ac_word" >&5
35296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35297 if test "${ac_cv_path_MSGMERGE+set}" = set; then
35298 echo $ECHO_N "(cached) $ECHO_C" >&6
35299 else
35300 case "$MSGMERGE" in
35301 [\\/]* | ?:[\\/]*)
35302 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
35305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
35306 for ac_dir in $PATH; do
35307 IFS="$ac_save_IFS"
35308 test -z "$ac_dir" && ac_dir=.
35309 for ac_exec_ext in '' $ac_executable_extensions; do
35310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
35311 echo "$as_me: trying $ac_dir/$ac_word..." >&5
35312 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
35313 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
35314 break 2
35317 done
35318 done
35319 IFS="$ac_save_IFS"
35320 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
35322 esac
35324 MSGMERGE="$ac_cv_path_MSGMERGE"
35325 if test "$MSGMERGE" != ":"; then
35326 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
35327 echo "${ECHO_T}$MSGMERGE" >&6
35328 else
35329 echo "$as_me:$LINENO: result: no" >&5
35330 echo "${ECHO_T}no" >&6
35334 if test "$GMSGFMT" != ":"; then
35335 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
35336 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35338 else
35339 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
35340 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
35341 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
35342 GMSGFMT=":"
35346 if test "$XGETTEXT" != ":"; then
35347 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
35348 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
35350 else
35351 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
35352 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
35353 XGETTEXT=":"
35355 rm -f messages.po
35358 ac_config_commands="$ac_config_commands default-1"
35362 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
35363 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
35364 if test "${ac_cv_gnu_library_2+set}" = set; then
35365 echo $ECHO_N "(cached) $ECHO_C" >&6
35366 else
35367 cat >conftest.$ac_ext <<_ACEOF
35368 /* confdefs.h. */
35369 _ACEOF
35370 cat confdefs.h >>conftest.$ac_ext
35371 cat >>conftest.$ac_ext <<_ACEOF
35372 /* end confdefs.h. */
35374 #include <features.h>
35375 #ifdef __GNU_LIBRARY__
35376 #if (__GLIBC__ >= 2)
35377 Lucky GNU user
35378 #endif
35379 #endif
35381 _ACEOF
35382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35383 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
35384 ac_cv_gnu_library_2=yes
35385 else
35386 ac_cv_gnu_library_2=no
35388 rm -f conftest*
35393 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
35394 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
35396 GLIBC2="$ac_cv_gnu_library_2"
35399 if test -n "$ac_tool_prefix"; then
35400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35402 echo "$as_me:$LINENO: checking for $ac_word" >&5
35403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35404 if test "${ac_cv_prog_RANLIB+set}" = set; then
35405 echo $ECHO_N "(cached) $ECHO_C" >&6
35406 else
35407 if test -n "$RANLIB"; then
35408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35409 else
35410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35411 for as_dir in $PATH
35413 IFS=$as_save_IFS
35414 test -z "$as_dir" && as_dir=.
35415 for ac_exec_ext in '' $ac_executable_extensions; do
35416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35419 break 2
35421 done
35422 done
35426 RANLIB=$ac_cv_prog_RANLIB
35427 if test -n "$RANLIB"; then
35428 echo "$as_me:$LINENO: result: $RANLIB" >&5
35429 echo "${ECHO_T}$RANLIB" >&6
35430 else
35431 echo "$as_me:$LINENO: result: no" >&5
35432 echo "${ECHO_T}no" >&6
35436 if test -z "$ac_cv_prog_RANLIB"; then
35437 ac_ct_RANLIB=$RANLIB
35438 # Extract the first word of "ranlib", so it can be a program name with args.
35439 set dummy ranlib; ac_word=$2
35440 echo "$as_me:$LINENO: checking for $ac_word" >&5
35441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35442 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35443 echo $ECHO_N "(cached) $ECHO_C" >&6
35444 else
35445 if test -n "$ac_ct_RANLIB"; then
35446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35447 else
35448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35449 for as_dir in $PATH
35451 IFS=$as_save_IFS
35452 test -z "$as_dir" && as_dir=.
35453 for ac_exec_ext in '' $ac_executable_extensions; do
35454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35455 ac_cv_prog_ac_ct_RANLIB="ranlib"
35456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35457 break 2
35459 done
35460 done
35462 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35466 if test -n "$ac_ct_RANLIB"; then
35467 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35468 echo "${ECHO_T}$ac_ct_RANLIB" >&6
35469 else
35470 echo "$as_me:$LINENO: result: no" >&5
35471 echo "${ECHO_T}no" >&6
35474 RANLIB=$ac_ct_RANLIB
35475 else
35476 RANLIB="$ac_cv_prog_RANLIB"
35479 echo "$as_me:$LINENO: checking for off_t" >&5
35480 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
35481 if test "${ac_cv_type_off_t+set}" = set; then
35482 echo $ECHO_N "(cached) $ECHO_C" >&6
35483 else
35484 cat >conftest.$ac_ext <<_ACEOF
35485 /* confdefs.h. */
35486 _ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h. */
35490 $ac_includes_default
35492 main ()
35494 if ((off_t *) 0)
35495 return 0;
35496 if (sizeof (off_t))
35497 return 0;
35499 return 0;
35501 _ACEOF
35502 rm -f conftest.$ac_objext
35503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35504 (eval $ac_compile) 2>conftest.er1
35505 ac_status=$?
35506 grep -v '^ *+' conftest.er1 >conftest.err
35507 rm -f conftest.er1
35508 cat conftest.err >&5
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); } &&
35511 { ac_try='test -z "$ac_c_werror_flag"
35512 || test ! -s conftest.err'
35513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); }; } &&
35518 { ac_try='test -s conftest.$ac_objext'
35519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520 (eval $ac_try) 2>&5
35521 ac_status=$?
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); }; }; then
35524 ac_cv_type_off_t=yes
35525 else
35526 echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35529 ac_cv_type_off_t=no
35531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35533 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35534 echo "${ECHO_T}$ac_cv_type_off_t" >&6
35535 if test $ac_cv_type_off_t = yes; then
35537 else
35539 cat >>confdefs.h <<_ACEOF
35540 #define off_t long
35541 _ACEOF
35546 echo "$as_me:$LINENO: checking for wchar_t" >&5
35547 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35548 if test "${gt_cv_c_wchar_t+set}" = set; then
35549 echo $ECHO_N "(cached) $ECHO_C" >&6
35550 else
35551 cat >conftest.$ac_ext <<_ACEOF
35552 /* confdefs.h. */
35553 _ACEOF
35554 cat confdefs.h >>conftest.$ac_ext
35555 cat >>conftest.$ac_ext <<_ACEOF
35556 /* end confdefs.h. */
35557 #include <stddef.h>
35558 wchar_t foo = (wchar_t)'\0';
35560 main ()
35564 return 0;
35566 _ACEOF
35567 rm -f conftest.$ac_objext
35568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35569 (eval $ac_compile) 2>conftest.er1
35570 ac_status=$?
35571 grep -v '^ *+' conftest.er1 >conftest.err
35572 rm -f conftest.er1
35573 cat conftest.err >&5
35574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 (exit $ac_status); } &&
35576 { ac_try='test -z "$ac_c_werror_flag"
35577 || test ! -s conftest.err'
35578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35579 (eval $ac_try) 2>&5
35580 ac_status=$?
35581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); }; } &&
35583 { ac_try='test -s conftest.$ac_objext'
35584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585 (eval $ac_try) 2>&5
35586 ac_status=$?
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); }; }; then
35589 gt_cv_c_wchar_t=yes
35590 else
35591 echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35594 gt_cv_c_wchar_t=no
35596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35598 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
35599 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
35600 if test $gt_cv_c_wchar_t = yes; then
35602 cat >>confdefs.h <<\_ACEOF
35603 #define HAVE_WCHAR_T 1
35604 _ACEOF
35609 echo "$as_me:$LINENO: checking for wint_t" >&5
35610 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
35611 if test "${gt_cv_c_wint_t+set}" = set; then
35612 echo $ECHO_N "(cached) $ECHO_C" >&6
35613 else
35614 cat >conftest.$ac_ext <<_ACEOF
35615 /* confdefs.h. */
35616 _ACEOF
35617 cat confdefs.h >>conftest.$ac_ext
35618 cat >>conftest.$ac_ext <<_ACEOF
35619 /* end confdefs.h. */
35620 #include <wchar.h>
35621 wint_t foo = (wchar_t)'\0';
35623 main ()
35627 return 0;
35629 _ACEOF
35630 rm -f conftest.$ac_objext
35631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35632 (eval $ac_compile) 2>conftest.er1
35633 ac_status=$?
35634 grep -v '^ *+' conftest.er1 >conftest.err
35635 rm -f conftest.er1
35636 cat conftest.err >&5
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); } &&
35639 { ac_try='test -z "$ac_c_werror_flag"
35640 || test ! -s conftest.err'
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; } &&
35646 { ac_try='test -s conftest.$ac_objext'
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; }; then
35652 gt_cv_c_wint_t=yes
35653 else
35654 echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35657 gt_cv_c_wint_t=no
35659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35661 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
35662 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
35663 if test $gt_cv_c_wint_t = yes; then
35665 cat >>confdefs.h <<\_ACEOF
35666 #define HAVE_WINT_T 1
35667 _ACEOF
35674 echo "$as_me:$LINENO: checking for intmax_t" >&5
35675 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
35676 if test "${gt_cv_c_intmax_t+set}" = set; then
35677 echo $ECHO_N "(cached) $ECHO_C" >&6
35678 else
35679 cat >conftest.$ac_ext <<_ACEOF
35680 /* confdefs.h. */
35681 _ACEOF
35682 cat confdefs.h >>conftest.$ac_ext
35683 cat >>conftest.$ac_ext <<_ACEOF
35684 /* end confdefs.h. */
35686 #include <stddef.h>
35687 #include <stdlib.h>
35688 #if HAVE_STDINT_H_WITH_UINTMAX
35689 #include <stdint.h>
35690 #endif
35691 #if HAVE_INTTYPES_H_WITH_UINTMAX
35692 #include <inttypes.h>
35693 #endif
35696 main ()
35698 intmax_t x = -1;
35700 return 0;
35702 _ACEOF
35703 rm -f conftest.$ac_objext
35704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35705 (eval $ac_compile) 2>conftest.er1
35706 ac_status=$?
35707 grep -v '^ *+' conftest.er1 >conftest.err
35708 rm -f conftest.er1
35709 cat conftest.err >&5
35710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); } &&
35712 { ac_try='test -z "$ac_c_werror_flag"
35713 || test ! -s conftest.err'
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35716 ac_status=$?
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; } &&
35719 { ac_try='test -s conftest.$ac_objext'
35720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35721 (eval $ac_try) 2>&5
35722 ac_status=$?
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); }; }; then
35725 gt_cv_c_intmax_t=yes
35726 else
35727 echo "$as_me: failed program was:" >&5
35728 sed 's/^/| /' conftest.$ac_ext >&5
35730 gt_cv_c_intmax_t=no
35732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35734 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
35735 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
35736 if test $gt_cv_c_intmax_t = yes; then
35738 cat >>confdefs.h <<\_ACEOF
35739 #define HAVE_INTMAX_T 1
35740 _ACEOF
35746 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
35747 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
35748 if test "${gt_cv_func_printf_posix+set}" = set; then
35749 echo $ECHO_N "(cached) $ECHO_C" >&6
35750 else
35752 if test "$cross_compiling" = yes; then
35754 cat >conftest.$ac_ext <<_ACEOF
35755 /* confdefs.h. */
35756 _ACEOF
35757 cat confdefs.h >>conftest.$ac_ext
35758 cat >>conftest.$ac_ext <<_ACEOF
35759 /* end confdefs.h. */
35761 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
35762 notposix
35763 #endif
35765 _ACEOF
35766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35767 $EGREP "notposix" >/dev/null 2>&1; then
35768 gt_cv_func_printf_posix="guessing no"
35769 else
35770 gt_cv_func_printf_posix="guessing yes"
35772 rm -f conftest*
35775 else
35776 cat >conftest.$ac_ext <<_ACEOF
35777 /* confdefs.h. */
35778 _ACEOF
35779 cat confdefs.h >>conftest.$ac_ext
35780 cat >>conftest.$ac_ext <<_ACEOF
35781 /* end confdefs.h. */
35783 #include <stdio.h>
35784 #include <string.h>
35785 /* The string "%2$d %1$d", with dollar characters protected from the shell's
35786 dollar expansion (possibly an autoconf bug). */
35787 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
35788 static char buf[100];
35789 int main ()
35791 sprintf (buf, format, 33, 55);
35792 return (strcmp (buf, "55 33") != 0);
35794 _ACEOF
35795 rm -f conftest$ac_exeext
35796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35797 (eval $ac_link) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35802 (eval $ac_try) 2>&5
35803 ac_status=$?
35804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); }; }; then
35806 gt_cv_func_printf_posix=yes
35807 else
35808 echo "$as_me: program exited with status $ac_status" >&5
35809 echo "$as_me: failed program was:" >&5
35810 sed 's/^/| /' conftest.$ac_ext >&5
35812 ( exit $ac_status )
35813 gt_cv_func_printf_posix=no
35815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35819 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
35820 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
35821 case $gt_cv_func_printf_posix in
35822 *yes)
35824 cat >>confdefs.h <<\_ACEOF
35825 #define HAVE_POSIX_PRINTF 1
35826 _ACEOF
35829 esac
35833 for ac_header in stdlib.h unistd.h
35835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35837 echo "$as_me:$LINENO: checking for $ac_header" >&5
35838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840 echo $ECHO_N "(cached) $ECHO_C" >&6
35842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35844 else
35845 # Is the header compilable?
35846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35848 cat >conftest.$ac_ext <<_ACEOF
35849 /* confdefs.h. */
35850 _ACEOF
35851 cat confdefs.h >>conftest.$ac_ext
35852 cat >>conftest.$ac_ext <<_ACEOF
35853 /* end confdefs.h. */
35854 $ac_includes_default
35855 #include <$ac_header>
35856 _ACEOF
35857 rm -f conftest.$ac_objext
35858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35859 (eval $ac_compile) 2>conftest.er1
35860 ac_status=$?
35861 grep -v '^ *+' conftest.er1 >conftest.err
35862 rm -f conftest.er1
35863 cat conftest.err >&5
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); } &&
35866 { ac_try='test -z "$ac_c_werror_flag"
35867 || test ! -s conftest.err'
35868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869 (eval $ac_try) 2>&5
35870 ac_status=$?
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; } &&
35873 { ac_try='test -s conftest.$ac_objext'
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35876 ac_status=$?
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; }; then
35879 ac_header_compiler=yes
35880 else
35881 echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35884 ac_header_compiler=no
35886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35888 echo "${ECHO_T}$ac_header_compiler" >&6
35890 # Is the header present?
35891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35893 cat >conftest.$ac_ext <<_ACEOF
35894 /* confdefs.h. */
35895 _ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h. */
35899 #include <$ac_header>
35900 _ACEOF
35901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35903 ac_status=$?
35904 grep -v '^ *+' conftest.er1 >conftest.err
35905 rm -f conftest.er1
35906 cat conftest.err >&5
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } >/dev/null; then
35909 if test -s conftest.err; then
35910 ac_cpp_err=$ac_c_preproc_warn_flag
35911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35912 else
35913 ac_cpp_err=
35915 else
35916 ac_cpp_err=yes
35918 if test -z "$ac_cpp_err"; then
35919 ac_header_preproc=yes
35920 else
35921 echo "$as_me: failed program was:" >&5
35922 sed 's/^/| /' conftest.$ac_ext >&5
35924 ac_header_preproc=no
35926 rm -f conftest.err conftest.$ac_ext
35927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35928 echo "${ECHO_T}$ac_header_preproc" >&6
35930 # So? What about this header?
35931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35932 yes:no: )
35933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35937 ac_header_preproc=yes
35939 no:yes:* )
35940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35953 cat <<\_ASBOX
35954 ## ------------------------------------------ ##
35955 ## Report this to the AC_PACKAGE_NAME lists. ##
35956 ## ------------------------------------------ ##
35957 _ASBOX
35959 sed "s/^/$as_me: WARNING: /" >&2
35961 esac
35962 echo "$as_me:$LINENO: checking for $ac_header" >&5
35963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35965 echo $ECHO_N "(cached) $ECHO_C" >&6
35966 else
35967 eval "$as_ac_Header=\$ac_header_preproc"
35969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35974 cat >>confdefs.h <<_ACEOF
35975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35976 _ACEOF
35980 done
35983 for ac_func in getpagesize
35985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35986 echo "$as_me:$LINENO: checking for $ac_func" >&5
35987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35988 if eval "test \"\${$as_ac_var+set}\" = set"; then
35989 echo $ECHO_N "(cached) $ECHO_C" >&6
35990 else
35991 cat >conftest.$ac_ext <<_ACEOF
35992 /* confdefs.h. */
35993 _ACEOF
35994 cat confdefs.h >>conftest.$ac_ext
35995 cat >>conftest.$ac_ext <<_ACEOF
35996 /* end confdefs.h. */
35997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35999 #define $ac_func innocuous_$ac_func
36001 /* System header to define __stub macros and hopefully few prototypes,
36002 which can conflict with char $ac_func (); below.
36003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36004 <limits.h> exists even on freestanding compilers. */
36006 #ifdef __STDC__
36007 # include <limits.h>
36008 #else
36009 # include <assert.h>
36010 #endif
36012 #undef $ac_func
36014 /* Override any gcc2 internal prototype to avoid an error. */
36015 #ifdef __cplusplus
36016 extern "C"
36018 #endif
36019 /* We use char because int might match the return type of a gcc2
36020 builtin and then its argument prototype would still apply. */
36021 char $ac_func ();
36022 /* The GNU C library defines this for functions which it implements
36023 to always fail with ENOSYS. Some functions are actually named
36024 something starting with __ and the normal name is an alias. */
36025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36026 choke me
36027 #else
36028 char (*f) () = $ac_func;
36029 #endif
36030 #ifdef __cplusplus
36032 #endif
36035 main ()
36037 return f != $ac_func;
36039 return 0;
36041 _ACEOF
36042 rm -f conftest.$ac_objext conftest$ac_exeext
36043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36044 (eval $ac_link) 2>conftest.er1
36045 ac_status=$?
36046 grep -v '^ *+' conftest.er1 >conftest.err
36047 rm -f conftest.er1
36048 cat conftest.err >&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } &&
36051 { ac_try='test -z "$ac_c_werror_flag"
36052 || test ! -s conftest.err'
36053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36054 (eval $ac_try) 2>&5
36055 ac_status=$?
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); }; } &&
36058 { ac_try='test -s conftest$ac_exeext'
36059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060 (eval $ac_try) 2>&5
36061 ac_status=$?
36062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 (exit $ac_status); }; }; then
36064 eval "$as_ac_var=yes"
36065 else
36066 echo "$as_me: failed program was:" >&5
36067 sed 's/^/| /' conftest.$ac_ext >&5
36069 eval "$as_ac_var=no"
36071 rm -f conftest.err conftest.$ac_objext \
36072 conftest$ac_exeext conftest.$ac_ext
36074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36076 if test `eval echo '${'$as_ac_var'}'` = yes; then
36077 cat >>confdefs.h <<_ACEOF
36078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36079 _ACEOF
36082 done
36084 echo "$as_me:$LINENO: checking for working mmap" >&5
36085 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
36086 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
36087 echo $ECHO_N "(cached) $ECHO_C" >&6
36088 else
36089 if test "$cross_compiling" = yes; then
36090 ac_cv_func_mmap_fixed_mapped=no
36091 else
36092 cat >conftest.$ac_ext <<_ACEOF
36093 /* confdefs.h. */
36094 _ACEOF
36095 cat confdefs.h >>conftest.$ac_ext
36096 cat >>conftest.$ac_ext <<_ACEOF
36097 /* end confdefs.h. */
36098 $ac_includes_default
36099 /* malloc might have been renamed as rpl_malloc. */
36100 #undef malloc
36102 /* Thanks to Mike Haertel and Jim Avera for this test.
36103 Here is a matrix of mmap possibilities:
36104 mmap private not fixed
36105 mmap private fixed at somewhere currently unmapped
36106 mmap private fixed at somewhere already mapped
36107 mmap shared not fixed
36108 mmap shared fixed at somewhere currently unmapped
36109 mmap shared fixed at somewhere already mapped
36110 For private mappings, we should verify that changes cannot be read()
36111 back from the file, nor mmap's back from the file at a different
36112 address. (There have been systems where private was not correctly
36113 implemented like the infamous i386 svr4.0, and systems where the
36114 VM page cache was not coherent with the file system buffer cache
36115 like early versions of FreeBSD and possibly contemporary NetBSD.)
36116 For shared mappings, we should conversely verify that changes get
36117 propagated back to all the places they're supposed to be.
36119 Grep wants private fixed already mapped.
36120 The main things grep needs to know about mmap are:
36121 * does it exist and is it safe to write into the mmap'd area
36122 * how to use it (BSD variants) */
36124 #include <fcntl.h>
36125 #include <sys/mman.h>
36127 #if !STDC_HEADERS && !HAVE_STDLIB_H
36128 char *malloc ();
36129 #endif
36131 /* This mess was copied from the GNU getpagesize.h. */
36132 #if !HAVE_GETPAGESIZE
36133 /* Assume that all systems that can run configure have sys/param.h. */
36134 # if !HAVE_SYS_PARAM_H
36135 # define HAVE_SYS_PARAM_H 1
36136 # endif
36138 # ifdef _SC_PAGESIZE
36139 # define getpagesize() sysconf(_SC_PAGESIZE)
36140 # else /* no _SC_PAGESIZE */
36141 # if HAVE_SYS_PARAM_H
36142 # include <sys/param.h>
36143 # ifdef EXEC_PAGESIZE
36144 # define getpagesize() EXEC_PAGESIZE
36145 # else /* no EXEC_PAGESIZE */
36146 # ifdef NBPG
36147 # define getpagesize() NBPG * CLSIZE
36148 # ifndef CLSIZE
36149 # define CLSIZE 1
36150 # endif /* no CLSIZE */
36151 # else /* no NBPG */
36152 # ifdef NBPC
36153 # define getpagesize() NBPC
36154 # else /* no NBPC */
36155 # ifdef PAGESIZE
36156 # define getpagesize() PAGESIZE
36157 # endif /* PAGESIZE */
36158 # endif /* no NBPC */
36159 # endif /* no NBPG */
36160 # endif /* no EXEC_PAGESIZE */
36161 # else /* no HAVE_SYS_PARAM_H */
36162 # define getpagesize() 8192 /* punt totally */
36163 # endif /* no HAVE_SYS_PARAM_H */
36164 # endif /* no _SC_PAGESIZE */
36166 #endif /* no HAVE_GETPAGESIZE */
36169 main ()
36171 char *data, *data2, *data3;
36172 int i, pagesize;
36173 int fd;
36175 pagesize = getpagesize ();
36177 /* First, make a file with some known garbage in it. */
36178 data = (char *) malloc (pagesize);
36179 if (!data)
36180 exit (1);
36181 for (i = 0; i < pagesize; ++i)
36182 *(data + i) = rand ();
36183 umask (0);
36184 fd = creat ("conftest.mmap", 0600);
36185 if (fd < 0)
36186 exit (1);
36187 if (write (fd, data, pagesize) != pagesize)
36188 exit (1);
36189 close (fd);
36191 /* Next, try to mmap the file at a fixed address which already has
36192 something else allocated at it. If we can, also make sure that
36193 we see the same garbage. */
36194 fd = open ("conftest.mmap", O_RDWR);
36195 if (fd < 0)
36196 exit (1);
36197 data2 = (char *) malloc (2 * pagesize);
36198 if (!data2)
36199 exit (1);
36200 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
36201 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
36202 MAP_PRIVATE | MAP_FIXED, fd, 0L))
36203 exit (1);
36204 for (i = 0; i < pagesize; ++i)
36205 if (*(data + i) != *(data2 + i))
36206 exit (1);
36208 /* Finally, make sure that changes to the mapped area do not
36209 percolate back to the file as seen by read(). (This is a bug on
36210 some variants of i386 svr4.0.) */
36211 for (i = 0; i < pagesize; ++i)
36212 *(data2 + i) = *(data2 + i) + 1;
36213 data3 = (char *) malloc (pagesize);
36214 if (!data3)
36215 exit (1);
36216 if (read (fd, data3, pagesize) != pagesize)
36217 exit (1);
36218 for (i = 0; i < pagesize; ++i)
36219 if (*(data + i) != *(data3 + i))
36220 exit (1);
36221 close (fd);
36222 exit (0);
36224 _ACEOF
36225 rm -f conftest$ac_exeext
36226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36227 (eval $ac_link) 2>&5
36228 ac_status=$?
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36232 (eval $ac_try) 2>&5
36233 ac_status=$?
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); }; }; then
36236 ac_cv_func_mmap_fixed_mapped=yes
36237 else
36238 echo "$as_me: program exited with status $ac_status" >&5
36239 echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.$ac_ext >&5
36242 ( exit $ac_status )
36243 ac_cv_func_mmap_fixed_mapped=no
36245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36248 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
36249 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
36250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
36252 cat >>confdefs.h <<\_ACEOF
36253 #define HAVE_MMAP 1
36254 _ACEOF
36257 rm -f conftest.mmap
36260 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
36261 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
36262 if test "${ac_cv_gnu_library_2_1+set}" = set; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36264 else
36265 cat >conftest.$ac_ext <<_ACEOF
36266 /* confdefs.h. */
36267 _ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h. */
36272 #include <features.h>
36273 #ifdef __GNU_LIBRARY__
36274 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
36275 Lucky GNU user
36276 #endif
36277 #endif
36279 _ACEOF
36280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36281 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
36282 ac_cv_gnu_library_2_1=yes
36283 else
36284 ac_cv_gnu_library_2_1=no
36286 rm -f conftest*
36291 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
36292 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
36294 GLIBC21="$ac_cv_gnu_library_2_1"
36299 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
36300 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
36301 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
36302 echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36305 if test "$cross_compiling" = yes; then
36307 # Guess based on the CPU.
36308 case "$host_cpu" in
36309 alpha* | i3456786 | m68k | s390*)
36310 gt_cv_int_divbyzero_sigfpe="guessing yes";;
36312 gt_cv_int_divbyzero_sigfpe="guessing no";;
36313 esac
36315 else
36316 cat >conftest.$ac_ext <<_ACEOF
36317 /* confdefs.h. */
36318 _ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h. */
36323 #include <stdlib.h>
36324 #include <signal.h>
36326 static void
36327 #ifdef __cplusplus
36328 sigfpe_handler (int sig)
36329 #else
36330 sigfpe_handler (sig) int sig;
36331 #endif
36333 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
36334 exit (sig != SIGFPE);
36337 int x = 1;
36338 int y = 0;
36339 int z;
36340 int nan;
36342 int main ()
36344 signal (SIGFPE, sigfpe_handler);
36345 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
36346 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
36347 signal (SIGTRAP, sigfpe_handler);
36348 #endif
36349 /* Linux/SPARC yields signal SIGILL. */
36350 #if defined (__sparc__) && defined (__linux__)
36351 signal (SIGILL, sigfpe_handler);
36352 #endif
36354 z = x / y;
36355 nan = y / y;
36356 exit (1);
36359 _ACEOF
36360 rm -f conftest$ac_exeext
36361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36362 (eval $ac_link) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367 (eval $ac_try) 2>&5
36368 ac_status=$?
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); }; }; then
36371 gt_cv_int_divbyzero_sigfpe=yes
36372 else
36373 echo "$as_me: program exited with status $ac_status" >&5
36374 echo "$as_me: failed program was:" >&5
36375 sed 's/^/| /' conftest.$ac_ext >&5
36377 ( exit $ac_status )
36378 gt_cv_int_divbyzero_sigfpe=no
36380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36384 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
36385 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
36386 case "$gt_cv_int_divbyzero_sigfpe" in
36387 *yes) value=1;;
36388 *) value=0;;
36389 esac
36391 cat >>confdefs.h <<_ACEOF
36392 #define INTDIV0_RAISES_SIGFPE $value
36393 _ACEOF
36397 echo "$as_me:$LINENO: checking for inttypes.h" >&5
36398 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
36399 if test "${gt_cv_header_inttypes_h+set}" = set; then
36400 echo $ECHO_N "(cached) $ECHO_C" >&6
36401 else
36403 cat >conftest.$ac_ext <<_ACEOF
36404 /* confdefs.h. */
36405 _ACEOF
36406 cat confdefs.h >>conftest.$ac_ext
36407 cat >>conftest.$ac_ext <<_ACEOF
36408 /* end confdefs.h. */
36409 #include <sys/types.h>
36410 #include <inttypes.h>
36412 main ()
36416 return 0;
36418 _ACEOF
36419 rm -f conftest.$ac_objext
36420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36421 (eval $ac_compile) 2>conftest.er1
36422 ac_status=$?
36423 grep -v '^ *+' conftest.er1 >conftest.err
36424 rm -f conftest.er1
36425 cat conftest.err >&5
36426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427 (exit $ac_status); } &&
36428 { ac_try='test -z "$ac_c_werror_flag"
36429 || test ! -s conftest.err'
36430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36431 (eval $ac_try) 2>&5
36432 ac_status=$?
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); }; } &&
36435 { ac_try='test -s conftest.$ac_objext'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36438 ac_status=$?
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; }; then
36441 gt_cv_header_inttypes_h=yes
36442 else
36443 echo "$as_me: failed program was:" >&5
36444 sed 's/^/| /' conftest.$ac_ext >&5
36446 gt_cv_header_inttypes_h=no
36448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36451 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
36452 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
36453 if test $gt_cv_header_inttypes_h = yes; then
36455 cat >>confdefs.h <<_ACEOF
36456 #define HAVE_INTTYPES_H 1
36457 _ACEOF
36463 if test $gt_cv_header_inttypes_h = yes; then
36464 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
36465 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
36466 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
36467 echo $ECHO_N "(cached) $ECHO_C" >&6
36468 else
36470 cat >conftest.$ac_ext <<_ACEOF
36471 /* confdefs.h. */
36472 _ACEOF
36473 cat confdefs.h >>conftest.$ac_ext
36474 cat >>conftest.$ac_ext <<_ACEOF
36475 /* end confdefs.h. */
36476 #include <inttypes.h>
36477 #ifdef PRId32
36478 char *p = PRId32;
36479 #endif
36482 main ()
36486 return 0;
36488 _ACEOF
36489 rm -f conftest.$ac_objext
36490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36491 (eval $ac_compile) 2>conftest.er1
36492 ac_status=$?
36493 grep -v '^ *+' conftest.er1 >conftest.err
36494 rm -f conftest.er1
36495 cat conftest.err >&5
36496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497 (exit $ac_status); } &&
36498 { ac_try='test -z "$ac_c_werror_flag"
36499 || test ! -s conftest.err'
36500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36501 (eval $ac_try) 2>&5
36502 ac_status=$?
36503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); }; } &&
36505 { ac_try='test -s conftest.$ac_objext'
36506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36507 (eval $ac_try) 2>&5
36508 ac_status=$?
36509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 (exit $ac_status); }; }; then
36511 gt_cv_inttypes_pri_broken=no
36512 else
36513 echo "$as_me: failed program was:" >&5
36514 sed 's/^/| /' conftest.$ac_ext >&5
36516 gt_cv_inttypes_pri_broken=yes
36518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36521 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
36522 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
36524 if test "$gt_cv_inttypes_pri_broken" = yes; then
36526 cat >>confdefs.h <<_ACEOF
36527 #define PRI_MACROS_BROKEN 1
36528 _ACEOF
36533 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
36534 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
36535 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
36536 echo $ECHO_N "(cached) $ECHO_C" >&6
36537 else
36538 gt_save_CPPFLAGS="$CPPFLAGS"
36539 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
36540 gt_save_LIBS="$LIBS"
36541 LIBS="$LIBS -framework CoreFoundation"
36542 cat >conftest.$ac_ext <<_ACEOF
36543 /* confdefs.h. */
36544 _ACEOF
36545 cat confdefs.h >>conftest.$ac_ext
36546 cat >>conftest.$ac_ext <<_ACEOF
36547 /* end confdefs.h. */
36548 #include <CFPreferences.h>
36550 main ()
36552 CFPreferencesCopyAppValue(NULL, NULL)
36554 return 0;
36556 _ACEOF
36557 rm -f conftest.$ac_objext conftest$ac_exeext
36558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36559 (eval $ac_link) 2>conftest.er1
36560 ac_status=$?
36561 grep -v '^ *+' conftest.er1 >conftest.err
36562 rm -f conftest.er1
36563 cat conftest.err >&5
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); } &&
36566 { ac_try='test -z "$ac_c_werror_flag"
36567 || test ! -s conftest.err'
36568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569 (eval $ac_try) 2>&5
36570 ac_status=$?
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 (exit $ac_status); }; } &&
36573 { ac_try='test -s conftest$ac_exeext'
36574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575 (eval $ac_try) 2>&5
36576 ac_status=$?
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); }; }; then
36579 gt_cv_func_CFPreferencesCopyAppValue=yes
36580 else
36581 echo "$as_me: failed program was:" >&5
36582 sed 's/^/| /' conftest.$ac_ext >&5
36584 gt_cv_func_CFPreferencesCopyAppValue=no
36586 rm -f conftest.err conftest.$ac_objext \
36587 conftest$ac_exeext conftest.$ac_ext
36588 CPPFLAGS="$gt_save_CPPFLAGS"
36589 LIBS="$gt_save_LIBS"
36591 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
36592 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
36593 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
36595 cat >>confdefs.h <<\_ACEOF
36596 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
36597 _ACEOF
36600 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
36601 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
36602 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
36603 echo $ECHO_N "(cached) $ECHO_C" >&6
36604 else
36605 gt_save_CPPFLAGS="$CPPFLAGS"
36606 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
36607 gt_save_LIBS="$LIBS"
36608 LIBS="$LIBS -framework CoreFoundation"
36609 cat >conftest.$ac_ext <<_ACEOF
36610 /* confdefs.h. */
36611 _ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h. */
36615 #include <CFLocale.h>
36617 main ()
36619 CFLocaleCopyCurrent();
36621 return 0;
36623 _ACEOF
36624 rm -f conftest.$ac_objext conftest$ac_exeext
36625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36626 (eval $ac_link) 2>conftest.er1
36627 ac_status=$?
36628 grep -v '^ *+' conftest.er1 >conftest.err
36629 rm -f conftest.er1
36630 cat conftest.err >&5
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); } &&
36633 { ac_try='test -z "$ac_c_werror_flag"
36634 || test ! -s conftest.err'
36635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36636 (eval $ac_try) 2>&5
36637 ac_status=$?
36638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639 (exit $ac_status); }; } &&
36640 { ac_try='test -s conftest$ac_exeext'
36641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642 (eval $ac_try) 2>&5
36643 ac_status=$?
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); }; }; then
36646 gt_cv_func_CFLocaleCopyCurrent=yes
36647 else
36648 echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36651 gt_cv_func_CFLocaleCopyCurrent=no
36653 rm -f conftest.err conftest.$ac_objext \
36654 conftest$ac_exeext conftest.$ac_ext
36655 CPPFLAGS="$gt_save_CPPFLAGS"
36656 LIBS="$gt_save_LIBS"
36658 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
36659 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
36660 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36662 cat >>confdefs.h <<\_ACEOF
36663 #define HAVE_CFLOCALECOPYCURRENT 1
36664 _ACEOF
36667 INTL_MACOSX_LIBS=
36668 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
36669 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
36674 if test "X$prefix" = "XNONE"; then
36675 acl_final_prefix="$ac_default_prefix"
36676 else
36677 acl_final_prefix="$prefix"
36679 if test "X$exec_prefix" = "XNONE"; then
36680 acl_final_exec_prefix='${prefix}'
36681 else
36682 acl_final_exec_prefix="$exec_prefix"
36684 acl_save_prefix="$prefix"
36685 prefix="$acl_final_prefix"
36686 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
36687 prefix="$acl_save_prefix"
36691 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
36692 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
36693 if test "${acl_cv_rpath+set}" = set; then
36694 echo $ECHO_N "(cached) $ECHO_C" >&6
36695 else
36697 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
36698 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
36699 . ./conftest.sh
36700 rm -f ./conftest.sh
36701 acl_cv_rpath=done
36704 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
36705 echo "${ECHO_T}$acl_cv_rpath" >&6
36706 wl="$acl_cv_wl"
36707 libext="$acl_cv_libext"
36708 shlibext="$acl_cv_shlibext"
36709 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
36710 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
36711 hardcode_direct="$acl_cv_hardcode_direct"
36712 hardcode_minus_L="$acl_cv_hardcode_minus_L"
36713 # Check whether --enable-rpath or --disable-rpath was given.
36714 if test "${enable_rpath+set}" = set; then
36715 enableval="$enable_rpath"
36717 else
36718 enable_rpath=yes
36727 use_additional=yes
36729 acl_save_prefix="$prefix"
36730 prefix="$acl_final_prefix"
36731 acl_save_exec_prefix="$exec_prefix"
36732 exec_prefix="$acl_final_exec_prefix"
36734 eval additional_includedir=\"$includedir\"
36735 eval additional_libdir=\"$libdir\"
36737 exec_prefix="$acl_save_exec_prefix"
36738 prefix="$acl_save_prefix"
36741 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36742 if test "${with_libiconv_prefix+set}" = set; then
36743 withval="$with_libiconv_prefix"
36745 if test "X$withval" = "Xno"; then
36746 use_additional=no
36747 else
36748 if test "X$withval" = "X"; then
36750 acl_save_prefix="$prefix"
36751 prefix="$acl_final_prefix"
36752 acl_save_exec_prefix="$exec_prefix"
36753 exec_prefix="$acl_final_exec_prefix"
36755 eval additional_includedir=\"$includedir\"
36756 eval additional_libdir=\"$libdir\"
36758 exec_prefix="$acl_save_exec_prefix"
36759 prefix="$acl_save_prefix"
36761 else
36762 additional_includedir="$withval/include"
36763 additional_libdir="$withval/lib"
36768 LIBICONV=
36769 LTLIBICONV=
36770 INCICONV=
36771 rpathdirs=
36772 ltrpathdirs=
36773 names_already_handled=
36774 names_next_round='iconv '
36775 while test -n "$names_next_round"; do
36776 names_this_round="$names_next_round"
36777 names_next_round=
36778 for name in $names_this_round; do
36779 already_handled=
36780 for n in $names_already_handled; do
36781 if test "$n" = "$name"; then
36782 already_handled=yes
36783 break
36785 done
36786 if test -z "$already_handled"; then
36787 names_already_handled="$names_already_handled $name"
36788 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36789 eval value=\"\$HAVE_LIB$uppername\"
36790 if test -n "$value"; then
36791 if test "$value" = yes; then
36792 eval value=\"\$LIB$uppername\"
36793 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
36794 eval value=\"\$LTLIB$uppername\"
36795 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
36796 else
36799 else
36800 found_dir=
36801 found_la=
36802 found_so=
36803 found_a=
36804 if test $use_additional = yes; then
36805 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36806 found_dir="$additional_libdir"
36807 found_so="$additional_libdir/lib$name.$shlibext"
36808 if test -f "$additional_libdir/lib$name.la"; then
36809 found_la="$additional_libdir/lib$name.la"
36811 else
36812 if test -f "$additional_libdir/lib$name.$libext"; then
36813 found_dir="$additional_libdir"
36814 found_a="$additional_libdir/lib$name.$libext"
36815 if test -f "$additional_libdir/lib$name.la"; then
36816 found_la="$additional_libdir/lib$name.la"
36821 if test "X$found_dir" = "X"; then
36822 for x in $LDFLAGS $LTLIBICONV; do
36824 acl_save_prefix="$prefix"
36825 prefix="$acl_final_prefix"
36826 acl_save_exec_prefix="$exec_prefix"
36827 exec_prefix="$acl_final_exec_prefix"
36828 eval x=\"$x\"
36829 exec_prefix="$acl_save_exec_prefix"
36830 prefix="$acl_save_prefix"
36832 case "$x" in
36833 -L*)
36834 dir=`echo "X$x" | sed -e 's/^X-L//'`
36835 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36836 found_dir="$dir"
36837 found_so="$dir/lib$name.$shlibext"
36838 if test -f "$dir/lib$name.la"; then
36839 found_la="$dir/lib$name.la"
36841 else
36842 if test -f "$dir/lib$name.$libext"; then
36843 found_dir="$dir"
36844 found_a="$dir/lib$name.$libext"
36845 if test -f "$dir/lib$name.la"; then
36846 found_la="$dir/lib$name.la"
36851 esac
36852 if test "X$found_dir" != "X"; then
36853 break
36855 done
36857 if test "X$found_dir" != "X"; then
36858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
36859 if test "X$found_so" != "X"; then
36860 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
36861 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36862 else
36863 haveit=
36864 for x in $ltrpathdirs; do
36865 if test "X$x" = "X$found_dir"; then
36866 haveit=yes
36867 break
36869 done
36870 if test -z "$haveit"; then
36871 ltrpathdirs="$ltrpathdirs $found_dir"
36873 if test "$hardcode_direct" = yes; then
36874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36875 else
36876 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
36877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36878 haveit=
36879 for x in $rpathdirs; do
36880 if test "X$x" = "X$found_dir"; then
36881 haveit=yes
36882 break
36884 done
36885 if test -z "$haveit"; then
36886 rpathdirs="$rpathdirs $found_dir"
36888 else
36889 haveit=
36890 for x in $LDFLAGS $LIBICONV; do
36892 acl_save_prefix="$prefix"
36893 prefix="$acl_final_prefix"
36894 acl_save_exec_prefix="$exec_prefix"
36895 exec_prefix="$acl_final_exec_prefix"
36896 eval x=\"$x\"
36897 exec_prefix="$acl_save_exec_prefix"
36898 prefix="$acl_save_prefix"
36900 if test "X$x" = "X-L$found_dir"; then
36901 haveit=yes
36902 break
36904 done
36905 if test -z "$haveit"; then
36906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
36908 if test "$hardcode_minus_L" != no; then
36909 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36910 else
36911 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36916 else
36917 if test "X$found_a" != "X"; then
36918 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
36919 else
36920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
36923 additional_includedir=
36924 case "$found_dir" in
36925 */lib | */lib/)
36926 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
36927 additional_includedir="$basedir/include"
36929 esac
36930 if test "X$additional_includedir" != "X"; then
36931 if test "X$additional_includedir" != "X/usr/include"; then
36932 haveit=
36933 if test "X$additional_includedir" = "X/usr/local/include"; then
36934 if test -n "$GCC"; then
36935 case $host_os in
36936 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36937 esac
36940 if test -z "$haveit"; then
36941 for x in $CPPFLAGS $INCICONV; do
36943 acl_save_prefix="$prefix"
36944 prefix="$acl_final_prefix"
36945 acl_save_exec_prefix="$exec_prefix"
36946 exec_prefix="$acl_final_exec_prefix"
36947 eval x=\"$x\"
36948 exec_prefix="$acl_save_exec_prefix"
36949 prefix="$acl_save_prefix"
36951 if test "X$x" = "X-I$additional_includedir"; then
36952 haveit=yes
36953 break
36955 done
36956 if test -z "$haveit"; then
36957 if test -d "$additional_includedir"; then
36958 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
36964 if test -n "$found_la"; then
36965 save_libdir="$libdir"
36966 case "$found_la" in
36967 */* | *\\*) . "$found_la" ;;
36968 *) . "./$found_la" ;;
36969 esac
36970 libdir="$save_libdir"
36971 for dep in $dependency_libs; do
36972 case "$dep" in
36973 -L*)
36974 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36975 if test "X$additional_libdir" != "X/usr/lib"; then
36976 haveit=
36977 if test "X$additional_libdir" = "X/usr/local/lib"; then
36978 if test -n "$GCC"; then
36979 case $host_os in
36980 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
36981 esac
36984 if test -z "$haveit"; then
36985 haveit=
36986 for x in $LDFLAGS $LIBICONV; do
36988 acl_save_prefix="$prefix"
36989 prefix="$acl_final_prefix"
36990 acl_save_exec_prefix="$exec_prefix"
36991 exec_prefix="$acl_final_exec_prefix"
36992 eval x=\"$x\"
36993 exec_prefix="$acl_save_exec_prefix"
36994 prefix="$acl_save_prefix"
36996 if test "X$x" = "X-L$additional_libdir"; then
36997 haveit=yes
36998 break
37000 done
37001 if test -z "$haveit"; then
37002 if test -d "$additional_libdir"; then
37003 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
37006 haveit=
37007 for x in $LDFLAGS $LTLIBICONV; do
37009 acl_save_prefix="$prefix"
37010 prefix="$acl_final_prefix"
37011 acl_save_exec_prefix="$exec_prefix"
37012 exec_prefix="$acl_final_exec_prefix"
37013 eval x=\"$x\"
37014 exec_prefix="$acl_save_exec_prefix"
37015 prefix="$acl_save_prefix"
37017 if test "X$x" = "X-L$additional_libdir"; then
37018 haveit=yes
37019 break
37021 done
37022 if test -z "$haveit"; then
37023 if test -d "$additional_libdir"; then
37024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
37030 -R*)
37031 dir=`echo "X$dep" | sed -e 's/^X-R//'`
37032 if test "$enable_rpath" != no; then
37033 haveit=
37034 for x in $rpathdirs; do
37035 if test "X$x" = "X$dir"; then
37036 haveit=yes
37037 break
37039 done
37040 if test -z "$haveit"; then
37041 rpathdirs="$rpathdirs $dir"
37043 haveit=
37044 for x in $ltrpathdirs; do
37045 if test "X$x" = "X$dir"; then
37046 haveit=yes
37047 break
37049 done
37050 if test -z "$haveit"; then
37051 ltrpathdirs="$ltrpathdirs $dir"
37055 -l*)
37056 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37058 *.la)
37059 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37062 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
37063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
37065 esac
37066 done
37068 else
37069 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
37070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
37074 done
37075 done
37076 if test "X$rpathdirs" != "X"; then
37077 if test -n "$hardcode_libdir_separator"; then
37078 alldirs=
37079 for found_dir in $rpathdirs; do
37080 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
37081 done
37082 acl_save_libdir="$libdir"
37083 libdir="$alldirs"
37084 eval flag=\"$hardcode_libdir_flag_spec\"
37085 libdir="$acl_save_libdir"
37086 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37087 else
37088 for found_dir in $rpathdirs; do
37089 acl_save_libdir="$libdir"
37090 libdir="$found_dir"
37091 eval flag=\"$hardcode_libdir_flag_spec\"
37092 libdir="$acl_save_libdir"
37093 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
37094 done
37097 if test "X$ltrpathdirs" != "X"; then
37098 for found_dir in $ltrpathdirs; do
37099 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
37100 done
37110 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37111 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37112 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37113 echo $ECHO_N "(cached) $ECHO_C" >&6
37114 else
37115 cat >conftest.$ac_ext <<_ACEOF
37116 /* confdefs.h. */
37117 _ACEOF
37118 cat confdefs.h >>conftest.$ac_ext
37119 cat >>conftest.$ac_ext <<_ACEOF
37120 /* end confdefs.h. */
37121 $ac_includes_default
37123 main ()
37125 if ((ptrdiff_t *) 0)
37126 return 0;
37127 if (sizeof (ptrdiff_t))
37128 return 0;
37130 return 0;
37132 _ACEOF
37133 rm -f conftest.$ac_objext
37134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37135 (eval $ac_compile) 2>conftest.er1
37136 ac_status=$?
37137 grep -v '^ *+' conftest.er1 >conftest.err
37138 rm -f conftest.er1
37139 cat conftest.err >&5
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); } &&
37142 { ac_try='test -z "$ac_c_werror_flag"
37143 || test ! -s conftest.err'
37144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37145 (eval $ac_try) 2>&5
37146 ac_status=$?
37147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148 (exit $ac_status); }; } &&
37149 { ac_try='test -s conftest.$ac_objext'
37150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37151 (eval $ac_try) 2>&5
37152 ac_status=$?
37153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154 (exit $ac_status); }; }; then
37155 ac_cv_type_ptrdiff_t=yes
37156 else
37157 echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37160 ac_cv_type_ptrdiff_t=no
37162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37164 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37165 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37166 if test $ac_cv_type_ptrdiff_t = yes; then
37168 else
37170 cat >>confdefs.h <<\_ACEOF
37171 #define ptrdiff_t long
37172 _ACEOF
37187 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
37188 stdlib.h string.h unistd.h sys/param.h
37190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37192 echo "$as_me:$LINENO: checking for $ac_header" >&5
37193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37195 echo $ECHO_N "(cached) $ECHO_C" >&6
37197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37199 else
37200 # Is the header compilable?
37201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37203 cat >conftest.$ac_ext <<_ACEOF
37204 /* confdefs.h. */
37205 _ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h. */
37209 $ac_includes_default
37210 #include <$ac_header>
37211 _ACEOF
37212 rm -f conftest.$ac_objext
37213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37214 (eval $ac_compile) 2>conftest.er1
37215 ac_status=$?
37216 grep -v '^ *+' conftest.er1 >conftest.err
37217 rm -f conftest.er1
37218 cat conftest.err >&5
37219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220 (exit $ac_status); } &&
37221 { ac_try='test -z "$ac_c_werror_flag"
37222 || test ! -s conftest.err'
37223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37224 (eval $ac_try) 2>&5
37225 ac_status=$?
37226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37227 (exit $ac_status); }; } &&
37228 { ac_try='test -s conftest.$ac_objext'
37229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37230 (eval $ac_try) 2>&5
37231 ac_status=$?
37232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233 (exit $ac_status); }; }; then
37234 ac_header_compiler=yes
37235 else
37236 echo "$as_me: failed program was:" >&5
37237 sed 's/^/| /' conftest.$ac_ext >&5
37239 ac_header_compiler=no
37241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37243 echo "${ECHO_T}$ac_header_compiler" >&6
37245 # Is the header present?
37246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37248 cat >conftest.$ac_ext <<_ACEOF
37249 /* confdefs.h. */
37250 _ACEOF
37251 cat confdefs.h >>conftest.$ac_ext
37252 cat >>conftest.$ac_ext <<_ACEOF
37253 /* end confdefs.h. */
37254 #include <$ac_header>
37255 _ACEOF
37256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37258 ac_status=$?
37259 grep -v '^ *+' conftest.er1 >conftest.err
37260 rm -f conftest.er1
37261 cat conftest.err >&5
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); } >/dev/null; then
37264 if test -s conftest.err; then
37265 ac_cpp_err=$ac_c_preproc_warn_flag
37266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37267 else
37268 ac_cpp_err=
37270 else
37271 ac_cpp_err=yes
37273 if test -z "$ac_cpp_err"; then
37274 ac_header_preproc=yes
37275 else
37276 echo "$as_me: failed program was:" >&5
37277 sed 's/^/| /' conftest.$ac_ext >&5
37279 ac_header_preproc=no
37281 rm -f conftest.err conftest.$ac_ext
37282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37283 echo "${ECHO_T}$ac_header_preproc" >&6
37285 # So? What about this header?
37286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37287 yes:no: )
37288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37292 ac_header_preproc=yes
37294 no:yes:* )
37295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37308 cat <<\_ASBOX
37309 ## ------------------------------------------ ##
37310 ## Report this to the AC_PACKAGE_NAME lists. ##
37311 ## ------------------------------------------ ##
37312 _ASBOX
37314 sed "s/^/$as_me: WARNING: /" >&2
37316 esac
37317 echo "$as_me:$LINENO: checking for $ac_header" >&5
37318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37320 echo $ECHO_N "(cached) $ECHO_C" >&6
37321 else
37322 eval "$as_ac_Header=\$ac_header_preproc"
37324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37329 cat >>confdefs.h <<_ACEOF
37330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37331 _ACEOF
37335 done
37360 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
37361 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
37362 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
37363 __fsetlocking
37365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37366 echo "$as_me:$LINENO: checking for $ac_func" >&5
37367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37368 if eval "test \"\${$as_ac_var+set}\" = set"; then
37369 echo $ECHO_N "(cached) $ECHO_C" >&6
37370 else
37371 cat >conftest.$ac_ext <<_ACEOF
37372 /* confdefs.h. */
37373 _ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h. */
37377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37379 #define $ac_func innocuous_$ac_func
37381 /* System header to define __stub macros and hopefully few prototypes,
37382 which can conflict with char $ac_func (); below.
37383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37384 <limits.h> exists even on freestanding compilers. */
37386 #ifdef __STDC__
37387 # include <limits.h>
37388 #else
37389 # include <assert.h>
37390 #endif
37392 #undef $ac_func
37394 /* Override any gcc2 internal prototype to avoid an error. */
37395 #ifdef __cplusplus
37396 extern "C"
37398 #endif
37399 /* We use char because int might match the return type of a gcc2
37400 builtin and then its argument prototype would still apply. */
37401 char $ac_func ();
37402 /* The GNU C library defines this for functions which it implements
37403 to always fail with ENOSYS. Some functions are actually named
37404 something starting with __ and the normal name is an alias. */
37405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37406 choke me
37407 #else
37408 char (*f) () = $ac_func;
37409 #endif
37410 #ifdef __cplusplus
37412 #endif
37415 main ()
37417 return f != $ac_func;
37419 return 0;
37421 _ACEOF
37422 rm -f conftest.$ac_objext conftest$ac_exeext
37423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37424 (eval $ac_link) 2>conftest.er1
37425 ac_status=$?
37426 grep -v '^ *+' conftest.er1 >conftest.err
37427 rm -f conftest.er1
37428 cat conftest.err >&5
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); } &&
37431 { ac_try='test -z "$ac_c_werror_flag"
37432 || test ! -s conftest.err'
37433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434 (eval $ac_try) 2>&5
37435 ac_status=$?
37436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); }; } &&
37438 { ac_try='test -s conftest$ac_exeext'
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440 (eval $ac_try) 2>&5
37441 ac_status=$?
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; }; then
37444 eval "$as_ac_var=yes"
37445 else
37446 echo "$as_me: failed program was:" >&5
37447 sed 's/^/| /' conftest.$ac_ext >&5
37449 eval "$as_ac_var=no"
37451 rm -f conftest.err conftest.$ac_objext \
37452 conftest$ac_exeext conftest.$ac_ext
37454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37456 if test `eval echo '${'$as_ac_var'}'` = yes; then
37457 cat >>confdefs.h <<_ACEOF
37458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37459 _ACEOF
37462 done
37466 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
37467 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
37468 if test "${ac_cv_have_decl__snprintf+set}" = set; then
37469 echo $ECHO_N "(cached) $ECHO_C" >&6
37470 else
37471 cat >conftest.$ac_ext <<_ACEOF
37472 /* confdefs.h. */
37473 _ACEOF
37474 cat confdefs.h >>conftest.$ac_ext
37475 cat >>conftest.$ac_ext <<_ACEOF
37476 /* end confdefs.h. */
37477 #include <stdio.h>
37479 main ()
37482 #ifndef _snprintf
37483 char *p = (char *) _snprintf;
37484 #endif
37487 return 0;
37489 _ACEOF
37490 rm -f conftest.$ac_objext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37492 (eval $ac_compile) 2>conftest.er1
37493 ac_status=$?
37494 grep -v '^ *+' conftest.er1 >conftest.err
37495 rm -f conftest.er1
37496 cat conftest.err >&5
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); } &&
37499 { ac_try='test -z "$ac_c_werror_flag"
37500 || test ! -s conftest.err'
37501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502 (eval $ac_try) 2>&5
37503 ac_status=$?
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); }; } &&
37506 { ac_try='test -s conftest.$ac_objext'
37507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508 (eval $ac_try) 2>&5
37509 ac_status=$?
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; }; then
37512 ac_cv_have_decl__snprintf=yes
37513 else
37514 echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37517 ac_cv_have_decl__snprintf=no
37519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37521 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
37522 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
37523 if test $ac_cv_have_decl__snprintf = yes; then
37524 gt_value=1
37525 else
37526 gt_value=0
37529 cat >>confdefs.h <<_ACEOF
37530 #define HAVE_DECL__SNPRINTF $gt_value
37531 _ACEOF
37535 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
37536 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
37537 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539 else
37540 cat >conftest.$ac_ext <<_ACEOF
37541 /* confdefs.h. */
37542 _ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h. */
37546 #include <stdio.h>
37548 main ()
37551 #ifndef _snwprintf
37552 char *p = (char *) _snwprintf;
37553 #endif
37556 return 0;
37558 _ACEOF
37559 rm -f conftest.$ac_objext
37560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37561 (eval $ac_compile) 2>conftest.er1
37562 ac_status=$?
37563 grep -v '^ *+' conftest.er1 >conftest.err
37564 rm -f conftest.er1
37565 cat conftest.err >&5
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); } &&
37568 { ac_try='test -z "$ac_c_werror_flag"
37569 || test ! -s conftest.err'
37570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37571 (eval $ac_try) 2>&5
37572 ac_status=$?
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); }; } &&
37575 { ac_try='test -s conftest.$ac_objext'
37576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37577 (eval $ac_try) 2>&5
37578 ac_status=$?
37579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580 (exit $ac_status); }; }; then
37581 ac_cv_have_decl__snwprintf=yes
37582 else
37583 echo "$as_me: failed program was:" >&5
37584 sed 's/^/| /' conftest.$ac_ext >&5
37586 ac_cv_have_decl__snwprintf=no
37588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37590 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
37591 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
37592 if test $ac_cv_have_decl__snwprintf = yes; then
37593 gt_value=1
37594 else
37595 gt_value=0
37598 cat >>confdefs.h <<_ACEOF
37599 #define HAVE_DECL__SNWPRINTF $gt_value
37600 _ACEOF
37605 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
37606 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
37607 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
37608 echo $ECHO_N "(cached) $ECHO_C" >&6
37609 else
37610 cat >conftest.$ac_ext <<_ACEOF
37611 /* confdefs.h. */
37612 _ACEOF
37613 cat confdefs.h >>conftest.$ac_ext
37614 cat >>conftest.$ac_ext <<_ACEOF
37615 /* end confdefs.h. */
37616 #include <stdio.h>
37618 main ()
37621 #ifndef feof_unlocked
37622 char *p = (char *) feof_unlocked;
37623 #endif
37626 return 0;
37628 _ACEOF
37629 rm -f conftest.$ac_objext
37630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37631 (eval $ac_compile) 2>conftest.er1
37632 ac_status=$?
37633 grep -v '^ *+' conftest.er1 >conftest.err
37634 rm -f conftest.er1
37635 cat conftest.err >&5
37636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637 (exit $ac_status); } &&
37638 { ac_try='test -z "$ac_c_werror_flag"
37639 || test ! -s conftest.err'
37640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37641 (eval $ac_try) 2>&5
37642 ac_status=$?
37643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644 (exit $ac_status); }; } &&
37645 { ac_try='test -s conftest.$ac_objext'
37646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647 (eval $ac_try) 2>&5
37648 ac_status=$?
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); }; }; then
37651 ac_cv_have_decl_feof_unlocked=yes
37652 else
37653 echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37656 ac_cv_have_decl_feof_unlocked=no
37658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37660 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
37661 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
37662 if test $ac_cv_have_decl_feof_unlocked = yes; then
37663 gt_value=1
37664 else
37665 gt_value=0
37668 cat >>confdefs.h <<_ACEOF
37669 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
37670 _ACEOF
37674 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
37675 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
37676 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
37677 echo $ECHO_N "(cached) $ECHO_C" >&6
37678 else
37679 cat >conftest.$ac_ext <<_ACEOF
37680 /* confdefs.h. */
37681 _ACEOF
37682 cat confdefs.h >>conftest.$ac_ext
37683 cat >>conftest.$ac_ext <<_ACEOF
37684 /* end confdefs.h. */
37685 #include <stdio.h>
37687 main ()
37690 #ifndef fgets_unlocked
37691 char *p = (char *) fgets_unlocked;
37692 #endif
37695 return 0;
37697 _ACEOF
37698 rm -f conftest.$ac_objext
37699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37700 (eval $ac_compile) 2>conftest.er1
37701 ac_status=$?
37702 grep -v '^ *+' conftest.er1 >conftest.err
37703 rm -f conftest.er1
37704 cat conftest.err >&5
37705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706 (exit $ac_status); } &&
37707 { ac_try='test -z "$ac_c_werror_flag"
37708 || test ! -s conftest.err'
37709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37710 (eval $ac_try) 2>&5
37711 ac_status=$?
37712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713 (exit $ac_status); }; } &&
37714 { ac_try='test -s conftest.$ac_objext'
37715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37716 (eval $ac_try) 2>&5
37717 ac_status=$?
37718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); }; }; then
37720 ac_cv_have_decl_fgets_unlocked=yes
37721 else
37722 echo "$as_me: failed program was:" >&5
37723 sed 's/^/| /' conftest.$ac_ext >&5
37725 ac_cv_have_decl_fgets_unlocked=no
37727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37729 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
37730 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
37731 if test $ac_cv_have_decl_fgets_unlocked = yes; then
37732 gt_value=1
37733 else
37734 gt_value=0
37737 cat >>confdefs.h <<_ACEOF
37738 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
37739 _ACEOF
37743 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
37744 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
37745 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
37746 echo $ECHO_N "(cached) $ECHO_C" >&6
37747 else
37748 cat >conftest.$ac_ext <<_ACEOF
37749 /* confdefs.h. */
37750 _ACEOF
37751 cat confdefs.h >>conftest.$ac_ext
37752 cat >>conftest.$ac_ext <<_ACEOF
37753 /* end confdefs.h. */
37754 #include <stdio.h>
37756 main ()
37759 #ifndef getc_unlocked
37760 char *p = (char *) getc_unlocked;
37761 #endif
37764 return 0;
37766 _ACEOF
37767 rm -f conftest.$ac_objext
37768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37769 (eval $ac_compile) 2>conftest.er1
37770 ac_status=$?
37771 grep -v '^ *+' conftest.er1 >conftest.err
37772 rm -f conftest.er1
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } &&
37776 { ac_try='test -z "$ac_c_werror_flag"
37777 || test ! -s conftest.err'
37778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37779 (eval $ac_try) 2>&5
37780 ac_status=$?
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); }; } &&
37783 { ac_try='test -s conftest.$ac_objext'
37784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785 (eval $ac_try) 2>&5
37786 ac_status=$?
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); }; }; then
37789 ac_cv_have_decl_getc_unlocked=yes
37790 else
37791 echo "$as_me: failed program was:" >&5
37792 sed 's/^/| /' conftest.$ac_ext >&5
37794 ac_cv_have_decl_getc_unlocked=no
37796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37798 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
37799 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
37800 if test $ac_cv_have_decl_getc_unlocked = yes; then
37801 gt_value=1
37802 else
37803 gt_value=0
37806 cat >>confdefs.h <<_ACEOF
37807 #define HAVE_DECL_GETC_UNLOCKED $gt_value
37808 _ACEOF
37812 case $gt_cv_func_printf_posix in
37813 *yes) HAVE_POSIX_PRINTF=1 ;;
37814 *) HAVE_POSIX_PRINTF=0 ;;
37815 esac
37817 if test "$ac_cv_func_asprintf" = yes; then
37818 HAVE_ASPRINTF=1
37819 else
37820 HAVE_ASPRINTF=0
37823 if test "$ac_cv_func_snprintf" = yes; then
37824 HAVE_SNPRINTF=1
37825 else
37826 HAVE_SNPRINTF=0
37829 if test "$ac_cv_func_wprintf" = yes; then
37830 HAVE_WPRINTF=1
37831 else
37832 HAVE_WPRINTF=0
37841 am_save_CPPFLAGS="$CPPFLAGS"
37843 for element in $INCICONV; do
37844 haveit=
37845 for x in $CPPFLAGS; do
37847 acl_save_prefix="$prefix"
37848 prefix="$acl_final_prefix"
37849 acl_save_exec_prefix="$exec_prefix"
37850 exec_prefix="$acl_final_exec_prefix"
37851 eval x=\"$x\"
37852 exec_prefix="$acl_save_exec_prefix"
37853 prefix="$acl_save_prefix"
37855 if test "X$x" = "X$element"; then
37856 haveit=yes
37857 break
37859 done
37860 if test -z "$haveit"; then
37861 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
37863 done
37866 echo "$as_me:$LINENO: checking for iconv" >&5
37867 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
37868 if test "${am_cv_func_iconv+set}" = set; then
37869 echo $ECHO_N "(cached) $ECHO_C" >&6
37870 else
37872 am_cv_func_iconv="no, consider installing GNU libiconv"
37873 am_cv_lib_iconv=no
37874 cat >conftest.$ac_ext <<_ACEOF
37875 /* confdefs.h. */
37876 _ACEOF
37877 cat confdefs.h >>conftest.$ac_ext
37878 cat >>conftest.$ac_ext <<_ACEOF
37879 /* end confdefs.h. */
37880 #include <stdlib.h>
37881 #include <iconv.h>
37883 main ()
37885 iconv_t cd = iconv_open("","");
37886 iconv(cd,NULL,NULL,NULL,NULL);
37887 iconv_close(cd);
37889 return 0;
37891 _ACEOF
37892 rm -f conftest.$ac_objext conftest$ac_exeext
37893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37894 (eval $ac_link) 2>conftest.er1
37895 ac_status=$?
37896 grep -v '^ *+' conftest.er1 >conftest.err
37897 rm -f conftest.er1
37898 cat conftest.err >&5
37899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); } &&
37901 { ac_try='test -z "$ac_c_werror_flag"
37902 || test ! -s conftest.err'
37903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37904 (eval $ac_try) 2>&5
37905 ac_status=$?
37906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907 (exit $ac_status); }; } &&
37908 { ac_try='test -s conftest$ac_exeext'
37909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37910 (eval $ac_try) 2>&5
37911 ac_status=$?
37912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913 (exit $ac_status); }; }; then
37914 am_cv_func_iconv=yes
37915 else
37916 echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37920 rm -f conftest.err conftest.$ac_objext \
37921 conftest$ac_exeext conftest.$ac_ext
37922 if test "$am_cv_func_iconv" != yes; then
37923 am_save_LIBS="$LIBS"
37924 LIBS="$LIBS $LIBICONV"
37925 cat >conftest.$ac_ext <<_ACEOF
37926 /* confdefs.h. */
37927 _ACEOF
37928 cat confdefs.h >>conftest.$ac_ext
37929 cat >>conftest.$ac_ext <<_ACEOF
37930 /* end confdefs.h. */
37931 #include <stdlib.h>
37932 #include <iconv.h>
37934 main ()
37936 iconv_t cd = iconv_open("","");
37937 iconv(cd,NULL,NULL,NULL,NULL);
37938 iconv_close(cd);
37940 return 0;
37942 _ACEOF
37943 rm -f conftest.$ac_objext conftest$ac_exeext
37944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37945 (eval $ac_link) 2>conftest.er1
37946 ac_status=$?
37947 grep -v '^ *+' conftest.er1 >conftest.err
37948 rm -f conftest.er1
37949 cat conftest.err >&5
37950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951 (exit $ac_status); } &&
37952 { ac_try='test -z "$ac_c_werror_flag"
37953 || test ! -s conftest.err'
37954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37955 (eval $ac_try) 2>&5
37956 ac_status=$?
37957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958 (exit $ac_status); }; } &&
37959 { ac_try='test -s conftest$ac_exeext'
37960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37961 (eval $ac_try) 2>&5
37962 ac_status=$?
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); }; }; then
37965 am_cv_lib_iconv=yes
37966 am_cv_func_iconv=yes
37967 else
37968 echo "$as_me: failed program was:" >&5
37969 sed 's/^/| /' conftest.$ac_ext >&5
37972 rm -f conftest.err conftest.$ac_objext \
37973 conftest$ac_exeext conftest.$ac_ext
37974 LIBS="$am_save_LIBS"
37978 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37979 echo "${ECHO_T}$am_cv_func_iconv" >&6
37980 if test "$am_cv_func_iconv" = yes; then
37982 cat >>confdefs.h <<\_ACEOF
37983 #define HAVE_ICONV 1
37984 _ACEOF
37987 if test "$am_cv_lib_iconv" = yes; then
37988 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
37989 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
37990 echo "$as_me:$LINENO: result: $LIBICONV" >&5
37991 echo "${ECHO_T}$LIBICONV" >&6
37992 else
37993 CPPFLAGS="$am_save_CPPFLAGS"
37994 LIBICONV=
37995 LTLIBICONV=
38000 if test "$am_cv_func_iconv" = yes; then
38001 echo "$as_me:$LINENO: checking for iconv declaration" >&5
38002 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
38003 if test "${am_cv_proto_iconv+set}" = set; then
38004 echo $ECHO_N "(cached) $ECHO_C" >&6
38005 else
38007 cat >conftest.$ac_ext <<_ACEOF
38008 /* confdefs.h. */
38009 _ACEOF
38010 cat confdefs.h >>conftest.$ac_ext
38011 cat >>conftest.$ac_ext <<_ACEOF
38012 /* end confdefs.h. */
38014 #include <stdlib.h>
38015 #include <iconv.h>
38016 extern
38017 #ifdef __cplusplus
38019 #endif
38020 #if defined(__STDC__) || defined(__cplusplus)
38021 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38022 #else
38023 size_t iconv();
38024 #endif
38027 main ()
38031 return 0;
38033 _ACEOF
38034 rm -f conftest.$ac_objext
38035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38036 (eval $ac_compile) 2>conftest.er1
38037 ac_status=$?
38038 grep -v '^ *+' conftest.er1 >conftest.err
38039 rm -f conftest.er1
38040 cat conftest.err >&5
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); } &&
38043 { ac_try='test -z "$ac_c_werror_flag"
38044 || test ! -s conftest.err'
38045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046 (eval $ac_try) 2>&5
38047 ac_status=$?
38048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049 (exit $ac_status); }; } &&
38050 { ac_try='test -s conftest.$ac_objext'
38051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38052 (eval $ac_try) 2>&5
38053 ac_status=$?
38054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055 (exit $ac_status); }; }; then
38056 am_cv_proto_iconv_arg1=""
38057 else
38058 echo "$as_me: failed program was:" >&5
38059 sed 's/^/| /' conftest.$ac_ext >&5
38061 am_cv_proto_iconv_arg1="const"
38063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38064 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
38067 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
38068 echo "$as_me:$LINENO: result: ${ac_t:-
38069 }$am_cv_proto_iconv" >&5
38070 echo "${ECHO_T}${ac_t:-
38071 }$am_cv_proto_iconv" >&6
38073 cat >>confdefs.h <<_ACEOF
38074 #define ICONV_CONST $am_cv_proto_iconv_arg1
38075 _ACEOF
38080 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
38081 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
38082 if test "${am_cv_langinfo_codeset+set}" = set; then
38083 echo $ECHO_N "(cached) $ECHO_C" >&6
38084 else
38085 cat >conftest.$ac_ext <<_ACEOF
38086 /* confdefs.h. */
38087 _ACEOF
38088 cat confdefs.h >>conftest.$ac_ext
38089 cat >>conftest.$ac_ext <<_ACEOF
38090 /* end confdefs.h. */
38091 #include <langinfo.h>
38093 main ()
38095 char* cs = nl_langinfo(CODESET);
38097 return 0;
38099 _ACEOF
38100 rm -f conftest.$ac_objext conftest$ac_exeext
38101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38102 (eval $ac_link) 2>conftest.er1
38103 ac_status=$?
38104 grep -v '^ *+' conftest.er1 >conftest.err
38105 rm -f conftest.er1
38106 cat conftest.err >&5
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } &&
38109 { ac_try='test -z "$ac_c_werror_flag"
38110 || test ! -s conftest.err'
38111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112 (eval $ac_try) 2>&5
38113 ac_status=$?
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); }; } &&
38116 { ac_try='test -s conftest$ac_exeext'
38117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38118 (eval $ac_try) 2>&5
38119 ac_status=$?
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); }; }; then
38122 am_cv_langinfo_codeset=yes
38123 else
38124 echo "$as_me: failed program was:" >&5
38125 sed 's/^/| /' conftest.$ac_ext >&5
38127 am_cv_langinfo_codeset=no
38129 rm -f conftest.err conftest.$ac_objext \
38130 conftest$ac_exeext conftest.$ac_ext
38133 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
38134 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
38135 if test $am_cv_langinfo_codeset = yes; then
38137 cat >>confdefs.h <<\_ACEOF
38138 #define HAVE_LANGINFO_CODESET 1
38139 _ACEOF
38143 if test $ac_cv_header_locale_h = yes; then
38145 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
38146 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
38147 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
38148 echo $ECHO_N "(cached) $ECHO_C" >&6
38149 else
38150 cat >conftest.$ac_ext <<_ACEOF
38151 /* confdefs.h. */
38152 _ACEOF
38153 cat confdefs.h >>conftest.$ac_ext
38154 cat >>conftest.$ac_ext <<_ACEOF
38155 /* end confdefs.h. */
38156 #include <locale.h>
38158 main ()
38160 return LC_MESSAGES
38162 return 0;
38164 _ACEOF
38165 rm -f conftest.$ac_objext conftest$ac_exeext
38166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38167 (eval $ac_link) 2>conftest.er1
38168 ac_status=$?
38169 grep -v '^ *+' conftest.er1 >conftest.err
38170 rm -f conftest.er1
38171 cat conftest.err >&5
38172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38173 (exit $ac_status); } &&
38174 { ac_try='test -z "$ac_c_werror_flag"
38175 || test ! -s conftest.err'
38176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177 (eval $ac_try) 2>&5
38178 ac_status=$?
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); }; } &&
38181 { ac_try='test -s conftest$ac_exeext'
38182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183 (eval $ac_try) 2>&5
38184 ac_status=$?
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); }; }; then
38187 gt_cv_val_LC_MESSAGES=yes
38188 else
38189 echo "$as_me: failed program was:" >&5
38190 sed 's/^/| /' conftest.$ac_ext >&5
38192 gt_cv_val_LC_MESSAGES=no
38194 rm -f conftest.err conftest.$ac_objext \
38195 conftest$ac_exeext conftest.$ac_ext
38197 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
38198 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
38199 if test $gt_cv_val_LC_MESSAGES = yes; then
38201 cat >>confdefs.h <<\_ACEOF
38202 #define HAVE_LC_MESSAGES 1
38203 _ACEOF
38209 if test -n "$INTL_MACOSX_LIBS"; then
38210 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
38213 for ac_prog in bison
38215 # Extract the first word of "$ac_prog", so it can be a program name with args.
38216 set dummy $ac_prog; ac_word=$2
38217 echo "$as_me:$LINENO: checking for $ac_word" >&5
38218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38219 if test "${ac_cv_prog_INTLBISON+set}" = set; then
38220 echo $ECHO_N "(cached) $ECHO_C" >&6
38221 else
38222 if test -n "$INTLBISON"; then
38223 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
38224 else
38225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38226 for as_dir in $PATH
38228 IFS=$as_save_IFS
38229 test -z "$as_dir" && as_dir=.
38230 for ac_exec_ext in '' $ac_executable_extensions; do
38231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38232 ac_cv_prog_INTLBISON="$ac_prog"
38233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38234 break 2
38236 done
38237 done
38241 INTLBISON=$ac_cv_prog_INTLBISON
38242 if test -n "$INTLBISON"; then
38243 echo "$as_me:$LINENO: result: $INTLBISON" >&5
38244 echo "${ECHO_T}$INTLBISON" >&6
38245 else
38246 echo "$as_me:$LINENO: result: no" >&5
38247 echo "${ECHO_T}no" >&6
38250 test -n "$INTLBISON" && break
38251 done
38253 if test -z "$INTLBISON"; then
38254 ac_verc_fail=yes
38255 else
38256 echo "$as_me:$LINENO: checking version of bison" >&5
38257 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
38258 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
38259 case $ac_prog_version in
38260 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
38261 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
38262 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
38263 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
38264 esac
38265 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
38266 echo "${ECHO_T}$ac_prog_version" >&6
38268 if test $ac_verc_fail = yes; then
38269 INTLBISON=:
38287 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
38288 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
38289 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
38290 echo $ECHO_N "(cached) $ECHO_C" >&6
38291 else
38292 gt_save_CPPFLAGS="$CPPFLAGS"
38293 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
38294 gt_save_LIBS="$LIBS"
38295 LIBS="$LIBS -framework CoreFoundation"
38296 cat >conftest.$ac_ext <<_ACEOF
38297 /* confdefs.h. */
38298 _ACEOF
38299 cat confdefs.h >>conftest.$ac_ext
38300 cat >>conftest.$ac_ext <<_ACEOF
38301 /* end confdefs.h. */
38302 #include <CFPreferences.h>
38304 main ()
38306 CFPreferencesCopyAppValue(NULL, NULL)
38308 return 0;
38310 _ACEOF
38311 rm -f conftest.$ac_objext conftest$ac_exeext
38312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38313 (eval $ac_link) 2>conftest.er1
38314 ac_status=$?
38315 grep -v '^ *+' conftest.er1 >conftest.err
38316 rm -f conftest.er1
38317 cat conftest.err >&5
38318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); } &&
38320 { ac_try='test -z "$ac_c_werror_flag"
38321 || test ! -s conftest.err'
38322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323 (eval $ac_try) 2>&5
38324 ac_status=$?
38325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326 (exit $ac_status); }; } &&
38327 { ac_try='test -s conftest$ac_exeext'
38328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38329 (eval $ac_try) 2>&5
38330 ac_status=$?
38331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332 (exit $ac_status); }; }; then
38333 gt_cv_func_CFPreferencesCopyAppValue=yes
38334 else
38335 echo "$as_me: failed program was:" >&5
38336 sed 's/^/| /' conftest.$ac_ext >&5
38338 gt_cv_func_CFPreferencesCopyAppValue=no
38340 rm -f conftest.err conftest.$ac_objext \
38341 conftest$ac_exeext conftest.$ac_ext
38342 CPPFLAGS="$gt_save_CPPFLAGS"
38343 LIBS="$gt_save_LIBS"
38345 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
38346 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
38347 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
38349 cat >>confdefs.h <<\_ACEOF
38350 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
38351 _ACEOF
38354 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
38355 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
38356 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
38357 echo $ECHO_N "(cached) $ECHO_C" >&6
38358 else
38359 gt_save_CPPFLAGS="$CPPFLAGS"
38360 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
38361 gt_save_LIBS="$LIBS"
38362 LIBS="$LIBS -framework CoreFoundation"
38363 cat >conftest.$ac_ext <<_ACEOF
38364 /* confdefs.h. */
38365 _ACEOF
38366 cat confdefs.h >>conftest.$ac_ext
38367 cat >>conftest.$ac_ext <<_ACEOF
38368 /* end confdefs.h. */
38369 #include <CFLocale.h>
38371 main ()
38373 CFLocaleCopyCurrent();
38375 return 0;
38377 _ACEOF
38378 rm -f conftest.$ac_objext conftest$ac_exeext
38379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38380 (eval $ac_link) 2>conftest.er1
38381 ac_status=$?
38382 grep -v '^ *+' conftest.er1 >conftest.err
38383 rm -f conftest.er1
38384 cat conftest.err >&5
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); } &&
38387 { ac_try='test -z "$ac_c_werror_flag"
38388 || test ! -s conftest.err'
38389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390 (eval $ac_try) 2>&5
38391 ac_status=$?
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); }; } &&
38394 { ac_try='test -s conftest$ac_exeext'
38395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38396 (eval $ac_try) 2>&5
38397 ac_status=$?
38398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399 (exit $ac_status); }; }; then
38400 gt_cv_func_CFLocaleCopyCurrent=yes
38401 else
38402 echo "$as_me: failed program was:" >&5
38403 sed 's/^/| /' conftest.$ac_ext >&5
38405 gt_cv_func_CFLocaleCopyCurrent=no
38407 rm -f conftest.err conftest.$ac_objext \
38408 conftest$ac_exeext conftest.$ac_ext
38409 CPPFLAGS="$gt_save_CPPFLAGS"
38410 LIBS="$gt_save_LIBS"
38412 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
38413 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
38414 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38416 cat >>confdefs.h <<\_ACEOF
38417 #define HAVE_CFLOCALECOPYCURRENT 1
38418 _ACEOF
38421 INTL_MACOSX_LIBS=
38422 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
38423 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
38429 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38430 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
38431 # Check whether --enable-nls or --disable-nls was given.
38432 if test "${enable_nls+set}" = set; then
38433 enableval="$enable_nls"
38434 USE_NLS=$enableval
38435 else
38436 USE_NLS=yes
38438 echo "$as_me:$LINENO: result: $USE_NLS" >&5
38439 echo "${ECHO_T}$USE_NLS" >&6
38444 BUILD_INCLUDED_LIBINTL=no
38445 USE_INCLUDED_LIBINTL=no
38447 LIBINTL=
38448 LTLIBINTL=
38449 POSUB=
38451 if test "$USE_NLS" = "yes"; then
38452 gt_use_preinstalled_gnugettext=no
38454 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
38455 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
38457 # Check whether --with-included-gettext or --without-included-gettext was given.
38458 if test "${with_included_gettext+set}" = set; then
38459 withval="$with_included_gettext"
38460 nls_cv_force_use_gnu_gettext=$withval
38461 else
38462 nls_cv_force_use_gnu_gettext=no
38464 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
38465 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
38467 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
38468 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
38475 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
38476 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
38477 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
38478 echo $ECHO_N "(cached) $ECHO_C" >&6
38479 else
38480 cat >conftest.$ac_ext <<_ACEOF
38481 /* confdefs.h. */
38482 _ACEOF
38483 cat confdefs.h >>conftest.$ac_ext
38484 cat >>conftest.$ac_ext <<_ACEOF
38485 /* end confdefs.h. */
38486 #include <libintl.h>
38487 extern int _nl_msg_cat_cntr;
38488 extern int *_nl_domain_bindings;
38490 main ()
38492 bindtextdomain ("", "");
38493 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
38495 return 0;
38497 _ACEOF
38498 rm -f conftest.$ac_objext conftest$ac_exeext
38499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38500 (eval $ac_link) 2>conftest.er1
38501 ac_status=$?
38502 grep -v '^ *+' conftest.er1 >conftest.err
38503 rm -f conftest.er1
38504 cat conftest.err >&5
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } &&
38507 { ac_try='test -z "$ac_c_werror_flag"
38508 || test ! -s conftest.err'
38509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510 (eval $ac_try) 2>&5
38511 ac_status=$?
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); }; } &&
38514 { ac_try='test -s conftest$ac_exeext'
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38517 ac_status=$?
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; }; then
38520 gt_cv_func_gnugettext2_libc=yes
38521 else
38522 echo "$as_me: failed program was:" >&5
38523 sed 's/^/| /' conftest.$ac_ext >&5
38525 gt_cv_func_gnugettext2_libc=no
38527 rm -f conftest.err conftest.$ac_objext \
38528 conftest$ac_exeext conftest.$ac_ext
38530 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
38531 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
38533 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
38537 use_additional=yes
38539 acl_save_prefix="$prefix"
38540 prefix="$acl_final_prefix"
38541 acl_save_exec_prefix="$exec_prefix"
38542 exec_prefix="$acl_final_exec_prefix"
38544 eval additional_includedir=\"$includedir\"
38545 eval additional_libdir=\"$libdir\"
38547 exec_prefix="$acl_save_exec_prefix"
38548 prefix="$acl_save_prefix"
38551 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
38552 if test "${with_libintl_prefix+set}" = set; then
38553 withval="$with_libintl_prefix"
38555 if test "X$withval" = "Xno"; then
38556 use_additional=no
38557 else
38558 if test "X$withval" = "X"; then
38560 acl_save_prefix="$prefix"
38561 prefix="$acl_final_prefix"
38562 acl_save_exec_prefix="$exec_prefix"
38563 exec_prefix="$acl_final_exec_prefix"
38565 eval additional_includedir=\"$includedir\"
38566 eval additional_libdir=\"$libdir\"
38568 exec_prefix="$acl_save_exec_prefix"
38569 prefix="$acl_save_prefix"
38571 else
38572 additional_includedir="$withval/include"
38573 additional_libdir="$withval/lib"
38578 LIBINTL=
38579 LTLIBINTL=
38580 INCINTL=
38581 rpathdirs=
38582 ltrpathdirs=
38583 names_already_handled=
38584 names_next_round='intl '
38585 while test -n "$names_next_round"; do
38586 names_this_round="$names_next_round"
38587 names_next_round=
38588 for name in $names_this_round; do
38589 already_handled=
38590 for n in $names_already_handled; do
38591 if test "$n" = "$name"; then
38592 already_handled=yes
38593 break
38595 done
38596 if test -z "$already_handled"; then
38597 names_already_handled="$names_already_handled $name"
38598 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
38599 eval value=\"\$HAVE_LIB$uppername\"
38600 if test -n "$value"; then
38601 if test "$value" = yes; then
38602 eval value=\"\$LIB$uppername\"
38603 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
38604 eval value=\"\$LTLIB$uppername\"
38605 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
38606 else
38609 else
38610 found_dir=
38611 found_la=
38612 found_so=
38613 found_a=
38614 if test $use_additional = yes; then
38615 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
38616 found_dir="$additional_libdir"
38617 found_so="$additional_libdir/lib$name.$shlibext"
38618 if test -f "$additional_libdir/lib$name.la"; then
38619 found_la="$additional_libdir/lib$name.la"
38621 else
38622 if test -f "$additional_libdir/lib$name.$libext"; then
38623 found_dir="$additional_libdir"
38624 found_a="$additional_libdir/lib$name.$libext"
38625 if test -f "$additional_libdir/lib$name.la"; then
38626 found_la="$additional_libdir/lib$name.la"
38631 if test "X$found_dir" = "X"; then
38632 for x in $LDFLAGS $LTLIBINTL; do
38634 acl_save_prefix="$prefix"
38635 prefix="$acl_final_prefix"
38636 acl_save_exec_prefix="$exec_prefix"
38637 exec_prefix="$acl_final_exec_prefix"
38638 eval x=\"$x\"
38639 exec_prefix="$acl_save_exec_prefix"
38640 prefix="$acl_save_prefix"
38642 case "$x" in
38643 -L*)
38644 dir=`echo "X$x" | sed -e 's/^X-L//'`
38645 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
38646 found_dir="$dir"
38647 found_so="$dir/lib$name.$shlibext"
38648 if test -f "$dir/lib$name.la"; then
38649 found_la="$dir/lib$name.la"
38651 else
38652 if test -f "$dir/lib$name.$libext"; then
38653 found_dir="$dir"
38654 found_a="$dir/lib$name.$libext"
38655 if test -f "$dir/lib$name.la"; then
38656 found_la="$dir/lib$name.la"
38661 esac
38662 if test "X$found_dir" != "X"; then
38663 break
38665 done
38667 if test "X$found_dir" != "X"; then
38668 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
38669 if test "X$found_so" != "X"; then
38670 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
38671 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38672 else
38673 haveit=
38674 for x in $ltrpathdirs; do
38675 if test "X$x" = "X$found_dir"; then
38676 haveit=yes
38677 break
38679 done
38680 if test -z "$haveit"; then
38681 ltrpathdirs="$ltrpathdirs $found_dir"
38683 if test "$hardcode_direct" = yes; then
38684 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38685 else
38686 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
38687 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38688 haveit=
38689 for x in $rpathdirs; do
38690 if test "X$x" = "X$found_dir"; then
38691 haveit=yes
38692 break
38694 done
38695 if test -z "$haveit"; then
38696 rpathdirs="$rpathdirs $found_dir"
38698 else
38699 haveit=
38700 for x in $LDFLAGS $LIBINTL; do
38702 acl_save_prefix="$prefix"
38703 prefix="$acl_final_prefix"
38704 acl_save_exec_prefix="$exec_prefix"
38705 exec_prefix="$acl_final_exec_prefix"
38706 eval x=\"$x\"
38707 exec_prefix="$acl_save_exec_prefix"
38708 prefix="$acl_save_prefix"
38710 if test "X$x" = "X-L$found_dir"; then
38711 haveit=yes
38712 break
38714 done
38715 if test -z "$haveit"; then
38716 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
38718 if test "$hardcode_minus_L" != no; then
38719 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
38720 else
38721 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
38726 else
38727 if test "X$found_a" != "X"; then
38728 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
38729 else
38730 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
38733 additional_includedir=
38734 case "$found_dir" in
38735 */lib | */lib/)
38736 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
38737 additional_includedir="$basedir/include"
38739 esac
38740 if test "X$additional_includedir" != "X"; then
38741 if test "X$additional_includedir" != "X/usr/include"; then
38742 haveit=
38743 if test "X$additional_includedir" = "X/usr/local/include"; then
38744 if test -n "$GCC"; then
38745 case $host_os in
38746 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38747 esac
38750 if test -z "$haveit"; then
38751 for x in $CPPFLAGS $INCINTL; do
38753 acl_save_prefix="$prefix"
38754 prefix="$acl_final_prefix"
38755 acl_save_exec_prefix="$exec_prefix"
38756 exec_prefix="$acl_final_exec_prefix"
38757 eval x=\"$x\"
38758 exec_prefix="$acl_save_exec_prefix"
38759 prefix="$acl_save_prefix"
38761 if test "X$x" = "X-I$additional_includedir"; then
38762 haveit=yes
38763 break
38765 done
38766 if test -z "$haveit"; then
38767 if test -d "$additional_includedir"; then
38768 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
38774 if test -n "$found_la"; then
38775 save_libdir="$libdir"
38776 case "$found_la" in
38777 */* | *\\*) . "$found_la" ;;
38778 *) . "./$found_la" ;;
38779 esac
38780 libdir="$save_libdir"
38781 for dep in $dependency_libs; do
38782 case "$dep" in
38783 -L*)
38784 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
38785 if test "X$additional_libdir" != "X/usr/lib"; then
38786 haveit=
38787 if test "X$additional_libdir" = "X/usr/local/lib"; then
38788 if test -n "$GCC"; then
38789 case $host_os in
38790 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38791 esac
38794 if test -z "$haveit"; then
38795 haveit=
38796 for x in $LDFLAGS $LIBINTL; do
38798 acl_save_prefix="$prefix"
38799 prefix="$acl_final_prefix"
38800 acl_save_exec_prefix="$exec_prefix"
38801 exec_prefix="$acl_final_exec_prefix"
38802 eval x=\"$x\"
38803 exec_prefix="$acl_save_exec_prefix"
38804 prefix="$acl_save_prefix"
38806 if test "X$x" = "X-L$additional_libdir"; then
38807 haveit=yes
38808 break
38810 done
38811 if test -z "$haveit"; then
38812 if test -d "$additional_libdir"; then
38813 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
38816 haveit=
38817 for x in $LDFLAGS $LTLIBINTL; do
38819 acl_save_prefix="$prefix"
38820 prefix="$acl_final_prefix"
38821 acl_save_exec_prefix="$exec_prefix"
38822 exec_prefix="$acl_final_exec_prefix"
38823 eval x=\"$x\"
38824 exec_prefix="$acl_save_exec_prefix"
38825 prefix="$acl_save_prefix"
38827 if test "X$x" = "X-L$additional_libdir"; then
38828 haveit=yes
38829 break
38831 done
38832 if test -z "$haveit"; then
38833 if test -d "$additional_libdir"; then
38834 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
38840 -R*)
38841 dir=`echo "X$dep" | sed -e 's/^X-R//'`
38842 if test "$enable_rpath" != no; then
38843 haveit=
38844 for x in $rpathdirs; do
38845 if test "X$x" = "X$dir"; then
38846 haveit=yes
38847 break
38849 done
38850 if test -z "$haveit"; then
38851 rpathdirs="$rpathdirs $dir"
38853 haveit=
38854 for x in $ltrpathdirs; do
38855 if test "X$x" = "X$dir"; then
38856 haveit=yes
38857 break
38859 done
38860 if test -z "$haveit"; then
38861 ltrpathdirs="$ltrpathdirs $dir"
38865 -l*)
38866 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
38868 *.la)
38869 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
38872 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
38873 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
38875 esac
38876 done
38878 else
38879 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
38880 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
38884 done
38885 done
38886 if test "X$rpathdirs" != "X"; then
38887 if test -n "$hardcode_libdir_separator"; then
38888 alldirs=
38889 for found_dir in $rpathdirs; do
38890 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
38891 done
38892 acl_save_libdir="$libdir"
38893 libdir="$alldirs"
38894 eval flag=\"$hardcode_libdir_flag_spec\"
38895 libdir="$acl_save_libdir"
38896 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
38897 else
38898 for found_dir in $rpathdirs; do
38899 acl_save_libdir="$libdir"
38900 libdir="$found_dir"
38901 eval flag=\"$hardcode_libdir_flag_spec\"
38902 libdir="$acl_save_libdir"
38903 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
38904 done
38907 if test "X$ltrpathdirs" != "X"; then
38908 for found_dir in $ltrpathdirs; do
38909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
38910 done
38913 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
38914 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
38915 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
38916 echo $ECHO_N "(cached) $ECHO_C" >&6
38917 else
38918 gt_save_CPPFLAGS="$CPPFLAGS"
38919 CPPFLAGS="$CPPFLAGS $INCINTL"
38920 gt_save_LIBS="$LIBS"
38921 LIBS="$LIBS $LIBINTL"
38922 cat >conftest.$ac_ext <<_ACEOF
38923 /* confdefs.h. */
38924 _ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h. */
38928 #include <libintl.h>
38929 extern int _nl_msg_cat_cntr;
38930 extern
38931 #ifdef __cplusplus
38933 #endif
38934 const char *_nl_expand_alias (const char *);
38936 main ()
38938 bindtextdomain ("", "");
38939 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
38941 return 0;
38943 _ACEOF
38944 rm -f conftest.$ac_objext conftest$ac_exeext
38945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38946 (eval $ac_link) 2>conftest.er1
38947 ac_status=$?
38948 grep -v '^ *+' conftest.er1 >conftest.err
38949 rm -f conftest.er1
38950 cat conftest.err >&5
38951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952 (exit $ac_status); } &&
38953 { ac_try='test -z "$ac_c_werror_flag"
38954 || test ! -s conftest.err'
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38957 ac_status=$?
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; } &&
38960 { ac_try='test -s conftest$ac_exeext'
38961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962 (eval $ac_try) 2>&5
38963 ac_status=$?
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); }; }; then
38966 gt_cv_func_gnugettext2_libintl=yes
38967 else
38968 echo "$as_me: failed program was:" >&5
38969 sed 's/^/| /' conftest.$ac_ext >&5
38971 gt_cv_func_gnugettext2_libintl=no
38973 rm -f conftest.err conftest.$ac_objext \
38974 conftest$ac_exeext conftest.$ac_ext
38975 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
38976 LIBS="$LIBS $LIBICONV"
38977 cat >conftest.$ac_ext <<_ACEOF
38978 /* confdefs.h. */
38979 _ACEOF
38980 cat confdefs.h >>conftest.$ac_ext
38981 cat >>conftest.$ac_ext <<_ACEOF
38982 /* end confdefs.h. */
38983 #include <libintl.h>
38984 extern int _nl_msg_cat_cntr;
38985 extern
38986 #ifdef __cplusplus
38988 #endif
38989 const char *_nl_expand_alias (const char *);
38991 main ()
38993 bindtextdomain ("", "");
38994 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
38996 return 0;
38998 _ACEOF
38999 rm -f conftest.$ac_objext conftest$ac_exeext
39000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39001 (eval $ac_link) 2>conftest.er1
39002 ac_status=$?
39003 grep -v '^ *+' conftest.er1 >conftest.err
39004 rm -f conftest.er1
39005 cat conftest.err >&5
39006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007 (exit $ac_status); } &&
39008 { ac_try='test -z "$ac_c_werror_flag"
39009 || test ! -s conftest.err'
39010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011 (eval $ac_try) 2>&5
39012 ac_status=$?
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); }; } &&
39015 { ac_try='test -s conftest$ac_exeext'
39016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39017 (eval $ac_try) 2>&5
39018 ac_status=$?
39019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39020 (exit $ac_status); }; }; then
39021 LIBINTL="$LIBINTL $LIBICONV"
39022 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
39023 gt_cv_func_gnugettext2_libintl=yes
39025 else
39026 echo "$as_me: failed program was:" >&5
39027 sed 's/^/| /' conftest.$ac_ext >&5
39030 rm -f conftest.err conftest.$ac_objext \
39031 conftest$ac_exeext conftest.$ac_ext
39033 CPPFLAGS="$gt_save_CPPFLAGS"
39034 LIBS="$gt_save_LIBS"
39036 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
39037 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
39040 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
39041 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
39042 && test "$PACKAGE" != gettext-runtime \
39043 && test "$PACKAGE" != gettext-tools; }; then
39044 gt_use_preinstalled_gnugettext=yes
39045 else
39046 LIBINTL=
39047 LTLIBINTL=
39048 INCINTL=
39052 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
39053 nls_cv_use_gnu_gettext=yes
39057 if test "$nls_cv_use_gnu_gettext" = "yes"; then
39058 BUILD_INCLUDED_LIBINTL=yes
39059 USE_INCLUDED_LIBINTL=yes
39060 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV"
39061 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV"
39062 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
39065 CATOBJEXT=
39066 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39067 || test "$nls_cv_use_gnu_gettext" = "yes"; then
39068 CATOBJEXT=.gmo
39072 if test -n "$INTL_MACOSX_LIBS"; then
39073 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39074 || test "$nls_cv_use_gnu_gettext" = "yes"; then
39075 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
39076 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
39080 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39081 || test "$nls_cv_use_gnu_gettext" = "yes"; then
39083 cat >>confdefs.h <<\_ACEOF
39084 #define ENABLE_NLS 1
39085 _ACEOF
39087 else
39088 USE_NLS=no
39092 echo "$as_me:$LINENO: checking whether to use NLS" >&5
39093 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
39094 echo "$as_me:$LINENO: result: $USE_NLS" >&5
39095 echo "${ECHO_T}$USE_NLS" >&6
39096 if test "$USE_NLS" = "yes"; then
39097 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
39098 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
39099 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39100 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
39101 gt_source="external libintl"
39102 else
39103 gt_source="libc"
39105 else
39106 gt_source="included intl directory"
39108 echo "$as_me:$LINENO: result: $gt_source" >&5
39109 echo "${ECHO_T}$gt_source" >&6
39112 if test "$USE_NLS" = "yes"; then
39114 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39115 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
39116 echo "$as_me:$LINENO: checking how to link with libintl" >&5
39117 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
39118 echo "$as_me:$LINENO: result: $LIBINTL" >&5
39119 echo "${ECHO_T}$LIBINTL" >&6
39121 for element in $INCINTL; do
39122 haveit=
39123 for x in $CPPFLAGS; do
39125 acl_save_prefix="$prefix"
39126 prefix="$acl_final_prefix"
39127 acl_save_exec_prefix="$exec_prefix"
39128 exec_prefix="$acl_final_exec_prefix"
39129 eval x=\"$x\"
39130 exec_prefix="$acl_save_exec_prefix"
39131 prefix="$acl_save_prefix"
39133 if test "X$x" = "X$element"; then
39134 haveit=yes
39135 break
39137 done
39138 if test -z "$haveit"; then
39139 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39141 done
39146 cat >>confdefs.h <<\_ACEOF
39147 #define HAVE_GETTEXT 1
39148 _ACEOF
39151 cat >>confdefs.h <<\_ACEOF
39152 #define HAVE_DCGETTEXT 1
39153 _ACEOF
39157 POSUB=po
39161 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
39162 BUILD_INCLUDED_LIBINTL=yes
39169 nls_cv_header_intl=
39170 nls_cv_header_libgt=
39172 DATADIRNAME=share
39175 INSTOBJEXT=.mo
39178 GENCAT=gencat
39181 INTLOBJS=
39182 if test "$USE_INCLUDED_LIBINTL" = yes; then
39183 INTLOBJS="\$(GETTOBJS)"
39187 INTL_LIBTOOL_SUFFIX_PREFIX=l
39191 INTLLIBS="$LIBINTL"
39204 case "$host_os" in
39205 linux*)
39207 cat >>confdefs.h <<\_ACEOF
39208 #define DYNLOAD_LIBEXPAT 1
39209 _ACEOF
39211 LIBEXPAT="-ldl"
39212 LTLIBEXPAT="-ldl"
39225 use_additional=yes
39227 acl_save_prefix="$prefix"
39228 prefix="$acl_final_prefix"
39229 acl_save_exec_prefix="$exec_prefix"
39230 exec_prefix="$acl_final_exec_prefix"
39232 eval additional_includedir=\"$includedir\"
39233 eval additional_libdir=\"$libdir\"
39235 exec_prefix="$acl_save_exec_prefix"
39236 prefix="$acl_save_prefix"
39239 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
39240 if test "${with_libexpat_prefix+set}" = set; then
39241 withval="$with_libexpat_prefix"
39243 if test "X$withval" = "Xno"; then
39244 use_additional=no
39245 else
39246 if test "X$withval" = "X"; then
39248 acl_save_prefix="$prefix"
39249 prefix="$acl_final_prefix"
39250 acl_save_exec_prefix="$exec_prefix"
39251 exec_prefix="$acl_final_exec_prefix"
39253 eval additional_includedir=\"$includedir\"
39254 eval additional_libdir=\"$libdir\"
39256 exec_prefix="$acl_save_exec_prefix"
39257 prefix="$acl_save_prefix"
39259 else
39260 additional_includedir="$withval/include"
39261 additional_libdir="$withval/lib"
39266 LIBEXPAT=
39267 LTLIBEXPAT=
39268 INCEXPAT=
39269 rpathdirs=
39270 ltrpathdirs=
39271 names_already_handled=
39272 names_next_round='expat '
39273 while test -n "$names_next_round"; do
39274 names_this_round="$names_next_round"
39275 names_next_round=
39276 for name in $names_this_round; do
39277 already_handled=
39278 for n in $names_already_handled; do
39279 if test "$n" = "$name"; then
39280 already_handled=yes
39281 break
39283 done
39284 if test -z "$already_handled"; then
39285 names_already_handled="$names_already_handled $name"
39286 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39287 eval value=\"\$HAVE_LIB$uppername\"
39288 if test -n "$value"; then
39289 if test "$value" = yes; then
39290 eval value=\"\$LIB$uppername\"
39291 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
39292 eval value=\"\$LTLIB$uppername\"
39293 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
39294 else
39297 else
39298 found_dir=
39299 found_la=
39300 found_so=
39301 found_a=
39302 if test $use_additional = yes; then
39303 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39304 found_dir="$additional_libdir"
39305 found_so="$additional_libdir/lib$name.$shlibext"
39306 if test -f "$additional_libdir/lib$name.la"; then
39307 found_la="$additional_libdir/lib$name.la"
39309 else
39310 if test -f "$additional_libdir/lib$name.$libext"; then
39311 found_dir="$additional_libdir"
39312 found_a="$additional_libdir/lib$name.$libext"
39313 if test -f "$additional_libdir/lib$name.la"; then
39314 found_la="$additional_libdir/lib$name.la"
39319 if test "X$found_dir" = "X"; then
39320 for x in $LDFLAGS $LTLIBEXPAT; do
39322 acl_save_prefix="$prefix"
39323 prefix="$acl_final_prefix"
39324 acl_save_exec_prefix="$exec_prefix"
39325 exec_prefix="$acl_final_exec_prefix"
39326 eval x=\"$x\"
39327 exec_prefix="$acl_save_exec_prefix"
39328 prefix="$acl_save_prefix"
39330 case "$x" in
39331 -L*)
39332 dir=`echo "X$x" | sed -e 's/^X-L//'`
39333 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39334 found_dir="$dir"
39335 found_so="$dir/lib$name.$shlibext"
39336 if test -f "$dir/lib$name.la"; then
39337 found_la="$dir/lib$name.la"
39339 else
39340 if test -f "$dir/lib$name.$libext"; then
39341 found_dir="$dir"
39342 found_a="$dir/lib$name.$libext"
39343 if test -f "$dir/lib$name.la"; then
39344 found_la="$dir/lib$name.la"
39349 esac
39350 if test "X$found_dir" != "X"; then
39351 break
39353 done
39355 if test "X$found_dir" != "X"; then
39356 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
39357 if test "X$found_so" != "X"; then
39358 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
39359 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39360 else
39361 haveit=
39362 for x in $ltrpathdirs; do
39363 if test "X$x" = "X$found_dir"; then
39364 haveit=yes
39365 break
39367 done
39368 if test -z "$haveit"; then
39369 ltrpathdirs="$ltrpathdirs $found_dir"
39371 if test "$hardcode_direct" = yes; then
39372 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39373 else
39374 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39375 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39376 haveit=
39377 for x in $rpathdirs; do
39378 if test "X$x" = "X$found_dir"; then
39379 haveit=yes
39380 break
39382 done
39383 if test -z "$haveit"; then
39384 rpathdirs="$rpathdirs $found_dir"
39386 else
39387 haveit=
39388 for x in $LDFLAGS $LIBEXPAT; do
39390 acl_save_prefix="$prefix"
39391 prefix="$acl_final_prefix"
39392 acl_save_exec_prefix="$exec_prefix"
39393 exec_prefix="$acl_final_exec_prefix"
39394 eval x=\"$x\"
39395 exec_prefix="$acl_save_exec_prefix"
39396 prefix="$acl_save_prefix"
39398 if test "X$x" = "X-L$found_dir"; then
39399 haveit=yes
39400 break
39402 done
39403 if test -z "$haveit"; then
39404 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
39406 if test "$hardcode_minus_L" != no; then
39407 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
39408 else
39409 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
39414 else
39415 if test "X$found_a" != "X"; then
39416 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
39417 else
39418 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
39421 additional_includedir=
39422 case "$found_dir" in
39423 */lib | */lib/)
39424 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
39425 additional_includedir="$basedir/include"
39427 esac
39428 if test "X$additional_includedir" != "X"; then
39429 if test "X$additional_includedir" != "X/usr/include"; then
39430 haveit=
39431 if test "X$additional_includedir" = "X/usr/local/include"; then
39432 if test -n "$GCC"; then
39433 case $host_os in
39434 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39435 esac
39438 if test -z "$haveit"; then
39439 for x in $CPPFLAGS $INCEXPAT; do
39441 acl_save_prefix="$prefix"
39442 prefix="$acl_final_prefix"
39443 acl_save_exec_prefix="$exec_prefix"
39444 exec_prefix="$acl_final_exec_prefix"
39445 eval x=\"$x\"
39446 exec_prefix="$acl_save_exec_prefix"
39447 prefix="$acl_save_prefix"
39449 if test "X$x" = "X-I$additional_includedir"; then
39450 haveit=yes
39451 break
39453 done
39454 if test -z "$haveit"; then
39455 if test -d "$additional_includedir"; then
39456 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
39462 if test -n "$found_la"; then
39463 save_libdir="$libdir"
39464 case "$found_la" in
39465 */* | *\\*) . "$found_la" ;;
39466 *) . "./$found_la" ;;
39467 esac
39468 libdir="$save_libdir"
39469 for dep in $dependency_libs; do
39470 case "$dep" in
39471 -L*)
39472 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39473 if test "X$additional_libdir" != "X/usr/lib"; then
39474 haveit=
39475 if test "X$additional_libdir" = "X/usr/local/lib"; then
39476 if test -n "$GCC"; then
39477 case $host_os in
39478 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39479 esac
39482 if test -z "$haveit"; then
39483 haveit=
39484 for x in $LDFLAGS $LIBEXPAT; do
39486 acl_save_prefix="$prefix"
39487 prefix="$acl_final_prefix"
39488 acl_save_exec_prefix="$exec_prefix"
39489 exec_prefix="$acl_final_exec_prefix"
39490 eval x=\"$x\"
39491 exec_prefix="$acl_save_exec_prefix"
39492 prefix="$acl_save_prefix"
39494 if test "X$x" = "X-L$additional_libdir"; then
39495 haveit=yes
39496 break
39498 done
39499 if test -z "$haveit"; then
39500 if test -d "$additional_libdir"; then
39501 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
39504 haveit=
39505 for x in $LDFLAGS $LTLIBEXPAT; do
39507 acl_save_prefix="$prefix"
39508 prefix="$acl_final_prefix"
39509 acl_save_exec_prefix="$exec_prefix"
39510 exec_prefix="$acl_final_exec_prefix"
39511 eval x=\"$x\"
39512 exec_prefix="$acl_save_exec_prefix"
39513 prefix="$acl_save_prefix"
39515 if test "X$x" = "X-L$additional_libdir"; then
39516 haveit=yes
39517 break
39519 done
39520 if test -z "$haveit"; then
39521 if test -d "$additional_libdir"; then
39522 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
39528 -R*)
39529 dir=`echo "X$dep" | sed -e 's/^X-R//'`
39530 if test "$enable_rpath" != no; then
39531 haveit=
39532 for x in $rpathdirs; do
39533 if test "X$x" = "X$dir"; then
39534 haveit=yes
39535 break
39537 done
39538 if test -z "$haveit"; then
39539 rpathdirs="$rpathdirs $dir"
39541 haveit=
39542 for x in $ltrpathdirs; do
39543 if test "X$x" = "X$dir"; then
39544 haveit=yes
39545 break
39547 done
39548 if test -z "$haveit"; then
39549 ltrpathdirs="$ltrpathdirs $dir"
39553 -l*)
39554 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39556 *.la)
39557 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39560 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
39561 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
39563 esac
39564 done
39566 else
39567 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
39568 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
39572 done
39573 done
39574 if test "X$rpathdirs" != "X"; then
39575 if test -n "$hardcode_libdir_separator"; then
39576 alldirs=
39577 for found_dir in $rpathdirs; do
39578 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39579 done
39580 acl_save_libdir="$libdir"
39581 libdir="$alldirs"
39582 eval flag=\"$hardcode_libdir_flag_spec\"
39583 libdir="$acl_save_libdir"
39584 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
39585 else
39586 for found_dir in $rpathdirs; do
39587 acl_save_libdir="$libdir"
39588 libdir="$found_dir"
39589 eval flag=\"$hardcode_libdir_flag_spec\"
39590 libdir="$acl_save_libdir"
39591 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
39592 done
39595 if test "X$ltrpathdirs" != "X"; then
39596 for found_dir in $ltrpathdirs; do
39597 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
39598 done
39602 ac_save_CPPFLAGS="$CPPFLAGS"
39604 for element in $INCEXPAT; do
39605 haveit=
39606 for x in $CPPFLAGS; do
39608 acl_save_prefix="$prefix"
39609 prefix="$acl_final_prefix"
39610 acl_save_exec_prefix="$exec_prefix"
39611 exec_prefix="$acl_final_exec_prefix"
39612 eval x=\"$x\"
39613 exec_prefix="$acl_save_exec_prefix"
39614 prefix="$acl_save_prefix"
39616 if test "X$x" = "X$element"; then
39617 haveit=yes
39618 break
39620 done
39621 if test -z "$haveit"; then
39622 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39624 done
39627 echo "$as_me:$LINENO: checking for libexpat" >&5
39628 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
39629 if test "${ac_cv_libexpat+set}" = set; then
39630 echo $ECHO_N "(cached) $ECHO_C" >&6
39631 else
39633 ac_save_LIBS="$LIBS"
39634 LIBS="$LIBS $LIBEXPAT"
39635 cat >conftest.$ac_ext <<_ACEOF
39636 /* confdefs.h. */
39637 _ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h. */
39641 #include <expat.h>
39643 main ()
39645 XML_ExpatVersion();
39647 return 0;
39649 _ACEOF
39650 rm -f conftest.$ac_objext conftest$ac_exeext
39651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39652 (eval $ac_link) 2>conftest.er1
39653 ac_status=$?
39654 grep -v '^ *+' conftest.er1 >conftest.err
39655 rm -f conftest.er1
39656 cat conftest.err >&5
39657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39658 (exit $ac_status); } &&
39659 { ac_try='test -z "$ac_c_werror_flag"
39660 || test ! -s conftest.err'
39661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39662 (eval $ac_try) 2>&5
39663 ac_status=$?
39664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); }; } &&
39666 { ac_try='test -s conftest$ac_exeext'
39667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668 (eval $ac_try) 2>&5
39669 ac_status=$?
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); }; }; then
39672 ac_cv_libexpat=yes
39673 else
39674 echo "$as_me: failed program was:" >&5
39675 sed 's/^/| /' conftest.$ac_ext >&5
39677 ac_cv_libexpat=no
39679 rm -f conftest.err conftest.$ac_objext \
39680 conftest$ac_exeext conftest.$ac_ext
39681 LIBS="$ac_save_LIBS"
39684 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
39685 echo "${ECHO_T}$ac_cv_libexpat" >&6
39686 if test "$ac_cv_libexpat" = yes; then
39687 HAVE_LIBEXPAT=yes
39689 cat >>confdefs.h <<\_ACEOF
39690 #define HAVE_LIBEXPAT 1
39691 _ACEOF
39693 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
39694 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
39695 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
39696 echo "${ECHO_T}$LIBEXPAT" >&6
39697 else
39698 HAVE_LIBEXPAT=no
39699 CPPFLAGS="$ac_save_CPPFLAGS"
39700 LIBEXPAT=
39701 LTLIBEXPAT=
39710 esac
39712 # If set to t, that means we are running in a shell under Emacs.
39713 # If you have an Emacs named "t", then use the full path.
39714 test x"$EMACS" = xt && EMACS=
39715 for ac_prog in emacs xemacs
39717 # Extract the first word of "$ac_prog", so it can be a program name with args.
39718 set dummy $ac_prog; ac_word=$2
39719 echo "$as_me:$LINENO: checking for $ac_word" >&5
39720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39721 if test "${ac_cv_prog_EMACS+set}" = set; then
39722 echo $ECHO_N "(cached) $ECHO_C" >&6
39723 else
39724 if test -n "$EMACS"; then
39725 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
39726 else
39727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39728 for as_dir in $PATH
39730 IFS=$as_save_IFS
39731 test -z "$as_dir" && as_dir=.
39732 for ac_exec_ext in '' $ac_executable_extensions; do
39733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39734 ac_cv_prog_EMACS="$ac_prog"
39735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39736 break 2
39738 done
39739 done
39743 EMACS=$ac_cv_prog_EMACS
39744 if test -n "$EMACS"; then
39745 echo "$as_me:$LINENO: result: $EMACS" >&5
39746 echo "${ECHO_T}$EMACS" >&6
39747 else
39748 echo "$as_me:$LINENO: result: no" >&5
39749 echo "${ECHO_T}no" >&6
39752 test -n "$EMACS" && break
39753 done
39754 test -n "$EMACS" || EMACS="no"
39759 # Check whether --with-lispdir or --without-lispdir was given.
39760 if test "${with_lispdir+set}" = set; then
39761 withval="$with_lispdir"
39762 lispdir="$withval"
39763 echo "$as_me:$LINENO: checking where .elc files should go" >&5
39764 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
39765 echo "$as_me:$LINENO: result: $lispdir" >&5
39766 echo "${ECHO_T}$lispdir" >&6
39767 else
39769 echo "$as_me:$LINENO: checking where .elc files should go" >&5
39770 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
39771 if test "${am_cv_lispdir+set}" = set; then
39772 echo $ECHO_N "(cached) $ECHO_C" >&6
39773 else
39775 if test $EMACS != "no"; then
39776 if test x${lispdir+set} != xset; then
39777 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
39778 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
39779 # which is non-obvious for non-emacs users.
39780 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
39781 # emacsen earlier and avoid running this altogether.
39782 { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
39783 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
39784 ac_status=$?
39785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786 (exit $ac_status); }
39787 am_cv_lispdir=`sed -n \
39788 -e 's,/$,,' \
39789 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
39790 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
39791 conftest.out`
39792 rm conftest.out
39795 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
39798 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
39799 echo "${ECHO_T}$am_cv_lispdir" >&6
39800 lispdir="$am_cv_lispdir"
39806 aclocaldir='${datadir}/aclocal'
39809 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
39810 # Extract the first word of "dvips", so it can be a program name with args.
39811 set dummy dvips; ac_word=$2
39812 echo "$as_me:$LINENO: checking for $ac_word" >&5
39813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39814 if test "${ac_cv_path_DVIPS+set}" = set; then
39815 echo $ECHO_N "(cached) $ECHO_C" >&6
39816 else
39817 case $DVIPS in
39818 [\\/]* | ?:[\\/]*)
39819 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
39822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39823 for as_dir in $PATH
39825 IFS=$as_save_IFS
39826 test -z "$as_dir" && as_dir=.
39827 for ac_exec_ext in '' $ac_executable_extensions; do
39828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39829 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
39830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39831 break 2
39833 done
39834 done
39836 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
39838 esac
39840 DVIPS=$ac_cv_path_DVIPS
39842 if test -n "$DVIPS"; then
39843 echo "$as_me:$LINENO: result: $DVIPS" >&5
39844 echo "${ECHO_T}$DVIPS" >&6
39845 else
39846 echo "$as_me:$LINENO: result: no" >&5
39847 echo "${ECHO_T}no" >&6
39850 # Extract the first word of "texi2pdf", so it can be a program name with args.
39851 set dummy texi2pdf; ac_word=$2
39852 echo "$as_me:$LINENO: checking for $ac_word" >&5
39853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39854 if test "${ac_cv_path_TEXI2PDF+set}" = set; then
39855 echo $ECHO_N "(cached) $ECHO_C" >&6
39856 else
39857 case $TEXI2PDF in
39858 [\\/]* | ?:[\\/]*)
39859 ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
39862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39863 for as_dir in $PATH
39865 IFS=$as_save_IFS
39866 test -z "$as_dir" && as_dir=.
39867 for ac_exec_ext in '' $ac_executable_extensions; do
39868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39869 ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
39870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39871 break 2
39873 done
39874 done
39876 test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
39878 esac
39880 TEXI2PDF=$ac_cv_path_TEXI2PDF
39882 if test -n "$TEXI2PDF"; then
39883 echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
39884 echo "${ECHO_T}$TEXI2PDF" >&6
39885 else
39886 echo "$as_me:$LINENO: result: no" >&5
39887 echo "${ECHO_T}no" >&6
39890 # Extract the first word of "perl", so it can be a program name with args.
39891 set dummy perl; ac_word=$2
39892 echo "$as_me:$LINENO: checking for $ac_word" >&5
39893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39894 if test "${ac_cv_path_PERL+set}" = set; then
39895 echo $ECHO_N "(cached) $ECHO_C" >&6
39896 else
39897 case $PERL in
39898 [\\/]* | ?:[\\/]*)
39899 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39903 for as_dir in $PATH
39905 IFS=$as_save_IFS
39906 test -z "$as_dir" && as_dir=.
39907 for ac_exec_ext in '' $ac_executable_extensions; do
39908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39909 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39911 break 2
39913 done
39914 done
39916 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
39918 esac
39920 PERL=$ac_cv_path_PERL
39922 if test -n "$PERL"; then
39923 echo "$as_me:$LINENO: result: $PERL" >&5
39924 echo "${ECHO_T}$PERL" >&6
39925 else
39926 echo "$as_me:$LINENO: result: no" >&5
39927 echo "${ECHO_T}no" >&6
39931 CROSS_COMPILING=$cross_compiling
39935 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
39937 # Extract the first word of "$ac_prog", so it can be a program name with args.
39938 set dummy $ac_prog; ac_word=$2
39939 echo "$as_me:$LINENO: checking for $ac_word" >&5
39940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39941 if test "${ac_cv_prog_CXX+set}" = set; then
39942 echo $ECHO_N "(cached) $ECHO_C" >&6
39943 else
39944 if test -n "$CXX"; then
39945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
39946 else
39947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39948 for as_dir in $PATH
39950 IFS=$as_save_IFS
39951 test -z "$as_dir" && as_dir=.
39952 for ac_exec_ext in '' $ac_executable_extensions; do
39953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39954 ac_cv_prog_CXX="$ac_prog"
39955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39956 break 2
39958 done
39959 done
39963 CXX=$ac_cv_prog_CXX
39964 if test -n "$CXX"; then
39965 echo "$as_me:$LINENO: result: $CXX" >&5
39966 echo "${ECHO_T}$CXX" >&6
39967 else
39968 echo "$as_me:$LINENO: result: no" >&5
39969 echo "${ECHO_T}no" >&6
39972 test -n "$CXX" && break
39973 done
39974 test -n "$CXX" || CXX=":"
39976 if test "$CXX" != ":"; then
39977 echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
39978 echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6
39979 ac_ext=cc
39980 ac_cpp='$CXXCPP $CPPFLAGS'
39981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39987 echo 'int main () { return 0; }' > conftest.$ac_ext
39988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39989 (eval $ac_link) 2>&5
39990 ac_status=$?
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); } && test -s conftest$ac_exeext; then
39993 ac_cv_prog_cxx_works=yes
39994 if (./conftest; exit) 2>/dev/null; then
39995 ac_cv_prog_cxx_cross=no
39996 else
39997 ac_cv_prog_cxx_cross=yes
39999 else
40000 ac_cv_prog_cxx_works=no
40002 rm -fr conftest*
40003 ac_ext=c
40004 ac_cpp='$CPP $CPPFLAGS'
40005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40009 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
40010 echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6
40011 if test $ac_cv_prog_cxx_works = no; then
40012 CXX=:
40013 else
40014 echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
40015 echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6
40016 ac_ext=cc
40017 ac_cpp='$CXXCPP $CPPFLAGS'
40018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40022 cat <<EOF > conftest.$ac_ext
40023 #include <iostream>
40024 namespace test { using namespace std; }
40025 std::ostream* ptr;
40026 int main () { return 0; }
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029 (eval $ac_link) 2>&5
40030 ac_status=$?
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); } && test -s conftest$ac_exeext; then
40033 gt_cv_prog_cxx_namespaces=yes
40034 else
40035 gt_cv_prog_cxx_namespaces=no
40037 rm -fr conftest*
40038 ac_ext=c
40039 ac_cpp='$CPP $CPPFLAGS'
40040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40044 echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
40045 echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6
40046 if test $gt_cv_prog_cxx_namespaces = no; then
40047 CXX=:
40054 echo "$as_me:$LINENO: checking for a traditional french locale" >&5
40055 echo $ECHO_N "checking for a traditional french locale... $ECHO_C" >&6
40056 if test "${gt_cv_locale_fr+set}" = set; then
40057 echo $ECHO_N "(cached) $ECHO_C" >&6
40058 else
40060 macosx=
40061 case "$host_os" in
40062 darwin56*) ;;
40063 darwin*) macosx=yes;;
40064 esac
40065 if test -n "$macosx"; then
40066 # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
40067 # encodings, but the kernel does not support them. The documentation
40068 # says:
40069 # "... all code that calls BSD system routines should ensure
40070 # that the const *char parameters of these routines are in UTF-8
40071 # encoding. All BSD system functions expect their string
40072 # parameters to be in UTF-8 encoding and nothing else."
40073 # See the comments in config.charset. Therefore we bypass the test.
40074 gt_cv_locale_fr=none
40075 else
40076 cat <<EOF > conftest.$ac_ext
40077 #include <locale.h>
40078 #include <time.h>
40079 struct tm t;
40080 char buf[16];
40081 int main () {
40082 /* Check whether the given locale name is recognized by the system. */
40083 if (setlocale (LC_ALL, "") == NULL) return 1;
40084 /* Check whether in the abbreviation of the second month, the second
40085 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
40086 one byte long. This excludes the UTF-8 encoding. */
40087 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
40088 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
40089 return 0;
40092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40093 (eval $ac_link) 2>&5
40094 ac_status=$?
40095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); } && test -s conftest$ac_exeext; then
40097 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
40098 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
40099 # configure script would override the LC_ALL setting.
40100 # Test for the usual locale name.
40101 if (LC_ALL=fr_FR LC_TIME= ./conftest; exit) 2>/dev/null; then
40102 gt_cv_locale_fr=fr_FR
40103 else
40104 # Test for the locale name with explicit encoding suffix.
40105 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= ./conftest; exit) 2>/dev/null; then
40106 gt_cv_locale_fr=fr_FR.ISO-8859-1
40107 else
40108 # Test for the AIX, OSF/1, FreeBSD, NetBSD locale name.
40109 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= ./conftest; exit) 2>/dev/null; then
40110 gt_cv_locale_fr=fr_FR.ISO8859-1
40111 else
40112 # Test for the HP-UX locale name.
40113 if (LC_ALL=fr_FR.iso88591 LC_TIME= ./conftest; exit) 2>/dev/null; then
40114 gt_cv_locale_fr=fr_FR.iso88591
40115 else
40116 # Test for the Solaris 7 locale name.
40117 if (LC_ALL=fr LC_TIME= ./conftest; exit) 2>/dev/null; then
40118 gt_cv_locale_fr=fr
40119 else
40120 # Special test for NetBSD 1.6.
40121 if test -f /usr/share/locale/fr_FR.ISO8859-1/LC_CTYPE; then
40122 gt_cv_locale_fr=fr_FR.ISO8859-1
40123 else
40124 # None found.
40125 gt_cv_locale_fr=none
40133 rm -fr conftest*
40137 echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
40138 echo "${ECHO_T}$gt_cv_locale_fr" >&6
40139 LOCALE_FR=$gt_cv_locale_fr
40143 echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
40144 echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6
40145 if test "${gt_cv_locale_fr_utf8+set}" = set; then
40146 echo $ECHO_N "(cached) $ECHO_C" >&6
40147 else
40149 cat <<EOF > conftest.$ac_ext
40150 #include <locale.h>
40151 #include <time.h>
40152 struct tm t;
40153 char buf[16];
40154 int main () {
40155 /* On BeOS, locales are not implemented in libc. Rather, libintl
40156 imitates locale dependent behaviour by looking at the environment
40157 variables, and all locales use the UTF-8 encoding. */
40158 #if !defined(__BEOS__)
40159 /* Check whether the given locale name is recognized by the system. */
40160 if (setlocale (LC_ALL, "") == NULL) return 1;
40161 /* Check whether in the abbreviation of the second month, the second
40162 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
40163 two bytes long, with UTF-8 encoding. */
40164 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
40165 if (strftime (buf, sizeof (buf), "%b", &t) < 4
40166 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
40167 return 1;
40168 #endif
40169 return 0;
40172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40173 (eval $ac_link) 2>&5
40174 ac_status=$?
40175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176 (exit $ac_status); } && test -s conftest$ac_exeext; then
40177 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
40178 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
40179 # configure script would override the LC_ALL setting.
40180 # Test for the usual locale name.
40181 if (LC_ALL=fr_FR LC_TIME= ./conftest; exit) 2>/dev/null; then
40182 gt_cv_locale_fr_utf8=fr_FR
40183 else
40184 # Test for the locale name with explicit encoding suffix.
40185 if (LC_ALL=fr_FR.UTF-8 LC_TIME= ./conftest; exit) 2>/dev/null; then
40186 gt_cv_locale_fr_utf8=fr_FR.UTF-8
40187 else
40188 # Test for the Solaris 7 locale name.
40189 if (LC_ALL=fr.UTF-8 LC_TIME= ./conftest; exit) 2>/dev/null; then
40190 gt_cv_locale_fr_utf8=fr.UTF-8
40191 else
40192 # None found.
40193 gt_cv_locale_fr_utf8=none
40198 rm -fr conftest*
40201 echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
40202 echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6
40203 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
40207 if test "${enable_libasprintf+set}" = set; then
40208 if test "$enable_libasprintf" != no; then
40209 TESTLIBASPRINTF=yes
40210 else
40211 TESTLIBASPRINTF=no
40213 else
40214 TESTLIBASPRINTF=yes
40216 if test "$CXX" = ":"; then
40217 TESTLIBASPRINTF=no
40221 test -d intl || mkdir intl
40222 echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
40223 cat > intl/ChangeLog.inst <<EOF
40224 $RELEASE_DATE GNU <bug-gnu-gettext@gnu.org>
40226 * Version $VERSION released.
40230 ac_config_files="$ac_config_files Makefile"
40233 ac_config_files="$ac_config_files doc/Makefile"
40236 ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
40239 ac_config_files="$ac_config_files lib/Makefile"
40241 ac_config_files="$ac_config_files lib/javacomp.sh lib/javaexec.sh"
40243 ac_config_files="$ac_config_files lib/csharpcomp.sh lib/csharpexec.sh"
40246 ac_config_files="$ac_config_files libgrep/Makefile"
40249 ac_config_files="$ac_config_files libuniname/Makefile"
40252 ac_config_files="$ac_config_files src/Makefile"
40254 ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
40257 ac_config_files="$ac_config_files po/Makefile.in"
40260 ac_config_files="$ac_config_files projects/Makefile"
40263 ac_config_files="$ac_config_files misc/Makefile"
40265 ac_config_files="$ac_config_files misc/gettextize"
40267 ac_config_files="$ac_config_files misc/autopoint"
40270 ac_config_files="$ac_config_files man/Makefile"
40272 ac_config_files="$ac_config_files man/x-to-1"
40275 ac_config_files="$ac_config_files m4/Makefile"
40278 ac_config_files="$ac_config_files tests/Makefile"
40281 ac_config_files="$ac_config_files examples/Makefile"
40283 ac_config_files="$ac_config_files examples/installpaths"
40285 ac_config_files="$ac_config_files examples/po/Makefile"
40288 cat >confcache <<\_ACEOF
40289 # This file is a shell script that caches the results of configure
40290 # tests run on this system so they can be shared between configure
40291 # scripts and configure runs, see configure's option --config-cache.
40292 # It is not useful on other systems. If it contains results you don't
40293 # want to keep, you may remove or edit it.
40295 # config.status only pays attention to the cache file if you give it
40296 # the --recheck option to rerun configure.
40298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40300 # following values.
40302 _ACEOF
40304 # The following way of writing the cache mishandles newlines in values,
40305 # but we know of no workaround that is simple, portable, and efficient.
40306 # So, don't put newlines in cache variables' values.
40307 # Ultrix sh set writes to stderr and can't be redirected directly,
40308 # and sets the high bit in the cache file unless we assign to the vars.
40310 (set) 2>&1 |
40311 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40312 *ac_space=\ *)
40313 # `set' does not quote correctly, so add quotes (double-quote
40314 # substitution turns \\\\ into \\, and sed turns \\ into \).
40315 sed -n \
40316 "s/'/'\\\\''/g;
40317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40320 # `set' quotes correctly as required by POSIX, so do not add quotes.
40321 sed -n \
40322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40324 esac;
40326 sed '
40327 t clear
40328 : clear
40329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40330 t end
40331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40332 : end' >>confcache
40333 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40334 if test -w $cache_file; then
40335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40336 cat confcache >$cache_file
40337 else
40338 echo "not updating unwritable cache $cache_file"
40341 rm -f confcache
40343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40344 # Let make expand exec_prefix.
40345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40349 # trailing colons and then remove the whole line if VPATH becomes empty
40350 # (actually we leave an empty line to preserve line numbers).
40351 if test "x$srcdir" = x.; then
40352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40353 s/:*\$(srcdir):*/:/;
40354 s/:*\${srcdir}:*/:/;
40355 s/:*@srcdir@:*/:/;
40356 s/^\([^=]*=[ ]*\):*/\1/;
40357 s/:*$//;
40358 s/^[^=]*=[ ]*$//;
40362 DEFS=-DHAVE_CONFIG_H
40364 ac_libobjs=
40365 ac_ltlibobjs=
40366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40367 # 1. Remove the extension, and $U if already installed.
40368 ac_i=`echo "$ac_i" |
40369 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40370 # 2. Add them.
40371 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40372 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40373 done
40374 LIBOBJS=$ac_libobjs
40376 LTLIBOBJS=$ac_ltlibobjs
40379 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40380 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40381 Usually this means the macro was only invoked conditionally." >&5
40382 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40383 Usually this means the macro was only invoked conditionally." >&2;}
40384 { (exit 1); exit 1; }; }
40386 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40387 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40388 Usually this means the macro was only invoked conditionally." >&5
40389 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40390 Usually this means the macro was only invoked conditionally." >&2;}
40391 { (exit 1); exit 1; }; }
40393 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
40394 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
40395 Usually this means the macro was only invoked conditionally." >&5
40396 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
40397 Usually this means the macro was only invoked conditionally." >&2;}
40398 { (exit 1); exit 1; }; }
40400 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
40401 { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
40402 Usually this means the macro was only invoked conditionally." >&5
40403 echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
40404 Usually this means the macro was only invoked conditionally." >&2;}
40405 { (exit 1); exit 1; }; }
40408 : ${CONFIG_STATUS=./config.status}
40409 ac_clean_files_save=$ac_clean_files
40410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40413 cat >$CONFIG_STATUS <<_ACEOF
40414 #! $SHELL
40415 # Generated by $as_me.
40416 # Run this file to recreate the current configuration.
40417 # Compiler output produced by configure, useful for debugging
40418 # configure, is in config.log if it exists.
40420 debug=false
40421 ac_cs_recheck=false
40422 ac_cs_silent=false
40423 SHELL=\${CONFIG_SHELL-$SHELL}
40424 _ACEOF
40426 cat >>$CONFIG_STATUS <<\_ACEOF
40427 ## --------------------- ##
40428 ## M4sh Initialization. ##
40429 ## --------------------- ##
40431 # Be Bourne compatible
40432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40433 emulate sh
40434 NULLCMD=:
40435 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40436 # is contrary to our usage. Disable this feature.
40437 alias -g '${1+"$@"}'='"$@"'
40438 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40439 set -o posix
40441 DUALCASE=1; export DUALCASE # for MKS sh
40443 # Support unset when possible.
40444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40445 as_unset=unset
40446 else
40447 as_unset=false
40451 # Work around bugs in pre-3.0 UWIN ksh.
40452 $as_unset ENV MAIL MAILPATH
40453 PS1='$ '
40454 PS2='> '
40455 PS4='+ '
40457 # NLS nuisances.
40458 for as_var in \
40459 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40460 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40461 LC_TELEPHONE LC_TIME
40463 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40464 eval $as_var=C; export $as_var
40465 else
40466 $as_unset $as_var
40468 done
40470 # Required to use basename.
40471 if expr a : '\(a\)' >/dev/null 2>&1; then
40472 as_expr=expr
40473 else
40474 as_expr=false
40477 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40478 as_basename=basename
40479 else
40480 as_basename=false
40484 # Name of the executable.
40485 as_me=`$as_basename "$0" ||
40486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40487 X"$0" : 'X\(//\)$' \| \
40488 X"$0" : 'X\(/\)$' \| \
40489 . : '\(.\)' 2>/dev/null ||
40490 echo X/"$0" |
40491 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40492 /^X\/\(\/\/\)$/{ s//\1/; q; }
40493 /^X\/\(\/\).*/{ s//\1/; q; }
40494 s/.*/./; q'`
40497 # PATH needs CR, and LINENO needs CR and PATH.
40498 # Avoid depending upon Character Ranges.
40499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40502 as_cr_digits='0123456789'
40503 as_cr_alnum=$as_cr_Letters$as_cr_digits
40505 # The user is always right.
40506 if test "${PATH_SEPARATOR+set}" != set; then
40507 echo "#! /bin/sh" >conf$$.sh
40508 echo "exit 0" >>conf$$.sh
40509 chmod +x conf$$.sh
40510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40511 PATH_SEPARATOR=';'
40512 else
40513 PATH_SEPARATOR=:
40515 rm -f conf$$.sh
40519 as_lineno_1=$LINENO
40520 as_lineno_2=$LINENO
40521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40522 test "x$as_lineno_1" != "x$as_lineno_2" &&
40523 test "x$as_lineno_3" = "x$as_lineno_2" || {
40524 # Find who we are. Look in the path if we contain no path at all
40525 # relative or not.
40526 case $0 in
40527 *[\\/]* ) as_myself=$0 ;;
40528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40529 for as_dir in $PATH
40531 IFS=$as_save_IFS
40532 test -z "$as_dir" && as_dir=.
40533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40534 done
40537 esac
40538 # We did not find ourselves, most probably we were run as `sh COMMAND'
40539 # in which case we are not to be found in the path.
40540 if test "x$as_myself" = x; then
40541 as_myself=$0
40543 if test ! -f "$as_myself"; then
40544 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40545 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40546 { (exit 1); exit 1; }; }
40548 case $CONFIG_SHELL in
40550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40551 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40553 IFS=$as_save_IFS
40554 test -z "$as_dir" && as_dir=.
40555 for as_base in sh bash ksh sh5; do
40556 case $as_dir in
40558 if ("$as_dir/$as_base" -c '
40559 as_lineno_1=$LINENO
40560 as_lineno_2=$LINENO
40561 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40562 test "x$as_lineno_1" != "x$as_lineno_2" &&
40563 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40564 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40565 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40566 CONFIG_SHELL=$as_dir/$as_base
40567 export CONFIG_SHELL
40568 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40569 fi;;
40570 esac
40571 done
40572 done
40574 esac
40576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40577 # uniformly replaced by the line number. The first 'sed' inserts a
40578 # line-number line before each line; the second 'sed' does the real
40579 # work. The second script uses 'N' to pair each line-number line
40580 # with the numbered line, and appends trailing '-' during
40581 # substitution so that $LINENO is not a special case at line end.
40582 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40583 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40584 sed '=' <$as_myself |
40585 sed '
40587 s,$,-,
40588 : loop
40589 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40590 t loop
40591 s,-$,,
40592 s,^['$as_cr_digits']*\n,,
40593 ' >$as_me.lineno &&
40594 chmod +x $as_me.lineno ||
40595 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40596 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40597 { (exit 1); exit 1; }; }
40599 # Don't try to exec as it changes $[0], causing all sort of problems
40600 # (the dirname of $[0] is not the place where we might find the
40601 # original and so on. Autoconf is especially sensible to this).
40602 . ./$as_me.lineno
40603 # Exit status is that of the last command.
40604 exit
40608 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40609 *c*,-n*) ECHO_N= ECHO_C='
40610 ' ECHO_T=' ' ;;
40611 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40612 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40613 esac
40615 if expr a : '\(a\)' >/dev/null 2>&1; then
40616 as_expr=expr
40617 else
40618 as_expr=false
40621 rm -f conf$$ conf$$.exe conf$$.file
40622 echo >conf$$.file
40623 if ln -s conf$$.file conf$$ 2>/dev/null; then
40624 # We could just check for DJGPP; but this test a) works b) is more generic
40625 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40626 if test -f conf$$.exe; then
40627 # Don't use ln at all; we don't have any links
40628 as_ln_s='cp -p'
40629 else
40630 as_ln_s='ln -s'
40632 elif ln conf$$.file conf$$ 2>/dev/null; then
40633 as_ln_s=ln
40634 else
40635 as_ln_s='cp -p'
40637 rm -f conf$$ conf$$.exe conf$$.file
40639 if mkdir -p . 2>/dev/null; then
40640 as_mkdir_p=:
40641 else
40642 test -d ./-p && rmdir ./-p
40643 as_mkdir_p=false
40646 as_executable_p="test -f"
40648 # Sed expression to map a string onto a valid CPP name.
40649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40651 # Sed expression to map a string onto a valid variable name.
40652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40655 # IFS
40656 # We need space, tab and new line, in precisely that order.
40657 as_nl='
40659 IFS=" $as_nl"
40661 # CDPATH.
40662 $as_unset CDPATH
40664 exec 6>&1
40666 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40667 # report actual input values of CONFIG_FILES etc. instead of their
40668 # values after options handling. Logging --version etc. is OK.
40669 exec 5>>config.log
40671 echo
40672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40673 ## Running $as_me. ##
40674 _ASBOX
40675 } >&5
40676 cat >&5 <<_CSEOF
40678 This file was extended by $as_me, which was
40679 generated by GNU Autoconf 2.59. Invocation command line was
40681 CONFIG_FILES = $CONFIG_FILES
40682 CONFIG_HEADERS = $CONFIG_HEADERS
40683 CONFIG_LINKS = $CONFIG_LINKS
40684 CONFIG_COMMANDS = $CONFIG_COMMANDS
40685 $ $0 $@
40687 _CSEOF
40688 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40689 echo >&5
40690 _ACEOF
40692 # Files that config.status was made for.
40693 if test -n "$ac_config_files"; then
40694 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40697 if test -n "$ac_config_headers"; then
40698 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40701 if test -n "$ac_config_links"; then
40702 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40705 if test -n "$ac_config_commands"; then
40706 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40709 cat >>$CONFIG_STATUS <<\_ACEOF
40711 ac_cs_usage="\
40712 \`$as_me' instantiates files from templates according to the
40713 current configuration.
40715 Usage: $0 [OPTIONS] [FILE]...
40717 -h, --help print this help, then exit
40718 -V, --version print version number, then exit
40719 -q, --quiet do not print progress messages
40720 -d, --debug don't remove temporary files
40721 --recheck update $as_me by reconfiguring in the same conditions
40722 --file=FILE[:TEMPLATE]
40723 instantiate the configuration file FILE
40724 --header=FILE[:TEMPLATE]
40725 instantiate the configuration header FILE
40727 Configuration files:
40728 $config_files
40730 Configuration headers:
40731 $config_headers
40733 Configuration commands:
40734 $config_commands
40736 Report bugs to <bug-autoconf@gnu.org>."
40737 _ACEOF
40739 cat >>$CONFIG_STATUS <<_ACEOF
40740 ac_cs_version="\\
40741 config.status
40742 configured by $0, generated by GNU Autoconf 2.59,
40743 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40745 Copyright (C) 2003 Free Software Foundation, Inc.
40746 This config.status script is free software; the Free Software Foundation
40747 gives unlimited permission to copy, distribute and modify it."
40748 srcdir=$srcdir
40749 INSTALL="$INSTALL"
40750 _ACEOF
40752 cat >>$CONFIG_STATUS <<\_ACEOF
40753 # If no file are specified by the user, then we need to provide default
40754 # value. By we need to know if files were specified by the user.
40755 ac_need_defaults=:
40756 while test $# != 0
40758 case $1 in
40759 --*=*)
40760 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40761 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40762 ac_shift=:
40765 ac_option=$1
40766 ac_optarg=$2
40767 ac_shift=shift
40769 *) # This is not an option, so the user has probably given explicit
40770 # arguments.
40771 ac_option=$1
40772 ac_need_defaults=false;;
40773 esac
40775 case $ac_option in
40776 # Handling of the options.
40777 _ACEOF
40778 cat >>$CONFIG_STATUS <<\_ACEOF
40779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40780 ac_cs_recheck=: ;;
40781 --version | --vers* | -V )
40782 echo "$ac_cs_version"; exit 0 ;;
40783 --he | --h)
40784 # Conflict between --help and --header
40785 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40786 Try \`$0 --help' for more information." >&5
40787 echo "$as_me: error: ambiguous option: $1
40788 Try \`$0 --help' for more information." >&2;}
40789 { (exit 1); exit 1; }; };;
40790 --help | --hel | -h )
40791 echo "$ac_cs_usage"; exit 0 ;;
40792 --debug | --d* | -d )
40793 debug=: ;;
40794 --file | --fil | --fi | --f )
40795 $ac_shift
40796 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40797 ac_need_defaults=false;;
40798 --header | --heade | --head | --hea )
40799 $ac_shift
40800 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40801 ac_need_defaults=false;;
40802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40804 ac_cs_silent=: ;;
40806 # This is an error.
40807 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40808 Try \`$0 --help' for more information." >&5
40809 echo "$as_me: error: unrecognized option: $1
40810 Try \`$0 --help' for more information." >&2;}
40811 { (exit 1); exit 1; }; } ;;
40813 *) ac_config_targets="$ac_config_targets $1" ;;
40815 esac
40816 shift
40817 done
40819 ac_configure_extra_args=
40821 if $ac_cs_silent; then
40822 exec 6>/dev/null
40823 ac_configure_extra_args="$ac_configure_extra_args --silent"
40826 _ACEOF
40827 cat >>$CONFIG_STATUS <<_ACEOF
40828 if \$ac_cs_recheck; then
40829 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40830 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40833 _ACEOF
40835 cat >>$CONFIG_STATUS <<_ACEOF
40837 # INIT-COMMANDS section.
40840 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40841 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
40842 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
40843 # from automake.
40844 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
40845 # Capture the value of LINGUAS because we need it to compute CATALOGS.
40846 LINGUAS="${LINGUAS-%UNSET%}"
40849 _ACEOF
40853 cat >>$CONFIG_STATUS <<\_ACEOF
40854 for ac_config_target in $ac_config_targets
40856 case "$ac_config_target" in
40857 # Handling of arguments.
40858 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40859 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
40860 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
40861 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40862 "lib/javacomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/javacomp.sh" ;;
40863 "lib/javaexec.sh" ) CONFIG_FILES="$CONFIG_FILES lib/javaexec.sh" ;;
40864 "lib/csharpcomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/csharpcomp.sh" ;;
40865 "lib/csharpexec.sh" ) CONFIG_FILES="$CONFIG_FILES lib/csharpexec.sh" ;;
40866 "libgrep/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
40867 "libuniname/Makefile" ) CONFIG_FILES="$CONFIG_FILES libuniname/Makefile" ;;
40868 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40869 "src/user-email" ) CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
40870 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
40871 "projects/Makefile" ) CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
40872 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
40873 "misc/gettextize" ) CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
40874 "misc/autopoint" ) CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
40875 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
40876 "man/x-to-1" ) CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
40877 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
40878 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40879 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
40880 "examples/installpaths" ) CONFIG_FILES="$CONFIG_FILES examples/installpaths" ;;
40881 "examples/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/po/Makefile" ;;
40882 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40883 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
40884 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
40885 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40887 { (exit 1); exit 1; }; };;
40888 esac
40889 done
40891 # If the user did not use the arguments to specify the items to instantiate,
40892 # then the envvar interface is used. Set only those that are not.
40893 # We use the long form for the default assignment because of an extremely
40894 # bizarre bug on SunOS 4.1.3.
40895 if $ac_need_defaults; then
40896 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40897 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40898 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40901 # Have a temporary directory for convenience. Make it in the build tree
40902 # simply because there is no reason to put it here, and in addition,
40903 # creating and moving files from /tmp can sometimes cause problems.
40904 # Create a temporary directory, and hook for its removal unless debugging.
40905 $debug ||
40907 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40908 trap '{ (exit 1); exit 1; }' 1 2 13 15
40911 # Create a (secure) tmp directory for tmp files.
40914 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40915 test -n "$tmp" && test -d "$tmp"
40916 } ||
40918 tmp=./confstat$$-$RANDOM
40919 (umask 077 && mkdir $tmp)
40920 } ||
40922 echo "$me: cannot create a temporary directory in ." >&2
40923 { (exit 1); exit 1; }
40926 _ACEOF
40928 cat >>$CONFIG_STATUS <<_ACEOF
40931 # CONFIG_FILES section.
40934 # No need to generate the scripts if there are no CONFIG_FILES.
40935 # This happens for instance when ./config.status config.h
40936 if test -n "\$CONFIG_FILES"; then
40937 # Protect against being on the right side of a sed subst in config.status.
40938 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40939 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40940 s,@SHELL@,$SHELL,;t t
40941 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40942 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40943 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40944 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40945 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40946 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40947 s,@exec_prefix@,$exec_prefix,;t t
40948 s,@prefix@,$prefix,;t t
40949 s,@program_transform_name@,$program_transform_name,;t t
40950 s,@bindir@,$bindir,;t t
40951 s,@sbindir@,$sbindir,;t t
40952 s,@libexecdir@,$libexecdir,;t t
40953 s,@datadir@,$datadir,;t t
40954 s,@sysconfdir@,$sysconfdir,;t t
40955 s,@sharedstatedir@,$sharedstatedir,;t t
40956 s,@localstatedir@,$localstatedir,;t t
40957 s,@libdir@,$libdir,;t t
40958 s,@includedir@,$includedir,;t t
40959 s,@oldincludedir@,$oldincludedir,;t t
40960 s,@infodir@,$infodir,;t t
40961 s,@mandir@,$mandir,;t t
40962 s,@build_alias@,$build_alias,;t t
40963 s,@host_alias@,$host_alias,;t t
40964 s,@target_alias@,$target_alias,;t t
40965 s,@DEFS@,$DEFS,;t t
40966 s,@ECHO_C@,$ECHO_C,;t t
40967 s,@ECHO_N@,$ECHO_N,;t t
40968 s,@ECHO_T@,$ECHO_T,;t t
40969 s,@LIBS@,$LIBS,;t t
40970 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40971 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40972 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40973 s,@CYGPATH_W@,$CYGPATH_W,;t t
40974 s,@PACKAGE@,$PACKAGE,;t t
40975 s,@VERSION@,$VERSION,;t t
40976 s,@ACLOCAL@,$ACLOCAL,;t t
40977 s,@AUTOCONF@,$AUTOCONF,;t t
40978 s,@AUTOMAKE@,$AUTOMAKE,;t t
40979 s,@AUTOHEADER@,$AUTOHEADER,;t t
40980 s,@MAKEINFO@,$MAKEINFO,;t t
40981 s,@install_sh@,$install_sh,;t t
40982 s,@STRIP@,$STRIP,;t t
40983 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40984 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40985 s,@mkdir_p@,$mkdir_p,;t t
40986 s,@AWK@,$AWK,;t t
40987 s,@SET_MAKE@,$SET_MAKE,;t t
40988 s,@am__leading_dot@,$am__leading_dot,;t t
40989 s,@AMTAR@,$AMTAR,;t t
40990 s,@am__tar@,$am__tar,;t t
40991 s,@am__untar@,$am__untar,;t t
40992 s,@localedir@,$localedir,;t t
40993 s,@docdir@,$docdir,;t t
40994 s,@CC@,$CC,;t t
40995 s,@CFLAGS@,$CFLAGS,;t t
40996 s,@LDFLAGS@,$LDFLAGS,;t t
40997 s,@CPPFLAGS@,$CPPFLAGS,;t t
40998 s,@ac_ct_CC@,$ac_ct_CC,;t t
40999 s,@EXEEXT@,$EXEEXT,;t t
41000 s,@OBJEXT@,$OBJEXT,;t t
41001 s,@DEPDIR@,$DEPDIR,;t t
41002 s,@am__include@,$am__include,;t t
41003 s,@am__quote@,$am__quote,;t t
41004 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41005 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41006 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41007 s,@CCDEPMODE@,$CCDEPMODE,;t t
41008 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41009 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41010 s,@YACC@,$YACC,;t t
41011 s,@GCJ@,$GCJ,;t t
41012 s,@GCJFLAGS@,$GCJFLAGS,;t t
41013 s,@HAVE_GCJ@,$HAVE_GCJ,;t t
41014 s,@BUILDJAVAEXE@,$BUILDJAVAEXE,;t t
41015 s,@CPP@,$CPP,;t t
41016 s,@EGREP@,$EGREP,;t t
41017 s,@HAVE_GCJ_IN_PATH@,$HAVE_GCJ_IN_PATH,;t t
41018 s,@HAVE_JAVAC_IN_PATH@,$HAVE_JAVAC_IN_PATH,;t t
41019 s,@HAVE_JIKES_IN_PATH@,$HAVE_JIKES_IN_PATH,;t t
41020 s,@JAVAC@,$JAVAC,;t t
41021 s,@CLASSPATH@,$CLASSPATH,;t t
41022 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
41023 s,@HAVE_GCJ_C@,$HAVE_GCJ_C,;t t
41024 s,@HAVE_JAVAC@,$HAVE_JAVAC,;t t
41025 s,@HAVE_JIKES@,$HAVE_JIKES,;t t
41026 s,@JAR@,$JAR,;t t
41027 s,@BUILDJAVA@,$BUILDJAVA,;t t
41028 s,@HAVE_GIJ_IN_PATH@,$HAVE_GIJ_IN_PATH,;t t
41029 s,@HAVE_JAVA_IN_PATH@,$HAVE_JAVA_IN_PATH,;t t
41030 s,@HAVE_JRE_IN_PATH@,$HAVE_JRE_IN_PATH,;t t
41031 s,@HAVE_JVIEW_IN_PATH@,$HAVE_JVIEW_IN_PATH,;t t
41032 s,@JAVA@,$JAVA,;t t
41033 s,@HAVE_GIJ@,$HAVE_GIJ,;t t
41034 s,@HAVE_JAVA@,$HAVE_JAVA,;t t
41035 s,@HAVE_JRE@,$HAVE_JRE,;t t
41036 s,@HAVE_JVIEW@,$HAVE_JVIEW,;t t
41037 s,@TESTJAVA@,$TESTJAVA,;t t
41038 s,@CSHARP_CHOICE@,$CSHARP_CHOICE,;t t
41039 s,@HAVE_CSCC_IN_PATH@,$HAVE_CSCC_IN_PATH,;t t
41040 s,@HAVE_MCS_IN_PATH@,$HAVE_MCS_IN_PATH,;t t
41041 s,@HAVE_CSC_IN_PATH@,$HAVE_CSC_IN_PATH,;t t
41042 s,@HAVE_CSCC@,$HAVE_CSCC,;t t
41043 s,@HAVE_MCS@,$HAVE_MCS,;t t
41044 s,@HAVE_CSC@,$HAVE_CSC,;t t
41045 s,@BUILDCSHARP@,$BUILDCSHARP,;t t
41046 s,@HAVE_ILRUN_IN_PATH@,$HAVE_ILRUN_IN_PATH,;t t
41047 s,@HAVE_MONO_IN_PATH@,$HAVE_MONO_IN_PATH,;t t
41048 s,@MONO_PATH@,$MONO_PATH,;t t
41049 s,@MONO_PATH_SEPARATOR@,$MONO_PATH_SEPARATOR,;t t
41050 s,@HAVE_ILRUN@,$HAVE_ILRUN,;t t
41051 s,@HAVE_MONO@,$HAVE_MONO,;t t
41052 s,@TESTCSHARP@,$TESTCSHARP,;t t
41053 s,@build@,$build,;t t
41054 s,@build_cpu@,$build_cpu,;t t
41055 s,@build_vendor@,$build_vendor,;t t
41056 s,@build_os@,$build_os,;t t
41057 s,@host@,$host,;t t
41058 s,@host_cpu@,$host_cpu,;t t
41059 s,@host_vendor@,$host_vendor,;t t
41060 s,@host_os@,$host_os,;t t
41061 s,@LN_S@,$LN_S,;t t
41062 s,@ECHO@,$ECHO,;t t
41063 s,@AR@,$AR,;t t
41064 s,@ac_ct_AR@,$ac_ct_AR,;t t
41065 s,@RANLIB@,$RANLIB,;t t
41066 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41067 s,@DLLTOOL@,$DLLTOOL,;t t
41068 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41069 s,@AS@,$AS,;t t
41070 s,@ac_ct_AS@,$ac_ct_AS,;t t
41071 s,@OBJDUMP@,$OBJDUMP,;t t
41072 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41073 s,@CXX@,$CXX,;t t
41074 s,@CXXFLAGS@,$CXXFLAGS,;t t
41075 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41076 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
41077 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
41078 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
41079 s,@CXXCPP@,$CXXCPP,;t t
41080 s,@F77@,$F77,;t t
41081 s,@FFLAGS@,$FFLAGS,;t t
41082 s,@ac_ct_F77@,$ac_ct_F77,;t t
41083 s,@LIBTOOL@,$LIBTOOL,;t t
41084 s,@RELOCATABLE@,$RELOCATABLE,;t t
41085 s,@LIBOBJS@,$LIBOBJS,;t t
41086 s,@SET_RELOCATABLE@,$SET_RELOCATABLE,;t t
41087 s,@RELOCATABLE_VIA_LD_TRUE@,$RELOCATABLE_VIA_LD_TRUE,;t t
41088 s,@RELOCATABLE_VIA_LD_FALSE@,$RELOCATABLE_VIA_LD_FALSE,;t t
41089 s,@STDBOOL_H@,$STDBOOL_H,;t t
41090 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
41091 s,@ALLOCA@,$ALLOCA,;t t
41092 s,@ALLOCA_H@,$ALLOCA_H,;t t
41093 s,@FNMATCH_H@,$FNMATCH_H,;t t
41094 s,@GETOPT_H@,$GETOPT_H,;t t
41095 s,@LIBGREPOBJS@,$LIBGREPOBJS,;t t
41096 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41097 s,@USE_NLS@,$USE_NLS,;t t
41098 s,@MSGFMT@,$MSGFMT,;t t
41099 s,@GMSGFMT@,$GMSGFMT,;t t
41100 s,@XGETTEXT@,$XGETTEXT,;t t
41101 s,@MSGMERGE@,$MSGMERGE,;t t
41102 s,@GLIBC2@,$GLIBC2,;t t
41103 s,@GLIBC21@,$GLIBC21,;t t
41104 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
41105 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
41106 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
41107 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
41108 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
41109 s,@LIBICONV@,$LIBICONV,;t t
41110 s,@LTLIBICONV@,$LTLIBICONV,;t t
41111 s,@INTLBISON@,$INTLBISON,;t t
41112 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
41113 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
41114 s,@CATOBJEXT@,$CATOBJEXT,;t t
41115 s,@DATADIRNAME@,$DATADIRNAME,;t t
41116 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
41117 s,@GENCAT@,$GENCAT,;t t
41118 s,@INTLOBJS@,$INTLOBJS,;t t
41119 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
41120 s,@INTLLIBS@,$INTLLIBS,;t t
41121 s,@LIBINTL@,$LIBINTL,;t t
41122 s,@LTLIBINTL@,$LTLIBINTL,;t t
41123 s,@POSUB@,$POSUB,;t t
41124 s,@LIBEXPAT@,$LIBEXPAT,;t t
41125 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
41126 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
41127 s,@EMACS@,$EMACS,;t t
41128 s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
41129 s,@lispdir@,$lispdir,;t t
41130 s,@aclocaldir@,$aclocaldir,;t t
41131 s,@DVIPS@,$DVIPS,;t t
41132 s,@TEXI2PDF@,$TEXI2PDF,;t t
41133 s,@PERL@,$PERL,;t t
41134 s,@CROSS_COMPILING@,$CROSS_COMPILING,;t t
41135 s,@LOCALE_FR@,$LOCALE_FR,;t t
41136 s,@LOCALE_FR_UTF8@,$LOCALE_FR_UTF8,;t t
41137 s,@TESTLIBASPRINTF@,$TESTLIBASPRINTF,;t t
41138 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41139 CEOF
41141 _ACEOF
41143 cat >>$CONFIG_STATUS <<\_ACEOF
41144 # Split the substitutions into bite-sized pieces for seds with
41145 # small command number limits, like on Digital OSF/1 and HP-UX.
41146 ac_max_sed_lines=48
41147 ac_sed_frag=1 # Number of current file.
41148 ac_beg=1 # First line for current file.
41149 ac_end=$ac_max_sed_lines # Line after last line for current file.
41150 ac_more_lines=:
41151 ac_sed_cmds=
41152 while $ac_more_lines; do
41153 if test $ac_beg -gt 1; then
41154 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41155 else
41156 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41158 if test ! -s $tmp/subs.frag; then
41159 ac_more_lines=false
41160 else
41161 # The purpose of the label and of the branching condition is to
41162 # speed up the sed processing (if there are no `@' at all, there
41163 # is no need to browse any of the substitutions).
41164 # These are the two extra sed commands mentioned above.
41165 (echo ':t
41166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41167 if test -z "$ac_sed_cmds"; then
41168 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41169 else
41170 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41172 ac_sed_frag=`expr $ac_sed_frag + 1`
41173 ac_beg=$ac_end
41174 ac_end=`expr $ac_end + $ac_max_sed_lines`
41176 done
41177 if test -z "$ac_sed_cmds"; then
41178 ac_sed_cmds=cat
41180 fi # test -n "$CONFIG_FILES"
41182 _ACEOF
41183 cat >>$CONFIG_STATUS <<\_ACEOF
41184 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41186 case $ac_file in
41187 - | *:- | *:-:* ) # input from stdin
41188 cat >$tmp/stdin
41189 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41191 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41193 * ) ac_file_in=$ac_file.in ;;
41194 esac
41196 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41197 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41199 X"$ac_file" : 'X\(//\)[^/]' \| \
41200 X"$ac_file" : 'X\(//\)$' \| \
41201 X"$ac_file" : 'X\(/\)' \| \
41202 . : '\(.\)' 2>/dev/null ||
41203 echo X"$ac_file" |
41204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41206 /^X\(\/\/\)$/{ s//\1/; q; }
41207 /^X\(\/\).*/{ s//\1/; q; }
41208 s/.*/./; q'`
41209 { if $as_mkdir_p; then
41210 mkdir -p "$ac_dir"
41211 else
41212 as_dir="$ac_dir"
41213 as_dirs=
41214 while test ! -d "$as_dir"; do
41215 as_dirs="$as_dir $as_dirs"
41216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41218 X"$as_dir" : 'X\(//\)[^/]' \| \
41219 X"$as_dir" : 'X\(//\)$' \| \
41220 X"$as_dir" : 'X\(/\)' \| \
41221 . : '\(.\)' 2>/dev/null ||
41222 echo X"$as_dir" |
41223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41225 /^X\(\/\/\)$/{ s//\1/; q; }
41226 /^X\(\/\).*/{ s//\1/; q; }
41227 s/.*/./; q'`
41228 done
41229 test ! -n "$as_dirs" || mkdir $as_dirs
41230 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41231 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41232 { (exit 1); exit 1; }; }; }
41234 ac_builddir=.
41236 if test "$ac_dir" != .; then
41237 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41238 # A "../" for each directory in $ac_dir_suffix.
41239 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41240 else
41241 ac_dir_suffix= ac_top_builddir=
41244 case $srcdir in
41245 .) # No --srcdir option. We are building in place.
41246 ac_srcdir=.
41247 if test -z "$ac_top_builddir"; then
41248 ac_top_srcdir=.
41249 else
41250 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41251 fi ;;
41252 [\\/]* | ?:[\\/]* ) # Absolute path.
41253 ac_srcdir=$srcdir$ac_dir_suffix;
41254 ac_top_srcdir=$srcdir ;;
41255 *) # Relative path.
41256 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41257 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41258 esac
41260 # Do not use `cd foo && pwd` to compute absolute paths, because
41261 # the directories may not exist.
41262 case `pwd` in
41263 .) ac_abs_builddir="$ac_dir";;
41265 case "$ac_dir" in
41266 .) ac_abs_builddir=`pwd`;;
41267 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41268 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41269 esac;;
41270 esac
41271 case $ac_abs_builddir in
41272 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41274 case ${ac_top_builddir}. in
41275 .) ac_abs_top_builddir=$ac_abs_builddir;;
41276 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41277 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41278 esac;;
41279 esac
41280 case $ac_abs_builddir in
41281 .) ac_abs_srcdir=$ac_srcdir;;
41283 case $ac_srcdir in
41284 .) ac_abs_srcdir=$ac_abs_builddir;;
41285 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41286 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41287 esac;;
41288 esac
41289 case $ac_abs_builddir in
41290 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41292 case $ac_top_srcdir in
41293 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41294 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41295 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41296 esac;;
41297 esac
41300 case $INSTALL in
41301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41302 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41303 esac
41305 if test x"$ac_file" != x-; then
41306 { echo "$as_me:$LINENO: creating $ac_file" >&5
41307 echo "$as_me: creating $ac_file" >&6;}
41308 rm -f "$ac_file"
41310 # Let's still pretend it is `configure' which instantiates (i.e., don't
41311 # use $as_me), people would be surprised to read:
41312 # /* config.h. Generated by config.status. */
41313 if test x"$ac_file" = x-; then
41314 configure_input=
41315 else
41316 configure_input="$ac_file. "
41318 configure_input=$configure_input"Generated from `echo $ac_file_in |
41319 sed 's,.*/,,'` by configure."
41321 # First look for the input files in the build tree, otherwise in the
41322 # src tree.
41323 ac_file_inputs=`IFS=:
41324 for f in $ac_file_in; do
41325 case $f in
41326 -) echo $tmp/stdin ;;
41327 [\\/$]*)
41328 # Absolute (can't be DOS-style, as IFS=:)
41329 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41330 echo "$as_me: error: cannot find input file: $f" >&2;}
41331 { (exit 1); exit 1; }; }
41332 echo "$f";;
41333 *) # Relative
41334 if test -f "$f"; then
41335 # Build tree
41336 echo "$f"
41337 elif test -f "$srcdir/$f"; then
41338 # Source tree
41339 echo "$srcdir/$f"
41340 else
41341 # /dev/null tree
41342 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41343 echo "$as_me: error: cannot find input file: $f" >&2;}
41344 { (exit 1); exit 1; }; }
41345 fi;;
41346 esac
41347 done` || { (exit 1); exit 1; }
41348 _ACEOF
41349 cat >>$CONFIG_STATUS <<_ACEOF
41350 sed "$ac_vpsub
41351 $extrasub
41352 _ACEOF
41353 cat >>$CONFIG_STATUS <<\_ACEOF
41355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41356 s,@configure_input@,$configure_input,;t t
41357 s,@srcdir@,$ac_srcdir,;t t
41358 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41359 s,@top_srcdir@,$ac_top_srcdir,;t t
41360 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41361 s,@builddir@,$ac_builddir,;t t
41362 s,@abs_builddir@,$ac_abs_builddir,;t t
41363 s,@top_builddir@,$ac_top_builddir,;t t
41364 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41365 s,@INSTALL@,$ac_INSTALL,;t t
41366 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41367 rm -f $tmp/stdin
41368 if test x"$ac_file" != x-; then
41369 mv $tmp/out $ac_file
41370 else
41371 cat $tmp/out
41372 rm -f $tmp/out
41375 # Run the commands associated with the file.
41376 case $ac_file in
41377 doc/Makefile )
41378 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41379 mv $ac_file.tmp $ac_file
41382 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
41383 mv $ac_file.tmp $ac_file
41386 sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp
41387 mv $ac_file.tmp $ac_file
41389 intl/Makefile )
41390 # Change srcdir variable so that it points to ../gettext-runtime/intl.
41391 sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
41392 < intl/Makefile > intl/Makefile.tmp
41393 mv intl/Makefile.tmp intl/Makefile
41395 lib/Makefile )
41396 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41397 mv $ac_file.tmp $ac_file
41399 libgrep/Makefile )
41400 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41401 mv $ac_file.tmp $ac_file
41403 libuniname/Makefile )
41404 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41405 mv $ac_file.tmp $ac_file
41407 src/Makefile )
41408 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41409 mv $ac_file.tmp $ac_file
41411 misc/gettextize ) chmod a+x misc/gettextize ;;
41412 misc/autopoint ) chmod a+x misc/autopoint ;;
41413 man/Makefile )
41414 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
41415 mv $ac_file.tmp $ac_file
41417 tests/Makefile )
41418 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
41419 mv $ac_file.tmp $ac_file
41421 examples/Makefile )
41422 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
41423 mv $ac_file.tmp $ac_file
41425 examples/po/Makefile )
41426 # When this code is run, in config.status, two variables have already been
41427 # set:
41428 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
41429 # - LINGUAS is the value of the environment variable LINGUAS at configure
41430 # time.
41432 # Adjust a relative srcdir.
41433 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
41434 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
41435 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
41436 # In autoconf-2.13 it is called $ac_given_srcdir.
41437 # In autoconf-2.50 it is called $srcdir.
41438 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
41439 case "$ac_given_srcdir" in
41440 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
41441 /*) top_srcdir="$ac_given_srcdir" ;;
41442 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
41443 esac
41445 # Find a way to echo strings without interpreting backslash.
41446 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
41447 gt_echo='echo'
41448 else
41449 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
41450 gt_echo='printf %s\n'
41451 else
41452 echo_func () {
41453 cat <<EOT
41457 gt_echo='echo_func'
41461 # A sed script that extracts the value of VARIABLE from a Makefile.
41462 sed_x_variable='
41463 # Test if the hold space is empty.
41465 s/P/P/
41468 # Yes it was empty. Look if we have the expected variable definition.
41469 /^[ ]*VARIABLE[ ]*=/{
41470 # Seen the first line of the variable definition.
41471 s/^[ ]*VARIABLE[ ]*=//
41476 # Here we are processing a line from the variable definition.
41477 # Remove comment, more precisely replace it with a space.
41478 s/#.*$/ /
41479 # See if the line ends in a backslash.
41482 s/\\$//
41483 # Print the line, without the trailing backslash.
41486 # There was no trailing backslash. The end of the variable definition is
41487 # reached. Clear the hold space.
41488 s/^.*$//
41492 # A trailing backslash means that the variable definition continues in the
41493 # next line. Put a nonempty string into the hold space to indicate this.
41494 s/^.*$/P/
41499 # Set POTFILES to the value of the Makefile variable POTFILES.
41500 sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
41501 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
41502 # Compute POTFILES_DEPS as
41503 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
41504 POTFILES_DEPS=
41505 for file in $POTFILES; do
41506 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
41507 done
41508 POMAKEFILEDEPS=""
41510 if test -n "$OBSOLETE_ALL_LINGUAS"; then
41511 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
41513 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
41514 # The LINGUAS file contains the set of available languages.
41515 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
41516 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
41517 else
41518 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
41519 sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
41520 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
41522 # Hide the ALL_LINGUAS assigment from automake.
41523 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
41524 # Compute POFILES
41525 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
41526 # Compute UPDATEPOFILES
41527 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
41528 # Compute DUMMYPOFILES
41529 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
41530 # Compute GMOFILES
41531 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
41532 # Compute PROPERTIESFILES
41533 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
41534 # Compute CLASSFILES
41535 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
41536 # Compute QMFILES
41537 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
41538 # Compute MSGFILES
41539 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
41540 # Compute RESOURCESDLLFILES
41541 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
41542 case "$ac_given_srcdir" in
41543 .) srcdirpre= ;;
41544 *) srcdirpre='$(srcdir)/' ;;
41545 esac
41546 POFILES=
41547 UPDATEPOFILES=
41548 DUMMYPOFILES=
41549 GMOFILES=
41550 PROPERTIESFILES=
41551 CLASSFILES=
41552 QMFILES=
41553 MSGFILES=
41554 RESOURCESDLLFILES=
41555 for lang in $ALL_LINGUAS; do
41556 POFILES="$POFILES $srcdirpre$lang.po"
41557 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
41558 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
41559 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
41560 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
41561 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
41562 QMFILES="$QMFILES $srcdirpre$lang.qm"
41563 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
41564 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
41565 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
41566 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
41567 done
41568 # CATALOGS depends on both $ac_dir and the user's LINGUAS
41569 # environment variable.
41570 INST_LINGUAS=
41571 if test -n "$ALL_LINGUAS"; then
41572 for presentlang in $ALL_LINGUAS; do
41573 useit=no
41574 if test "%UNSET%" != "$LINGUAS"; then
41575 desiredlanguages="$LINGUAS"
41576 else
41577 desiredlanguages="$ALL_LINGUAS"
41579 for desiredlang in $desiredlanguages; do
41580 # Use the presentlang catalog if desiredlang is
41581 # a. equal to presentlang, or
41582 # b. a variant of presentlang (because in this case,
41583 # presentlang can be used as a fallback for messages
41584 # which are not translated in the desiredlang catalog).
41585 case "$desiredlang" in
41586 "$presentlang"*) useit=yes;;
41587 esac
41588 done
41589 if test $useit = yes; then
41590 INST_LINGUAS="$INST_LINGUAS $presentlang"
41592 done
41594 CATALOGS=
41595 JAVACATALOGS=
41596 QTCATALOGS=
41597 TCLCATALOGS=
41598 CSHARPCATALOGS=
41599 if test -n "$INST_LINGUAS"; then
41600 for lang in $INST_LINGUAS; do
41601 CATALOGS="$CATALOGS $lang.gmo"
41602 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
41603 QTCATALOGS="$QTCATALOGS $lang.qm"
41604 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
41605 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
41606 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
41607 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
41608 done
41611 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
41612 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
41613 # Add dependencies that cannot be formulated as a simple suffix rule.
41614 for lang in $ALL_LINGUAS; do
41615 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
41616 cat >> "$ac_file.tmp" <<EOF
41617 $frobbedlang.msg: $lang.po
41618 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
41619 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
41621 done
41623 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
41624 # Add dependencies that cannot be formulated as a simple suffix rule.
41625 for lang in $ALL_LINGUAS; do
41626 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
41627 cat >> "$ac_file.tmp" <<EOF
41628 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
41629 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
41630 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
41632 done
41634 if test -n "$POMAKEFILEDEPS"; then
41635 cat >> "$ac_file.tmp" <<EOF
41636 Makefile: $POMAKEFILEDEPS
41639 mv "$ac_file.tmp" "$ac_file"
41641 esac
41642 done
41643 _ACEOF
41644 cat >>$CONFIG_STATUS <<\_ACEOF
41647 # CONFIG_HEADER section.
41650 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41651 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41653 # ac_d sets the value in "#define NAME VALUE" lines.
41654 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41655 ac_dB='[ ].*$,\1#\2'
41656 ac_dC=' '
41657 ac_dD=',;t'
41658 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41659 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41660 ac_uB='$,\1#\2define\3'
41661 ac_uC=' '
41662 ac_uD=',;t'
41664 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41666 case $ac_file in
41667 - | *:- | *:-:* ) # input from stdin
41668 cat >$tmp/stdin
41669 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41671 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41672 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41673 * ) ac_file_in=$ac_file.in ;;
41674 esac
41676 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41677 echo "$as_me: creating $ac_file" >&6;}
41679 # First look for the input files in the build tree, otherwise in the
41680 # src tree.
41681 ac_file_inputs=`IFS=:
41682 for f in $ac_file_in; do
41683 case $f in
41684 -) echo $tmp/stdin ;;
41685 [\\/$]*)
41686 # Absolute (can't be DOS-style, as IFS=:)
41687 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41688 echo "$as_me: error: cannot find input file: $f" >&2;}
41689 { (exit 1); exit 1; }; }
41690 # Do quote $f, to prevent DOS paths from being IFS'd.
41691 echo "$f";;
41692 *) # Relative
41693 if test -f "$f"; then
41694 # Build tree
41695 echo "$f"
41696 elif test -f "$srcdir/$f"; then
41697 # Source tree
41698 echo "$srcdir/$f"
41699 else
41700 # /dev/null tree
41701 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41702 echo "$as_me: error: cannot find input file: $f" >&2;}
41703 { (exit 1); exit 1; }; }
41704 fi;;
41705 esac
41706 done` || { (exit 1); exit 1; }
41707 # Remove the trailing spaces.
41708 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41710 _ACEOF
41712 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41713 # `conftest.undefs', that substitutes the proper values into
41714 # config.h.in to produce config.h. The first handles `#define'
41715 # templates, and the second `#undef' templates.
41716 # And first: Protect against being on the right side of a sed subst in
41717 # config.status. Protect against being in an unquoted here document
41718 # in config.status.
41719 rm -f conftest.defines conftest.undefs
41720 # Using a here document instead of a string reduces the quoting nightmare.
41721 # Putting comments in sed scripts is not portable.
41723 # `end' is used to avoid that the second main sed command (meant for
41724 # 0-ary CPP macros) applies to n-ary macro definitions.
41725 # See the Autoconf documentation for `clear'.
41726 cat >confdef2sed.sed <<\_ACEOF
41727 s/[\\&,]/\\&/g
41728 s,[\\$`],\\&,g
41729 t clear
41730 : clear
41731 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41732 t end
41733 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41734 : end
41735 _ACEOF
41736 # If some macros were called several times there might be several times
41737 # the same #defines, which is useless. Nevertheless, we may not want to
41738 # sort them, since we want the *last* AC-DEFINE to be honored.
41739 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41740 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41741 rm -f confdef2sed.sed
41743 # This sed command replaces #undef with comments. This is necessary, for
41744 # example, in the case of _POSIX_SOURCE, which is predefined and required
41745 # on some systems where configure will not decide to define it.
41746 cat >>conftest.undefs <<\_ACEOF
41747 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41748 _ACEOF
41750 # Break up conftest.defines because some shells have a limit on the size
41751 # of here documents, and old seds have small limits too (100 cmds).
41752 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41753 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41754 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41755 echo ' :' >>$CONFIG_STATUS
41756 rm -f conftest.tail
41757 while grep . conftest.defines >/dev/null
41759 # Write a limited-size here document to $tmp/defines.sed.
41760 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41761 # Speed up: don't consider the non `#define' lines.
41762 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41763 # Work around the forget-to-reset-the-flag bug.
41764 echo 't clr' >>$CONFIG_STATUS
41765 echo ': clr' >>$CONFIG_STATUS
41766 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41767 echo 'CEOF
41768 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41769 rm -f $tmp/in
41770 mv $tmp/out $tmp/in
41771 ' >>$CONFIG_STATUS
41772 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41773 rm -f conftest.defines
41774 mv conftest.tail conftest.defines
41775 done
41776 rm -f conftest.defines
41777 echo ' fi # grep' >>$CONFIG_STATUS
41778 echo >>$CONFIG_STATUS
41780 # Break up conftest.undefs because some shells have a limit on the size
41781 # of here documents, and old seds have small limits too (100 cmds).
41782 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41783 rm -f conftest.tail
41784 while grep . conftest.undefs >/dev/null
41786 # Write a limited-size here document to $tmp/undefs.sed.
41787 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41788 # Speed up: don't consider the non `#undef'
41789 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41790 # Work around the forget-to-reset-the-flag bug.
41791 echo 't clr' >>$CONFIG_STATUS
41792 echo ': clr' >>$CONFIG_STATUS
41793 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41794 echo 'CEOF
41795 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41796 rm -f $tmp/in
41797 mv $tmp/out $tmp/in
41798 ' >>$CONFIG_STATUS
41799 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41800 rm -f conftest.undefs
41801 mv conftest.tail conftest.undefs
41802 done
41803 rm -f conftest.undefs
41805 cat >>$CONFIG_STATUS <<\_ACEOF
41806 # Let's still pretend it is `configure' which instantiates (i.e., don't
41807 # use $as_me), people would be surprised to read:
41808 # /* config.h. Generated by config.status. */
41809 if test x"$ac_file" = x-; then
41810 echo "/* Generated by configure. */" >$tmp/config.h
41811 else
41812 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41814 cat $tmp/in >>$tmp/config.h
41815 rm -f $tmp/in
41816 if test x"$ac_file" != x-; then
41817 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41818 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41819 echo "$as_me: $ac_file is unchanged" >&6;}
41820 else
41821 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41823 X"$ac_file" : 'X\(//\)[^/]' \| \
41824 X"$ac_file" : 'X\(//\)$' \| \
41825 X"$ac_file" : 'X\(/\)' \| \
41826 . : '\(.\)' 2>/dev/null ||
41827 echo X"$ac_file" |
41828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41830 /^X\(\/\/\)$/{ s//\1/; q; }
41831 /^X\(\/\).*/{ s//\1/; q; }
41832 s/.*/./; q'`
41833 { if $as_mkdir_p; then
41834 mkdir -p "$ac_dir"
41835 else
41836 as_dir="$ac_dir"
41837 as_dirs=
41838 while test ! -d "$as_dir"; do
41839 as_dirs="$as_dir $as_dirs"
41840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41842 X"$as_dir" : 'X\(//\)[^/]' \| \
41843 X"$as_dir" : 'X\(//\)$' \| \
41844 X"$as_dir" : 'X\(/\)' \| \
41845 . : '\(.\)' 2>/dev/null ||
41846 echo X"$as_dir" |
41847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41849 /^X\(\/\/\)$/{ s//\1/; q; }
41850 /^X\(\/\).*/{ s//\1/; q; }
41851 s/.*/./; q'`
41852 done
41853 test ! -n "$as_dirs" || mkdir $as_dirs
41854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41855 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41856 { (exit 1); exit 1; }; }; }
41858 rm -f $ac_file
41859 mv $tmp/config.h $ac_file
41861 else
41862 cat $tmp/config.h
41863 rm -f $tmp/config.h
41865 # Compute $ac_file's index in $config_headers.
41866 _am_stamp_count=1
41867 for _am_header in $config_headers :; do
41868 case $_am_header in
41869 $ac_file | $ac_file:* )
41870 break ;;
41872 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41873 esac
41874 done
41875 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41876 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41877 X$ac_file : 'X\(//\)[^/]' \| \
41878 X$ac_file : 'X\(//\)$' \| \
41879 X$ac_file : 'X\(/\)' \| \
41880 . : '\(.\)' 2>/dev/null ||
41881 echo X$ac_file |
41882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41884 /^X\(\/\/\)$/{ s//\1/; q; }
41885 /^X\(\/\).*/{ s//\1/; q; }
41886 s/.*/./; q'`/stamp-h$_am_stamp_count
41887 done
41888 _ACEOF
41889 cat >>$CONFIG_STATUS <<\_ACEOF
41892 # CONFIG_COMMANDS section.
41894 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41895 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41896 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41897 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41898 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41899 X"$ac_dest" : 'X\(//\)[^/]' \| \
41900 X"$ac_dest" : 'X\(//\)$' \| \
41901 X"$ac_dest" : 'X\(/\)' \| \
41902 . : '\(.\)' 2>/dev/null ||
41903 echo X"$ac_dest" |
41904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41906 /^X\(\/\/\)$/{ s//\1/; q; }
41907 /^X\(\/\).*/{ s//\1/; q; }
41908 s/.*/./; q'`
41909 { if $as_mkdir_p; then
41910 mkdir -p "$ac_dir"
41911 else
41912 as_dir="$ac_dir"
41913 as_dirs=
41914 while test ! -d "$as_dir"; do
41915 as_dirs="$as_dir $as_dirs"
41916 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41918 X"$as_dir" : 'X\(//\)[^/]' \| \
41919 X"$as_dir" : 'X\(//\)$' \| \
41920 X"$as_dir" : 'X\(/\)' \| \
41921 . : '\(.\)' 2>/dev/null ||
41922 echo X"$as_dir" |
41923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41925 /^X\(\/\/\)$/{ s//\1/; q; }
41926 /^X\(\/\).*/{ s//\1/; q; }
41927 s/.*/./; q'`
41928 done
41929 test ! -n "$as_dirs" || mkdir $as_dirs
41930 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41931 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41932 { (exit 1); exit 1; }; }; }
41934 ac_builddir=.
41936 if test "$ac_dir" != .; then
41937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41938 # A "../" for each directory in $ac_dir_suffix.
41939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41940 else
41941 ac_dir_suffix= ac_top_builddir=
41944 case $srcdir in
41945 .) # No --srcdir option. We are building in place.
41946 ac_srcdir=.
41947 if test -z "$ac_top_builddir"; then
41948 ac_top_srcdir=.
41949 else
41950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41951 fi ;;
41952 [\\/]* | ?:[\\/]* ) # Absolute path.
41953 ac_srcdir=$srcdir$ac_dir_suffix;
41954 ac_top_srcdir=$srcdir ;;
41955 *) # Relative path.
41956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41958 esac
41960 # Do not use `cd foo && pwd` to compute absolute paths, because
41961 # the directories may not exist.
41962 case `pwd` in
41963 .) ac_abs_builddir="$ac_dir";;
41965 case "$ac_dir" in
41966 .) ac_abs_builddir=`pwd`;;
41967 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41968 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41969 esac;;
41970 esac
41971 case $ac_abs_builddir in
41972 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41974 case ${ac_top_builddir}. in
41975 .) ac_abs_top_builddir=$ac_abs_builddir;;
41976 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41977 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41978 esac;;
41979 esac
41980 case $ac_abs_builddir in
41981 .) ac_abs_srcdir=$ac_srcdir;;
41983 case $ac_srcdir in
41984 .) ac_abs_srcdir=$ac_abs_builddir;;
41985 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41986 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41987 esac;;
41988 esac
41989 case $ac_abs_builddir in
41990 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41992 case $ac_top_srcdir in
41993 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41994 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41995 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41996 esac;;
41997 esac
42000 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42001 echo "$as_me: executing $ac_dest commands" >&6;}
42002 case $ac_dest in
42003 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42004 # Strip MF so we end up with the name of the file.
42005 mf=`echo "$mf" | sed -e 's/:.*$//'`
42006 # Check whether this is an Automake generated Makefile or not.
42007 # We used to match only the files named `Makefile.in', but
42008 # some people rename them; so instead we look at the file content.
42009 # Grep'ing the first line is not enough: some people post-process
42010 # each Makefile.in and add a new line on top of each file to say so.
42011 # So let's grep whole file.
42012 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42013 dirpart=`(dirname "$mf") 2>/dev/null ||
42014 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42015 X"$mf" : 'X\(//\)[^/]' \| \
42016 X"$mf" : 'X\(//\)$' \| \
42017 X"$mf" : 'X\(/\)' \| \
42018 . : '\(.\)' 2>/dev/null ||
42019 echo X"$mf" |
42020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42022 /^X\(\/\/\)$/{ s//\1/; q; }
42023 /^X\(\/\).*/{ s//\1/; q; }
42024 s/.*/./; q'`
42025 else
42026 continue
42028 # Extract the definition of DEPDIR, am__include, and am__quote
42029 # from the Makefile without running `make'.
42030 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42031 test -z "$DEPDIR" && continue
42032 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42033 test -z "am__include" && continue
42034 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42035 # When using ansi2knr, U may be empty or an underscore; expand it
42036 U=`sed -n 's/^U = //p' < "$mf"`
42037 # Find all dependency output files, they are included files with
42038 # $(DEPDIR) in their names. We invoke sed twice because it is the
42039 # simplest approach to changing $(DEPDIR) to its actual value in the
42040 # expansion.
42041 for file in `sed -n "
42042 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42043 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42044 # Make sure the directory exists.
42045 test -f "$dirpart/$file" && continue
42046 fdir=`(dirname "$file") 2>/dev/null ||
42047 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42048 X"$file" : 'X\(//\)[^/]' \| \
42049 X"$file" : 'X\(//\)$' \| \
42050 X"$file" : 'X\(/\)' \| \
42051 . : '\(.\)' 2>/dev/null ||
42052 echo X"$file" |
42053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42055 /^X\(\/\/\)$/{ s//\1/; q; }
42056 /^X\(\/\).*/{ s//\1/; q; }
42057 s/.*/./; q'`
42058 { if $as_mkdir_p; then
42059 mkdir -p $dirpart/$fdir
42060 else
42061 as_dir=$dirpart/$fdir
42062 as_dirs=
42063 while test ! -d "$as_dir"; do
42064 as_dirs="$as_dir $as_dirs"
42065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42067 X"$as_dir" : 'X\(//\)[^/]' \| \
42068 X"$as_dir" : 'X\(//\)$' \| \
42069 X"$as_dir" : 'X\(/\)' \| \
42070 . : '\(.\)' 2>/dev/null ||
42071 echo X"$as_dir" |
42072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42074 /^X\(\/\/\)$/{ s//\1/; q; }
42075 /^X\(\/\).*/{ s//\1/; q; }
42076 s/.*/./; q'`
42077 done
42078 test ! -n "$as_dirs" || mkdir $as_dirs
42079 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42080 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42081 { (exit 1); exit 1; }; }; }
42083 # echo "creating $dirpart/$file"
42084 echo '# dummy' > "$dirpart/$file"
42085 done
42086 done
42088 default-1 )
42089 for ac_file in $CONFIG_FILES; do
42090 # Support "outfile[:infile[:infile...]]"
42091 case "$ac_file" in
42092 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42093 esac
42094 # PO directories have a Makefile.in generated from Makefile.in.in.
42095 case "$ac_file" in */Makefile.in)
42096 # Adjust a relative srcdir.
42097 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42098 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42099 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42100 # In autoconf-2.13 it is called $ac_given_srcdir.
42101 # In autoconf-2.50 it is called $srcdir.
42102 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42103 case "$ac_given_srcdir" in
42104 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42105 /*) top_srcdir="$ac_given_srcdir" ;;
42106 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
42107 esac
42108 # Treat a directory as a PO directory if and only if it has a
42109 # POTFILES.in file. This allows packages to have multiple PO
42110 # directories under different names or in different locations.
42111 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42112 rm -f "$ac_dir/POTFILES"
42113 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42114 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42115 POMAKEFILEDEPS="POTFILES.in"
42116 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
42117 # on $ac_dir but don't depend on user-specified configuration
42118 # parameters.
42119 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42120 # The LINGUAS file contains the set of available languages.
42121 if test -n "$OBSOLETE_ALL_LINGUAS"; then
42122 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42124 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42125 # Hide the ALL_LINGUAS assigment from automake.
42126 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42127 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
42128 else
42129 # The set of available languages was given in configure.in.
42130 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
42132 # Compute POFILES
42133 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
42134 # Compute UPDATEPOFILES
42135 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
42136 # Compute DUMMYPOFILES
42137 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
42138 # Compute GMOFILES
42139 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
42140 case "$ac_given_srcdir" in
42141 .) srcdirpre= ;;
42142 *) srcdirpre='$(srcdir)/' ;;
42143 esac
42144 POFILES=
42145 UPDATEPOFILES=
42146 DUMMYPOFILES=
42147 GMOFILES=
42148 for lang in $ALL_LINGUAS; do
42149 POFILES="$POFILES $srcdirpre$lang.po"
42150 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42151 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42152 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42153 done
42154 # CATALOGS depends on both $ac_dir and the user's LINGUAS
42155 # environment variable.
42156 INST_LINGUAS=
42157 if test -n "$ALL_LINGUAS"; then
42158 for presentlang in $ALL_LINGUAS; do
42159 useit=no
42160 if test "%UNSET%" != "$LINGUAS"; then
42161 desiredlanguages="$LINGUAS"
42162 else
42163 desiredlanguages="$ALL_LINGUAS"
42165 for desiredlang in $desiredlanguages; do
42166 # Use the presentlang catalog if desiredlang is
42167 # a. equal to presentlang, or
42168 # b. a variant of presentlang (because in this case,
42169 # presentlang can be used as a fallback for messages
42170 # which are not translated in the desiredlang catalog).
42171 case "$desiredlang" in
42172 "$presentlang"*) useit=yes;;
42173 esac
42174 done
42175 if test $useit = yes; then
42176 INST_LINGUAS="$INST_LINGUAS $presentlang"
42178 done
42180 CATALOGS=
42181 if test -n "$INST_LINGUAS"; then
42182 for lang in $INST_LINGUAS; do
42183 CATALOGS="$CATALOGS $lang.gmo"
42184 done
42186 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42187 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
42188 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42189 if test -f "$f"; then
42190 case "$f" in
42191 *.orig | *.bak | *~) ;;
42192 *) cat "$f" >> "$ac_dir/Makefile" ;;
42193 esac
42195 done
42198 esac
42199 done ;;
42200 esac
42201 done
42202 _ACEOF
42204 cat >>$CONFIG_STATUS <<\_ACEOF
42206 { (exit 0); exit 0; }
42207 _ACEOF
42208 chmod +x $CONFIG_STATUS
42209 ac_clean_files=$ac_clean_files_save
42212 # configure is writing to config.log, and then calls config.status.
42213 # config.status does its own redirection, appending to config.log.
42214 # Unfortunately, on DOS this fails, as config.log is still kept open
42215 # by configure, so config.status won't be able to write to it; its
42216 # output is simply discarded. So we exec the FD to /dev/null,
42217 # effectively closing config.log, so it can be properly (re)opened and
42218 # appended to by config.status. When coming back to configure, we
42219 # need to make the FD available again.
42220 if test "$no_create" != yes; then
42221 ac_cs_success=:
42222 ac_config_status_args=
42223 test "$silent" = yes &&
42224 ac_config_status_args="$ac_config_status_args --quiet"
42225 exec 5>/dev/null
42226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42227 exec 5>>config.log
42228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42229 # would make configure fail if this is the last instruction.
42230 $ac_cs_success || { (exit 1); exit 1; }