2008-06-04 Xinliang David Li <davidxl@google.com>
[official-gcc.git] / libmudflap / configure
blobd45db82bcfeb8d609d19162e273abdf9086659f9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 1.0.
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$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_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 <<_LT_EOF
275 _LT_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='libmudflap'
418 PACKAGE_TARNAME='libmudflap'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libmudflap 1.0'
421 PACKAGE_BUGREPORT=''
423 ac_unique_file="mf-runtime.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 # Report the --help message.
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
920 Usage: $0 [OPTION]... [VAR=VALUE]...
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
925 Defaults for the options are specified in brackets.
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938 _ACEOF
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
952 For better control, use the options below.
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
969 cat <<\_ACEOF
971 Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libmudflap 1.0:";;
986 esac
987 cat <<\_ACEOF
989 Optional Features:
990 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
991 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
992 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-multilib build many library versions (default)
996 --disable-dependency-tracking speeds up one-time build
997 --enable-dependency-tracking do not reject slow dependency extractors
998 --enable-shared[=PKGS]
999 build shared libraries [default=yes]
1000 --enable-static[=PKGS]
1001 build static libraries [default=yes]
1002 --enable-fast-install[=PKGS]
1003 optimize for fast installation [default=yes]
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1005 --enable-tls Use thread-local storage [default=yes]
1007 Optional Packages:
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1026 _ACEOF
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097 esac
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 cd $ac_popdir
1115 done
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120 cat <<\_ACEOF
1121 libmudflap configure 1.0
1122 generated by GNU Autoconf 2.59
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128 exit 0
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1135 It was created by libmudflap $as_me 1.0, which was
1136 generated by GNU Autoconf 2.59. Invocation command line was
1138 $ $0 $@
1140 _ACEOF
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164 _ASUNAME
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172 done
1174 } >&5
1176 cat >&5 <<_ACEOF
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1183 _ACEOF
1186 # Keep a trace of the command line.
1187 # Strip out --no-create and --no-recursion so they do not pile up.
1188 # Strip out --silent because we don't want to record it for future runs.
1189 # Also quote any args containing shell meta-characters.
1190 # Make two passes to allow for proper duplicate-argument suppression.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1198 for ac_arg
1200 case $ac_arg in
1201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 continue ;;
1205 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 esac
1208 case $ac_pass in
1209 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212 if test $ac_must_keep_next = true; then
1213 ac_must_keep_next=false # Got value, back to normal.
1214 else
1215 case $ac_arg in
1216 *=* | --config-cache | -C | -disable-* | --disable-* \
1217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219 | -with-* | --with-* | -without-* | --without-* | --x)
1220 case "$ac_configure_args0 " in
1221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 esac
1224 -* ) ac_must_keep_next=true ;;
1225 esac
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
1231 esac
1232 done
1233 done
1234 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237 # When interrupted or exit'd, cleanup temporary files, and complete
1238 # config.log. We remove comments because anyway the quotes in there
1239 # would cause problems or look ugly.
1240 # WARNING: Be sure not to use single quotes in there, as some shells,
1241 # such as our DU 5.0 friend, will then `close' the trap.
1242 trap 'exit_status=$?
1243 # Save into config.log some information that might help in debugging.
1245 echo
1247 cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
1255 (set) 2>&1 |
1256 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 *ac_space=\ *)
1258 sed -n \
1259 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1263 sed -n \
1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266 esac;
1268 echo
1270 cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
1283 if test -n "$ac_subst_files"; then
1284 cat <<\_ASBOX
1285 ## ------------- ##
1286 ## Output files. ##
1287 ## ------------- ##
1288 _ASBOX
1289 echo
1290 for ac_var in $ac_subst_files
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1298 if test -s confdefs.h; then
1299 cat <<\_ASBOX
1300 ## ----------- ##
1301 ## confdefs.h. ##
1302 ## ----------- ##
1303 _ASBOX
1304 echo
1305 sed "/^$/d" confdefs.h | sort
1306 echo
1308 test "$ac_signal" != 0 &&
1309 echo "$as_me: caught signal $ac_signal"
1310 echo "$as_me: exit $exit_status"
1311 } >&5
1312 rm -f core *.core &&
1313 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 exit $exit_status
1316 for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1326 # Predefined preprocessor variables.
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
1353 # Let the site file select an alternate cache file if it wants to.
1354 # Prefer explicitly selected file to automatically selected ones.
1355 if test -z "$CONFIG_SITE"; then
1356 if test "x$prefix" != xNONE; then
1357 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358 else
1359 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1362 for ac_site_file in $CONFIG_SITE; do
1363 if test -r "$ac_site_file"; then
1364 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
1367 . "$ac_site_file"
1369 done
1371 if test -r "$cache_file"; then
1372 # Some versions of bash will fail to source /dev/null (special
1373 # files actually), so we avoid doing that.
1374 if test -f "$cache_file"; then
1375 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1382 else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for ac_var in `(set) 2>&1 |
1392 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394 eval ac_new_set=\$ac_env_${ac_var}_set
1395 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396 eval ac_new_val="\$ac_env_${ac_var}_value"
1397 case $ac_old_set,$ac_new_set in
1398 set,)
1399 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401 ac_cache_corrupted=: ;;
1402 ,set)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,);;
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
1409 # differences in whitespace do not lead to failure.
1410 ac_old_val_w=`echo x $ac_old_val`
1411 ac_new_val_w=`echo x $ac_new_val`
1412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 ac_cache_corrupted=:
1416 else
1417 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1418 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1419 eval $ac_var=\$ac_old_val
1421 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1422 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1423 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1424 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1425 fi;;
1426 esac
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1429 case $ac_new_val in
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1433 esac
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 esac
1439 done
1440 if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1442 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1443 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1444 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1445 { (exit 1); exit 1; }; }
1448 ac_ext=c
1449 ac_cpp='$CPP $CPPFLAGS'
1450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481 ac_aux_dir=
1482 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1483 if test -f $ac_dir/install-sh; then
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/install-sh -c"
1486 break
1487 elif test -f $ac_dir/install.sh; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/install.sh -c"
1490 break
1491 elif test -f $ac_dir/shtool; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/shtool install -c"
1494 break
1496 done
1497 if test -z "$ac_aux_dir"; then
1498 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1499 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1500 { (exit 1); exit 1; }; }
1502 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1503 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1504 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1506 # Make sure we can run config.sub.
1507 $ac_config_sub sun4 >/dev/null 2>&1 ||
1508 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1509 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1510 { (exit 1); exit 1; }; }
1512 echo "$as_me:$LINENO: checking build system type" >&5
1513 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1514 if test "${ac_cv_build+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517 ac_cv_build_alias=$build_alias
1518 test -z "$ac_cv_build_alias" &&
1519 ac_cv_build_alias=`$ac_config_guess`
1520 test -z "$ac_cv_build_alias" &&
1521 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1522 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1523 { (exit 1); exit 1; }; }
1524 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1525 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1527 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1531 echo "${ECHO_T}$ac_cv_build" >&6
1532 build=$ac_cv_build
1533 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538 echo "$as_me:$LINENO: checking host system type" >&5
1539 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1540 if test "${ac_cv_host+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 ac_cv_host_alias=$host_alias
1544 test -z "$ac_cv_host_alias" &&
1545 ac_cv_host_alias=$ac_cv_build_alias
1546 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1548 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1549 { (exit 1); exit 1; }; }
1552 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1553 echo "${ECHO_T}$ac_cv_host" >&6
1554 host=$ac_cv_host
1555 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560 echo "$as_me:$LINENO: checking target system type" >&5
1561 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1562 if test "${ac_cv_target+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 ac_cv_target_alias=$target_alias
1566 test "x$ac_cv_target_alias" = "x" &&
1567 ac_cv_target_alias=$ac_cv_host_alias
1568 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1570 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1571 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1575 echo "${ECHO_T}$ac_cv_target" >&6
1576 target=$ac_cv_target
1577 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582 # The aliases save the names the user supplied, while $host etc.
1583 # will get canonicalized.
1584 test -n "$target_alias" &&
1585 test "$program_prefix$program_suffix$program_transform_name" = \
1586 NONENONEs,x,x, &&
1587 program_prefix=${target_alias}-
1588 case ${build_alias} in
1589 "") build_noncanonical=${build} ;;
1590 *) build_noncanonical=${build_alias} ;;
1591 esac
1593 case ${host_alias} in
1594 "") host_noncanonical=${build_noncanonical} ;;
1595 *) host_noncanonical=${host_alias} ;;
1596 esac
1598 case ${target_alias} in
1599 "") target_noncanonical=${host_noncanonical} ;;
1600 *) target_noncanonical=${target_alias} ;;
1601 esac
1606 am__api_version="1.9"
1607 # Find a good install program. We prefer a C program (faster),
1608 # so one script is as good as another. But avoid the broken or
1609 # incompatible versions:
1610 # SysV /etc/install, /usr/sbin/install
1611 # SunOS /usr/etc/install
1612 # IRIX /sbin/install
1613 # AIX /bin/install
1614 # AmigaOS /C/install, which installs bootblocks on floppy discs
1615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1618 # OS/2's system install, which has a completely different semantic
1619 # ./install, which can be erroneously created by make from ./install.sh.
1620 # Reject install programs that cannot install multiple files.
1621 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1622 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1623 if test -z "$INSTALL"; then
1624 if test "${ac_cv_path_install+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 # Account for people who put trailing slashes in PATH elements.
1633 case $as_dir/ in
1634 ./ | .// | /cC/* | \
1635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1636 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1637 /usr/ucb/* ) ;;
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 # Don't use installbsd from OSF since it installs stuff as root
1641 # by default.
1642 for ac_prog in ginstall scoinst install; do
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1645 if test $ac_prog = install &&
1646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647 # AIX install. It has an incompatible calling convention.
1649 elif test $ac_prog = install &&
1650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # program-specific install script used by HP pwplus--don't use.
1653 else
1654 rm -rf conftest.one conftest.two conftest.dir
1655 echo one > conftest.one
1656 echo two > conftest.two
1657 mkdir conftest.dir
1658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1659 test -s conftest.one && test -s conftest.two &&
1660 test -s conftest.dir/conftest.one &&
1661 test -s conftest.dir/conftest.two
1662 then
1663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1664 break 3
1668 done
1669 done
1671 esac
1672 done
1674 rm -rf conftest.one conftest.two conftest.dir
1677 if test "${ac_cv_path_install+set}" = set; then
1678 INSTALL=$ac_cv_path_install
1679 else
1680 # As a last resort, use the slow shell script. Don't cache a
1681 # value for INSTALL within a source directory, because that will
1682 # break other packages using the cache if that directory is
1683 # removed, or if the value is a relative name.
1684 INSTALL=$ac_install_sh
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1700 # Just in case
1701 sleep 1
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments. Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1707 # directory).
1708 if (
1709 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710 if test "$*" = "X"; then
1711 # -L didn't work.
1712 set X `ls -t $srcdir/configure conftest.file`
1714 rm -f conftest.file
1715 if test "$*" != "X $srcdir/configure conftest.file" \
1716 && test "$*" != "X conftest.file $srcdir/configure"; then
1718 # If neither matched, then we have a broken ls. This can happen
1719 # if, for instance, CONFIG_SHELL is bash and it inherits a
1720 # broken ls alias from the environment. This has actually
1721 # happened. Such a system could not be considered "sane".
1722 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1725 alias in your environment" >&2;}
1726 { (exit 1); exit 1; }; }
1729 test "$2" = conftest.file
1731 then
1732 # Ok.
1734 else
1735 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $. echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1752 _ACEOF
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 rm conftest.sed
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762 am_missing_run="$MISSING --run "
1763 else
1764 am_missing_run=
1765 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770 # We used to keeping the `.' as first argument, in order to
1771 # allow $(mkdir_p) to be used without argument. As in
1772 # $(mkdir_p) $(somedir)
1773 # where $(somedir) is conditionally defined. However this is wrong
1774 # for two reasons:
1775 # 1. if the package is installed by a user who cannot write `.'
1776 # make install will fail,
1777 # 2. the above comment should most certainly read
1778 # $(mkdir_p) $(DESTDIR)$(somedir)
1779 # so it does not work when $(somedir) is undefined and
1780 # $(DESTDIR) is not.
1781 # To support the latter case, we have to write
1782 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783 # so the `.' trick is pointless.
1784 mkdir_p='mkdir -p --'
1785 else
1786 # On NextStep and OpenStep, the `mkdir' command does not
1787 # recognize any option. It will interpret all options as
1788 # directories to create, and then abort because `.' already
1789 # exists.
1790 for d in ./-p ./--version;
1792 test -d $d && rmdir $d
1793 done
1794 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795 if test -f "$ac_aux_dir/mkinstalldirs"; then
1796 mkdir_p='$(mkinstalldirs)'
1797 else
1798 mkdir_p='$(install_sh) -d'
1802 for ac_prog in gawk mawk nawk awk
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$AWK"; then
1812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_AWK="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1825 done
1826 done
1830 AWK=$ac_cv_prog_AWK
1831 if test -n "$AWK"; then
1832 echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$AWK" && break
1840 done
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 cat >conftest.make <<\_ACEOF
1849 all:
1850 @echo 'ac_maketemp="$(MAKE)"'
1851 _ACEOF
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855 eval ac_cv_prog_make_${ac_make}_set=yes
1856 else
1857 eval ac_cv_prog_make_${ac_make}_set=no
1859 rm -f conftest.make
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864 SET_MAKE=
1865 else
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 SET_MAKE="MAKE=${MAKE-make}"
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1874 am__leading_dot=.
1875 else
1876 am__leading_dot=_
1878 rmdir .tst 2>/dev/null
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882 test -f $srcdir/config.status; then
1883 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885 { (exit 1); exit 1; }; }
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890 if (cygpath --version) >/dev/null 2>/dev/null; then
1891 CYGPATH_W='cygpath -w'
1892 else
1893 CYGPATH_W=echo
1898 # Define the identity of the package.
1899 PACKAGE='libmudflap'
1900 VERSION='1.0'
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1905 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1910 _ACEOF
1912 # Some tools Automake needs.
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'. However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 if test -n "$STRIP"; then
1944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1949 IFS=$as_save_IFS
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 break 2
1957 done
1958 done
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964 echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1966 else
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1972 if test -z "$ac_cv_prog_STRIP"; then
1973 ac_ct_STRIP=$STRIP
1974 # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 if test -n "$ac_ct_STRIP"; then
1982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_STRIP="strip"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1995 done
1996 done
1998 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2005 else
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 STRIP=$ac_ct_STRIP
2011 else
2012 STRIP="$ac_cv_prog_STRIP"
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2018 # We need awk for the "check" target. The system "awk" is bad on
2019 # some platforms.
2020 # Always define AMTAR for backward compatibility.
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2031 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2032 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2033 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2034 if test "${enable_version_specific_runtime_libs+set}" = set; then
2035 enableval="$enable_version_specific_runtime_libs"
2036 case "$enableval" in
2037 yes) version_specific_libs=yes ;;
2038 no) version_specific_libs=no ;;
2039 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2040 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2041 { (exit 1); exit 1; }; };;
2042 esac
2043 else
2044 version_specific_libs=no
2046 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2047 echo "${ECHO_T}$version_specific_libs" >&6
2049 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2050 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2051 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2052 if test "${enable_maintainer_mode+set}" = set; then
2053 enableval="$enable_maintainer_mode"
2054 USE_MAINTAINER_MODE=$enableval
2055 else
2056 USE_MAINTAINER_MODE=no
2058 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2059 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2062 if test $USE_MAINTAINER_MODE = yes; then
2063 MAINTAINER_MODE_TRUE=
2064 MAINTAINER_MODE_FALSE='#'
2065 else
2066 MAINTAINER_MODE_TRUE='#'
2067 MAINTAINER_MODE_FALSE=
2070 MAINT=$MAINTAINER_MODE_TRUE
2075 # Default to --enable-multilib
2076 # Check whether --enable-multilib or --disable-multilib was given.
2077 if test "${enable_multilib+set}" = set; then
2078 enableval="$enable_multilib"
2079 case "$enableval" in
2080 yes) multilib=yes ;;
2081 no) multilib=no ;;
2082 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2083 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2084 { (exit 1); exit 1; }; } ;;
2085 esac
2086 else
2087 multilib=yes
2090 # We may get other options which we leave undocumented:
2091 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2092 # See config-ml.in if you want the gory details.
2094 if test "$srcdir" = "."; then
2095 if test "$with_target_subdir" != "."; then
2096 multi_basedir="$srcdir/$with_multisrctop../.."
2097 else
2098 multi_basedir="$srcdir/$with_multisrctop.."
2100 else
2101 multi_basedir="$srcdir/.."
2105 # Even if the default multilib is not a cross compilation,
2106 # it may be that some of the other multilibs are.
2107 if test $cross_compiling = no && test $multilib = yes \
2108 && test "x${with_multisubdir}" != x ; then
2109 cross_compiling=maybe
2112 ac_config_commands="$ac_config_commands default-1"
2115 target_alias=${target_alias-$host_alias}
2118 ac_config_headers="$ac_config_headers config.h"
2121 ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2127 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2128 # We must force CC to /not/ be precious variables; otherwise
2129 # the wrong, non-multilib-adjusted value will be used in multilibs.
2130 # As a side effect, we have to subst CFLAGS ourselves.
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2161 done
2162 done
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168 echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2170 else
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$ac_cv_prog_CC"; then
2177 ac_ct_CC=$CC
2178 # Extract the first word of "gcc", so it can be a program name with args.
2179 set dummy gcc; ac_word=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195 ac_cv_prog_ac_ct_CC="gcc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2199 done
2200 done
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 echo "${ECHO_T}$ac_ct_CC" >&6
2208 else
2209 echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6
2213 CC=$ac_ct_CC
2214 else
2215 CC="$ac_cv_prog_CC"
2218 if test -z "$CC"; then
2219 if test -n "$ac_tool_prefix"; then
2220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2221 set dummy ${ac_tool_prefix}cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_CC="${ac_tool_prefix}cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2241 done
2242 done
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2256 if test -z "$ac_cv_prog_CC"; then
2257 ac_ct_CC=$CC
2258 # Extract the first word of "cc", so it can be a program name with args.
2259 set dummy cc; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_ac_ct_CC="cc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2279 done
2280 done
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6
2288 else
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2293 CC=$ac_ct_CC
2294 else
2295 CC="$ac_cv_prog_CC"
2299 if test -z "$CC"; then
2300 # Extract the first word of "cc", so it can be a program name with args.
2301 set dummy cc; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_CC+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2309 else
2310 ac_prog_rejected=no
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2319 ac_prog_rejected=yes
2320 continue
2322 ac_cv_prog_CC="cc"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2326 done
2327 done
2329 if test $ac_prog_rejected = yes; then
2330 # We found a bogon in the path, so make sure we never use it.
2331 set dummy $ac_cv_prog_CC
2332 shift
2333 if test $# != 0; then
2334 # We chose a different compiler from the bogus one.
2335 # However, it has the same basename, so the bogon will be chosen
2336 # first if we set CC to just the basename; use the full file name.
2337 shift
2338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6
2347 else
2348 echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2353 if test -z "$CC"; then
2354 if test -n "$ac_tool_prefix"; then
2355 for ac_prog in cl
2357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2378 done
2379 done
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385 echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6
2387 else
2388 echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2392 test -n "$CC" && break
2393 done
2395 if test -z "$CC"; then
2396 ac_ct_CC=$CC
2397 for ac_prog in cl
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_ac_ct_CC="$ac_prog"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2420 done
2421 done
2425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6
2429 else
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 test -n "$ac_ct_CC" && break
2435 done
2437 CC=$ac_ct_CC
2443 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO:" \
2451 "checking for C compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2454 (eval $ac_compiler --version </dev/null >&5) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2459 (eval $ac_compiler -v </dev/null >&5) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }
2463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2464 (eval $ac_compiler -V </dev/null >&5) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2477 main ()
2481 return 0;
2483 _ACEOF
2484 ac_clean_files_save=$ac_clean_files
2485 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2486 # Try to create an executable without -o first, disregard a.out.
2487 # It will help us diagnose broken compilers, and finding out an intuition
2488 # of exeext.
2489 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2490 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2491 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2492 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2493 (eval $ac_link_default) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; then
2497 # Find the output, starting from the most likely. This scheme is
2498 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2499 # resort.
2501 # Be careful to initialize this variable, since it used to be cached.
2502 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2503 ac_cv_exeext=
2504 # b.out is created by i960 compilers.
2505 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2507 test -f "$ac_file" || continue
2508 case $ac_file in
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511 conftest.$ac_ext )
2512 # This is the source file.
2514 [ab].out )
2515 # We found the default executable, but exeext='' is most
2516 # certainly right.
2517 break;;
2518 *.* )
2519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520 # FIXME: I believe we export ac_cv_exeext for Libtool,
2521 # but it would be cool to find out if it's true. Does anybody
2522 # maintain Libtool? --akim.
2523 export ac_cv_exeext
2524 break;;
2526 break;;
2527 esac
2528 done
2529 else
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2533 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: C compiler cannot create executables
2536 See \`config.log' for more details." >&2;}
2537 { (exit 77); exit 77; }; }
2540 ac_exeext=$ac_cv_exeext
2541 echo "$as_me:$LINENO: result: $ac_file" >&5
2542 echo "${ECHO_T}$ac_file" >&6
2544 # Check the compiler produces executables we can run. If not, either
2545 # the compiler is broken, or we cross compile.
2546 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2549 # If not cross compiling, check that we can run a simple program.
2550 if test "$cross_compiling" != yes; then
2551 if { ac_try='./$ac_file'
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); }; }; then
2557 cross_compiling=no
2558 else
2559 if test "$cross_compiling" = maybe; then
2560 cross_compiling=yes
2561 else
2562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }
2572 echo "$as_me:$LINENO: result: yes" >&5
2573 echo "${ECHO_T}yes" >&6
2575 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2576 ac_clean_files=$ac_clean_files_save
2577 # Check the compiler produces executables we can run. If not, either
2578 # the compiler is broken, or we cross compile.
2579 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2580 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2581 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2582 echo "${ECHO_T}$cross_compiling" >&6
2584 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2585 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2587 (eval $ac_link) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2592 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2593 # work properly (i.e., refer to `conftest.exe'), while it won't with
2594 # `rm'.
2595 for ac_file in conftest.exe conftest conftest.*; do
2596 test -f "$ac_file" || continue
2597 case $ac_file in
2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 export ac_cv_exeext
2601 break;;
2602 * ) break;;
2603 esac
2604 done
2605 else
2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2613 rm -f conftest$ac_cv_exeext
2614 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2615 echo "${ECHO_T}$ac_cv_exeext" >&6
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2619 ac_exeext=$EXEEXT
2620 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2621 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2622 if test "${ac_cv_objext+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h. */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2633 main ()
2637 return 0;
2639 _ACEOF
2640 rm -f conftest.o conftest.obj
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; then
2646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2647 case $ac_file in
2648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2650 break;;
2651 esac
2652 done
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2667 echo "${ECHO_T}$ac_cv_objext" >&6
2668 OBJEXT=$ac_cv_objext
2669 ac_objext=$OBJEXT
2670 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2671 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2672 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h. */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 main ()
2685 #ifndef __GNUC__
2686 choke me
2687 #endif
2690 return 0;
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag"
2703 || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 ac_compiler_gnu=yes
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 ac_compiler_gnu=no
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2726 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2727 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2728 GCC=`test $ac_compiler_gnu = yes && echo yes`
2729 ac_test_CFLAGS=${CFLAGS+set}
2730 ac_save_CFLAGS=$CFLAGS
2731 CFLAGS="-g"
2732 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2733 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2734 if test "${ac_cv_prog_cc_g+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2745 main ()
2749 return 0;
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
2761 { ac_try='test -z "$ac_c_werror_flag"
2762 || test ! -s conftest.err'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 (eval $ac_try) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2774 ac_cv_prog_cc_g=yes
2775 else
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2779 ac_cv_prog_cc_g=no
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2784 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2785 if test "$ac_test_CFLAGS" = set; then
2786 CFLAGS=$ac_save_CFLAGS
2787 elif test $ac_cv_prog_cc_g = yes; then
2788 if test "$GCC" = yes; then
2789 CFLAGS="-g -O2"
2790 else
2791 CFLAGS="-g"
2793 else
2794 if test "$GCC" = yes; then
2795 CFLAGS="-O2"
2796 else
2797 CFLAGS=
2800 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2801 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2802 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 ac_cv_prog_cc_stdc=no
2806 ac_save_CC=$CC
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 #include <stdarg.h>
2814 #include <stdio.h>
2815 #include <sys/types.h>
2816 #include <sys/stat.h>
2817 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2818 struct buf { int x; };
2819 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2820 static char *e (p, i)
2821 char **p;
2822 int i;
2824 return p[i];
2826 static char *f (char * (*g) (char **, int), char **p, ...)
2828 char *s;
2829 va_list v;
2830 va_start (v,p);
2831 s = g (p, va_arg (v,int));
2832 va_end (v);
2833 return s;
2836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2837 function prototypes and stuff, but not '\xHH' hex character constants.
2838 These don't provoke an error unfortunately, instead are silently treated
2839 as 'x'. The following induces an error, until -std1 is added to get
2840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2841 array size at least. It's necessary to write '\x00'==0 to get something
2842 that's true only with -std1. */
2843 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2845 int test (int i, double x);
2846 struct s1 {int (*f) (int a);};
2847 struct s2 {int (*f) (double a);};
2848 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2849 int argc;
2850 char **argv;
2852 main ()
2854 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2856 return 0;
2858 _ACEOF
2859 # Don't try gcc -ansi; that turns off useful extensions and
2860 # breaks some systems' header files.
2861 # AIX -qlanglvl=ansi
2862 # Ultrix and OSF/1 -std1
2863 # HP-UX 10.20 and later -Ae
2864 # HP-UX older versions -Aa -D_HPUX_SOURCE
2865 # SVR4 -Xc -D__EXTENSIONS__
2866 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2868 CC="$ac_save_CC $ac_arg"
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
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); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_prog_cc_stdc=$ac_arg
2892 break
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2898 rm -f conftest.err conftest.$ac_objext
2899 done
2900 rm -f conftest.$ac_ext conftest.$ac_objext
2901 CC=$ac_save_CC
2905 case "x$ac_cv_prog_cc_stdc" in
2906 x|xno)
2907 echo "$as_me:$LINENO: result: none needed" >&5
2908 echo "${ECHO_T}none needed" >&6 ;;
2910 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2911 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2912 CC="$CC $ac_cv_prog_cc_stdc" ;;
2913 esac
2915 # Some people use a C++ compiler to compile C. Since we use `exit',
2916 # in C++ we need to declare it. In case someone uses the same compiler
2917 # for both compiling C and C++ we need to have the C++ compiler decide
2918 # the declaration of exit, since it's the most demanding environment.
2919 cat >conftest.$ac_ext <<_ACEOF
2920 #ifndef __cplusplus
2921 choke me
2922 #endif
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 for ac_declaration in \
2947 '' \
2948 'extern "C" void std::exit (int) throw (); using std::exit;' \
2949 'extern "C" void std::exit (int); using std::exit;' \
2950 'extern "C" void exit (int) throw ();' \
2951 'extern "C" void exit (int);' \
2952 'void exit (int);'
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 $ac_declaration
2961 #include <stdlib.h>
2963 main ()
2965 exit (42);
2967 return 0;
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_c_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 continue
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 $ac_declaration
3008 main ()
3010 exit (42);
3012 return 0;
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_c_werror_flag"
3025 || test ! -s conftest.err'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; } &&
3031 { ac_try='test -s conftest.$ac_objext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 break
3038 else
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3044 done
3045 rm -f conftest*
3046 if test -n "$ac_declaration"; then
3047 echo '#ifdef __cplusplus' >>confdefs.h
3048 echo $ac_declaration >>confdefs.h
3049 echo '#endif' >>confdefs.h
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_ext=c
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 DEPDIR="${am__leading_dot}deps"
3065 ac_config_commands="$ac_config_commands depfiles"
3068 am_make=${MAKE-make}
3069 cat > confinc << 'END'
3070 am__doit:
3071 @echo done
3072 .PHONY: am__doit
3074 # If we don't find an include directive, just comment out the code.
3075 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3076 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3077 am__include="#"
3078 am__quote=
3079 _am_result=none
3080 # First try GNU make style include.
3081 echo "include confinc" > confmf
3082 # We grep out `Entering directory' and `Leaving directory'
3083 # messages which can occur if `w' ends up in MAKEFLAGS.
3084 # In particular we don't look at `^make:' because GNU make might
3085 # be invoked under some other name (usually "gmake"), in which
3086 # case it prints its new name instead of `make'.
3087 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3088 am__include=include
3089 am__quote=
3090 _am_result=GNU
3092 # Now try BSD make style include.
3093 if test "$am__include" = "#"; then
3094 echo '.include "confinc"' > confmf
3095 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3096 am__include=.include
3097 am__quote="\""
3098 _am_result=BSD
3103 echo "$as_me:$LINENO: result: $_am_result" >&5
3104 echo "${ECHO_T}$_am_result" >&6
3105 rm -f confinc confmf
3107 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3108 if test "${enable_dependency_tracking+set}" = set; then
3109 enableval="$enable_dependency_tracking"
3112 if test "x$enable_dependency_tracking" != xno; then
3113 am_depcomp="$ac_aux_dir/depcomp"
3114 AMDEPBACKSLASH='\'
3118 if test "x$enable_dependency_tracking" != xno; then
3119 AMDEP_TRUE=
3120 AMDEP_FALSE='#'
3121 else
3122 AMDEP_TRUE='#'
3123 AMDEP_FALSE=
3129 depcc="$CC" am_compiler_list=
3131 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3132 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3133 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3137 # We make a subdir and do the tests there. Otherwise we can end up
3138 # making bogus files that we don't know about and never remove. For
3139 # instance it was reported that on HP-UX the gcc test will end up
3140 # making a dummy file named `D' -- because `-MD' means `put the output
3141 # in D'.
3142 mkdir conftest.dir
3143 # Copy depcomp to subdir because otherwise we won't find it if we're
3144 # using a relative directory.
3145 cp "$am_depcomp" conftest.dir
3146 cd conftest.dir
3147 # We will build objects and dependencies in a subdirectory because
3148 # it helps to detect inapplicable dependency modes. For instance
3149 # both Tru64's cc and ICC support -MD to output dependencies as a
3150 # side effect of compilation, but ICC will put the dependencies in
3151 # the current directory while Tru64 will put them in the object
3152 # directory.
3153 mkdir sub
3155 am_cv_CC_dependencies_compiler_type=none
3156 if test "$am_compiler_list" = ""; then
3157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3159 for depmode in $am_compiler_list; do
3160 # Setup a source with many dependencies, because some compilers
3161 # like to wrap large dependency lists on column 80 (with \), and
3162 # we should not choose a depcomp mode which is confused by this.
3164 # We need to recreate these files for each test, as the compiler may
3165 # overwrite some of them when testing with obscure command lines.
3166 # This happens at least with the AIX C compiler.
3167 : > sub/conftest.c
3168 for i in 1 2 3 4 5 6; do
3169 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3171 # Solaris 8's {/usr,}/bin/sh.
3172 touch sub/conftst$i.h
3173 done
3174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3176 case $depmode in
3177 nosideeffect)
3178 # after this tag, mechanisms are not by side-effect, so they'll
3179 # only be used when explicitly requested
3180 if test "x$enable_dependency_tracking" = xyes; then
3181 continue
3182 else
3183 break
3186 none) break ;;
3187 esac
3188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3189 # mode. It turns out that the SunPro C++ compiler does not properly
3190 # handle `-M -o', and we need to detect this.
3191 if depmode=$depmode \
3192 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3194 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3195 >/dev/null 2>conftest.err &&
3196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3197 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3199 # icc doesn't choke on unknown options, it will just issue warnings
3200 # or remarks (even with -Werror). So we grep stderr for any message
3201 # that says an option was ignored or not supported.
3202 # When given -MP, icc 7.0 and 7.1 complain thusly:
3203 # icc: Command line warning: ignoring option '-M'; no argument required
3204 # The diagnosis changed in icc 8.0:
3205 # icc: Command line remark: option '-MP' not supported
3206 if (grep 'ignoring option' conftest.err ||
3207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3208 am_cv_CC_dependencies_compiler_type=$depmode
3209 break
3212 done
3214 cd ..
3215 rm -rf conftest.dir
3216 else
3217 am_cv_CC_dependencies_compiler_type=none
3221 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3222 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3223 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3228 test "x$enable_dependency_tracking" != xno \
3229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3230 am__fastdepCC_TRUE=
3231 am__fastdepCC_FALSE='#'
3232 else
3233 am__fastdepCC_TRUE='#'
3234 am__fastdepCC_FALSE=
3242 if test "x$GCC" != "xyes"; then
3243 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3244 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3245 { (exit 1); exit 1; }; }
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3254 # On Suns, sometimes $CPP names a directory.
3255 if test -n "$CPP" && test -d "$CPP"; then
3256 CPP=
3258 if test -z "$CPP"; then
3259 if test "${ac_cv_prog_CPP+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 # Double quotes because CPP needs to be expanded
3263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3265 ac_preproc_ok=false
3266 for ac_c_preproc_warn_flag in '' yes
3268 # Use a header file that comes with gcc, so configuring glibc
3269 # with a fresh cross-compiler works.
3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271 # <limits.h> exists even on freestanding compilers.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp. "Syntax error" is here to catch this case.
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #ifdef __STDC__
3281 # include <limits.h>
3282 #else
3283 # include <assert.h>
3284 #endif
3285 Syntax error
3286 _ACEOF
3287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298 else
3299 ac_cpp_err=
3301 else
3302 ac_cpp_err=yes
3304 if test -z "$ac_cpp_err"; then
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 # Broken: fails on valid input.
3311 continue
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether non-existent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3324 _ACEOF
3325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336 else
3337 ac_cpp_err=
3339 else
3340 ac_cpp_err=yes
3342 if test -z "$ac_cpp_err"; then
3343 # Broken: success on invalid input.
3344 continue
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Passes both tests.
3350 ac_preproc_ok=:
3351 break
3353 rm -f conftest.err conftest.$ac_ext
3355 done
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3359 break
3362 done
3363 ac_cv_prog_CPP=$CPP
3366 CPP=$ac_cv_prog_CPP
3367 else
3368 ac_cv_prog_CPP=$CPP
3370 echo "$as_me:$LINENO: result: $CPP" >&5
3371 echo "${ECHO_T}$CPP" >&6
3372 ac_preproc_ok=false
3373 for ac_c_preproc_warn_flag in '' yes
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
3377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 #ifdef __STDC__
3388 # include <limits.h>
3389 #else
3390 # include <assert.h>
3391 #endif
3392 Syntax error
3393 _ACEOF
3394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405 else
3406 ac_cpp_err=
3408 else
3409 ac_cpp_err=yes
3411 if test -z "$ac_cpp_err"; then
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Broken: fails on valid input.
3418 continue
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether non-existent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3446 else
3447 ac_cpp_err=yes
3449 if test -z "$ac_cpp_err"; then
3450 # Broken: success on invalid input.
3451 continue
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Passes both tests.
3457 ac_preproc_ok=:
3458 break
3460 rm -f conftest.err conftest.$ac_ext
3462 done
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3467 else
3468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3483 # symbol interposition. We disable shared libraries for these.
3484 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3485 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3494 #define _GNU_SOURCE
3495 #include <dlfcn.h>
3498 main ()
3500 void *foo = dlsym (RTLD_NEXT, "exit");
3502 return 0;
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 echo "$as_me:$LINENO: result: yes" >&5
3528 echo "${ECHO_T}yes" >&6
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3535 enable_shared=no
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3540 echo "$as_me:$LINENO: checking for egrep" >&5
3541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3542 if test "${ac_cv_prog_egrep+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3546 then ac_cv_prog_egrep='grep -E'
3547 else ac_cv_prog_egrep='egrep'
3550 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3551 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3552 EGREP=$ac_cv_prog_egrep
3555 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3556 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3557 if test "${ac_cv_header_stdc+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <stdlib.h>
3567 #include <stdarg.h>
3568 #include <string.h>
3569 #include <float.h>
3572 main ()
3576 return 0;
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try='test -z "$ac_c_werror_flag"
3589 || test ! -s conftest.err'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest.$ac_objext'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; }; then
3601 ac_cv_header_stdc=yes
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 ac_cv_header_stdc=no
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 if test $ac_cv_header_stdc = yes; then
3611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <string.h>
3620 _ACEOF
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 $EGREP "memchr" >/dev/null 2>&1; then
3624 else
3625 ac_cv_header_stdc=no
3627 rm -f conftest*
3631 if test $ac_cv_header_stdc = yes; then
3632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h. */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <stdlib.h>
3641 _ACEOF
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 $EGREP "free" >/dev/null 2>&1; then
3645 else
3646 ac_cv_header_stdc=no
3648 rm -f conftest*
3652 if test $ac_cv_header_stdc = yes; then
3653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3654 if test "$cross_compiling" = yes; then
3656 else
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <ctype.h>
3664 #if ((' ' & 0x0FF) == 0x020)
3665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3667 #else
3668 # define ISLOWER(c) \
3669 (('a' <= (c) && (c) <= 'i') \
3670 || ('j' <= (c) && (c) <= 'r') \
3671 || ('s' <= (c) && (c) <= 'z'))
3672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3673 #endif
3675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3677 main ()
3679 int i;
3680 for (i = 0; i < 256; i++)
3681 if (XOR (islower (i), ISLOWER (i))
3682 || toupper (i) != TOUPPER (i))
3683 exit(2);
3684 exit (0);
3686 _ACEOF
3687 rm -f conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3699 else
3700 echo "$as_me: program exited with status $ac_status" >&5
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 ( exit $ac_status )
3705 ac_cv_header_stdc=no
3707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3711 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3712 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3713 if test $ac_cv_header_stdc = yes; then
3715 cat >>confdefs.h <<\_ACEOF
3716 #define STDC_HEADERS 1
3717 _ACEOF
3721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3732 inttypes.h stdint.h unistd.h
3734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3735 echo "$as_me:$LINENO: checking for $ac_header" >&5
3736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 $ac_includes_default
3748 #include <$ac_header>
3749 _ACEOF
3750 rm -f conftest.$ac_objext
3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752 (eval $ac_compile) 2>conftest.er1
3753 ac_status=$?
3754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -z "$ac_c_werror_flag"
3760 || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 eval "$as_ac_Header=yes"
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 eval "$as_ac_Header=no"
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3784 cat >>confdefs.h <<_ACEOF
3785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3786 _ACEOF
3790 done
3812 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3813 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3814 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3818 echo "$as_me:$LINENO: checking for $ac_header" >&5
3819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3825 else
3826 # Is the header compilable?
3827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 $ac_includes_default
3836 #include <$ac_header>
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_header_compiler=yes
3861 else
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ac_header_compiler=no
3867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3869 echo "${ECHO_T}$ac_header_compiler" >&6
3871 # Is the header present?
3872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3874 cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 #include <$ac_header>
3881 _ACEOF
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } >/dev/null; then
3890 if test -s conftest.err; then
3891 ac_cpp_err=$ac_c_preproc_warn_flag
3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3893 else
3894 ac_cpp_err=
3896 else
3897 ac_cpp_err=yes
3899 if test -z "$ac_cpp_err"; then
3900 ac_header_preproc=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 ac_header_preproc=no
3907 rm -f conftest.err conftest.$ac_ext
3908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3909 echo "${ECHO_T}$ac_header_preproc" >&6
3911 # So? What about this header?
3912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3913 yes:no: )
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3918 ac_header_preproc=yes
3920 no:yes:* )
3921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3934 cat <<\_ASBOX
3935 ## ------------------------------------- ##
3936 ## Report this to the libmudflap lists. ##
3937 ## ------------------------------------- ##
3938 _ASBOX
3940 sed "s/^/$as_me: WARNING: /" >&2
3942 esac
3943 echo "$as_me:$LINENO: checking for $ac_header" >&5
3944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 eval "$as_ac_Header=\$ac_header_preproc"
3950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3961 done
3968 for ac_func in backtrace backtrace_symbols gettimeofday signal
3970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3971 echo "$as_me:$LINENO: checking for $ac_func" >&5
3972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3973 if eval "test \"\${$as_ac_var+set}\" = set"; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3984 #define $ac_func innocuous_$ac_func
3986 /* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func (); below.
3988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 <limits.h> exists even on freestanding compilers. */
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3997 #undef $ac_func
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 #ifdef __cplusplus
4001 extern "C"
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006 char $ac_func ();
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 choke me
4012 #else
4013 char (*f) () = $ac_func;
4014 #endif
4015 #ifdef __cplusplus
4017 #endif
4020 main ()
4022 return f != $ac_func;
4024 return 0;
4026 _ACEOF
4027 rm -f conftest.$ac_objext conftest$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029 (eval $ac_link) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 eval "$as_ac_var=yes"
4050 else
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 eval "$as_ac_var=no"
4056 rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4061 if test `eval echo '${'$as_ac_var'}'` = yes; then
4062 cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064 _ACEOF
4067 done
4074 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4077 echo "$as_me:$LINENO: checking for $ac_func" >&5
4078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4079 if eval "test \"\${$as_ac_var+set}\" = set"; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4090 #define $ac_func innocuous_$ac_func
4092 /* System header to define __stub macros and hopefully few prototypes,
4093 which can conflict with char $ac_func (); below.
4094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4095 <limits.h> exists even on freestanding compilers. */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4103 #undef $ac_func
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 #ifdef __cplusplus
4107 extern "C"
4109 #endif
4110 /* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4112 char $ac_func ();
4113 /* The GNU C library defines this for functions which it implements
4114 to always fail with ENOSYS. Some functions are actually named
4115 something starting with __ and the normal name is an alias. */
4116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4117 choke me
4118 #else
4119 char (*f) () = $ac_func;
4120 #endif
4121 #ifdef __cplusplus
4123 #endif
4126 main ()
4128 return f != $ac_func;
4130 return 0;
4132 _ACEOF
4133 rm -f conftest.$ac_objext conftest$ac_exeext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135 (eval $ac_link) 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag"
4143 || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 eval "$as_ac_var=yes"
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 eval "$as_ac_var=no"
4162 rm -f conftest.err conftest.$ac_objext \
4163 conftest$ac_exeext conftest.$ac_ext
4165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4167 if test `eval echo '${'$as_ac_var'}'` = yes; then
4168 cat >>confdefs.h <<_ACEOF
4169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4170 _ACEOF
4173 done
4179 for ac_func in setbuf setbuffer setlinebuf setvbuf
4181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4182 echo "$as_me:$LINENO: checking for $ac_func" >&5
4183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4184 if eval "test \"\${$as_ac_var+set}\" = set"; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4195 #define $ac_func innocuous_$ac_func
4197 /* System header to define __stub macros and hopefully few prototypes,
4198 which can conflict with char $ac_func (); below.
4199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 <limits.h> exists even on freestanding compilers. */
4202 #ifdef __STDC__
4203 # include <limits.h>
4204 #else
4205 # include <assert.h>
4206 #endif
4208 #undef $ac_func
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 #ifdef __cplusplus
4212 extern "C"
4214 #endif
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4217 char $ac_func ();
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4222 choke me
4223 #else
4224 char (*f) () = $ac_func;
4225 #endif
4226 #ifdef __cplusplus
4228 #endif
4231 main ()
4233 return f != $ac_func;
4235 return 0;
4237 _ACEOF
4238 rm -f conftest.$ac_objext conftest$ac_exeext
4239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240 (eval $ac_link) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
4247 { ac_try='test -z "$ac_c_werror_flag"
4248 || test ! -s conftest.err'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest$ac_exeext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 eval "$as_ac_var=yes"
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 eval "$as_ac_var=no"
4267 rm -f conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4272 if test `eval echo '${'$as_ac_var'}'` = yes; then
4273 cat >>confdefs.h <<_ACEOF
4274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4275 _ACEOF
4278 done
4285 for ac_func in strnlen memrchr strncpy memmem sethostname
4287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $ac_func" >&5
4289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_var+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4301 #define $ac_func innocuous_$ac_func
4303 /* System header to define __stub macros and hopefully few prototypes,
4304 which can conflict with char $ac_func (); below.
4305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 <limits.h> exists even on freestanding compilers. */
4308 #ifdef __STDC__
4309 # include <limits.h>
4310 #else
4311 # include <assert.h>
4312 #endif
4314 #undef $ac_func
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 #ifdef __cplusplus
4318 extern "C"
4320 #endif
4321 /* We use char because int might match the return type of a gcc2
4322 builtin and then its argument prototype would still apply. */
4323 char $ac_func ();
4324 /* The GNU C library defines this for functions which it implements
4325 to always fail with ENOSYS. Some functions are actually named
4326 something starting with __ and the normal name is an alias. */
4327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4328 choke me
4329 #else
4330 char (*f) () = $ac_func;
4331 #endif
4332 #ifdef __cplusplus
4334 #endif
4337 main ()
4339 return f != $ac_func;
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 eval "$as_ac_var=yes"
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 eval "$as_ac_var=no"
4373 rm -f conftest.err conftest.$ac_objext \
4374 conftest$ac_exeext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4378 if test `eval echo '${'$as_ac_var'}'` = yes; then
4379 cat >>confdefs.h <<_ACEOF
4380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4381 _ACEOF
4384 done
4389 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4392 echo "$as_me:$LINENO: checking for $ac_func" >&5
4393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4394 if eval "test \"\${$as_ac_var+set}\" = set"; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4405 #define $ac_func innocuous_$ac_func
4407 /* System header to define __stub macros and hopefully few prototypes,
4408 which can conflict with char $ac_func (); below.
4409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 <limits.h> exists even on freestanding compilers. */
4412 #ifdef __STDC__
4413 # include <limits.h>
4414 #else
4415 # include <assert.h>
4416 #endif
4418 #undef $ac_func
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 #ifdef __cplusplus
4422 extern "C"
4424 #endif
4425 /* We use char because int might match the return type of a gcc2
4426 builtin and then its argument prototype would still apply. */
4427 char $ac_func ();
4428 /* The GNU C library defines this for functions which it implements
4429 to always fail with ENOSYS. Some functions are actually named
4430 something starting with __ and the normal name is an alias. */
4431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4432 choke me
4433 #else
4434 char (*f) () = $ac_func;
4435 #endif
4436 #ifdef __cplusplus
4438 #endif
4441 main ()
4443 return f != $ac_func;
4445 return 0;
4447 _ACEOF
4448 rm -f conftest.$ac_objext conftest$ac_exeext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450 (eval $ac_link) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag"
4458 || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 eval "$as_ac_var=yes"
4471 else
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 eval "$as_ac_var=no"
4477 rm -f conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4482 if test `eval echo '${'$as_ac_var'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4485 _ACEOF
4488 done
4498 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4501 echo "$as_me:$LINENO: checking for $ac_func" >&5
4502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4503 if eval "test \"\${$as_ac_var+set}\" = set"; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4514 #define $ac_func innocuous_$ac_func
4516 /* System header to define __stub macros and hopefully few prototypes,
4517 which can conflict with char $ac_func (); below.
4518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 <limits.h> exists even on freestanding compilers. */
4521 #ifdef __STDC__
4522 # include <limits.h>
4523 #else
4524 # include <assert.h>
4525 #endif
4527 #undef $ac_func
4529 /* Override any gcc2 internal prototype to avoid an error. */
4530 #ifdef __cplusplus
4531 extern "C"
4533 #endif
4534 /* We use char because int might match the return type of a gcc2
4535 builtin and then its argument prototype would still apply. */
4536 char $ac_func ();
4537 /* The GNU C library defines this for functions which it implements
4538 to always fail with ENOSYS. Some functions are actually named
4539 something starting with __ and the normal name is an alias. */
4540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4541 choke me
4542 #else
4543 char (*f) () = $ac_func;
4544 #endif
4545 #ifdef __cplusplus
4547 #endif
4550 main ()
4552 return f != $ac_func;
4554 return 0;
4556 _ACEOF
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559 (eval $ac_link) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
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); }; } &&
4573 { ac_try='test -s conftest$ac_exeext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 eval "$as_ac_var=yes"
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 eval "$as_ac_var=no"
4586 rm -f conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4591 if test `eval echo '${'$as_ac_var'}'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4594 _ACEOF
4597 done
4604 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4607 echo "$as_me:$LINENO: checking for $ac_func" >&5
4608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_var+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4620 #define $ac_func innocuous_$ac_func
4622 /* System header to define __stub macros and hopefully few prototypes,
4623 which can conflict with char $ac_func (); below.
4624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4625 <limits.h> exists even on freestanding compilers. */
4627 #ifdef __STDC__
4628 # include <limits.h>
4629 #else
4630 # include <assert.h>
4631 #endif
4633 #undef $ac_func
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 #ifdef __cplusplus
4637 extern "C"
4639 #endif
4640 /* We use char because int might match the return type of a gcc2
4641 builtin and then its argument prototype would still apply. */
4642 char $ac_func ();
4643 /* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4647 choke me
4648 #else
4649 char (*f) () = $ac_func;
4650 #endif
4651 #ifdef __cplusplus
4653 #endif
4656 main ()
4658 return f != $ac_func;
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext conftest$ac_exeext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665 (eval $ac_link) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest$ac_exeext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 eval "$as_ac_var=yes"
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 eval "$as_ac_var=no"
4692 rm -f conftest.err conftest.$ac_objext \
4693 conftest$ac_exeext conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4697 if test `eval echo '${'$as_ac_var'}'` = yes; then
4698 cat >>confdefs.h <<_ACEOF
4699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4700 _ACEOF
4703 done
4710 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4713 echo "$as_me:$LINENO: checking for $ac_func" >&5
4714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4715 if eval "test \"\${$as_ac_var+set}\" = set"; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4726 #define $ac_func innocuous_$ac_func
4728 /* System header to define __stub macros and hopefully few prototypes,
4729 which can conflict with char $ac_func (); below.
4730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4731 <limits.h> exists even on freestanding compilers. */
4733 #ifdef __STDC__
4734 # include <limits.h>
4735 #else
4736 # include <assert.h>
4737 #endif
4739 #undef $ac_func
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 #ifdef __cplusplus
4743 extern "C"
4745 #endif
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4748 char $ac_func ();
4749 /* The GNU C library defines this for functions which it implements
4750 to always fail with ENOSYS. Some functions are actually named
4751 something starting with __ and the normal name is an alias. */
4752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4753 choke me
4754 #else
4755 char (*f) () = $ac_func;
4756 #endif
4757 #ifdef __cplusplus
4759 #endif
4762 main ()
4764 return f != $ac_func;
4766 return 0;
4768 _ACEOF
4769 rm -f conftest.$ac_objext conftest$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 eval "$as_ac_var=yes"
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 eval "$as_ac_var=no"
4798 rm -f conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4803 if test `eval echo '${'$as_ac_var'}'` = yes; then
4804 cat >>confdefs.h <<_ACEOF
4805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4806 _ACEOF
4809 done
4814 for ac_func in getprotoent getprotobyname getprotobynumber
4816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4817 echo "$as_me:$LINENO: checking for $ac_func" >&5
4818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4819 if eval "test \"\${$as_ac_var+set}\" = set"; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4830 #define $ac_func innocuous_$ac_func
4832 /* System header to define __stub macros and hopefully few prototypes,
4833 which can conflict with char $ac_func (); below.
4834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4835 <limits.h> exists even on freestanding compilers. */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4843 #undef $ac_func
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 #ifdef __cplusplus
4847 extern "C"
4849 #endif
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4852 char $ac_func ();
4853 /* The GNU C library defines this for functions which it implements
4854 to always fail with ENOSYS. Some functions are actually named
4855 something starting with __ and the normal name is an alias. */
4856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 choke me
4858 #else
4859 char (*f) () = $ac_func;
4860 #endif
4861 #ifdef __cplusplus
4863 #endif
4866 main ()
4868 return f != $ac_func;
4870 return 0;
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 eval "$as_ac_var=yes"
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 eval "$as_ac_var=no"
4902 rm -f conftest.err conftest.$ac_objext \
4903 conftest$ac_exeext conftest.$ac_ext
4905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4907 if test `eval echo '${'$as_ac_var'}'` = yes; then
4908 cat >>confdefs.h <<_ACEOF
4909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4910 _ACEOF
4913 done
4918 for ac_func in getmntent setmntent addmntent
4920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4921 echo "$as_me:$LINENO: checking for $ac_func" >&5
4922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4923 if eval "test \"\${$as_ac_var+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4934 #define $ac_func innocuous_$ac_func
4936 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func (); below.
4938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 <limits.h> exists even on freestanding compilers. */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4947 #undef $ac_func
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 #ifdef __cplusplus
4951 extern "C"
4953 #endif
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956 char $ac_func ();
4957 /* The GNU C library defines this for functions which it implements
4958 to always fail with ENOSYS. Some functions are actually named
4959 something starting with __ and the normal name is an alias. */
4960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4961 choke me
4962 #else
4963 char (*f) () = $ac_func;
4964 #endif
4965 #ifdef __cplusplus
4967 #endif
4970 main ()
4972 return f != $ac_func;
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext conftest$ac_exeext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 eval "$as_ac_var=yes"
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 eval "$as_ac_var=no"
5006 rm -f conftest.err conftest.$ac_objext \
5007 conftest$ac_exeext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5011 if test `eval echo '${'$as_ac_var'}'` = yes; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5014 _ACEOF
5017 done
5022 for ac_func in inet_ntoa mmap munmap
5024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5025 echo "$as_me:$LINENO: checking for $ac_func" >&5
5026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5027 if eval "test \"\${$as_ac_var+set}\" = set"; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5038 #define $ac_func innocuous_$ac_func
5040 /* System header to define __stub macros and hopefully few prototypes,
5041 which can conflict with char $ac_func (); below.
5042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 <limits.h> exists even on freestanding compilers. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5051 #undef $ac_func
5053 /* Override any gcc2 internal prototype to avoid an error. */
5054 #ifdef __cplusplus
5055 extern "C"
5057 #endif
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5060 char $ac_func ();
5061 /* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065 choke me
5066 #else
5067 char (*f) () = $ac_func;
5068 #endif
5069 #ifdef __cplusplus
5071 #endif
5074 main ()
5076 return f != $ac_func;
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext conftest$ac_exeext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083 (eval $ac_link) 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -z "$ac_c_werror_flag"
5091 || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 eval "$as_ac_var=yes"
5104 else
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 eval "$as_ac_var=no"
5110 rm -f conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5115 if test `eval echo '${'$as_ac_var'}'` = yes; then
5116 cat >>confdefs.h <<_ACEOF
5117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5118 _ACEOF
5121 done
5124 for ac_func in __libc_freeres
5126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5127 echo "$as_me:$LINENO: checking for $ac_func" >&5
5128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_var+set}\" = set"; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5140 #define $ac_func innocuous_$ac_func
5142 /* System header to define __stub macros and hopefully few prototypes,
5143 which can conflict with char $ac_func (); below.
5144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 <limits.h> exists even on freestanding compilers. */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5153 #undef $ac_func
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 #ifdef __cplusplus
5157 extern "C"
5159 #endif
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5162 char $ac_func ();
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5167 choke me
5168 #else
5169 char (*f) () = $ac_func;
5170 #endif
5171 #ifdef __cplusplus
5173 #endif
5176 main ()
5178 return f != $ac_func;
5180 return 0;
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 eval "$as_ac_var=yes"
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 eval "$as_ac_var=no"
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5217 if test `eval echo '${'$as_ac_var'}'` = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5220 _ACEOF
5223 done
5226 cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 #include <sys/types.h>
5233 #include <sys/ipc.h>
5234 #include <sys/sem.h>
5236 main ()
5238 union semun foo;
5240 return 0;
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -z "$ac_c_werror_flag"
5253 || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 mf_have_semun=1
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 mf_have_semun=0
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5273 if test $mf_have_semun = 1
5274 then
5276 cat >>confdefs.h <<\_ACEOF
5277 #define HAVE_UNION_SEMUN 1
5278 _ACEOF
5283 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5284 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 #define _POSIX_PII_SOCKET
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5295 main ()
5297 socklen_t x = 5;
5299 return 0;
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_c_werror_flag"
5312 || test ! -s conftest.err'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_SOCKLEN_T 1
5327 _ACEOF
5329 echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5340 enable_dlopen=yes
5346 macro_version='2.1a'
5347 macro_revision='1.2435'
5360 ltmain="$ac_aux_dir/ltmain.sh"
5362 # Set options
5365 enable_win32_dll=no
5368 # Check whether --enable-shared or --disable-shared was given.
5369 if test "${enable_shared+set}" = set; then
5370 enableval="$enable_shared"
5371 p=${PACKAGE-default}
5372 case $enableval in
5373 yes) enable_shared=yes ;;
5374 no) enable_shared=no ;;
5376 enable_shared=no
5377 # Look at the argument we got. We use all the common list separators.
5378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5379 for pkg in $enableval; do
5380 IFS="$lt_save_ifs"
5381 if test "X$pkg" = "X$p"; then
5382 enable_shared=yes
5384 done
5385 IFS="$lt_save_ifs"
5387 esac
5388 else
5389 enable_shared=yes
5399 # Check whether --enable-static or --disable-static was given.
5400 if test "${enable_static+set}" = set; then
5401 enableval="$enable_static"
5402 p=${PACKAGE-default}
5403 case $enableval in
5404 yes) enable_static=yes ;;
5405 no) enable_static=no ;;
5407 enable_static=no
5408 # Look at the argument we got. We use all the common list separators.
5409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5410 for pkg in $enableval; do
5411 IFS="$lt_save_ifs"
5412 if test "X$pkg" = "X$p"; then
5413 enable_static=yes
5415 done
5416 IFS="$lt_save_ifs"
5418 esac
5419 else
5420 enable_static=yes
5431 # Check whether --with-pic or --without-pic was given.
5432 if test "${with_pic+set}" = set; then
5433 withval="$with_pic"
5434 pic_mode="$withval"
5435 else
5436 pic_mode=default
5439 test -z "$pic_mode" && pic_mode=default
5447 # Check whether --enable-fast-install or --disable-fast-install was given.
5448 if test "${enable_fast_install+set}" = set; then
5449 enableval="$enable_fast_install"
5450 p=${PACKAGE-default}
5451 case $enableval in
5452 yes) enable_fast_install=yes ;;
5453 no) enable_fast_install=no ;;
5455 enable_fast_install=no
5456 # Look at the argument we got. We use all the common list separators.
5457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5458 for pkg in $enableval; do
5459 IFS="$lt_save_ifs"
5460 if test "X$pkg" = "X$p"; then
5461 enable_fast_install=yes
5463 done
5464 IFS="$lt_save_ifs"
5466 esac
5467 else
5468 enable_fast_install=yes
5478 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5479 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5480 if test "${lt_cv_path_SED+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 # Loop through the user's path and test for sed and gsed.
5484 # Then use that list of sed's as ones to test for truncation.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for lt_ac_prog in sed gsed; do
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5493 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5495 done
5496 done
5497 done
5498 IFS=$as_save_IFS
5499 lt_ac_max=0
5500 lt_ac_count=0
5501 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5502 # along with /bin/sed that truncates output.
5503 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5504 test ! -f $lt_ac_sed && continue
5505 cat /dev/null > conftest.in
5506 lt_ac_count=0
5507 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5508 # Check for GNU sed and select it if it is found.
5509 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5510 lt_cv_path_SED=$lt_ac_sed
5511 break
5513 while true; do
5514 cat conftest.in conftest.in >conftest.tmp
5515 mv conftest.tmp conftest.in
5516 cp conftest.in conftest.nl
5517 echo >>conftest.nl
5518 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5519 cmp -s conftest.out conftest.nl || break
5520 # 10000 chars as input seems more than enough
5521 test $lt_ac_count -gt 10 && break
5522 lt_ac_count=`expr $lt_ac_count + 1`
5523 if test $lt_ac_count -gt $lt_ac_max; then
5524 lt_ac_max=$lt_ac_count
5525 lt_cv_path_SED=$lt_ac_sed
5527 done
5528 done
5532 SED=$lt_cv_path_SED
5534 echo "$as_me:$LINENO: result: $SED" >&5
5535 echo "${ECHO_T}$SED" >&6
5537 test -z "$SED" && SED=sed
5538 Xsed="$SED -e 1s/^X//"
5550 echo "$as_me:$LINENO: checking for fgrep" >&5
5551 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5552 if test "${ac_cv_prog_fgrep+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5556 then ac_cv_prog_fgrep='grep -F'
5557 else ac_cv_prog_fgrep='fgrep'
5560 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5561 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5562 FGREP=$ac_cv_prog_fgrep
5565 test -z "$GREP" && GREP=grep
5585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5586 if test "${with_gnu_ld+set}" = set; then
5587 withval="$with_gnu_ld"
5588 test "$withval" = no || with_gnu_ld=yes
5589 else
5590 with_gnu_ld=no
5592 ac_prog=ld
5593 if test "$GCC" = yes; then
5594 # Check if gcc -print-prog-name=ld gives a path.
5595 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5596 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5597 case $host in
5598 *-*-mingw*)
5599 # gcc leaves a trailing carriage return which upsets mingw
5600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5603 esac
5604 case $ac_prog in
5605 # Accept absolute paths.
5606 [\\/]* | ?:[\\/]*)
5607 re_direlt='/[^/][^/]*/\.\./'
5608 # Canonicalize the pathname of ld
5609 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5610 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5611 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5612 done
5613 test -z "$LD" && LD="$ac_prog"
5616 # If it fails, then pretend we aren't using GCC.
5617 ac_prog=ld
5620 # If it is relative, then search for the first ld in PATH.
5621 with_gnu_ld=unknown
5623 esac
5624 elif test "$with_gnu_ld" = yes; then
5625 echo "$as_me:$LINENO: checking for GNU ld" >&5
5626 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5627 else
5628 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5629 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5631 if test "${lt_cv_path_LD+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 if test -z "$LD"; then
5635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636 for ac_dir in $PATH; do
5637 IFS="$lt_save_ifs"
5638 test -z "$ac_dir" && ac_dir=.
5639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5640 lt_cv_path_LD="$ac_dir/$ac_prog"
5641 # Check to see if the program is GNU ld. I'd rather use --version,
5642 # but apparently some variants of GNU ld only accept -v.
5643 # Break only if it was the GNU/non-GNU ld that we prefer.
5644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5645 *GNU* | *'with BFD'*)
5646 test "$with_gnu_ld" != no && break
5649 test "$with_gnu_ld" != yes && break
5651 esac
5653 done
5654 IFS="$lt_save_ifs"
5655 else
5656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5660 LD="$lt_cv_path_LD"
5661 if test -n "$LD"; then
5662 echo "$as_me:$LINENO: result: $LD" >&5
5663 echo "${ECHO_T}$LD" >&6
5664 else
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5668 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5669 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5670 { (exit 1); exit 1; }; }
5671 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5672 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5673 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5677 case `$LD -v 2>&1 </dev/null` in
5678 *GNU* | *'with BFD'*)
5679 lt_cv_prog_gnu_ld=yes
5682 lt_cv_prog_gnu_ld=no
5684 esac
5686 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5687 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5688 with_gnu_ld=$lt_cv_prog_gnu_ld
5699 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5700 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5701 if test "${lt_cv_path_NM+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 if test -n "$NM"; then
5705 # Let the user override the test.
5706 lt_cv_path_NM="$NM"
5707 else
5708 lt_nm_to_check="${ac_tool_prefix}nm"
5709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5710 lt_nm_to_check="$lt_nm_to_check nm"
5712 for lt_tmp_nm in $lt_nm_to_check; do
5713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5715 IFS="$lt_save_ifs"
5716 test -z "$ac_dir" && ac_dir=.
5717 tmp_nm="$ac_dir/$lt_tmp_nm"
5718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5719 # Check to see if the nm accepts a BSD-compat flag.
5720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5721 # nm: unknown option "B" ignored
5722 # Tru64's nm complains that /dev/null is an invalid object file
5723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5724 */dev/null* | *'Invalid file or object type'*)
5725 lt_cv_path_NM="$tmp_nm -B"
5726 break
5729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5730 */dev/null*)
5731 lt_cv_path_NM="$tmp_nm -p"
5732 break
5735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5736 continue # so that we can try to find one that supports BSD flags
5738 esac
5740 esac
5742 done
5743 IFS="$lt_save_ifs"
5744 done
5745 : ${lt_cv_path_NM=no}
5748 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5749 echo "${ECHO_T}$lt_cv_path_NM" >&6
5750 if test "$lt_cv_path_NM" != "no"; then
5751 NM="$lt_cv_path_NM"
5752 else
5753 # Didn't find any BSD compatible name lister, look for dumpbin.
5754 if test -n "$ac_tool_prefix"; then
5755 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5759 echo "$as_me:$LINENO: checking for $ac_word" >&5
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5761 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 if test -n "$DUMPBIN"; then
5765 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5778 done
5779 done
5783 DUMPBIN=$ac_cv_prog_DUMPBIN
5784 if test -n "$DUMPBIN"; then
5785 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5786 echo "${ECHO_T}$DUMPBIN" >&6
5787 else
5788 echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6
5792 test -n "$DUMPBIN" && break
5793 done
5795 if test -z "$DUMPBIN"; then
5796 ac_ct_DUMPBIN=$DUMPBIN
5797 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy $ac_prog; ac_word=$2
5801 echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 if test -n "$ac_ct_DUMPBIN"; then
5807 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5820 done
5821 done
5825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5826 if test -n "$ac_ct_DUMPBIN"; then
5827 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5828 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5829 else
5830 echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5834 test -n "$ac_ct_DUMPBIN" && break
5835 done
5836 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5838 DUMPBIN=$ac_ct_DUMPBIN
5842 if test "$DUMPBIN" != ":"; then
5843 NM="$DUMPBIN"
5846 test -z "$NM" && NM=nm
5853 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5854 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5855 if test "${lt_cv_nm_interface+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 lt_cv_nm_interface="BSD nm"
5859 echo "int some_variable = 0;" > conftest.$ac_ext
5860 (eval echo "\"\$as_me:5860: $ac_compile\"" >&5)
5861 (eval "$ac_compile" 2>conftest.err)
5862 cat conftest.err >&5
5863 (eval echo "\"\$as_me:5863: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5864 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5865 cat conftest.err >&5
5866 (eval echo "\"\$as_me:5866: output\"" >&5)
5867 cat conftest.out >&5
5868 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5869 lt_cv_nm_interface="MS dumpbin"
5871 rm -f conftest*
5873 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5874 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5876 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5877 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5878 LN_S=$as_ln_s
5879 if test "$LN_S" = "ln -s"; then
5880 echo "$as_me:$LINENO: result: yes" >&5
5881 echo "${ECHO_T}yes" >&6
5882 else
5883 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5884 echo "${ECHO_T}no, using $LN_S" >&6
5887 # find the maximum length of command line arguments
5888 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5889 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5890 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5894 teststring="ABCD"
5896 case $build_os in
5897 msdosdjgpp*)
5898 # On DJGPP, this test can blow up pretty badly due to problems in libc
5899 # (any single argument exceeding 2000 bytes causes a buffer overrun
5900 # during glob expansion). Even if it were fixed, the result of this
5901 # check would be larger than it should be.
5902 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5905 gnu*)
5906 # Under GNU Hurd, this test is not required because there is
5907 # no limit to the length of command line arguments.
5908 # Libtool will interpret -1 as no limit whatsoever
5909 lt_cv_sys_max_cmd_len=-1;
5912 cygwin* | mingw*)
5913 # On Win9x/ME, this test blows up -- it succeeds, but takes
5914 # about 5 minutes as the teststring grows exponentially.
5915 # Worse, since 9x/ME are not pre-emptively multitasking,
5916 # you end up with a "frozen" computer, even though with patience
5917 # the test eventually succeeds (with a max line length of 256k).
5918 # Instead, let's just punt: use the minimum linelength reported by
5919 # all of the supported platforms: 8192 (on NT/2K/XP).
5920 lt_cv_sys_max_cmd_len=8192;
5923 amigaos*)
5924 # On AmigaOS with pdksh, this test takes hours, literally.
5925 # So we just punt and use a minimum line length of 8192.
5926 lt_cv_sys_max_cmd_len=8192;
5929 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5930 # This has been around since 386BSD, at least. Likely further.
5931 if test -x /sbin/sysctl; then
5932 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5933 elif test -x /usr/sbin/sysctl; then
5934 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5935 else
5936 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5938 # And add a safety zone
5939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5943 interix*)
5944 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5945 lt_cv_sys_max_cmd_len=196608
5948 osf*)
5949 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5950 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5951 # nice to cause kernel panics so lets avoid the loop below.
5952 # First set a reasonable default.
5953 lt_cv_sys_max_cmd_len=16384
5955 if test -x /sbin/sysconfig; then
5956 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5957 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5958 esac
5961 sco3.2v5*)
5962 lt_cv_sys_max_cmd_len=102400
5964 sysv5* | sco5v6* | sysv4.2uw2*)
5965 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5966 if test -n "$kargmax"; then
5967 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5968 else
5969 lt_cv_sys_max_cmd_len=32768
5973 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5974 if test -n $lt_cv_sys_max_cmd_len; then
5975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5977 else
5978 # Make teststring a little bigger before we do anything with it.
5979 # a 1K string should be a reasonable start.
5980 for i in 1 2 3 4 5 6 7 8 ; do
5981 teststring=$teststring$teststring
5982 done
5983 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5984 # If test is not a shell built-in, we'll probably end up computing a
5985 # maximum length that is only half of the actual maximum length, but
5986 # we can't tell.
5987 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5988 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5989 test $i != 17 # 1/2 MB should be enough
5991 i=`expr $i + 1`
5992 teststring=$teststring$teststring
5993 done
5994 # Only check the string length outside the loop.
5995 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5996 teststring=
5997 # Add a significant safety factor because C++ compilers can tack on
5998 # massive amounts of additional arguments before passing them to the
5999 # linker. It appears as though 1/2 is a usable value.
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6003 esac
6007 if test -n $lt_cv_sys_max_cmd_len ; then
6008 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6009 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6010 else
6011 echo "$as_me:$LINENO: result: none" >&5
6012 echo "${ECHO_T}none" >&6
6014 max_cmd_len=$lt_cv_sys_max_cmd_len
6021 : ${CP="cp -f"}
6022 : ${MV="mv -f"}
6023 : ${RM="rm -f"}
6025 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6026 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6027 # Try some XSI features
6028 xsi_shell=no
6029 ( _lt_dummy="a/b/c"
6030 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6031 = c,a/b,, ) >/dev/null 2>&1 \
6032 && xsi_shell=yes
6033 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6034 echo "${ECHO_T}$xsi_shell" >&6
6037 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6038 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6039 lt_shell_append=no
6040 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6041 >/dev/null 2>&1 \
6042 && lt_shell_append=yes
6043 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6044 echo "${ECHO_T}$lt_shell_append" >&6
6047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6048 lt_unset=unset
6049 else
6050 lt_unset=false
6057 # test EBCDIC or ASCII
6058 case `echo X|tr X '\101'` in
6059 A) # ASCII based system
6060 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6061 lt_SP2NL='tr \040 \012'
6062 lt_NL2SP='tr \015\012 \040\040'
6064 *) # EBCDIC based system
6065 lt_SP2NL='tr \100 \n'
6066 lt_NL2SP='tr \r\n \100\100'
6068 esac
6078 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6079 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6080 if test "${lt_cv_ld_reload_flag+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 lt_cv_ld_reload_flag='-r'
6085 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6086 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6087 reload_flag=$lt_cv_ld_reload_flag
6088 case $reload_flag in
6089 "" | " "*) ;;
6090 *) reload_flag=" $reload_flag" ;;
6091 esac
6092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6093 case $host_os in
6094 darwin*)
6095 if test "$GCC" = yes; then
6096 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6097 else
6098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6101 esac
6112 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6113 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6114 if test "${lt_cv_deplibs_check_method+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 lt_cv_file_magic_cmd='$MAGIC_CMD'
6118 lt_cv_file_magic_test_file=
6119 lt_cv_deplibs_check_method='unknown'
6120 # Need to set the preceding variable on all platforms that support
6121 # interlibrary dependencies.
6122 # 'none' -- dependencies not supported.
6123 # `unknown' -- same as none, but documents that we really don't know.
6124 # 'pass_all' -- all dependencies passed with no checks.
6125 # 'test_compile' -- check by making test program.
6126 # 'file_magic [[regex]]' -- check by looking for files in library path
6127 # which responds to the $file_magic_cmd with a given extended regex.
6128 # If you have `file' or equivalent on your system and you're not sure
6129 # whether `pass_all' will *always* work, you probably want this one.
6131 case $host_os in
6132 aix[4-9]*)
6133 lt_cv_deplibs_check_method=pass_all
6136 beos*)
6137 lt_cv_deplibs_check_method=pass_all
6140 bsdi[45]*)
6141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6142 lt_cv_file_magic_cmd='/usr/bin/file -L'
6143 lt_cv_file_magic_test_file=/shlib/libc.so
6146 cygwin*)
6147 # func_win32_libid is a shell function defined in ltmain.sh
6148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6149 lt_cv_file_magic_cmd='func_win32_libid'
6152 mingw* | pw32*)
6153 # Base MSYS/MinGW do not provide the 'file' command needed by
6154 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6155 # unless we find 'file', for example because we are cross-compiling.
6156 if ( file / ) >/dev/null 2>&1; then
6157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158 lt_cv_file_magic_cmd='func_win32_libid'
6159 else
6160 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6161 lt_cv_file_magic_cmd='$OBJDUMP -f'
6165 darwin* | rhapsody*)
6166 lt_cv_deplibs_check_method=pass_all
6169 freebsd* | dragonfly*)
6170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6171 case $host_cpu in
6172 i*86 )
6173 # Not sure whether the presence of OpenBSD here was a mistake.
6174 # Let's accept both of them until this is cleared up.
6175 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6176 lt_cv_file_magic_cmd=/usr/bin/file
6177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6179 esac
6180 else
6181 lt_cv_deplibs_check_method=pass_all
6185 gnu*)
6186 lt_cv_deplibs_check_method=pass_all
6189 hpux10.20* | hpux11*)
6190 lt_cv_file_magic_cmd=/usr/bin/file
6191 case $host_cpu in
6192 ia64*)
6193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6194 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6196 hppa*64*)
6197 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]'
6198 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6202 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6204 esac
6207 interix[3-9]*)
6208 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6212 irix5* | irix6* | nonstopux*)
6213 case $LD in
6214 *-32|*"-32 ") libmagic=32-bit;;
6215 *-n32|*"-n32 ") libmagic=N32;;
6216 *-64|*"-64 ") libmagic=64-bit;;
6217 *) libmagic=never-match;;
6218 esac
6219 lt_cv_deplibs_check_method=pass_all
6222 # This must be Linux ELF.
6223 linux* | k*bsd*-gnu)
6224 lt_cv_deplibs_check_method=pass_all
6227 netbsd*)
6228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6230 else
6231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6235 newos6*)
6236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6237 lt_cv_file_magic_cmd=/usr/bin/file
6238 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6241 *nto* | *qnx*)
6242 lt_cv_deplibs_check_method=pass_all
6245 openbsd*)
6246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6248 else
6249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6253 osf3* | osf4* | osf5*)
6254 lt_cv_deplibs_check_method=pass_all
6257 rdos*)
6258 lt_cv_deplibs_check_method=pass_all
6261 solaris*)
6262 lt_cv_deplibs_check_method=pass_all
6265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6266 lt_cv_deplibs_check_method=pass_all
6269 sysv4 | sysv4.3*)
6270 case $host_vendor in
6271 motorola)
6272 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]'
6273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6275 ncr)
6276 lt_cv_deplibs_check_method=pass_all
6278 sequent)
6279 lt_cv_file_magic_cmd='/bin/file'
6280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6282 sni)
6283 lt_cv_file_magic_cmd='/bin/file'
6284 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6285 lt_cv_file_magic_test_file=/lib/libc.so
6287 siemens)
6288 lt_cv_deplibs_check_method=pass_all
6291 lt_cv_deplibs_check_method=pass_all
6293 esac
6296 tpf*)
6297 lt_cv_deplibs_check_method=pass_all
6299 esac
6302 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6303 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6304 file_magic_cmd=$lt_cv_file_magic_cmd
6305 deplibs_check_method=$lt_cv_deplibs_check_method
6306 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}ar; ac_word=$2
6322 echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6324 if test "${ac_cv_prog_AR+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 if test -n "$AR"; then
6328 ac_cv_prog_AR="$AR" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_AR="${ac_tool_prefix}ar"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6341 done
6342 done
6346 AR=$ac_cv_prog_AR
6347 if test -n "$AR"; then
6348 echo "$as_me:$LINENO: result: $AR" >&5
6349 echo "${ECHO_T}$AR" >&6
6350 else
6351 echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6356 if test -z "$ac_cv_prog_AR"; then
6357 ac_ct_AR=$AR
6358 # Extract the first word of "ar", so it can be a program name with args.
6359 set dummy ar; ac_word=$2
6360 echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6362 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365 if test -n "$ac_ct_AR"; then
6366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_AR="ar"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6379 done
6380 done
6382 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6386 if test -n "$ac_ct_AR"; then
6387 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6388 echo "${ECHO_T}$ac_ct_AR" >&6
6389 else
6390 echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6394 AR=$ac_ct_AR
6395 else
6396 AR="$ac_cv_prog_AR"
6399 test -z "$AR" && AR=ar
6400 test -z "$AR_FLAGS" && AR_FLAGS=cru
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}strip; ac_word=$2
6415 echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6417 if test "${ac_cv_prog_STRIP+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 if test -n "$STRIP"; then
6421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6434 done
6435 done
6439 STRIP=$ac_cv_prog_STRIP
6440 if test -n "$STRIP"; then
6441 echo "$as_me:$LINENO: result: $STRIP" >&5
6442 echo "${ECHO_T}$STRIP" >&6
6443 else
6444 echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6
6449 if test -z "$ac_cv_prog_STRIP"; then
6450 ac_ct_STRIP=$STRIP
6451 # Extract the first word of "strip", so it can be a program name with args.
6452 set dummy strip; ac_word=$2
6453 echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6455 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 if test -n "$ac_ct_STRIP"; then
6459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_ac_ct_STRIP="strip"
6469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6472 done
6473 done
6475 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6478 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6479 if test -n "$ac_ct_STRIP"; then
6480 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6481 echo "${ECHO_T}$ac_ct_STRIP" >&6
6482 else
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6487 STRIP=$ac_ct_STRIP
6488 else
6489 STRIP="$ac_cv_prog_STRIP"
6492 test -z "$STRIP" && STRIP=:
6499 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6502 echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6504 if test "${ac_cv_prog_RANLIB+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 if test -n "$RANLIB"; then
6508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6526 RANLIB=$ac_cv_prog_RANLIB
6527 if test -n "$RANLIB"; then
6528 echo "$as_me:$LINENO: result: $RANLIB" >&5
6529 echo "${ECHO_T}$RANLIB" >&6
6530 else
6531 echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537 ac_ct_RANLIB=$RANLIB
6538 # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib; ac_word=$2
6540 echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6542 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_RANLIB="ranlib"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6562 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6568 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6569 else
6570 echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6
6574 RANLIB=$ac_ct_RANLIB
6575 else
6576 RANLIB="$ac_cv_prog_RANLIB"
6579 test -z "$RANLIB" && RANLIB=:
6586 # Determine commands to create old-style static archives.
6587 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6588 old_postinstall_cmds='chmod 644 $oldlib'
6589 old_postuninstall_cmds=
6591 if test -n "$RANLIB"; then
6592 case $host_os in
6593 openbsd*)
6594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6599 esac
6600 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6636 # If no C compiler was specified, use CC.
6637 LTCC=${LTCC-"$CC"}
6639 # If no C compiler flags were specified, use CFLAGS.
6640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6642 # Allow CC to be a program name with arguments.
6643 compiler=$CC
6646 # Check for command to grab the raw symbol name followed by C symbol from nm.
6647 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6648 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6649 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6653 # These are sane defaults that work on at least a few old systems.
6654 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6656 # Character class describing NM global symbol codes.
6657 symcode='[BCDEGRST]'
6659 # Regexp to match symbols that can be accessed directly from C.
6660 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6662 # Define system-specific variables.
6663 case $host_os in
6664 aix*)
6665 symcode='[BCDT]'
6667 cygwin* | mingw* | pw32*)
6668 symcode='[ABCDGISTW]'
6670 hpux*)
6671 if test "$host_cpu" = ia64; then
6672 symcode='[ABCDEGRST]'
6675 irix* | nonstopux*)
6676 symcode='[BCDEGRST]'
6678 osf*)
6679 symcode='[BCDEGQRST]'
6681 solaris*)
6682 symcode='[BDRT]'
6684 sco3.2v5*)
6685 symcode='[DT]'
6687 sysv4.2uw2*)
6688 symcode='[DT]'
6690 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6691 symcode='[ABDT]'
6693 sysv4)
6694 symcode='[DFNSTU]'
6696 esac
6698 # If we're using GNU nm, then use its standard symbol codes.
6699 case `$NM -V 2>&1` in
6700 *GNU* | *'with BFD'*)
6701 symcode='[ABCDGIRSTW]' ;;
6702 esac
6704 # Transform an extracted symbol line into a proper C declaration.
6705 # Some systems (esp. on ia64) link data and code symbols differently,
6706 # so use this general approach.
6707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6709 # Transform an extracted symbol line into symbol name and symbol address
6710 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6712 # Handle CRLF in mingw tool chain
6713 opt_cr=
6714 case $build_os in
6715 mingw*)
6716 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6718 esac
6720 # Try without a prefix underscore, then with it.
6721 for ac_symprfx in "" "_"; do
6723 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6724 symxfrm="\\1 $ac_symprfx\\2 \\2"
6726 # Write the raw and C identifiers.
6727 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6728 # Fake it for dumpbin and say T for any non-static function
6729 # and D for any global variable.
6730 # Also find C++ and __fastcall symbols from MSVC++,
6731 # which start with @ or ?.
6732 lt_cv_sys_global_symbol_pipe="$AWK '"\
6733 " {last_section=section; section=\$ 3};"\
6734 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6735 " \$ 0!~/External *\|/{next};"\
6736 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6737 " {if(hide[section]) next};"\
6738 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6739 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6740 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6741 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6742 " ' prfx=^$ac_symprfx"
6743 else
6744 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6747 # Check to see that the pipe works correctly.
6748 pipe_works=no
6750 rm -f conftest*
6751 cat > conftest.$ac_ext <<_LT_EOF
6752 #ifdef __cplusplus
6753 extern "C" {
6754 #endif
6755 char nm_test_var;
6756 void nm_test_func(void);
6757 void nm_test_func(void){}
6758 #ifdef __cplusplus
6760 #endif
6761 int main(){nm_test_var='a';nm_test_func();return(0);}
6762 _LT_EOF
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; then
6769 # Now try to grab the symbols.
6770 nlist=conftest.nm
6771 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && test -s "$nlist"; then
6776 # Try sorting and uniquifying the output.
6777 if sort "$nlist" | uniq > "$nlist"T; then
6778 mv -f "$nlist"T "$nlist"
6779 else
6780 rm -f "$nlist"T
6783 # Make sure that we snagged all the symbols we need.
6784 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6785 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6786 cat <<_LT_EOF > conftest.$ac_ext
6787 #ifdef __cplusplus
6788 extern "C" {
6789 #endif
6791 _LT_EOF
6792 # Now generate the symbol file.
6793 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6795 cat <<_LT_EOF >> conftest.$ac_ext
6797 /* The mapping between symbol names and symbols. */
6798 const struct {
6799 const char *name;
6800 void *address;
6802 lt__PROGRAM__LTX_preloaded_symbols[] =
6804 { "@PROGRAM@", (void *) 0 },
6805 _LT_EOF
6806 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6807 cat <<\_LT_EOF >> conftest.$ac_ext
6808 {0, (void *) 0}
6811 /* This works around a problem in FreeBSD linker */
6812 #ifdef FREEBSD_WORKAROUND
6813 static const void *lt_preloaded_setup() {
6814 return lt__PROGRAM__LTX_preloaded_symbols;
6816 #endif
6818 #ifdef __cplusplus
6820 #endif
6821 _LT_EOF
6822 # Now try linking the two files.
6823 mv conftest.$ac_objext conftstm.$ac_objext
6824 lt_save_LIBS="$LIBS"
6825 lt_save_CFLAGS="$CFLAGS"
6826 LIBS="conftstm.$ac_objext"
6827 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6833 pipe_works=yes
6835 LIBS="$lt_save_LIBS"
6836 CFLAGS="$lt_save_CFLAGS"
6837 else
6838 echo "cannot find nm_test_func in $nlist" >&5
6840 else
6841 echo "cannot find nm_test_var in $nlist" >&5
6843 else
6844 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6846 else
6847 echo "$progname: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6850 rm -f conftest* conftst*
6852 # Do not use the global_symbol_pipe unless it works.
6853 if test "$pipe_works" = yes; then
6854 break
6855 else
6856 lt_cv_sys_global_symbol_pipe=
6858 done
6862 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6863 lt_cv_sys_global_symbol_to_cdecl=
6865 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6866 echo "$as_me:$LINENO: result: failed" >&5
6867 echo "${ECHO_T}failed" >&6
6868 else
6869 echo "$as_me:$LINENO: result: ok" >&5
6870 echo "${ECHO_T}ok" >&6
6889 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6890 if test "${enable_libtool_lock+set}" = set; then
6891 enableval="$enable_libtool_lock"
6894 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6896 # Some flags need to be propagated to the compiler or linker for good
6897 # libtool support.
6898 case $host in
6899 ia64-*-hpux*)
6900 # Find out which ABI we are using.
6901 echo 'int i;' > conftest.$ac_ext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; then
6907 case `/usr/bin/file conftest.$ac_objext` in
6908 *ELF-32*)
6909 HPUX_IA64_MODE="32"
6911 *ELF-64*)
6912 HPUX_IA64_MODE="64"
6914 esac
6916 rm -rf conftest*
6918 *-*-irix6*)
6919 # Find out which ABI we are using.
6920 echo '#line 6920 "configure"' > conftest.$ac_ext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; then
6926 if test "$lt_cv_prog_gnu_ld" = yes; then
6927 case `/usr/bin/file conftest.$ac_objext` in
6928 *32-bit*)
6929 LD="${LD-ld} -melf32bsmip"
6931 *N32*)
6932 LD="${LD-ld} -melf32bmipn32"
6934 *64-bit*)
6935 LD="${LD-ld} -melf64bmip"
6937 esac
6938 else
6939 case `/usr/bin/file conftest.$ac_objext` in
6940 *32-bit*)
6941 LD="${LD-ld} -32"
6943 *N32*)
6944 LD="${LD-ld} -n32"
6946 *64-bit*)
6947 LD="${LD-ld} -64"
6949 esac
6952 rm -rf conftest*
6955 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6956 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6957 # Find out which ABI we are using.
6958 echo 'int i;' > conftest.$ac_ext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; then
6964 case `/usr/bin/file conftest.o` in
6965 *32-bit*)
6966 case $host in
6967 x86_64-*kfreebsd*-gnu)
6968 LD="${LD-ld} -m elf_i386_fbsd"
6970 x86_64-*linux*)
6971 LD="${LD-ld} -m elf_i386"
6973 ppc64-*linux*|powerpc64-*linux*)
6974 LD="${LD-ld} -m elf32ppclinux"
6976 s390x-*linux*)
6977 LD="${LD-ld} -m elf_s390"
6979 sparc64-*linux*)
6980 LD="${LD-ld} -m elf32_sparc"
6982 esac
6984 *64-bit*)
6985 case $host in
6986 x86_64-*kfreebsd*-gnu)
6987 LD="${LD-ld} -m elf_x86_64_fbsd"
6989 x86_64-*linux*)
6990 LD="${LD-ld} -m elf_x86_64"
6992 ppc*-*linux*|powerpc*-*linux*)
6993 LD="${LD-ld} -m elf64ppc"
6995 s390*-*linux*|s390*-*tpf*)
6996 LD="${LD-ld} -m elf64_s390"
6998 sparc*-*linux*)
6999 LD="${LD-ld} -m elf64_sparc"
7001 esac
7003 esac
7005 rm -rf conftest*
7008 *-*-sco3.2v5*)
7009 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7010 SAVE_CFLAGS="$CFLAGS"
7011 CFLAGS="$CFLAGS -belf"
7012 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7013 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7014 if test "${lt_cv_cc_needs_belf+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017 ac_ext=c
7018 ac_cpp='$CPP $CPPFLAGS'
7019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7031 main ()
7035 return 0;
7037 _ACEOF
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 lt_cv_cc_needs_belf=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 lt_cv_cc_needs_belf=no
7067 rm -f conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7069 ac_ext=c
7070 ac_cpp='$CPP $CPPFLAGS'
7071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7077 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7078 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7079 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7080 CFLAGS="$SAVE_CFLAGS"
7083 sparc*-*solaris*)
7084 # Find out which ABI we are using.
7085 echo 'int i;' > conftest.$ac_ext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; then
7091 case `/usr/bin/file conftest.o` in
7092 *64-bit*)
7093 case $lt_cv_prog_gnu_ld in
7094 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7095 *) LD="${LD-ld} -64" ;;
7096 esac
7098 esac
7100 rm -rf conftest*
7102 esac
7104 need_locks="$enable_libtool_lock"
7107 for ac_header in dlfcn.h
7109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110 echo "$as_me:$LINENO: checking for $ac_header" >&5
7111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7123 #include <$ac_header>
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 eval "$as_ac_Header=yes"
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 eval "$as_ac_Header=no"
7154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7159 cat >>confdefs.h <<_ACEOF
7160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161 _ACEOF
7165 done
7169 # This can be used to rebuild libtool when needed
7170 LIBTOOL_DEPS="$ltmain"
7172 # Always use our own libtool.
7173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7199 test -z "$LN_S" && LN_S="ln -s"
7214 if test -n "${ZSH_VERSION+set}" ; then
7215 setopt NO_GLOB_SUBST
7218 echo "$as_me:$LINENO: checking for objdir" >&5
7219 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7220 if test "${lt_cv_objdir+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 rm -f .libs 2>/dev/null
7224 mkdir .libs 2>/dev/null
7225 if test -d .libs; then
7226 lt_cv_objdir=.libs
7227 else
7228 # MS-DOS does not allow filenames that begin with a dot.
7229 lt_cv_objdir=_libs
7231 rmdir .libs 2>/dev/null
7233 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7234 echo "${ECHO_T}$lt_cv_objdir" >&6
7235 objdir=$lt_cv_objdir
7241 cat >>confdefs.h <<_ACEOF
7242 #define LT_OBJDIR "$lt_cv_objdir/"
7243 _ACEOF
7261 case $host_os in
7262 aix3*)
7263 # AIX sometimes has problems with the GCC collect2 program. For some
7264 # reason, if we set the COLLECT_NAMES environment variable, the problems
7265 # vanish in a puff of smoke.
7266 if test "X${COLLECT_NAMES+set}" != Xset; then
7267 COLLECT_NAMES=
7268 export COLLECT_NAMES
7271 esac
7273 # Sed substitution that helps us do robust quoting. It backslashifies
7274 # metacharacters that are still active within double-quoted strings.
7275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7277 # Same as above, but do not quote variable references.
7278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7280 # Sed substitution to delay expansion of an escaped shell variable in a
7281 # double_quote_subst'ed string.
7282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7284 # Sed substitution to delay expansion of an escaped single quote.
7285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7287 # Sed substitution to avoid accidental globbing in evaled expressions
7288 no_glob_subst='s/\*/\\\*/g'
7290 # Global variables:
7291 ofile=libtool
7292 can_build_shared=yes
7294 # All known linkers require a `.a' archive for static linking (except MSVC,
7295 # which needs '.lib').
7296 libext=a
7298 with_gnu_ld="$lt_cv_prog_gnu_ld"
7300 old_CC="$CC"
7301 old_CFLAGS="$CFLAGS"
7303 # Set sane defaults for various variables
7304 test -z "$CC" && CC=cc
7305 test -z "$LTCC" && LTCC=$CC
7306 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7307 test -z "$LD" && LD=ld
7308 test -z "$ac_objext" && ac_objext=o
7310 for cc_temp in $compiler""; do
7311 case $cc_temp in
7312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7314 \-*) ;;
7315 *) break;;
7316 esac
7317 done
7318 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7321 # Only perform the check for file, if the check method requires it
7322 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7323 case $deplibs_check_method in
7324 file_magic*)
7325 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7326 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7327 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 case $MAGIC_CMD in
7332 [\\/*] | ?:[\\/]*)
7333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336 lt_save_MAGIC_CMD="$MAGIC_CMD"
7337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339 for ac_dir in $ac_dummy; do
7340 IFS="$lt_save_ifs"
7341 test -z "$ac_dir" && ac_dir=.
7342 if test -f $ac_dir/${ac_tool_prefix}file; then
7343 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7344 if test -n "$file_magic_test_file"; then
7345 case $deplibs_check_method in
7346 "file_magic "*)
7347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350 $EGREP "$file_magic_regex" > /dev/null; then
7352 else
7353 cat <<_LT_EOF 1>&2
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such. This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem. Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7364 _LT_EOF
7365 fi ;;
7366 esac
7368 break
7370 done
7371 IFS="$lt_save_ifs"
7372 MAGIC_CMD="$lt_save_MAGIC_CMD"
7374 esac
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380 echo "${ECHO_T}$MAGIC_CMD" >&6
7381 else
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7390 if test -z "$lt_cv_path_MAGIC_CMD"; then
7391 if test -n "$ac_tool_prefix"; then
7392 echo "$as_me:$LINENO: checking for file" >&5
7393 echo $ECHO_N "checking for file... $ECHO_C" >&6
7394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 case $MAGIC_CMD in
7398 [\\/*] | ?:[\\/]*)
7399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402 lt_save_MAGIC_CMD="$MAGIC_CMD"
7403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405 for ac_dir in $ac_dummy; do
7406 IFS="$lt_save_ifs"
7407 test -z "$ac_dir" && ac_dir=.
7408 if test -f $ac_dir/file; then
7409 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7410 if test -n "$file_magic_test_file"; then
7411 case $deplibs_check_method in
7412 "file_magic "*)
7413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416 $EGREP "$file_magic_regex" > /dev/null; then
7418 else
7419 cat <<_LT_EOF 1>&2
7421 *** Warning: the command libtool uses to detect shared libraries,
7422 *** $file_magic_cmd, produces output that libtool cannot recognize.
7423 *** The result is that libtool may fail to recognize shared libraries
7424 *** as such. This will affect the creation of libtool libraries that
7425 *** depend on shared libraries, but programs linked with such libtool
7426 *** libraries will work regardless of this problem. Nevertheless, you
7427 *** may want to report the problem to your system manager and/or to
7428 *** bug-libtool@gnu.org
7430 _LT_EOF
7431 fi ;;
7432 esac
7434 break
7436 done
7437 IFS="$lt_save_ifs"
7438 MAGIC_CMD="$lt_save_MAGIC_CMD"
7440 esac
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if test -n "$MAGIC_CMD"; then
7445 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7446 echo "${ECHO_T}$MAGIC_CMD" >&6
7447 else
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7453 else
7454 MAGIC_CMD=:
7460 esac
7462 # Use C for the default configuration in the libtool script
7464 lt_save_CC="$CC"
7465 ac_ext=c
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472 # Source file extension for C test sources.
7473 ac_ext=c
7475 # Object file extension for compiled C test sources.
7476 objext=o
7477 objext=$objext
7479 # Code to be used in simple compile tests
7480 lt_simple_compile_test_code="int some_variable = 0;"
7482 # Code to be used in simple link tests
7483 lt_simple_link_test_code='int main(){return(0);}'
7491 # If no C compiler was specified, use CC.
7492 LTCC=${LTCC-"$CC"}
7494 # If no C compiler flags were specified, use CFLAGS.
7495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7497 # Allow CC to be a program name with arguments.
7498 compiler=$CC
7500 # Save the default compiler, since it gets overwritten when the other
7501 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7502 compiler_DEFAULT=$CC
7504 # save warnings/boilerplate of simple test code
7505 ac_outfile=conftest.$ac_objext
7506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508 _lt_compiler_boilerplate=`cat conftest.err`
7509 $RM conftest*
7511 ac_outfile=conftest.$ac_objext
7512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7514 _lt_linker_boilerplate=`cat conftest.err`
7515 $RM conftest*
7518 ## CAVEAT EMPTOR:
7519 ## There is no encapsulation within the following macros, do not change
7520 ## the running order or otherwise move them around unless you know exactly
7521 ## what you are doing...
7522 if test -n "$compiler"; then
7524 lt_prog_compiler_no_builtin_flag=
7526 if test "$GCC" = yes; then
7527 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7529 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 lt_cv_prog_compiler_rtti_exceptions=no
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7537 lt_compiler_flag="-fno-rtti -fno-exceptions"
7538 # Insert the option either (1) after the last *FLAGS variable, or
7539 # (2) before a word containing "conftest.", or (3) at the end.
7540 # Note that $ac_compile itself does not contain backslashes and begins
7541 # with a dollar sign (not a hyphen), so the echo should work correctly.
7542 # The option is referenced via a variable to avoid confusing sed.
7543 lt_compile=`echo "$ac_compile" | $SED \
7544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546 -e 's:$: $lt_compiler_flag:'`
7547 (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548 (eval "$lt_compile" 2>conftest.err)
7549 ac_status=$?
7550 cat conftest.err >&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 if (exit $ac_status) && test -s "$ac_outfile"; then
7553 # The compiler can only warn and ignore the option if not recognized
7554 # So say no if there are warnings other than the usual output.
7555 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558 lt_cv_prog_compiler_rtti_exceptions=yes
7561 $RM conftest*
7564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7569 else
7580 lt_prog_compiler_wl=
7581 lt_prog_compiler_pic=
7582 lt_prog_compiler_static=
7584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7587 if test "$GCC" = yes; then
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_static='-static'
7591 case $host_os in
7592 aix*)
7593 # All AIX code is PIC.
7594 if test "$host_cpu" = ia64; then
7595 # AIX 5 now supports IA64 processor
7596 lt_prog_compiler_static='-Bstatic'
7600 amigaos*)
7601 if test "$host_cpu" = m68k; then
7602 # FIXME: we need at least 68020 code to build shared libraries, but
7603 # adding the `-m68020' flag to GCC prevents building anything better,
7604 # like `-m68040'.
7605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7610 # PIC is the default for these OSes.
7613 mingw* | cygwin* | pw32* | os2*)
7614 # This hack is so that the source file can tell whether it is being
7615 # built for inclusion in a dll (and should export symbols for example).
7616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7617 # (--disable-auto-import) libraries
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7621 darwin* | rhapsody*)
7622 # PIC is the default on this platform
7623 # Common symbols not allowed in MH_DYLIB files
7624 lt_prog_compiler_pic='-fno-common'
7627 hpux*)
7628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7629 # not for PA HP-UX.
7630 case $host_cpu in
7631 hppa*64*|ia64*)
7632 # +Z the default
7635 lt_prog_compiler_pic='-fPIC'
7637 esac
7640 interix[3-9]*)
7641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7642 # Instead, we relocate shared libraries at runtime.
7645 msdosdjgpp*)
7646 # Just because we use GCC doesn't mean we suddenly get shared libraries
7647 # on systems that don't support them.
7648 lt_prog_compiler_can_build_shared=no
7649 enable_shared=no
7652 *nto* | *qnx*)
7653 # QNX uses GNU C++, but need to define -shared option too, otherwise
7654 # it will coredump.
7655 lt_prog_compiler_pic='-fPIC -shared'
7658 sysv4*MP*)
7659 if test -d /usr/nec; then
7660 lt_prog_compiler_pic=-Kconform_pic
7665 lt_prog_compiler_pic='-fPIC'
7667 esac
7668 else
7669 # PORTME Check for flag to pass linker flags through the system compiler.
7670 case $host_os in
7671 aix*)
7672 lt_prog_compiler_wl='-Wl,'
7673 if test "$host_cpu" = ia64; then
7674 # AIX 5 now supports IA64 processor
7675 lt_prog_compiler_static='-Bstatic'
7676 else
7677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7680 darwin*)
7681 # PIC is the default on this platform
7682 # Common symbols not allowed in MH_DYLIB files
7683 case $cc_basename in
7684 xlc*)
7685 lt_prog_compiler_pic='-qnocommon'
7686 lt_prog_compiler_wl='-Wl,'
7688 esac
7691 mingw* | cygwin* | pw32* | os2*)
7692 # This hack is so that the source file can tell whether it is being
7693 # built for inclusion in a dll (and should export symbols for example).
7694 lt_prog_compiler_pic='-DDLL_EXPORT'
7697 hpux9* | hpux10* | hpux11*)
7698 lt_prog_compiler_wl='-Wl,'
7699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700 # not for PA HP-UX.
7701 case $host_cpu in
7702 hppa*64*|ia64*)
7703 # +Z the default
7706 lt_prog_compiler_pic='+Z'
7708 esac
7709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710 lt_prog_compiler_static='${wl}-a ${wl}archive'
7713 irix5* | irix6* | nonstopux*)
7714 lt_prog_compiler_wl='-Wl,'
7715 # PIC (with -KPIC) is the default.
7716 lt_prog_compiler_static='-non_shared'
7719 linux* | k*bsd*-gnu)
7720 case $cc_basename in
7721 icc* | ecc*)
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-static'
7726 pgcc* | pgf77* | pgf90* | pgf95*)
7727 # Portland Group compilers (*not* the Pentium gcc compiler,
7728 # which looks to be a dead project)
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-fpic'
7731 lt_prog_compiler_static='-Bstatic'
7733 ccc*)
7734 lt_prog_compiler_wl='-Wl,'
7735 # All Alpha code is PIC.
7736 lt_prog_compiler_static='-non_shared'
7739 case `$CC -V 2>&1 | sed 5q` in
7740 *Sun\ C*)
7741 # Sun C 5.9
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_wl='-Wl,'
7746 *Sun\ F*)
7747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748 lt_prog_compiler_pic='-KPIC'
7749 lt_prog_compiler_static='-Bstatic'
7750 lt_prog_compiler_wl=''
7752 esac
7754 esac
7757 newsos6)
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7762 *nto* | *qnx*)
7763 # QNX uses GNU C++, but need to define -shared option too, otherwise
7764 # it will coredump.
7765 lt_prog_compiler_pic='-fPIC -shared'
7768 osf3* | osf4* | osf5*)
7769 lt_prog_compiler_wl='-Wl,'
7770 # All OSF/1 code is PIC.
7771 lt_prog_compiler_static='-non_shared'
7774 rdos*)
7775 lt_prog_compiler_static='-non_shared'
7778 solaris*)
7779 lt_prog_compiler_pic='-KPIC'
7780 lt_prog_compiler_static='-Bstatic'
7781 case $cc_basename in
7782 f77* | f90* | f95*)
7783 lt_prog_compiler_wl='-Qoption ld ';;
7785 lt_prog_compiler_wl='-Wl,';;
7786 esac
7789 sunos4*)
7790 lt_prog_compiler_wl='-Qoption ld '
7791 lt_prog_compiler_pic='-PIC'
7792 lt_prog_compiler_static='-Bstatic'
7795 sysv4 | sysv4.2uw2* | sysv4.3*)
7796 lt_prog_compiler_wl='-Wl,'
7797 lt_prog_compiler_pic='-KPIC'
7798 lt_prog_compiler_static='-Bstatic'
7801 sysv4*MP*)
7802 if test -d /usr/nec ;then
7803 lt_prog_compiler_pic='-Kconform_pic'
7804 lt_prog_compiler_static='-Bstatic'
7808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7809 lt_prog_compiler_wl='-Wl,'
7810 lt_prog_compiler_pic='-KPIC'
7811 lt_prog_compiler_static='-Bstatic'
7814 unicos*)
7815 lt_prog_compiler_wl='-Wl,'
7816 lt_prog_compiler_can_build_shared=no
7819 uts4*)
7820 lt_prog_compiler_pic='-pic'
7821 lt_prog_compiler_static='-Bstatic'
7825 lt_prog_compiler_can_build_shared=no
7827 esac
7830 case $host_os in
7831 # For platforms which do not support PIC, -DPIC is meaningless:
7832 *djgpp*)
7833 lt_prog_compiler_pic=
7836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7838 esac
7839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7848 # Check to make sure the PIC flag actually works.
7850 if test -n "$lt_prog_compiler_pic"; then
7851 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7853 if test "${lt_prog_compiler_pic_works+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 lt_prog_compiler_pic_works=no
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7860 # Insert the option either (1) after the last *FLAGS variable, or
7861 # (2) before a word containing "conftest.", or (3) at the end.
7862 # Note that $ac_compile itself does not contain backslashes and begins
7863 # with a dollar sign (not a hyphen), so the echo should work correctly.
7864 # The option is referenced via a variable to avoid confusing sed.
7865 lt_compile=`echo "$ac_compile" | $SED \
7866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7868 -e 's:$: $lt_compiler_flag:'`
7869 (eval echo "\"\$as_me:7869: $lt_compile\"" >&5)
7870 (eval "$lt_compile" 2>conftest.err)
7871 ac_status=$?
7872 cat conftest.err >&5
7873 echo "$as_me:7873: \$? = $ac_status" >&5
7874 if (exit $ac_status) && test -s "$ac_outfile"; then
7875 # The compiler can only warn and ignore the option if not recognized
7876 # So say no if there are warnings other than the usual output.
7877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7880 lt_prog_compiler_pic_works=yes
7883 $RM conftest*
7886 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7887 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7889 if test x"$lt_prog_compiler_pic_works" = xyes; then
7890 case $lt_prog_compiler_pic in
7891 "" | " "*) ;;
7892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7893 esac
7894 else
7895 lt_prog_compiler_pic=
7896 lt_prog_compiler_can_build_shared=no
7907 # Check to make sure the static flag actually works.
7909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7910 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7912 if test "${lt_prog_compiler_static_works+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 lt_prog_compiler_static_works=no
7916 save_LDFLAGS="$LDFLAGS"
7917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7920 # The linker can only warn and ignore the option if not recognized
7921 # So say no if there are warnings
7922 if test -s conftest.err; then
7923 # Append any errors to the config.log.
7924 cat conftest.err 1>&5
7925 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927 if diff conftest.exp conftest.er2 >/dev/null; then
7928 lt_prog_compiler_static_works=yes
7930 else
7931 lt_prog_compiler_static_works=yes
7934 $RM conftest*
7935 LDFLAGS="$save_LDFLAGS"
7938 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7939 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7941 if test x"$lt_prog_compiler_static_works" = xyes; then
7943 else
7944 lt_prog_compiler_static=
7953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 lt_cv_prog_compiler_c_o=no
7959 $RM -r conftest 2>/dev/null
7960 mkdir conftest
7961 cd conftest
7962 mkdir out
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7965 lt_compiler_flag="-o out/conftest2.$ac_objext"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>out/conftest.err)
7976 ac_status=$?
7977 cat out/conftest.err >&5
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7980 then
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings
7983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_c_o=yes
7989 chmod u+w . 2>&5
7990 $RM conftest*
7991 # SGI C++ compiler will create directory out/ii_files/ for
7992 # template instantiation
7993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7994 $RM out/* && rmdir out
7995 cd ..
7996 $RM -r conftest
7997 $RM conftest*
8000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 lt_cv_prog_compiler_c_o=no
8014 $RM -r conftest 2>/dev/null
8015 mkdir conftest
8016 cd conftest
8017 mkdir out
8018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8020 lt_compiler_flag="-o out/conftest2.$ac_objext"
8021 # Insert the option either (1) after the last *FLAGS variable, or
8022 # (2) before a word containing "conftest.", or (3) at the end.
8023 # Note that $ac_compile itself does not contain backslashes and begins
8024 # with a dollar sign (not a hyphen), so the echo should work correctly.
8025 lt_compile=`echo "$ac_compile" | $SED \
8026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028 -e 's:$: $lt_compiler_flag:'`
8029 (eval echo "\"\$as_me:8029: $lt_compile\"" >&5)
8030 (eval "$lt_compile" 2>out/conftest.err)
8031 ac_status=$?
8032 cat out/conftest.err >&5
8033 echo "$as_me:8033: \$? = $ac_status" >&5
8034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8035 then
8036 # The compiler can only warn and ignore the option if not recognized
8037 # So say no if there are warnings
8038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041 lt_cv_prog_compiler_c_o=yes
8044 chmod u+w . 2>&5
8045 $RM conftest*
8046 # SGI C++ compiler will create directory out/ii_files/ for
8047 # template instantiation
8048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8049 $RM out/* && rmdir out
8050 cd ..
8051 $RM -r conftest
8052 $RM conftest*
8055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063 # do not overwrite the value of need_locks provided by the user
8064 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8066 hard_links=yes
8067 $RM conftest*
8068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069 touch conftest.a
8070 ln conftest.a conftest.b 2>&5 || hard_links=no
8071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072 echo "$as_me:$LINENO: result: $hard_links" >&5
8073 echo "${ECHO_T}$hard_links" >&6
8074 if test "$hard_links" = no; then
8075 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8077 need_locks=warn
8079 else
8080 need_locks=no
8088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8091 runpath_var=
8092 allow_undefined_flag=
8093 always_export_symbols=no
8094 archive_cmds=
8095 archive_expsym_cmds=
8096 compiler_needs_object=no
8097 enable_shared_with_static_runtimes=no
8098 export_dynamic_flag_spec=
8099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100 hardcode_automatic=no
8101 hardcode_direct=no
8102 hardcode_direct_absolute=no
8103 hardcode_libdir_flag_spec=
8104 hardcode_libdir_flag_spec_ld=
8105 hardcode_libdir_separator=
8106 hardcode_minus_L=no
8107 hardcode_shlibpath_var=unsupported
8108 inherit_rpath=no
8109 link_all_deplibs=unknown
8110 module_cmds=
8111 module_expsym_cmds=
8112 old_archive_from_new_cmds=
8113 old_archive_from_expsyms_cmds=
8114 thread_safe_flag_spec=
8115 whole_archive_flag_spec=
8116 # include_expsyms should be a list of space-separated symbols to be *always*
8117 # included in the symbol list
8118 include_expsyms=
8119 # exclude_expsyms can be an extended regexp of symbols to exclude
8120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8122 # as well as any symbol that contains `d'.
8123 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8125 # platforms (ab)use it in PIC code, but their linkers get confused if
8126 # the symbol is explicitly referenced. Since portable code cannot
8127 # rely on this symbol name, it's probably fine to never include it in
8128 # preloaded symbol tables.
8129 extract_expsyms_cmds=
8131 case $host_os in
8132 cygwin* | mingw* | pw32*)
8133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8134 # When not using gcc, we currently assume that we are using
8135 # Microsoft Visual C++.
8136 if test "$GCC" != yes; then
8137 with_gnu_ld=no
8140 interix*)
8141 # we just hope/assume this is gcc and not c89 (= MSVC++)
8142 with_gnu_ld=yes
8144 openbsd*)
8145 with_gnu_ld=no
8147 esac
8149 ld_shlibs=yes
8150 if test "$with_gnu_ld" = yes; then
8151 # If archive_cmds runs LD, not CC, wlarc should be empty
8152 wlarc='${wl}'
8154 # Set some defaults for GNU ld with shared library support. These
8155 # are reset later if shared libraries are not supported. Putting them
8156 # here allows them to be overridden if necessary.
8157 runpath_var=LD_RUN_PATH
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 export_dynamic_flag_spec='${wl}--export-dynamic'
8160 # ancient GNU ld didn't support --whole-archive et. al.
8161 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8163 else
8164 whole_archive_flag_spec=
8166 supports_anon_versioning=no
8167 case `$LD -v 2>&1` in
8168 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8169 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8170 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8171 *\ 2.11.*) ;; # other 2.11 versions
8172 *) supports_anon_versioning=yes ;;
8173 esac
8175 # See if GNU ld supports shared libraries.
8176 case $host_os in
8177 aix[3-9]*)
8178 # On AIX/PPC, the GNU linker is very broken
8179 if test "$host_cpu" != ia64; then
8180 ld_shlibs=no
8181 cat <<_LT_EOF 1>&2
8183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8184 *** to be unable to reliably create shared libraries on AIX.
8185 *** Therefore, libtool is disabling shared libraries support. If you
8186 *** really care for shared libraries, you may want to modify your PATH
8187 *** so that a non-GNU linker is found, and then restart.
8189 _LT_EOF
8193 amigaos*)
8194 if test "$host_cpu" = m68k; then
8195 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)'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_minus_L=yes
8200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8201 # that the semantics of dynamic libraries on AmigaOS, at least up
8202 # to version 4, is to share data among multiple programs linked
8203 # with the same dynamic library. Since this doesn't match the
8204 # behavior of shared libraries on other platforms, we can't use
8205 # them.
8206 ld_shlibs=no
8209 beos*)
8210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8211 allow_undefined_flag=unsupported
8212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8213 # support --undefined. This deserves some investigation. FIXME
8214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 else
8216 ld_shlibs=no
8220 cygwin* | mingw* | pw32*)
8221 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8222 # as there is no search path for DLLs.
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 allow_undefined_flag=unsupported
8225 always_export_symbols=no
8226 enable_shared_with_static_runtimes=yes
8227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8231 # If the export-symbols file already is a .def file (1st line
8232 # is EXPORTS), use it as is; otherwise, prepend...
8233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8234 cp $export_symbols $output_objdir/$soname.def;
8235 else
8236 echo EXPORTS > $output_objdir/$soname.def;
8237 cat $export_symbols >> $output_objdir/$soname.def;
8239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8240 else
8241 ld_shlibs=no
8245 interix[3-9]*)
8246 hardcode_direct=no
8247 hardcode_shlibpath_var=no
8248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8249 export_dynamic_flag_spec='${wl}-E'
8250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8251 # Instead, shared libraries are loaded at an image base (0x10000000 by
8252 # default) and relocated if they conflict, which is a slow very memory
8253 # consuming and fragmenting process. To avoid this, we pick a random,
8254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8257 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8260 gnu* | linux* | tpf* | k*bsd*-gnu)
8261 tmp_diet=no
8262 if test "$host_os" = linux-dietlibc; then
8263 case $cc_basename in
8264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8265 esac
8267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8268 && test "$tmp_diet" = no
8269 then
8270 tmp_addflag=
8271 case $cc_basename,$host_cpu in
8272 pgcc*) # Portland Group C compiler
8273 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8274 tmp_addflag=' $pic_flag'
8276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8277 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8278 tmp_addflag=' $pic_flag -Mnomain' ;;
8279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8280 tmp_addflag=' -i_dynamic' ;;
8281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8282 tmp_addflag=' -i_dynamic -nofor_main' ;;
8283 ifc* | ifort*) # Intel Fortran compiler
8284 tmp_addflag=' -nofor_main' ;;
8285 esac
8286 case `$CC -V 2>&1 | sed 5q` in
8287 *Sun\ C*) # Sun C 5.9
8288 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8289 compiler_needs_object=yes
8290 tmp_sharedflag='-G' ;;
8291 *Sun\ F*) # Sun Fortran 8.3
8292 tmp_sharedflag='-G' ;;
8294 tmp_sharedflag='-shared' ;;
8295 esac
8296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 if test "x$supports_anon_versioning" = xyes; then
8299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8301 echo "local: *; };" >> $output_objdir/$libname.ver~
8302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8304 else
8305 ld_shlibs=no
8309 netbsd*)
8310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8311 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8312 wlarc=
8313 else
8314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 solaris*)
8320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8321 ld_shlibs=no
8322 cat <<_LT_EOF 1>&2
8324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8325 *** create shared libraries on Solaris systems. Therefore, libtool
8326 *** is disabling shared libraries support. We urge you to upgrade GNU
8327 *** binutils to release 2.9.1 or newer. Another option is to modify
8328 *** your PATH or compiler configuration so that the native linker is
8329 *** used, and then restart.
8331 _LT_EOF
8332 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335 else
8336 ld_shlibs=no
8340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8341 case `$LD -v 2>&1` in
8342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8343 ld_shlibs=no
8344 cat <<_LT_EOF 1>&2
8346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8347 *** reliably create shared libraries on SCO systems. Therefore, libtool
8348 *** is disabling shared libraries support. We urge you to upgrade GNU
8349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8350 *** your PATH or compiler configuration so that the native linker is
8351 *** used, and then restart.
8353 _LT_EOF
8356 # For security reasons, it is highly recommended that you always
8357 # use absolute paths for naming shared libraries, and exclude the
8358 # DT_RUNPATH tag from executables and libraries. But doing so
8359 # requires that you compile everything twice, which is a pain.
8360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364 else
8365 ld_shlibs=no
8368 esac
8371 sunos4*)
8372 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8373 wlarc=
8374 hardcode_direct=yes
8375 hardcode_shlibpath_var=no
8379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382 else
8383 ld_shlibs=no
8386 esac
8388 if test "$ld_shlibs" = no; then
8389 runpath_var=
8390 hardcode_libdir_flag_spec=
8391 export_dynamic_flag_spec=
8392 whole_archive_flag_spec=
8394 else
8395 # PORTME fill in a description of your system's linker (not GNU ld)
8396 case $host_os in
8397 aix3*)
8398 allow_undefined_flag=unsupported
8399 always_export_symbols=yes
8400 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'
8401 # Note: this linker hardcodes the directories in LIBPATH if there
8402 # are no directories specified by -L.
8403 hardcode_minus_L=yes
8404 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8405 # Neither direct hardcoding nor static linking is supported with a
8406 # broken collect2.
8407 hardcode_direct=unsupported
8411 aix[4-9]*)
8412 if test "$host_cpu" = ia64; then
8413 # On IA64, the linker does run time linking by default, so we don't
8414 # have to do anything special.
8415 aix_use_runtimelinking=no
8416 exp_sym_flag='-Bexport'
8417 no_entry_flag=""
8418 else
8419 # If we're using GNU nm, then we don't want the "-C" option.
8420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8422 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'
8423 else
8424 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'
8426 aix_use_runtimelinking=no
8428 # Test if we are trying to use run time linking or normal
8429 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8430 # need to do runtime linking.
8431 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8432 for ld_flag in $LDFLAGS; do
8433 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8434 aix_use_runtimelinking=yes
8435 break
8437 done
8439 esac
8441 exp_sym_flag='-bexport'
8442 no_entry_flag='-bnoentry'
8445 # When large executables or shared objects are built, AIX ld can
8446 # have problems creating the table of contents. If linking a library
8447 # or program results in "error TOC overflow" add -mminimal-toc to
8448 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8449 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8451 archive_cmds=''
8452 hardcode_direct=yes
8453 hardcode_direct_absolute=yes
8454 hardcode_libdir_separator=':'
8455 link_all_deplibs=yes
8456 file_list_spec='${wl}-f,'
8458 if test "$GCC" = yes; then
8459 case $host_os in aix4.[012]|aix4.[012].*)
8460 # We only want to do this on AIX 4.2 and lower, the check
8461 # below for broken collect2 doesn't work under 4.3+
8462 collect2name=`${CC} -print-prog-name=collect2`
8463 if test -f "$collect2name" &&
8464 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8465 then
8466 # We have reworked collect2
8468 else
8469 # We have old collect2
8470 hardcode_direct=unsupported
8471 # It fails to find uninstalled libraries when the uninstalled
8472 # path is not listed in the libpath. Setting hardcode_minus_L
8473 # to unsupported forces relinking
8474 hardcode_minus_L=yes
8475 hardcode_libdir_flag_spec='-L$libdir'
8476 hardcode_libdir_separator=
8479 esac
8480 shared_flag='-shared'
8481 if test "$aix_use_runtimelinking" = yes; then
8482 shared_flag="$shared_flag "'${wl}-G'
8484 else
8485 # not using gcc
8486 if test "$host_cpu" = ia64; then
8487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8488 # chokes on -Wl,-G. The following line is correct:
8489 shared_flag='-G'
8490 else
8491 if test "$aix_use_runtimelinking" = yes; then
8492 shared_flag='${wl}-G'
8493 else
8494 shared_flag='${wl}-bM:SRE'
8499 # It seems that -bexpall does not export symbols beginning with
8500 # underscore (_), so it is better to generate a list of symbols to export.
8501 always_export_symbols=yes
8502 if test "$aix_use_runtimelinking" = yes; then
8503 # Warning - without using the other runtime loading flags (-brtl),
8504 # -berok will link without error, but may produce a broken library.
8505 allow_undefined_flag='-berok'
8506 # Determine the default libpath from the value encoded in an
8507 # empty executable.
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8516 main ()
8520 return 0;
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8546 lt_aix_libpath_sed='
8547 /Import File Strings/,/^$/ {
8548 /^0/ {
8549 s/^0 *\(.*\)$/\1/
8553 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554 # Check for a 64-bit object if we didn't find anything.
8555 if test -z "$aix_libpath"; then
8556 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8568 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8569 else
8570 if test "$host_cpu" = ia64; then
8571 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8572 allow_undefined_flag="-z nodefs"
8573 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8574 else
8575 # Determine the default libpath from the value encoded in an
8576 # empty executable.
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8585 main ()
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594 (eval $ac_link) 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag"
8602 || test ! -s conftest.err'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; } &&
8608 { ac_try='test -s conftest$ac_exeext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8615 lt_aix_libpath_sed='
8616 /Import File Strings/,/^$/ {
8617 /^0/ {
8618 s/^0 *\(.*\)$/\1/
8622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8623 # Check for a 64-bit object if we didn't find anything.
8624 if test -z "$aix_libpath"; then
8625 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8632 rm -f conftest.err conftest.$ac_objext \
8633 conftest$ac_exeext conftest.$ac_ext
8634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8636 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8637 # Warning - without using the other run time loading flags,
8638 # -berok will link without error, but may produce a broken library.
8639 no_undefined_flag=' ${wl}-bernotok'
8640 allow_undefined_flag=' ${wl}-berok'
8641 # Exported symbols can be pulled into shared objects from archives
8642 whole_archive_flag_spec='$convenience'
8643 archive_cmds_need_lc=yes
8644 # This is similar to how AIX traditionally builds its shared libraries.
8645 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8650 amigaos*)
8651 if test "$host_cpu" = m68k; then
8652 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)'
8653 hardcode_libdir_flag_spec='-L$libdir'
8654 hardcode_minus_L=yes
8656 # see comment about different semantics on the GNU ld section
8657 ld_shlibs=no
8660 bsdi[45]*)
8661 export_dynamic_flag_spec=-rdynamic
8664 cygwin* | mingw* | pw32*)
8665 # When not using gcc, we currently assume that we are using
8666 # Microsoft Visual C++.
8667 # hardcode_libdir_flag_spec is actually meaningless, as there is
8668 # no search path for DLLs.
8669 hardcode_libdir_flag_spec=' '
8670 allow_undefined_flag=unsupported
8671 # Tell ltmain to make .lib files, not .a files.
8672 libext=lib
8673 # Tell ltmain to make .dll files, not .so files.
8674 shrext_cmds=".dll"
8675 # FIXME: Setting linknames here is a bad hack.
8676 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8677 # The linker will automatically build a .lib file if we build a DLL.
8678 old_archive_from_new_cmds='true'
8679 # FIXME: Should let the user specify the lib program.
8680 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8681 fix_srcfile_path='`cygpath -w "$srcfile"`'
8682 enable_shared_with_static_runtimes=yes
8685 darwin* | rhapsody*)
8686 case $host_os in
8687 rhapsody* | darwin1.[012])
8688 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8690 *) # Darwin 1.3 on
8691 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8692 10.[012])
8693 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8695 10.*)
8696 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8698 esac
8700 esac
8701 archive_cmds_need_lc=no
8702 hardcode_direct=no
8703 hardcode_automatic=yes
8704 hardcode_shlibpath_var=unsupported
8705 whole_archive_flag_spec=''
8706 link_all_deplibs=yes
8707 if test "$GCC" = yes ; then
8708 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 lt_cv_apple_cc_single_mod=no
8712 if test -z "${LT_MULTI_MODULE}"; then
8713 # By default we will add the -single_module flag. You can override
8714 # by either setting the environment variable LT_MULTI_MODULE
8715 # non-empty at configure time, or by adding -multi-module to the
8716 # link flags.
8717 echo "int foo(void){return 1;}" > conftest.c
8718 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8719 -dynamiclib ${wl}-single_module conftest.c
8720 if test -f libconftest.dylib; then
8721 lt_cv_apple_cc_single_mod=yes
8722 rm libconftest.dylib
8724 rm conftest.$ac_ext
8728 output_verbose_link_cmd=echo
8729 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8730 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8731 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8732 else
8733 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8734 archive_expsym_cmds='sed "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}'
8736 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8737 module_expsym_cmds='sed -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}'
8738 else
8739 case $cc_basename in
8740 xlc*)
8741 output_verbose_link_cmd=echo
8742 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8743 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8744 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8745 archive_expsym_cmds='sed "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}'
8746 module_expsym_cmds='sed "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}'
8749 ld_shlibs=no
8751 esac
8755 dgux*)
8756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_libdir_flag_spec='-L$libdir'
8758 hardcode_shlibpath_var=no
8761 freebsd1*)
8762 ld_shlibs=no
8765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8766 # support. Future versions do this automatically, but an explicit c++rt0.o
8767 # does not break anything, and helps significantly (at the cost of a little
8768 # extra space).
8769 freebsd2.2*)
8770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8771 hardcode_libdir_flag_spec='-R$libdir'
8772 hardcode_direct=yes
8773 hardcode_shlibpath_var=no
8776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8777 freebsd2*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_direct=yes
8780 hardcode_minus_L=yes
8781 hardcode_shlibpath_var=no
8784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8785 freebsd* | dragonfly*)
8786 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8792 hpux9*)
8793 if test "$GCC" = yes; then
8794 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'
8795 else
8796 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'
8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799 hardcode_libdir_separator=:
8800 hardcode_direct=yes
8802 # hardcode_minus_L: Not really in the search PATH,
8803 # but as the default location of the library.
8804 hardcode_minus_L=yes
8805 export_dynamic_flag_spec='${wl}-E'
8808 hpux10*)
8809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8810 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8811 else
8812 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8814 if test "$with_gnu_ld" = no; then
8815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8816 hardcode_libdir_flag_spec_ld='+b $libdir'
8817 hardcode_libdir_separator=:
8818 hardcode_direct=yes
8819 hardcode_direct_absolute=yes
8820 export_dynamic_flag_spec='${wl}-E'
8821 # hardcode_minus_L: Not really in the search PATH,
8822 # but as the default location of the library.
8823 hardcode_minus_L=yes
8827 hpux11*)
8828 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8829 case $host_cpu in
8830 hppa*64*)
8831 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 ia64*)
8834 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8837 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8839 esac
8840 else
8841 case $host_cpu in
8842 hppa*64*)
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 ia64*)
8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 esac
8853 if test "$with_gnu_ld" = no; then
8854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8855 hardcode_libdir_separator=:
8857 case $host_cpu in
8858 hppa*64*|ia64*)
8859 hardcode_direct=no
8860 hardcode_shlibpath_var=no
8863 hardcode_direct=yes
8864 hardcode_direct_absolute=yes
8865 export_dynamic_flag_spec='${wl}-E'
8867 # hardcode_minus_L: Not really in the search PATH,
8868 # but as the default location of the library.
8869 hardcode_minus_L=yes
8871 esac
8875 irix5* | irix6* | nonstopux*)
8876 if test "$GCC" = yes; then
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8878 # Try to use the -exported_symbol ld option, if it does not
8879 # work, assume that -exports_file does not work either and
8880 # implicitly export all symbols.
8881 save_LDFLAGS="$LDFLAGS"
8882 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8883 cat >conftest.$ac_ext <<_ACEOF
8884 int foo(void) {}
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LDFLAGS="$save_LDFLAGS"
8918 else
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8922 archive_cmds_need_lc='no'
8923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924 hardcode_libdir_separator=:
8925 inherit_rpath=yes
8926 link_all_deplibs=yes
8929 netbsd*)
8930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8932 else
8933 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8935 hardcode_libdir_flag_spec='-R$libdir'
8936 hardcode_direct=yes
8937 hardcode_shlibpath_var=no
8940 newsos6)
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_direct=yes
8943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944 hardcode_libdir_separator=:
8945 hardcode_shlibpath_var=no
8948 *nto* | *qnx*)
8951 openbsd*)
8952 hardcode_direct=yes
8953 hardcode_shlibpath_var=no
8954 hardcode_direct_absolute=yes
8955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8959 export_dynamic_flag_spec='${wl}-E'
8960 else
8961 case $host_os in
8962 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8964 hardcode_libdir_flag_spec='-R$libdir'
8967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8970 esac
8974 os2*)
8975 hardcode_libdir_flag_spec='-L$libdir'
8976 hardcode_minus_L=yes
8977 allow_undefined_flag=unsupported
8978 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'
8979 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8982 osf3*)
8983 if test "$GCC" = yes; then
8984 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8985 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8986 else
8987 allow_undefined_flag=' -expect_unresolved \*'
8988 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8990 archive_cmds_need_lc='no'
8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992 hardcode_libdir_separator=:
8995 osf4* | osf5*) # as osf3* with the addition of -msym flag
8996 if test "$GCC" = yes; then
8997 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8998 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 else
9001 allow_undefined_flag=' -expect_unresolved \*'
9002 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9003 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9004 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9006 # Both c and cxx compiler support -rpath directly
9007 hardcode_libdir_flag_spec='-rpath $libdir'
9009 archive_cmds_need_lc='no'
9010 hardcode_libdir_separator=:
9013 solaris*)
9014 no_undefined_flag=' -z defs'
9015 if test "$GCC" = yes; then
9016 wlarc='${wl}'
9017 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9019 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9020 else
9021 case `$CC -V 2>&1` in
9022 *"Compilers 5.0"*)
9023 wlarc=''
9024 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9029 wlarc='${wl}'
9030 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9031 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9032 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9034 esac
9036 hardcode_libdir_flag_spec='-R$libdir'
9037 hardcode_shlibpath_var=no
9038 case $host_os in
9039 solaris2.[0-5] | solaris2.[0-5].*) ;;
9041 # The compiler driver will combine and reorder linker options,
9042 # but understands `-z linker_flag'. GCC discards it without `$wl',
9043 # but is careful enough not to reorder.
9044 # Supported since Solaris 2.6 (maybe 2.5.1?)
9045 if test "$GCC" = yes; then
9046 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9047 else
9048 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9051 esac
9052 link_all_deplibs=yes
9055 sunos4*)
9056 if test "x$host_vendor" = xsequent; then
9057 # Use $CC to link under sequent, because it throws in some extra .o
9058 # files that make .init and .fini sections work.
9059 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9060 else
9061 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_libdir_flag_spec='-L$libdir'
9064 hardcode_direct=yes
9065 hardcode_minus_L=yes
9066 hardcode_shlibpath_var=no
9069 sysv4)
9070 case $host_vendor in
9071 sni)
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_direct=yes # is this really true???
9075 siemens)
9076 ## LD is ld it makes a PLAMLIB
9077 ## CC just makes a GrossModule.
9078 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9079 reload_cmds='$CC -r -o $output$reload_objs'
9080 hardcode_direct=no
9082 motorola)
9083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9086 esac
9087 runpath_var='LD_RUN_PATH'
9088 hardcode_shlibpath_var=no
9091 sysv4.3*)
9092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093 hardcode_shlibpath_var=no
9094 export_dynamic_flag_spec='-Bexport'
9097 sysv4*MP*)
9098 if test -d /usr/nec; then
9099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_shlibpath_var=no
9101 runpath_var=LD_RUN_PATH
9102 hardcode_runpath_var=yes
9103 ld_shlibs=yes
9107 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9108 no_undefined_flag='${wl}-z,text'
9109 archive_cmds_need_lc=no
9110 hardcode_shlibpath_var=no
9111 runpath_var='LD_RUN_PATH'
9113 if test "$GCC" = yes; then
9114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 else
9117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 sysv5* | sco3.2v5* | sco5v6*)
9123 # Note: We can NOT use -z defs as we might desire, because we do not
9124 # link with -lc, and that would cause any symbols used from libc to
9125 # always be unresolved, which means just about no library would
9126 # ever link correctly. If we're not using GNU ld we use -z text
9127 # though, which does catch some bad symbols but isn't as heavy-handed
9128 # as -z defs.
9129 no_undefined_flag='${wl}-z,text'
9130 allow_undefined_flag='${wl}-z,nodefs'
9131 archive_cmds_need_lc=no
9132 hardcode_shlibpath_var=no
9133 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9134 hardcode_libdir_separator=':'
9135 link_all_deplibs=yes
9136 export_dynamic_flag_spec='${wl}-Bexport'
9137 runpath_var='LD_RUN_PATH'
9139 if test "$GCC" = yes; then
9140 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 else
9143 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 uts4*)
9149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150 hardcode_libdir_flag_spec='-L$libdir'
9151 hardcode_shlibpath_var=no
9155 ld_shlibs=no
9157 esac
9159 if test x$host_vendor = xsni; then
9160 case $host in
9161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9162 export_dynamic_flag_spec='${wl}-Blargedynsym'
9164 esac
9168 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9169 echo "${ECHO_T}$ld_shlibs" >&6
9170 test "$ld_shlibs" = no && can_build_shared=no
9172 with_gnu_ld=$with_gnu_ld
9189 # Do we need to explicitly link libc?
9191 case "x$archive_cmds_need_lc" in
9192 x|xyes)
9193 # Assume -lc should be added
9194 archive_cmds_need_lc=yes
9196 if test "$enable_shared" = yes && test "$GCC" = yes; then
9197 case $archive_cmds in
9198 *'~'*)
9199 # FIXME: we may have to deal with multi-command sequences.
9201 '$CC '*)
9202 # Test whether the compiler implicitly links with -lc since on some
9203 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9204 # to ld, don't add -lc before -lgcc.
9205 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9206 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9207 $RM conftest*
9208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } 2>conftest.err; then
9215 soname=conftest
9216 lib=conftest
9217 libobjs=conftest.$ac_objext
9218 deplibs=
9219 wl=$lt_prog_compiler_wl
9220 pic_flag=$lt_prog_compiler_pic
9221 compiler_flags=-v
9222 linker_flags=-v
9223 verstring=
9224 output_objdir=.
9225 libname=conftest
9226 lt_save_allow_undefined_flag=$allow_undefined_flag
9227 allow_undefined_flag=
9228 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9229 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }
9233 then
9234 archive_cmds_need_lc=no
9235 else
9236 archive_cmds_need_lc=yes
9238 allow_undefined_flag=$lt_save_allow_undefined_flag
9239 else
9240 cat conftest.err 1>&5
9242 $RM conftest*
9243 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9244 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9246 esac
9249 esac
9407 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9409 withGCC=$GCC
9410 if test "$withGCC" = yes; then
9411 case $host_os in
9412 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9413 *) lt_awk_arg="/^libraries:/" ;;
9414 esac
9415 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9416 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9417 # if the path contains ";" then we assume it to be the separator
9418 # otherwise default to the standard path separator (i.e. ":") - it is
9419 # assumed that no part of a normal pathname contains ";" but that should
9420 # okay in the real world where ";" in dirpaths is itself problematic.
9421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9422 else
9423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9425 # Ok, now we have the path, separated by spaces, we can step through it
9426 # and add multilib dir if necessary.
9427 lt_tmp_lt_search_path_spec=
9428 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9429 for lt_sys_path in $lt_search_path_spec; do
9430 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9431 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9432 else
9433 test -d "$lt_sys_path" && \
9434 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9436 done
9437 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9438 BEGIN {RS=" "; FS="/|\n";} {
9439 lt_foo="";
9440 lt_count=0;
9441 for (lt_i = NF; lt_i > 0; lt_i--) {
9442 if ($lt_i != "" && $lt_i != ".") {
9443 if ($lt_i == "..") {
9444 lt_count++;
9445 } else {
9446 if (lt_count == 0) {
9447 lt_foo="/" $lt_i lt_foo;
9448 } else {
9449 lt_count--;
9454 if (lt_foo != "") { lt_freq[lt_foo]++; }
9455 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9457 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9458 else
9459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9461 library_names_spec=
9462 libname_spec='lib$name'
9463 soname_spec=
9464 shrext_cmds=".so"
9465 postinstall_cmds=
9466 postuninstall_cmds=
9467 finish_cmds=
9468 finish_eval=
9469 shlibpath_var=
9470 shlibpath_overrides_runpath=unknown
9471 version_type=none
9472 dynamic_linker="$host_os ld.so"
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9474 need_lib_prefix=unknown
9475 hardcode_into_libs=no
9477 # when you set need_version to no, make sure it does not cause -set_version
9478 # flags to be left without arguments
9479 need_version=unknown
9481 case $host_os in
9482 aix3*)
9483 version_type=linux
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9485 shlibpath_var=LIBPATH
9487 # AIX 3 has no versioning support, so we append a major version to the name.
9488 soname_spec='${libname}${release}${shared_ext}$major'
9491 aix[4-9]*)
9492 version_type=linux
9493 need_lib_prefix=no
9494 need_version=no
9495 hardcode_into_libs=yes
9496 if test "$host_cpu" = ia64; then
9497 # AIX 5 supports IA64
9498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 else
9501 # With GCC up to 2.95.x, collect2 would create an import file
9502 # for dependence libraries. The import file would start with
9503 # the line `#! .'. This would cause the generated library to
9504 # depend on `.', always an invalid library. This was fixed in
9505 # development snapshots of GCC prior to 3.0.
9506 case $host_os in
9507 aix4 | aix4.[01] | aix4.[01].*)
9508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9509 echo ' yes '
9510 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9512 else
9513 can_build_shared=no
9516 esac
9517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9518 # soname into executable. Probably we can add versioning support to
9519 # collect2, so additional links can be useful in future.
9520 if test "$aix_use_runtimelinking" = yes; then
9521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9522 # instead of lib<name>.a to let people know that these are not
9523 # typical AIX shared libraries.
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 else
9526 # We preserve .a as extension for shared libraries through AIX4.2
9527 # and later when we are not doing run time linking.
9528 library_names_spec='${libname}${release}.a $libname.a'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LIBPATH
9535 amigaos*)
9536 if test "$host_cpu" = m68k; then
9537 library_names_spec='$libname.ixlibrary $libname.a'
9538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9539 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'
9540 else
9541 dynamic_linker=no
9545 beos*)
9546 library_names_spec='${libname}${shared_ext}'
9547 dynamic_linker="$host_os ld.so"
9548 shlibpath_var=LIBRARY_PATH
9551 bsdi[45]*)
9552 version_type=linux
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 $libdir'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9560 # the default ld.so.conf also contains /usr/contrib/lib and
9561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9562 # libtool to hard-code these into programs
9565 cygwin* | mingw* | pw32*)
9566 version_type=windows
9567 shrext_cmds=".dll"
9568 need_version=no
9569 need_lib_prefix=no
9571 case $withGCC,$host_os in
9572 yes,cygwin* | yes,mingw* | yes,pw32*)
9573 library_names_spec='$libname.dll.a'
9574 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9575 postinstall_cmds='base_file=`basename \${file}`~
9576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9577 dldir=$destdir/`dirname \$dlpath`~
9578 test -d \$dldir || mkdir -p \$dldir~
9579 $install_prog $dir/$dlname \$dldir/$dlname~
9580 chmod a+x \$dldir/$dlname~
9581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9585 dlpath=$dir/\$dldll~
9586 $RM \$dlpath'
9587 shlibpath_overrides_runpath=yes
9589 case $host_os in
9590 cygwin*)
9591 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9593 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9595 mingw*)
9596 # MinGW DLLs use traditional 'lib' prefix
9597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9598 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9599 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9600 # It is most probably a Windows format PATH printed by
9601 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9602 # path with ; separators, and with drive letters. We can handle the
9603 # drive letters (cygwin fileutils understands them), so leave them,
9604 # especially as we might pass files found there to a mingw objdump,
9605 # which wouldn't understand a cygwinified path. Ahh.
9606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9607 else
9608 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9611 pw32*)
9612 # pw32 DLLs use 'pw' prefix rather than 'lib'
9613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9615 esac
9619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9621 esac
9622 dynamic_linker='Win32 ld.exe'
9623 # FIXME: first we should search . and the directory the executable is in
9624 shlibpath_var=PATH
9627 darwin* | rhapsody*)
9628 dynamic_linker="$host_os dyld"
9629 version_type=darwin
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9633 soname_spec='${libname}${release}${major}$shared_ext'
9634 shlibpath_overrides_runpath=yes
9635 shlibpath_var=DYLD_LIBRARY_PATH
9636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9638 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9639 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9642 dgux*)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9651 freebsd1*)
9652 dynamic_linker=no
9655 freebsd* | dragonfly*)
9656 # DragonFly does not have aout. When/if they implement a new
9657 # versioning mechanism, adjust this.
9658 if test -x /usr/bin/objformat; then
9659 objformat=`/usr/bin/objformat`
9660 else
9661 case $host_os in
9662 freebsd[123]*) objformat=aout ;;
9663 *) objformat=elf ;;
9664 esac
9666 version_type=freebsd-$objformat
9667 case $version_type in
9668 freebsd-elf*)
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9670 need_version=no
9671 need_lib_prefix=no
9673 freebsd-*)
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9675 need_version=yes
9677 esac
9678 shlibpath_var=LD_LIBRARY_PATH
9679 case $host_os in
9680 freebsd2*)
9681 shlibpath_overrides_runpath=yes
9683 freebsd3.[01]* | freebsdelf3.[01]*)
9684 shlibpath_overrides_runpath=yes
9685 hardcode_into_libs=yes
9687 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9688 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9692 *) # from 4.6 on, and DragonFly
9693 shlibpath_overrides_runpath=yes
9694 hardcode_into_libs=yes
9696 esac
9699 gnu*)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 hardcode_into_libs=yes
9709 hpux9* | hpux10* | hpux11*)
9710 # Give a soname corresponding to the major version so that dld.sl refuses to
9711 # link against other versions.
9712 version_type=sunos
9713 need_lib_prefix=no
9714 need_version=no
9715 case $host_cpu in
9716 ia64*)
9717 shrext_cmds='.so'
9718 hardcode_into_libs=yes
9719 dynamic_linker="$host_os dld.so"
9720 shlibpath_var=LD_LIBRARY_PATH
9721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 if test "X$HPUX_IA64_MODE" = X32; then
9725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9726 else
9727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9731 hppa*64*)
9732 shrext_cmds='.sl'
9733 hardcode_into_libs=yes
9734 dynamic_linker="$host_os dld.sl"
9735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9743 shrext_cmds='.sl'
9744 dynamic_linker="$host_os dld.sl"
9745 shlibpath_var=SHLIB_PATH
9746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748 soname_spec='${libname}${release}${shared_ext}$major'
9750 esac
9751 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9752 postinstall_cmds='chmod 555 $lib'
9755 interix[3-9]*)
9756 version_type=linux
9757 need_lib_prefix=no
9758 need_version=no
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=no
9764 hardcode_into_libs=yes
9767 irix5* | irix6* | nonstopux*)
9768 case $host_os in
9769 nonstopux*) version_type=nonstopux ;;
9771 if test "$lt_cv_prog_gnu_ld" = yes; then
9772 version_type=linux
9773 else
9774 version_type=irix
9775 fi ;;
9776 esac
9777 need_lib_prefix=no
9778 need_version=no
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9781 case $host_os in
9782 irix5* | nonstopux*)
9783 libsuff= shlibsuff=
9786 case $LD in # libtool.m4 will add one of these switches to LD
9787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9788 libsuff= shlibsuff= libmagic=32-bit;;
9789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9790 libsuff=32 shlibsuff=N32 libmagic=N32;;
9791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9793 *) libsuff= shlibsuff= libmagic=never-match;;
9794 esac
9796 esac
9797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9798 shlibpath_overrides_runpath=no
9799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9801 hardcode_into_libs=yes
9804 # No shared lib support for Linux oldld, aout, or coff.
9805 linux*oldld* | linux*aout* | linux*coff*)
9806 dynamic_linker=no
9809 # This must be Linux ELF.
9810 linux* | k*bsd*-gnu)
9811 version_type=linux
9812 need_lib_prefix=no
9813 need_version=no
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=no
9819 # Some binutils ld are patched to set DT_RUNPATH
9820 save_LDFLAGS=$LDFLAGS
9821 save_libdir=$libdir
9822 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9823 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9832 main ()
9836 return 0;
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9862 shlibpath_overrides_runpath=yes
9865 else
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9870 rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LDFLAGS=$save_LDFLAGS
9873 libdir=$save_libdir
9875 # This implies no fast_install, which is unacceptable.
9876 # Some rework will be needed to allow for fast_install
9877 # before this can be enabled.
9878 hardcode_into_libs=yes
9880 # Append ld.so.conf contents to the search path
9881 if test -f /etc/ld.so.conf; then
9882 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9883 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9886 # We used to test for /lib/ld.so.1 and disable shared libraries on
9887 # powerpc, because MkLinux only supported shared libraries with the
9888 # GNU dynamic linker. Since this was broken with cross compilers,
9889 # most powerpc-linux boxes support dynamic linking these days and
9890 # people can always --disable-shared, the test was removed, and we
9891 # assume the GNU/Linux dynamic linker is in use.
9892 dynamic_linker='GNU/Linux ld.so'
9895 netbsd*)
9896 version_type=sunos
9897 need_lib_prefix=no
9898 need_version=no
9899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9902 dynamic_linker='NetBSD (a.out) ld.so'
9903 else
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 dynamic_linker='NetBSD ld.elf_so'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 shlibpath_overrides_runpath=yes
9910 hardcode_into_libs=yes
9913 newsos6)
9914 version_type=linux
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9920 *nto* | *qnx*)
9921 version_type=qnx
9922 need_lib_prefix=no
9923 need_version=no
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=no
9928 hardcode_into_libs=yes
9929 dynamic_linker='ldqnx.so'
9932 openbsd*)
9933 version_type=sunos
9934 sys_lib_dlsearch_path_spec="/usr/lib"
9935 need_lib_prefix=no
9936 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9937 case $host_os in
9938 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9939 *) need_version=no ;;
9940 esac
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9945 case $host_os in
9946 openbsd2.[89] | openbsd2.[89].*)
9947 shlibpath_overrides_runpath=no
9950 shlibpath_overrides_runpath=yes
9952 esac
9953 else
9954 shlibpath_overrides_runpath=yes
9958 os2*)
9959 libname_spec='$name'
9960 shrext_cmds=".dll"
9961 need_lib_prefix=no
9962 library_names_spec='$libname${shared_ext} $libname.a'
9963 dynamic_linker='OS/2 ld.exe'
9964 shlibpath_var=LIBPATH
9967 osf3* | osf4* | osf5*)
9968 version_type=osf
9969 need_lib_prefix=no
9970 need_version=no
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9978 rdos*)
9979 dynamic_linker=no
9982 solaris*)
9983 version_type=linux
9984 need_lib_prefix=no
9985 need_version=no
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987 soname_spec='${libname}${release}${shared_ext}$major'
9988 shlibpath_var=LD_LIBRARY_PATH
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9991 # ldd complains unless libraries are executable
9992 postinstall_cmds='chmod +x $lib'
9995 sunos4*)
9996 version_type=sunos
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 shlibpath_overrides_runpath=yes
10001 if test "$with_gnu_ld" = yes; then
10002 need_lib_prefix=no
10004 need_version=yes
10007 sysv4 | sysv4.3*)
10008 version_type=linux
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 case $host_vendor in
10013 sni)
10014 shlibpath_overrides_runpath=no
10015 need_lib_prefix=no
10016 runpath_var=LD_RUN_PATH
10018 siemens)
10019 need_lib_prefix=no
10021 motorola)
10022 need_lib_prefix=no
10023 need_version=no
10024 shlibpath_overrides_runpath=no
10025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10027 esac
10030 sysv4*MP*)
10031 if test -d /usr/nec ;then
10032 version_type=linux
10033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10034 soname_spec='$libname${shared_ext}.$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10040 version_type=freebsd-elf
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes
10047 hardcode_into_libs=yes
10048 if test "$with_gnu_ld" = yes; then
10049 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10050 else
10051 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10052 case $host_os in
10053 sco3.2v5*)
10054 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10056 esac
10058 sys_lib_dlsearch_path_spec='/usr/lib'
10061 tpf*)
10062 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10063 version_type=linux
10064 need_lib_prefix=no
10065 need_version=no
10066 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=no
10069 hardcode_into_libs=yes
10072 uts4*)
10073 version_type=linux
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10080 dynamic_linker=no
10082 esac
10083 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10084 echo "${ECHO_T}$dynamic_linker" >&6
10085 test "$dynamic_linker" = no && can_build_shared=no
10087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10088 if test "$GCC" = yes; then
10089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10178 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10179 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10180 hardcode_action=
10181 if test -n "$hardcode_libdir_flag_spec" ||
10182 test -n "$runpath_var" ||
10183 test "X$hardcode_automatic" = "Xyes" ; then
10185 # We can hardcode non-existent directories.
10186 if test "$hardcode_direct" != no &&
10187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10188 # have to relink, otherwise we might link with an installed library
10189 # when we should be linking with a yet-to-be-installed one
10190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10191 test "$hardcode_minus_L" != no; then
10192 # Linking always hardcodes the temporary library directory.
10193 hardcode_action=relink
10194 else
10195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10196 hardcode_action=immediate
10198 else
10199 # We cannot hardcode anything, or else we can only hardcode existing
10200 # directories.
10201 hardcode_action=unsupported
10203 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10204 echo "${ECHO_T}$hardcode_action" >&6
10206 if test "$hardcode_action" = relink ||
10207 test "$inherit_rpath" = yes; then
10208 # Fast installation is not supported
10209 enable_fast_install=no
10210 elif test "$shlibpath_overrides_runpath" = yes ||
10211 test "$enable_shared" = no; then
10212 # Fast installation is not necessary
10213 enable_fast_install=needless
10221 if test "x$enable_dlopen" != xyes; then
10222 enable_dlopen=unknown
10223 enable_dlopen_self=unknown
10224 enable_dlopen_self_static=unknown
10225 else
10226 lt_cv_dlopen=no
10227 lt_cv_dlopen_libs=
10229 case $host_os in
10230 beos*)
10231 lt_cv_dlopen="load_add_on"
10232 lt_cv_dlopen_libs=
10233 lt_cv_dlopen_self=yes
10236 mingw* | pw32*)
10237 lt_cv_dlopen="LoadLibrary"
10238 lt_cv_dlopen_libs=
10241 cygwin*)
10242 lt_cv_dlopen="dlopen"
10243 lt_cv_dlopen_libs=
10246 darwin*)
10247 # if libdl is installed we need to link against it
10248 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253 ac_check_lib_save_LIBS=$LIBS
10254 LIBS="-ldl $LIBS"
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h. */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10262 /* Override any gcc2 internal prototype to avoid an error. */
10263 #ifdef __cplusplus
10264 extern "C"
10265 #endif
10266 /* We use char because int might match the return type of a gcc2
10267 builtin and then its argument prototype would still apply. */
10268 char dlopen ();
10270 main ()
10272 dlopen ();
10274 return 0;
10276 _ACEOF
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_lib_dl_dlopen=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_lib_dl_dlopen=no
10306 rm -f conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10312 if test $ac_cv_lib_dl_dlopen = yes; then
10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10314 else
10316 lt_cv_dlopen="dyld"
10317 lt_cv_dlopen_libs=
10318 lt_cv_dlopen_self=yes
10325 echo "$as_me:$LINENO: checking for shl_load" >&5
10326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10327 if test "${ac_cv_func_shl_load+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h. */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10338 #define shl_load innocuous_shl_load
10340 /* System header to define __stub macros and hopefully few prototypes,
10341 which can conflict with char shl_load (); below.
10342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10343 <limits.h> exists even on freestanding compilers. */
10345 #ifdef __STDC__
10346 # include <limits.h>
10347 #else
10348 # include <assert.h>
10349 #endif
10351 #undef shl_load
10353 /* Override any gcc2 internal prototype to avoid an error. */
10354 #ifdef __cplusplus
10355 extern "C"
10357 #endif
10358 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10360 char shl_load ();
10361 /* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10365 choke me
10366 #else
10367 char (*f) () = shl_load;
10368 #endif
10369 #ifdef __cplusplus
10371 #endif
10374 main ()
10376 return f != shl_load;
10378 return 0;
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_cv_func_shl_load=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_cv_func_shl_load=no
10410 rm -f conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10413 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10415 if test $ac_cv_func_shl_load = yes; then
10416 lt_cv_dlopen="shl_load"
10417 else
10418 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 ac_check_lib_save_LIBS=$LIBS
10424 LIBS="-ldld $LIBS"
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10432 /* Override any gcc2 internal prototype to avoid an error. */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 /* We use char because int might match the return type of a gcc2
10437 builtin and then its argument prototype would still apply. */
10438 char shl_load ();
10440 main ()
10442 shl_load ();
10444 return 0;
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag"
10457 || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest$ac_exeext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_lib_dld_shl_load=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_lib_dld_shl_load=no
10476 rm -f conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 LIBS=$ac_check_lib_save_LIBS
10480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10481 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10482 if test $ac_cv_lib_dld_shl_load = yes; then
10483 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10484 else
10485 echo "$as_me:$LINENO: checking for dlopen" >&5
10486 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10487 if test "${ac_cv_func_dlopen+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10498 #define dlopen innocuous_dlopen
10500 /* System header to define __stub macros and hopefully few prototypes,
10501 which can conflict with char dlopen (); below.
10502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10503 <limits.h> exists even on freestanding compilers. */
10505 #ifdef __STDC__
10506 # include <limits.h>
10507 #else
10508 # include <assert.h>
10509 #endif
10511 #undef dlopen
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 #ifdef __cplusplus
10515 extern "C"
10517 #endif
10518 /* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10520 char dlopen ();
10521 /* The GNU C library defines this for functions which it implements
10522 to always fail with ENOSYS. Some functions are actually named
10523 something starting with __ and the normal name is an alias. */
10524 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10525 choke me
10526 #else
10527 char (*f) () = dlopen;
10528 #endif
10529 #ifdef __cplusplus
10531 #endif
10534 main ()
10536 return f != dlopen;
10538 return 0;
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_func_dlopen=yes
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_cv_func_dlopen=no
10570 rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10573 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10574 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10575 if test $ac_cv_func_dlopen = yes; then
10576 lt_cv_dlopen="dlopen"
10577 else
10578 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10579 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583 ac_check_lib_save_LIBS=$LIBS
10584 LIBS="-ldl $LIBS"
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10592 /* Override any gcc2 internal prototype to avoid an error. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 /* We use char because int might match the return type of a gcc2
10597 builtin and then its argument prototype would still apply. */
10598 char dlopen ();
10600 main ()
10602 dlopen ();
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>conftest.er1
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag"
10617 || test ! -s conftest.err'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; } &&
10623 { ac_try='test -s conftest$ac_exeext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_cv_lib_dl_dlopen=yes
10630 else
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_cv_lib_dl_dlopen=no
10636 rm -f conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10642 if test $ac_cv_lib_dl_dlopen = yes; then
10643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10644 else
10645 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650 ac_check_lib_save_LIBS=$LIBS
10651 LIBS="-lsvld $LIBS"
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10665 char dlopen ();
10667 main ()
10669 dlopen ();
10671 return 0;
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag"
10684 || test ! -s conftest.err'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_cv_lib_svld_dlopen=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_cv_lib_svld_dlopen=no
10703 rm -f conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10707 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10708 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10709 if test $ac_cv_lib_svld_dlopen = yes; then
10710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10711 else
10712 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10713 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10714 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldld $LIBS"
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10726 /* Override any gcc2 internal prototype to avoid an error. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10732 char dld_link ();
10734 main ()
10736 dld_link ();
10738 return 0;
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743 (eval $ac_link) 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag"
10751 || test ! -s conftest.err'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_cv_lib_dld_dld_link=yes
10764 else
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_lib_dld_dld_link=no
10770 rm -f conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10775 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10776 if test $ac_cv_lib_dld_dld_link = yes; then
10777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10796 esac
10798 if test "x$lt_cv_dlopen" != xno; then
10799 enable_dlopen=yes
10800 else
10801 enable_dlopen=no
10804 case $lt_cv_dlopen in
10805 dlopen)
10806 save_CPPFLAGS="$CPPFLAGS"
10807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10809 save_LDFLAGS="$LDFLAGS"
10810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10812 save_LIBS="$LIBS"
10813 LIBS="$lt_cv_dlopen_libs $LIBS"
10815 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10816 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10817 if test "${lt_cv_dlopen_self+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 if test "$cross_compiling" = yes; then :
10821 lt_cv_dlopen_self=cross
10822 else
10823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10824 lt_status=$lt_dlunknown
10825 cat > conftest.$ac_ext <<_LT_EOF
10826 #line 10826 "configure"
10827 #include "confdefs.h"
10829 #if HAVE_DLFCN_H
10830 #include <dlfcn.h>
10831 #endif
10833 #include <stdio.h>
10835 #ifdef RTLD_GLOBAL
10836 # define LT_DLGLOBAL RTLD_GLOBAL
10837 #else
10838 # ifdef DL_GLOBAL
10839 # define LT_DLGLOBAL DL_GLOBAL
10840 # else
10841 # define LT_DLGLOBAL 0
10842 # endif
10843 #endif
10845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10846 find out it does not work in some platform. */
10847 #ifndef LT_DLLAZY_OR_NOW
10848 # ifdef RTLD_LAZY
10849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10850 # else
10851 # ifdef DL_LAZY
10852 # define LT_DLLAZY_OR_NOW DL_LAZY
10853 # else
10854 # ifdef RTLD_NOW
10855 # define LT_DLLAZY_OR_NOW RTLD_NOW
10856 # else
10857 # ifdef DL_NOW
10858 # define LT_DLLAZY_OR_NOW DL_NOW
10859 # else
10860 # define LT_DLLAZY_OR_NOW 0
10861 # endif
10862 # endif
10863 # endif
10864 # endif
10865 #endif
10867 #ifdef __cplusplus
10868 extern "C" void exit (int);
10869 #endif
10871 void fnord() { int i=42;}
10872 int main ()
10874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10875 int status = $lt_dlunknown;
10877 if (self)
10879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10881 /* dlclose (self); */
10883 else
10884 puts (dlerror ());
10886 exit (status);
10888 _LT_EOF
10889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890 (eval $ac_link) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10894 (./conftest; exit; ) >&5 2>/dev/null
10895 lt_status=$?
10896 case x$lt_status in
10897 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10898 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10899 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10900 esac
10901 else :
10902 # compilation failed
10903 lt_cv_dlopen_self=no
10906 rm -fr conftest*
10910 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10911 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10913 if test "x$lt_cv_dlopen_self" = xyes; then
10914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10915 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10916 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10917 if test "${lt_cv_dlopen_self_static+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 if test "$cross_compiling" = yes; then :
10921 lt_cv_dlopen_self_static=cross
10922 else
10923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10924 lt_status=$lt_dlunknown
10925 cat > conftest.$ac_ext <<_LT_EOF
10926 #line 10926 "configure"
10927 #include "confdefs.h"
10929 #if HAVE_DLFCN_H
10930 #include <dlfcn.h>
10931 #endif
10933 #include <stdio.h>
10935 #ifdef RTLD_GLOBAL
10936 # define LT_DLGLOBAL RTLD_GLOBAL
10937 #else
10938 # ifdef DL_GLOBAL
10939 # define LT_DLGLOBAL DL_GLOBAL
10940 # else
10941 # define LT_DLGLOBAL 0
10942 # endif
10943 #endif
10945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10946 find out it does not work in some platform. */
10947 #ifndef LT_DLLAZY_OR_NOW
10948 # ifdef RTLD_LAZY
10949 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10950 # else
10951 # ifdef DL_LAZY
10952 # define LT_DLLAZY_OR_NOW DL_LAZY
10953 # else
10954 # ifdef RTLD_NOW
10955 # define LT_DLLAZY_OR_NOW RTLD_NOW
10956 # else
10957 # ifdef DL_NOW
10958 # define LT_DLLAZY_OR_NOW DL_NOW
10959 # else
10960 # define LT_DLLAZY_OR_NOW 0
10961 # endif
10962 # endif
10963 # endif
10964 # endif
10965 #endif
10967 #ifdef __cplusplus
10968 extern "C" void exit (int);
10969 #endif
10971 void fnord() { int i=42;}
10972 int main ()
10974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10975 int status = $lt_dlunknown;
10977 if (self)
10979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10980 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10981 /* dlclose (self); */
10983 else
10984 puts (dlerror ());
10986 exit (status);
10988 _LT_EOF
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10994 (./conftest; exit; ) >&5 2>/dev/null
10995 lt_status=$?
10996 case x$lt_status in
10997 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10998 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10999 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11000 esac
11001 else :
11002 # compilation failed
11003 lt_cv_dlopen_self_static=no
11006 rm -fr conftest*
11010 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11011 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11014 CPPFLAGS="$save_CPPFLAGS"
11015 LDFLAGS="$save_LDFLAGS"
11016 LIBS="$save_LIBS"
11018 esac
11020 case $lt_cv_dlopen_self in
11021 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11022 *) enable_dlopen_self=unknown ;;
11023 esac
11025 case $lt_cv_dlopen_self_static in
11026 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11027 *) enable_dlopen_self_static=unknown ;;
11028 esac
11047 striplib=
11048 old_striplib=
11049 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11050 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11051 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11052 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11053 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11054 echo "$as_me:$LINENO: result: yes" >&5
11055 echo "${ECHO_T}yes" >&6
11056 else
11057 # FIXME - insert some real tests, host_os isn't really good enough
11058 case $host_os in
11059 darwin*)
11060 if test -n "$STRIP" ; then
11061 striplib="$STRIP -x"
11062 old_striplib="$STRIP -S"
11063 echo "$as_me:$LINENO: result: yes" >&5
11064 echo "${ECHO_T}yes" >&6
11065 else
11066 echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6
11071 echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11074 esac
11088 # Report which library types will actually be built
11089 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11090 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11091 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11092 echo "${ECHO_T}$can_build_shared" >&6
11094 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11095 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11096 test "$can_build_shared" = "no" && enable_shared=no
11098 # On AIX, shared libraries and static libraries use the same namespace, and
11099 # are all built from PIC.
11100 case $host_os in
11101 aix3*)
11102 test "$enable_shared" = yes && enable_static=no
11103 if test -n "$RANLIB"; then
11104 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11105 postinstall_cmds='$RANLIB $lib'
11109 aix[4-9]*)
11110 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11111 test "$enable_shared" = yes && enable_static=no
11114 esac
11115 echo "$as_me:$LINENO: result: $enable_shared" >&5
11116 echo "${ECHO_T}$enable_shared" >&6
11118 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11119 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11120 # Make sure either enable_shared or enable_static is yes.
11121 test "$enable_shared" = yes || enable_static=yes
11122 echo "$as_me:$LINENO: result: $enable_static" >&5
11123 echo "${ECHO_T}$enable_static" >&6
11129 ac_ext=c
11130 ac_cpp='$CPP $CPPFLAGS'
11131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11135 CC="$lt_save_CC"
11149 ac_config_commands="$ac_config_commands libtool"
11154 # Only expand once:
11160 if test "${ac_cv_header_stdint_h+set}" = set; then
11161 echo "$as_me:$LINENO: checking for stdint.h" >&5
11162 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11163 if test "${ac_cv_header_stdint_h+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11167 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11168 else
11169 # Is the header compilable?
11170 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11171 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 #include <stdint.h>
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag"
11191 || test ! -s conftest.err'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 ac_header_compiler=yes
11204 else
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 ac_header_compiler=no
11210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11212 echo "${ECHO_T}$ac_header_compiler" >&6
11214 # Is the header present?
11215 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11216 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 #include <stdint.h>
11224 _ACEOF
11225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } >/dev/null; then
11233 if test -s conftest.err; then
11234 ac_cpp_err=$ac_c_preproc_warn_flag
11235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236 else
11237 ac_cpp_err=
11239 else
11240 ac_cpp_err=yes
11242 if test -z "$ac_cpp_err"; then
11243 ac_header_preproc=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_header_preproc=no
11250 rm -f conftest.err conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11252 echo "${ECHO_T}$ac_header_preproc" >&6
11254 # So? What about this header?
11255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11256 yes:no: )
11257 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11258 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11260 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11261 ac_header_preproc=yes
11263 no:yes:* )
11264 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11265 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11267 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11269 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11271 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11273 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11275 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11277 cat <<\_ASBOX
11278 ## ------------------------------------- ##
11279 ## Report this to the libmudflap lists. ##
11280 ## ------------------------------------- ##
11281 _ASBOX
11283 sed "s/^/$as_me: WARNING: /" >&2
11285 esac
11286 echo "$as_me:$LINENO: checking for stdint.h" >&5
11287 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11288 if test "${ac_cv_header_stdint_h+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 ac_cv_header_stdint_h=$ac_header_preproc
11293 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11294 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11297 if test $ac_cv_header_stdint_h = yes; then
11298 MF_HAVE_STDINT_H=1
11299 else
11300 MF_HAVE_STDINT_H=0
11305 if test $MF_HAVE_STDINT_H = 1
11306 then
11307 MF_HAVE_UINTPTR_T=1
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11317 main ()
11319 uintptr_t k = 0;
11321 return 0;
11323 _ACEOF
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 MF_HAVE_UINTPTR_T=1
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 MF_HAVE_UINTPTR_T=0
11353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11357 if test ! -d pth
11358 then
11359 # libmudflapth objects are built in this subdirectory
11360 mkdir pth
11364 for ac_header in pthread.h
11366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11375 else
11376 # Is the header compilable?
11377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 $ac_includes_default
11386 #include <$ac_header>
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_header_compiler=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_header_compiler=no
11417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6
11421 # Is the header present?
11422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11431 _ACEOF
11432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 else
11444 ac_cpp_err=
11446 else
11447 ac_cpp_err=yes
11449 if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_preproc=no
11457 rm -f conftest.err conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 echo "${ECHO_T}$ac_header_preproc" >&6
11461 # So? What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 yes:no: )
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11468 ac_header_preproc=yes
11470 no:yes:* )
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 cat <<\_ASBOX
11485 ## ------------------------------------- ##
11486 ## Report this to the libmudflap lists. ##
11487 ## ------------------------------------- ##
11488 _ASBOX
11490 sed "s/^/$as_me: WARNING: /" >&2
11492 esac
11493 echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 eval "$as_ac_Header=\$ac_header_preproc"
11500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507 _ACEOF
11511 done
11514 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11515 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11516 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11517 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11518 echo "${ECHO_T}$target_thread_file" >&6
11520 # We only support posix threads, or no threads at all.
11521 posix_threads=
11522 case ${target_thread_file} in
11523 posix)
11524 posix_threads=yes
11526 single)
11529 echo "${target_thread_file} is an unsupported thread package" 1>&2
11530 exit 1
11532 esac
11536 if test "x$posix_threads" != "x"; then
11537 LIBMUDFLAPTH_TRUE=
11538 LIBMUDFLAPTH_FALSE='#'
11539 else
11540 LIBMUDFLAPTH_TRUE='#'
11541 LIBMUDFLAPTH_FALSE=
11544 if test "x$posix_threads" != "x"
11545 then
11546 build_libmudflapth=1
11547 else
11548 build_libmudflapth=0
11553 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11554 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11555 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldl $LIBS"
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h. */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11567 /* Override any gcc2 internal prototype to avoid an error. */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 /* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11573 char dlsym ();
11575 main ()
11577 dlsym ();
11579 return 0;
11581 _ACEOF
11582 rm -f conftest.$ac_objext conftest$ac_exeext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11584 (eval $ac_link) 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try='test -z "$ac_c_werror_flag"
11592 || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try='test -s conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_lib_dl_dlsym=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_lib_dl_dlsym=no
11611 rm -f conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11615 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11616 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11617 if test $ac_cv_lib_dl_dlsym = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_LIBDL 1
11620 _ACEOF
11622 LIBS="-ldl $LIBS"
11627 # Calculate toolexeclibdir
11628 # Also toolexecdir, though it's only used in toolexeclibdir
11629 case ${version_specific_libs} in
11630 yes)
11631 # Need the gcc compiler version to know where to install libraries
11632 # and header files if --enable-version-specific-runtime-libs option
11633 # is selected.
11634 toolexecdir='$(libdir)/gcc/$(target_alias)'
11635 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11638 if test -n "$with_cross_host" &&
11639 test x"$with_cross_host" != x"no"; then
11640 # Install a library built with a cross compiler in tooldir, not libdir.
11641 toolexecdir='$(exec_prefix)/$(target_alias)'
11642 toolexeclibdir='$(toolexecdir)/lib'
11643 else
11644 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11645 toolexeclibdir='$(libdir)'
11647 multi_os_directory=`$CC -print-multi-os-directory`
11648 case $multi_os_directory in
11649 .) ;; # Avoid trailing /.
11650 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11651 esac
11653 esac
11657 includedir=${toolexecdir}/include
11660 pthread_create_version='""'
11661 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
11662 # NB: don't check for -lpthread here, because then it would be
11663 # added to LIBS. For the thread-unaware libmudflap.la, we don't
11664 # want it there.
11666 # glibc-related hacks. dlsym() may pick the wrong version of
11667 # interposed functions like pthread_create on modern glibc.
11668 # We need to find the proper symbol version string, and use
11669 # the nonstandard dlvsym().
11671 for ac_func in dlvsym
11673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11674 echo "$as_me:$LINENO: checking for $ac_func" >&5
11675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11676 if eval "test \"\${$as_ac_var+set}\" = set"; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11687 #define $ac_func innocuous_$ac_func
11689 /* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char $ac_func (); below.
11691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 <limits.h> exists even on freestanding compilers. */
11694 #ifdef __STDC__
11695 # include <limits.h>
11696 #else
11697 # include <assert.h>
11698 #endif
11700 #undef $ac_func
11702 /* Override any gcc2 internal prototype to avoid an error. */
11703 #ifdef __cplusplus
11704 extern "C"
11706 #endif
11707 /* We use char because int might match the return type of a gcc2
11708 builtin and then its argument prototype would still apply. */
11709 char $ac_func ();
11710 /* The GNU C library defines this for functions which it implements
11711 to always fail with ENOSYS. Some functions are actually named
11712 something starting with __ and the normal name is an alias. */
11713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11714 choke me
11715 #else
11716 char (*f) () = $ac_func;
11717 #endif
11718 #ifdef __cplusplus
11720 #endif
11723 main ()
11725 return f != $ac_func;
11727 return 0;
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 eval "$as_ac_var=yes"
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 eval "$as_ac_var=no"
11759 rm -f conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11764 if test `eval echo '${'$as_ac_var'}'` = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11767 _ACEOF
11770 done
11772 if test -n "$ac_tool_prefix"; then
11773 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11774 set dummy ${ac_tool_prefix}nm; ac_word=$2
11775 echo "$as_me:$LINENO: checking for $ac_word" >&5
11776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11777 if test "${ac_cv_prog_NM+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780 if test -n "$NM"; then
11781 ac_cv_prog_NM="$NM" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 ac_cv_prog_NM="${ac_tool_prefix}nm"
11791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11794 done
11795 done
11799 NM=$ac_cv_prog_NM
11800 if test -n "$NM"; then
11801 echo "$as_me:$LINENO: result: $NM" >&5
11802 echo "${ECHO_T}$NM" >&6
11803 else
11804 echo "$as_me:$LINENO: result: no" >&5
11805 echo "${ECHO_T}no" >&6
11809 if test -z "$ac_cv_prog_NM"; then
11810 ac_ct_NM=$NM
11811 # Extract the first word of "nm", so it can be a program name with args.
11812 set dummy nm; ac_word=$2
11813 echo "$as_me:$LINENO: checking for $ac_word" >&5
11814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11815 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818 if test -n "$ac_ct_NM"; then
11819 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828 ac_cv_prog_ac_ct_NM="nm"
11829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11837 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11838 if test -n "$ac_ct_NM"; then
11839 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11840 echo "${ECHO_T}$ac_ct_NM" >&6
11841 else
11842 echo "$as_me:$LINENO: result: no" >&5
11843 echo "${ECHO_T}no" >&6
11846 NM=$ac_ct_NM
11847 else
11848 NM="$ac_cv_prog_NM"
11851 if test "x$ac_cv_have_dlvsym" != "x"; then
11852 # Try compiling a simple pthreads program. Find the shared libraries it
11853 # ends up with. Then use "nm" on those libraries to extract the
11854 # default symbol versioning suffix ("@@"), if any. But that's tricky.
11855 # Rather, run nm on the resulting executable. Unfortunately, autoconf
11856 # doesn't appear to have a macro that builds a test executable for
11857 # subsequent analysis ... so we do it by hand here.
11858 cat >> conftest.c << EOF
11859 #include <pthread.h>
11860 int main () { void *p = (void *) & pthread_create; return (int) p; }
11862 oldLIBS="$LIBS"
11863 LIBS="$LIBS -lpthread"
11864 pthread_create_version="\"\""
11865 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11866 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
11867 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11868 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11869 if test "x$version" != "x"; then
11870 pthread_create_version="\"$version\""
11873 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11874 echo "${ECHO_T}$pthread_create_version" >&6
11875 LIBS="$oldLIBS"
11879 cat >>confdefs.h <<_ACEOF
11880 #define PTHREAD_CREATE_VERSION $pthread_create_version
11881 _ACEOF
11885 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11886 # similarly to how libstdc++ does it
11887 ac_test_CFLAGS="${CFLAGS+set}"
11888 ac_save_CFLAGS="$CFLAGS"
11890 # Check for -ffunction-sections -fdata-sections
11891 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11892 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11893 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11902 main ()
11904 int foo;
11906 return 0;
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_fdsections=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_fdsections=no
11938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11939 if test "$ac_test_CFLAGS" = set; then
11940 CFLAGS="$ac_save_CFLAGS"
11941 else
11942 # this is the suspicious part
11943 CFLAGS=""
11945 if test x"$ac_fdsections" = x"yes"; then
11946 SECTION_FLAGS='-ffunction-sections -fdata-sections'
11948 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11949 echo "${ECHO_T}$ac_fdsections" >&6
11953 # Check for the name of the symbol used for the entry point.
11954 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11955 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11956 if test "${mudflap_cv_entry_point+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11960 for name in _start __start unknown; do
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 extern char $name[];
11969 main ()
11971 $name[0] = 0;
11973 return 0;
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978 (eval $ac_link) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest$ac_exeext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 break
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12004 rm -f conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 done
12007 mudflap_cv_entry_point="$name"
12009 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
12010 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
12011 if test "$mudflap_cv_entry_point" = unknown; then
12012 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
12013 echo "$as_me: error: none of the known symbol names works" >&2;}
12014 { (exit 1); exit 1; }; }
12017 cat >>confdefs.h <<_ACEOF
12018 #define ENTRY_POINT $mudflap_cv_entry_point
12019 _ACEOF
12023 if test ${multilib} = yes; then
12024 multilib_arg="--enable-multilib"
12025 else
12026 multilib_arg=
12029 # See if we support thread-local storage.
12031 # Check whether --enable-tls or --disable-tls was given.
12032 if test "${enable_tls+set}" = set; then
12033 enableval="$enable_tls"
12035 case "$enableval" in
12036 yes|no) ;;
12037 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12038 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12039 { (exit 1); exit 1; }; } ;;
12040 esac
12042 else
12043 enable_tls=yes
12046 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12047 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12048 if test "${gcc_cv_have_tls+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12052 if test "$cross_compiling" = yes; then
12053 cat >conftest.$ac_ext <<_ACEOF
12054 __thread int a; int b; int main() { return a = b; }
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 gcc_cv_have_tls=yes
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 gcc_cv_have_tls=no
12085 rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12089 else
12090 cat >conftest.$ac_ext <<_ACEOF
12091 __thread int a; int b; int main() { return a = b; }
12092 _ACEOF
12093 rm -f conftest$ac_exeext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12095 (eval $ac_link) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 chktls_save_LDFLAGS="$LDFLAGS"
12105 LDFLAGS="-static $LDFLAGS"
12106 cat >conftest.$ac_ext <<_ACEOF
12107 int main() { return 0; }
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_c_werror_flag"
12119 || test ! -s conftest.err'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try='test -s conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 if test "$cross_compiling" = yes; then
12132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12133 See \`config.log' for more details." >&5
12134 echo "$as_me: error: cannot run test program while cross compiling
12135 See \`config.log' for more details." >&2;}
12136 { (exit 1); exit 1; }; }
12137 else
12138 cat >conftest.$ac_ext <<_ACEOF
12139 __thread int a; int b; int main() { return a = b; }
12140 _ACEOF
12141 rm -f conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 gcc_cv_have_tls=yes
12153 else
12154 echo "$as_me: program exited with status $ac_status" >&5
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ( exit $ac_status )
12159 gcc_cv_have_tls=no
12161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 gcc_cv_have_tls=yes
12169 rm -f conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LDFLAGS="$chktls_save_LDFLAGS"
12172 if test $gcc_cv_have_tls = yes; then
12173 chktls_save_CFLAGS="$CFLAGS"
12174 thread_CFLAGS=failed
12175 for flag in '' '-pthread' '-lpthread'; do
12176 CFLAGS="$flag $chktls_save_CFLAGS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 #include <pthread.h>
12184 void *g(void *d) { return NULL; }
12186 main ()
12188 pthread_t t; pthread_create(&t,NULL,g,NULL);
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12195 (eval $ac_link) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 thread_CFLAGS="$flag"
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12221 rm -f conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 if test "X$thread_CFLAGS" != Xfailed; then
12224 break
12226 done
12227 CFLAGS="$chktls_save_CFLAGS"
12228 if test "X$thread_CFLAGS" != Xfailed; then
12229 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12230 if test "$cross_compiling" = yes; then
12231 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12232 See \`config.log' for more details." >&5
12233 echo "$as_me: error: cannot run test program while cross compiling
12234 See \`config.log' for more details." >&2;}
12235 { (exit 1); exit 1; }; }
12236 else
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 #include <pthread.h>
12244 __thread int a;
12245 static int *a_in_other_thread;
12246 static void *
12247 thread_func (void *arg)
12249 a_in_other_thread = &a;
12250 return (void *)0;
12253 main ()
12255 pthread_t thread;
12256 void *thread_retval;
12257 int *a_in_main_thread;
12258 if (pthread_create (&thread, (pthread_attr_t *)0,
12259 thread_func, (void *)0))
12260 return 0;
12261 a_in_main_thread = &a;
12262 if (pthread_join (thread, &thread_retval))
12263 return 0;
12264 return (a_in_other_thread == a_in_main_thread);
12266 return 0;
12268 _ACEOF
12269 rm -f conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271 (eval $ac_link) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 gcc_cv_have_tls=yes
12281 else
12282 echo "$as_me: program exited with status $ac_status" >&5
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ( exit $ac_status )
12287 gcc_cv_have_tls=no
12289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12291 CFLAGS="$chktls_save_CFLAGS"
12294 else
12295 echo "$as_me: program exited with status $ac_status" >&5
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ( exit $ac_status )
12300 gcc_cv_have_tls=no
12302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12305 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
12306 echo "${ECHO_T}$gcc_cv_have_tls" >&6
12307 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
12309 cat >>confdefs.h <<\_ACEOF
12310 #define HAVE_TLS 1
12311 _ACEOF
12315 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
12317 cat >confcache <<\_ACEOF
12318 # This file is a shell script that caches the results of configure
12319 # tests run on this system so they can be shared between configure
12320 # scripts and configure runs, see configure's option --config-cache.
12321 # It is not useful on other systems. If it contains results you don't
12322 # want to keep, you may remove or edit it.
12324 # config.status only pays attention to the cache file if you give it
12325 # the --recheck option to rerun configure.
12327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12329 # following values.
12331 _ACEOF
12333 # The following way of writing the cache mishandles newlines in values,
12334 # but we know of no workaround that is simple, portable, and efficient.
12335 # So, don't put newlines in cache variables' values.
12336 # Ultrix sh set writes to stderr and can't be redirected directly,
12337 # and sets the high bit in the cache file unless we assign to the vars.
12339 (set) 2>&1 |
12340 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12341 *ac_space=\ *)
12342 # `set' does not quote correctly, so add quotes (double-quote
12343 # substitution turns \\\\ into \\, and sed turns \\ into \).
12344 sed -n \
12345 "s/'/'\\\\''/g;
12346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12349 # `set' quotes correctly as required by POSIX, so do not add quotes.
12350 sed -n \
12351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12353 esac;
12355 sed '
12356 t clear
12357 : clear
12358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12359 t end
12360 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12361 : end' >>confcache
12362 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12363 if test -w $cache_file; then
12364 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12365 cat confcache >$cache_file
12366 else
12367 echo "not updating unwritable cache $cache_file"
12370 rm -f confcache
12372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12373 # Let make expand exec_prefix.
12374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12378 # trailing colons and then remove the whole line if VPATH becomes empty
12379 # (actually we leave an empty line to preserve line numbers).
12380 if test "x$srcdir" = x.; then
12381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12382 s/:*\$(srcdir):*/:/;
12383 s/:*\${srcdir}:*/:/;
12384 s/:*@srcdir@:*/:/;
12385 s/^\([^=]*=[ ]*\):*/\1/;
12386 s/:*$//;
12387 s/^[^=]*=[ ]*$//;
12391 DEFS=-DHAVE_CONFIG_H
12393 ac_libobjs=
12394 ac_ltlibobjs=
12395 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12396 # 1. Remove the extension, and $U if already installed.
12397 ac_i=`echo "$ac_i" |
12398 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12399 # 2. Add them.
12400 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12401 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12402 done
12403 LIBOBJS=$ac_libobjs
12405 LTLIBOBJS=$ac_ltlibobjs
12408 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12409 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&5
12411 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12412 Usually this means the macro was only invoked conditionally." >&2;}
12413 { (exit 1); exit 1; }; }
12415 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12416 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12417 Usually this means the macro was only invoked conditionally." >&5
12418 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12419 Usually this means the macro was only invoked conditionally." >&2;}
12420 { (exit 1); exit 1; }; }
12422 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12423 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12424 Usually this means the macro was only invoked conditionally." >&5
12425 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12426 Usually this means the macro was only invoked conditionally." >&2;}
12427 { (exit 1); exit 1; }; }
12429 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12430 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12431 Usually this means the macro was only invoked conditionally." >&5
12432 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12433 Usually this means the macro was only invoked conditionally." >&2;}
12434 { (exit 1); exit 1; }; }
12437 : ${CONFIG_STATUS=./config.status}
12438 ac_clean_files_save=$ac_clean_files
12439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12440 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12441 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12442 cat >$CONFIG_STATUS <<_ACEOF
12443 #! $SHELL
12444 # Generated by $as_me.
12445 # Run this file to recreate the current configuration.
12446 # Compiler output produced by configure, useful for debugging
12447 # configure, is in config.log if it exists.
12449 debug=false
12450 ac_cs_recheck=false
12451 ac_cs_silent=false
12452 SHELL=\${CONFIG_SHELL-$SHELL}
12453 _ACEOF
12455 cat >>$CONFIG_STATUS <<\_ACEOF
12456 ## --------------------- ##
12457 ## M4sh Initialization. ##
12458 ## --------------------- ##
12460 # Be Bourne compatible
12461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12462 emulate sh
12463 NULLCMD=:
12464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12465 # is contrary to our usage. Disable this feature.
12466 alias -g '${1+"$@"}'='"$@"'
12467 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12468 set -o posix
12470 DUALCASE=1; export DUALCASE # for MKS sh
12472 # Support unset when possible.
12473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12474 as_unset=unset
12475 else
12476 as_unset=false
12480 # Work around bugs in pre-3.0 UWIN ksh.
12481 $as_unset ENV MAIL MAILPATH
12482 PS1='$ '
12483 PS2='> '
12484 PS4='+ '
12486 # NLS nuisances.
12487 for as_var in \
12488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12490 LC_TELEPHONE LC_TIME
12492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12493 eval $as_var=C; export $as_var
12494 else
12495 $as_unset $as_var
12497 done
12499 # Required to use basename.
12500 if expr a : '\(a\)' >/dev/null 2>&1; then
12501 as_expr=expr
12502 else
12503 as_expr=false
12506 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12507 as_basename=basename
12508 else
12509 as_basename=false
12513 # Name of the executable.
12514 as_me=`$as_basename "$0" ||
12515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12516 X"$0" : 'X\(//\)$' \| \
12517 X"$0" : 'X\(/\)$' \| \
12518 . : '\(.\)' 2>/dev/null ||
12519 echo X/"$0" |
12520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12521 /^X\/\(\/\/\)$/{ s//\1/; q; }
12522 /^X\/\(\/\).*/{ s//\1/; q; }
12523 s/.*/./; q'`
12526 # PATH needs CR, and LINENO needs CR and PATH.
12527 # Avoid depending upon Character Ranges.
12528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12531 as_cr_digits='0123456789'
12532 as_cr_alnum=$as_cr_Letters$as_cr_digits
12534 # The user is always right.
12535 if test "${PATH_SEPARATOR+set}" != set; then
12536 echo "#! /bin/sh" >conf$$.sh
12537 echo "exit 0" >>conf$$.sh
12538 chmod +x conf$$.sh
12539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12540 PATH_SEPARATOR=';'
12541 else
12542 PATH_SEPARATOR=:
12544 rm -f conf$$.sh
12548 as_lineno_1=$LINENO
12549 as_lineno_2=$LINENO
12550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12551 test "x$as_lineno_1" != "x$as_lineno_2" &&
12552 test "x$as_lineno_3" = "x$as_lineno_2" || {
12553 # Find who we are. Look in the path if we contain no path at all
12554 # relative or not.
12555 case $0 in
12556 *[\\/]* ) as_myself=$0 ;;
12557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12563 done
12566 esac
12567 # We did not find ourselves, most probably we were run as `sh COMMAND'
12568 # in which case we are not to be found in the path.
12569 if test "x$as_myself" = x; then
12570 as_myself=$0
12572 if test ! -f "$as_myself"; then
12573 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12574 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12575 { (exit 1); exit 1; }; }
12577 case $CONFIG_SHELL in
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
12584 for as_base in sh bash ksh sh5; do
12585 case $as_dir in
12587 if ("$as_dir/$as_base" -c '
12588 as_lineno_1=$LINENO
12589 as_lineno_2=$LINENO
12590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12591 test "x$as_lineno_1" != "x$as_lineno_2" &&
12592 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12593 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12594 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12595 CONFIG_SHELL=$as_dir/$as_base
12596 export CONFIG_SHELL
12597 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12598 fi;;
12599 esac
12600 done
12601 done
12603 esac
12605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12606 # uniformly replaced by the line number. The first 'sed' inserts a
12607 # line-number line before each line; the second 'sed' does the real
12608 # work. The second script uses 'N' to pair each line-number line
12609 # with the numbered line, and appends trailing '-' during
12610 # substitution so that $LINENO is not a special case at line end.
12611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12612 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12613 sed '=' <$as_myself |
12614 sed '
12616 s,$,-,
12617 : loop
12618 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12619 t loop
12620 s,-$,,
12621 s,^['$as_cr_digits']*\n,,
12622 ' >$as_me.lineno &&
12623 chmod +x $as_me.lineno ||
12624 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12625 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12626 { (exit 1); exit 1; }; }
12628 # Don't try to exec as it changes $[0], causing all sort of problems
12629 # (the dirname of $[0] is not the place where we might find the
12630 # original and so on. Autoconf is especially sensible to this).
12631 . ./$as_me.lineno
12632 # Exit status is that of the last command.
12633 exit
12637 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12638 *c*,-n*) ECHO_N= ECHO_C='
12639 ' ECHO_T=' ' ;;
12640 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12641 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12642 esac
12644 if expr a : '\(a\)' >/dev/null 2>&1; then
12645 as_expr=expr
12646 else
12647 as_expr=false
12650 rm -f conf$$ conf$$.exe conf$$.file
12651 echo >conf$$.file
12652 if ln -s conf$$.file conf$$ 2>/dev/null; then
12653 # We could just check for DJGPP; but this test a) works b) is more generic
12654 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12655 if test -f conf$$.exe; then
12656 # Don't use ln at all; we don't have any links
12657 as_ln_s='cp -p'
12658 else
12659 as_ln_s='ln -s'
12661 elif ln conf$$.file conf$$ 2>/dev/null; then
12662 as_ln_s=ln
12663 else
12664 as_ln_s='cp -p'
12666 rm -f conf$$ conf$$.exe conf$$.file
12668 if mkdir -p . 2>/dev/null; then
12669 as_mkdir_p=:
12670 else
12671 test -d ./-p && rmdir ./-p
12672 as_mkdir_p=false
12675 as_executable_p="test -f"
12677 # Sed expression to map a string onto a valid CPP name.
12678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12680 # Sed expression to map a string onto a valid variable name.
12681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12684 # IFS
12685 # We need space, tab and new line, in precisely that order.
12686 as_nl='
12688 IFS=" $as_nl"
12690 # CDPATH.
12691 $as_unset CDPATH
12693 exec 6>&1
12695 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12696 # report actual input values of CONFIG_FILES etc. instead of their
12697 # values after options handling. Logging --version etc. is OK.
12698 exec 5>>config.log
12700 echo
12701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12702 ## Running $as_me. ##
12703 _ASBOX
12704 } >&5
12705 cat >&5 <<_CSEOF
12707 This file was extended by libmudflap $as_me 1.0, which was
12708 generated by GNU Autoconf 2.59. Invocation command line was
12710 CONFIG_FILES = $CONFIG_FILES
12711 CONFIG_HEADERS = $CONFIG_HEADERS
12712 CONFIG_LINKS = $CONFIG_LINKS
12713 CONFIG_COMMANDS = $CONFIG_COMMANDS
12714 $ $0 $@
12716 _CSEOF
12717 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12718 echo >&5
12719 _ACEOF
12721 # Files that config.status was made for.
12722 if test -n "$ac_config_files"; then
12723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12726 if test -n "$ac_config_headers"; then
12727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12730 if test -n "$ac_config_links"; then
12731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12734 if test -n "$ac_config_commands"; then
12735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12738 cat >>$CONFIG_STATUS <<\_ACEOF
12740 ac_cs_usage="\
12741 \`$as_me' instantiates files from templates according to the
12742 current configuration.
12744 Usage: $0 [OPTIONS] [FILE]...
12746 -h, --help print this help, then exit
12747 -V, --version print version number, then exit
12748 -q, --quiet do not print progress messages
12749 -d, --debug don't remove temporary files
12750 --recheck update $as_me by reconfiguring in the same conditions
12751 --file=FILE[:TEMPLATE]
12752 instantiate the configuration file FILE
12753 --header=FILE[:TEMPLATE]
12754 instantiate the configuration header FILE
12756 Configuration files:
12757 $config_files
12759 Configuration headers:
12760 $config_headers
12762 Configuration commands:
12763 $config_commands
12765 Report bugs to <bug-autoconf@gnu.org>."
12766 _ACEOF
12768 cat >>$CONFIG_STATUS <<_ACEOF
12769 ac_cs_version="\\
12770 libmudflap config.status 1.0
12771 configured by $0, generated by GNU Autoconf 2.59,
12772 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12774 Copyright (C) 2003 Free Software Foundation, Inc.
12775 This config.status script is free software; the Free Software Foundation
12776 gives unlimited permission to copy, distribute and modify it."
12777 srcdir=$srcdir
12778 INSTALL="$INSTALL"
12779 _ACEOF
12781 cat >>$CONFIG_STATUS <<\_ACEOF
12782 # If no file are specified by the user, then we need to provide default
12783 # value. By we need to know if files were specified by the user.
12784 ac_need_defaults=:
12785 while test $# != 0
12787 case $1 in
12788 --*=*)
12789 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12790 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12791 ac_shift=:
12794 ac_option=$1
12795 ac_optarg=$2
12796 ac_shift=shift
12798 *) # This is not an option, so the user has probably given explicit
12799 # arguments.
12800 ac_option=$1
12801 ac_need_defaults=false;;
12802 esac
12804 case $ac_option in
12805 # Handling of the options.
12806 _ACEOF
12807 cat >>$CONFIG_STATUS <<\_ACEOF
12808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12809 ac_cs_recheck=: ;;
12810 --version | --vers* | -V )
12811 echo "$ac_cs_version"; exit 0 ;;
12812 --he | --h)
12813 # Conflict between --help and --header
12814 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12815 Try \`$0 --help' for more information." >&5
12816 echo "$as_me: error: ambiguous option: $1
12817 Try \`$0 --help' for more information." >&2;}
12818 { (exit 1); exit 1; }; };;
12819 --help | --hel | -h )
12820 echo "$ac_cs_usage"; exit 0 ;;
12821 --debug | --d* | -d )
12822 debug=: ;;
12823 --file | --fil | --fi | --f )
12824 $ac_shift
12825 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12826 ac_need_defaults=false;;
12827 --header | --heade | --head | --hea )
12828 $ac_shift
12829 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12830 ac_need_defaults=false;;
12831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12833 ac_cs_silent=: ;;
12835 # This is an error.
12836 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12837 Try \`$0 --help' for more information." >&5
12838 echo "$as_me: error: unrecognized option: $1
12839 Try \`$0 --help' for more information." >&2;}
12840 { (exit 1); exit 1; }; } ;;
12842 *) ac_config_targets="$ac_config_targets $1" ;;
12844 esac
12845 shift
12846 done
12848 ac_configure_extra_args=
12850 if $ac_cs_silent; then
12851 exec 6>/dev/null
12852 ac_configure_extra_args="$ac_configure_extra_args --silent"
12855 _ACEOF
12856 cat >>$CONFIG_STATUS <<_ACEOF
12857 if \$ac_cs_recheck; then
12858 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12859 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12862 _ACEOF
12864 cat >>$CONFIG_STATUS <<_ACEOF
12866 # INIT-COMMANDS section.
12870 srcdir="$srcdir"
12871 host="$host"
12872 target="$target"
12873 with_multisubdir="$with_multisubdir"
12874 with_multisrctop="$with_multisrctop"
12875 with_target_subdir="$with_target_subdir"
12876 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12877 multi_basedir="$multi_basedir"
12878 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12879 CC="$CC"
12880 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12883 # The HP-UX ksh and POSIX shell print the target directory to stdout
12884 # if CDPATH is set.
12885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12887 sed_quote_subst='$sed_quote_subst'
12888 double_quote_subst='$double_quote_subst'
12889 delay_variable_subst='$delay_variable_subst'
12890 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12891 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12892 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12893 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12894 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12895 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12896 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12897 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12898 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12899 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12900 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12901 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12902 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12903 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12904 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12905 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12906 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12907 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12908 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12909 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12910 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12911 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12912 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12913 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12914 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12915 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12916 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12917 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12918 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12919 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12920 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12921 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12922 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12923 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12924 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12925 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12926 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12927 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12928 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12929 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12930 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12931 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12932 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12933 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12934 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12935 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12936 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12937 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12938 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12939 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12940 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12941 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12942 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12943 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12944 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12945 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12946 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12947 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12948 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12949 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12950 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12951 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12952 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12953 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12954 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12955 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12956 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12957 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12958 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12959 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12960 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12961 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12962 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12963 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12964 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12965 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12966 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12967 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12968 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12969 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12970 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12971 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12972 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12973 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12974 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12975 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12976 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12977 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12978 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12979 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12980 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12981 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12982 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12983 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12984 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12985 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12986 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12987 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12988 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12989 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12990 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12991 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12992 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12993 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12994 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12995 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12996 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12997 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12998 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12999 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13000 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13002 LTCC='$LTCC'
13003 LTCFLAGS='$LTCFLAGS'
13004 compiler='$compiler_DEFAULT'
13006 # Quote evaled strings.
13007 for var in SED \
13008 GREP \
13009 EGREP \
13010 FGREP \
13011 LD \
13012 NM \
13013 LN_S \
13014 lt_SP2NL \
13015 lt_NL2SP \
13016 reload_flag \
13017 deplibs_check_method \
13018 file_magic_cmd \
13019 AR \
13020 AR_FLAGS \
13021 STRIP \
13022 RANLIB \
13023 CC \
13024 CFLAGS \
13025 compiler \
13026 lt_cv_sys_global_symbol_pipe \
13027 lt_cv_sys_global_symbol_to_cdecl \
13028 lt_cv_sys_global_symbol_to_c_name_address \
13029 SHELL \
13030 ECHO \
13031 lt_prog_compiler_no_builtin_flag \
13032 lt_prog_compiler_wl \
13033 lt_prog_compiler_pic \
13034 lt_prog_compiler_static \
13035 lt_cv_prog_compiler_c_o \
13036 need_locks \
13037 shrext_cmds \
13038 export_dynamic_flag_spec \
13039 whole_archive_flag_spec \
13040 compiler_needs_object \
13041 with_gnu_ld \
13042 allow_undefined_flag \
13043 no_undefined_flag \
13044 hardcode_libdir_flag_spec \
13045 hardcode_libdir_flag_spec_ld \
13046 hardcode_libdir_separator \
13047 fix_srcfile_path \
13048 exclude_expsyms \
13049 include_expsyms \
13050 file_list_spec \
13051 variables_saved_for_relink \
13052 libname_spec \
13053 library_names_spec \
13054 soname_spec \
13055 finish_eval \
13056 old_striplib \
13057 striplib; do
13058 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13059 *[\\\\\\\`\\"\\\$]*)
13060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13065 esac
13066 done
13068 # Double-quote double-evaled strings.
13069 for var in reload_cmds \
13070 old_postinstall_cmds \
13071 old_postuninstall_cmds \
13072 old_archive_cmds \
13073 extract_expsyms_cmds \
13074 old_archive_from_new_cmds \
13075 old_archive_from_expsyms_cmds \
13076 archive_cmds \
13077 archive_expsym_cmds \
13078 module_cmds \
13079 module_expsym_cmds \
13080 export_symbols_cmds \
13081 prelink_cmds \
13082 postinstall_cmds \
13083 postuninstall_cmds \
13084 finish_cmds \
13085 sys_lib_search_path_spec \
13086 sys_lib_dlsearch_path_spec; do
13087 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13088 *[\\\\\\\`\\"\\\$]*)
13089 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13092 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13094 esac
13095 done
13097 # Fix-up fallback echo if it was mangled by the above quoting rules.
13098 case \$lt_ECHO in
13099 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13101 esac
13103 ac_aux_dir='$ac_aux_dir'
13104 xsi_shell='$xsi_shell'
13105 lt_shell_append='$lt_shell_append'
13107 # See if we are running on zsh, and set the options which allow our
13108 # commands through without removal of \ escapes INIT.
13109 if test -n "\${ZSH_VERSION+set}" ; then
13110 setopt NO_GLOB_SUBST
13114 PACKAGE='$PACKAGE'
13115 VERSION='$VERSION'
13116 TIMESTAMP='$TIMESTAMP'
13117 RM='$RM'
13118 ofile='$ofile'
13123 _ACEOF
13127 cat >>$CONFIG_STATUS <<\_ACEOF
13128 for ac_config_target in $ac_config_targets
13130 case "$ac_config_target" in
13131 # Handling of arguments.
13132 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13133 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13134 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13135 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13136 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13137 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13138 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13141 { (exit 1); exit 1; }; };;
13142 esac
13143 done
13145 # If the user did not use the arguments to specify the items to instantiate,
13146 # then the envvar interface is used. Set only those that are not.
13147 # We use the long form for the default assignment because of an extremely
13148 # bizarre bug on SunOS 4.1.3.
13149 if $ac_need_defaults; then
13150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13155 # Have a temporary directory for convenience. Make it in the build tree
13156 # simply because there is no reason to put it here, and in addition,
13157 # creating and moving files from /tmp can sometimes cause problems.
13158 # Create a temporary directory, and hook for its removal unless debugging.
13159 $debug ||
13161 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13162 trap '{ (exit 1); exit 1; }' 1 2 13 15
13165 # Create a (secure) tmp directory for tmp files.
13168 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13169 test -n "$tmp" && test -d "$tmp"
13170 } ||
13172 tmp=./confstat$$-$RANDOM
13173 (umask 077 && mkdir $tmp)
13174 } ||
13176 echo "$me: cannot create a temporary directory in ." >&2
13177 { (exit 1); exit 1; }
13180 _ACEOF
13182 cat >>$CONFIG_STATUS <<_ACEOF
13185 # CONFIG_FILES section.
13188 # No need to generate the scripts if there are no CONFIG_FILES.
13189 # This happens for instance when ./config.status config.h
13190 if test -n "\$CONFIG_FILES"; then
13191 # Protect against being on the right side of a sed subst in config.status.
13192 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13193 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13194 s,@SHELL@,$SHELL,;t t
13195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13201 s,@exec_prefix@,$exec_prefix,;t t
13202 s,@prefix@,$prefix,;t t
13203 s,@program_transform_name@,$program_transform_name,;t t
13204 s,@bindir@,$bindir,;t t
13205 s,@sbindir@,$sbindir,;t t
13206 s,@libexecdir@,$libexecdir,;t t
13207 s,@datadir@,$datadir,;t t
13208 s,@sysconfdir@,$sysconfdir,;t t
13209 s,@sharedstatedir@,$sharedstatedir,;t t
13210 s,@localstatedir@,$localstatedir,;t t
13211 s,@libdir@,$libdir,;t t
13212 s,@includedir@,$includedir,;t t
13213 s,@oldincludedir@,$oldincludedir,;t t
13214 s,@infodir@,$infodir,;t t
13215 s,@mandir@,$mandir,;t t
13216 s,@build_alias@,$build_alias,;t t
13217 s,@host_alias@,$host_alias,;t t
13218 s,@target_alias@,$target_alias,;t t
13219 s,@DEFS@,$DEFS,;t t
13220 s,@ECHO_C@,$ECHO_C,;t t
13221 s,@ECHO_N@,$ECHO_N,;t t
13222 s,@ECHO_T@,$ECHO_T,;t t
13223 s,@LIBS@,$LIBS,;t t
13224 s,@build@,$build,;t t
13225 s,@build_cpu@,$build_cpu,;t t
13226 s,@build_vendor@,$build_vendor,;t t
13227 s,@build_os@,$build_os,;t t
13228 s,@host@,$host,;t t
13229 s,@host_cpu@,$host_cpu,;t t
13230 s,@host_vendor@,$host_vendor,;t t
13231 s,@host_os@,$host_os,;t t
13232 s,@target@,$target,;t t
13233 s,@target_cpu@,$target_cpu,;t t
13234 s,@target_vendor@,$target_vendor,;t t
13235 s,@target_os@,$target_os,;t t
13236 s,@target_noncanonical@,$target_noncanonical,;t t
13237 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13238 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13239 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13240 s,@CYGPATH_W@,$CYGPATH_W,;t t
13241 s,@PACKAGE@,$PACKAGE,;t t
13242 s,@VERSION@,$VERSION,;t t
13243 s,@ACLOCAL@,$ACLOCAL,;t t
13244 s,@AUTOCONF@,$AUTOCONF,;t t
13245 s,@AUTOMAKE@,$AUTOMAKE,;t t
13246 s,@AUTOHEADER@,$AUTOHEADER,;t t
13247 s,@MAKEINFO@,$MAKEINFO,;t t
13248 s,@install_sh@,$install_sh,;t t
13249 s,@STRIP@,$STRIP,;t t
13250 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13251 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13252 s,@mkdir_p@,$mkdir_p,;t t
13253 s,@AWK@,$AWK,;t t
13254 s,@SET_MAKE@,$SET_MAKE,;t t
13255 s,@am__leading_dot@,$am__leading_dot,;t t
13256 s,@AMTAR@,$AMTAR,;t t
13257 s,@am__tar@,$am__tar,;t t
13258 s,@am__untar@,$am__untar,;t t
13259 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13260 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13261 s,@MAINT@,$MAINT,;t t
13262 s,@multi_basedir@,$multi_basedir,;t t
13263 s,@CC@,$CC,;t t
13264 s,@ac_ct_CC@,$ac_ct_CC,;t t
13265 s,@EXEEXT@,$EXEEXT,;t t
13266 s,@OBJEXT@,$OBJEXT,;t t
13267 s,@DEPDIR@,$DEPDIR,;t t
13268 s,@am__include@,$am__include,;t t
13269 s,@am__quote@,$am__quote,;t t
13270 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13271 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13272 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13273 s,@CCDEPMODE@,$CCDEPMODE,;t t
13274 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13275 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13276 s,@CFLAGS@,$CFLAGS,;t t
13277 s,@CPP@,$CPP,;t t
13278 s,@CPPFLAGS@,$CPPFLAGS,;t t
13279 s,@EGREP@,$EGREP,;t t
13280 s,@LIBTOOL@,$LIBTOOL,;t t
13281 s,@SED@,$SED,;t t
13282 s,@FGREP@,$FGREP,;t t
13283 s,@GREP@,$GREP,;t t
13284 s,@LD@,$LD,;t t
13285 s,@DUMPBIN@,$DUMPBIN,;t t
13286 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13287 s,@NM@,$NM,;t t
13288 s,@LN_S@,$LN_S,;t t
13289 s,@AR@,$AR,;t t
13290 s,@ac_ct_AR@,$ac_ct_AR,;t t
13291 s,@RANLIB@,$RANLIB,;t t
13292 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13293 s,@lt_ECHO@,$lt_ECHO,;t t
13294 s,@enable_shared@,$enable_shared,;t t
13295 s,@enable_static@,$enable_static,;t t
13296 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13297 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13298 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13299 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
13300 s,@build_libmudflapth@,$build_libmudflapth,;t t
13301 s,@toolexecdir@,$toolexecdir,;t t
13302 s,@toolexeclibdir@,$toolexeclibdir,;t t
13303 s,@ac_ct_NM@,$ac_ct_NM,;t t
13304 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
13305 s,@LIBOBJS@,$LIBOBJS,;t t
13306 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13307 CEOF
13309 _ACEOF
13311 cat >>$CONFIG_STATUS <<\_ACEOF
13312 # Split the substitutions into bite-sized pieces for seds with
13313 # small command number limits, like on Digital OSF/1 and HP-UX.
13314 ac_max_sed_lines=48
13315 ac_sed_frag=1 # Number of current file.
13316 ac_beg=1 # First line for current file.
13317 ac_end=$ac_max_sed_lines # Line after last line for current file.
13318 ac_more_lines=:
13319 ac_sed_cmds=
13320 while $ac_more_lines; do
13321 if test $ac_beg -gt 1; then
13322 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13323 else
13324 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13326 if test ! -s $tmp/subs.frag; then
13327 ac_more_lines=false
13328 else
13329 # The purpose of the label and of the branching condition is to
13330 # speed up the sed processing (if there are no `@' at all, there
13331 # is no need to browse any of the substitutions).
13332 # These are the two extra sed commands mentioned above.
13333 (echo ':t
13334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13335 if test -z "$ac_sed_cmds"; then
13336 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13337 else
13338 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13340 ac_sed_frag=`expr $ac_sed_frag + 1`
13341 ac_beg=$ac_end
13342 ac_end=`expr $ac_end + $ac_max_sed_lines`
13344 done
13345 if test -z "$ac_sed_cmds"; then
13346 ac_sed_cmds=cat
13348 fi # test -n "$CONFIG_FILES"
13350 _ACEOF
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13354 case $ac_file in
13355 - | *:- | *:-:* ) # input from stdin
13356 cat >$tmp/stdin
13357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13361 * ) ac_file_in=$ac_file.in ;;
13362 esac
13364 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13366 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13367 X"$ac_file" : 'X\(//\)[^/]' \| \
13368 X"$ac_file" : 'X\(//\)$' \| \
13369 X"$ac_file" : 'X\(/\)' \| \
13370 . : '\(.\)' 2>/dev/null ||
13371 echo X"$ac_file" |
13372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13374 /^X\(\/\/\)$/{ s//\1/; q; }
13375 /^X\(\/\).*/{ s//\1/; q; }
13376 s/.*/./; q'`
13377 { if $as_mkdir_p; then
13378 mkdir -p "$ac_dir"
13379 else
13380 as_dir="$ac_dir"
13381 as_dirs=
13382 while test ! -d "$as_dir"; do
13383 as_dirs="$as_dir $as_dirs"
13384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13386 X"$as_dir" : 'X\(//\)[^/]' \| \
13387 X"$as_dir" : 'X\(//\)$' \| \
13388 X"$as_dir" : 'X\(/\)' \| \
13389 . : '\(.\)' 2>/dev/null ||
13390 echo X"$as_dir" |
13391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13393 /^X\(\/\/\)$/{ s//\1/; q; }
13394 /^X\(\/\).*/{ s//\1/; q; }
13395 s/.*/./; q'`
13396 done
13397 test ! -n "$as_dirs" || mkdir $as_dirs
13398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13400 { (exit 1); exit 1; }; }; }
13402 ac_builddir=.
13404 if test "$ac_dir" != .; then
13405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13406 # A "../" for each directory in $ac_dir_suffix.
13407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13408 else
13409 ac_dir_suffix= ac_top_builddir=
13412 case $srcdir in
13413 .) # No --srcdir option. We are building in place.
13414 ac_srcdir=.
13415 if test -z "$ac_top_builddir"; then
13416 ac_top_srcdir=.
13417 else
13418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13419 fi ;;
13420 [\\/]* | ?:[\\/]* ) # Absolute path.
13421 ac_srcdir=$srcdir$ac_dir_suffix;
13422 ac_top_srcdir=$srcdir ;;
13423 *) # Relative path.
13424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13425 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13426 esac
13428 # Do not use `cd foo && pwd` to compute absolute paths, because
13429 # the directories may not exist.
13430 case `pwd` in
13431 .) ac_abs_builddir="$ac_dir";;
13433 case "$ac_dir" in
13434 .) ac_abs_builddir=`pwd`;;
13435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13436 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13437 esac;;
13438 esac
13439 case $ac_abs_builddir in
13440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13442 case ${ac_top_builddir}. in
13443 .) ac_abs_top_builddir=$ac_abs_builddir;;
13444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13446 esac;;
13447 esac
13448 case $ac_abs_builddir in
13449 .) ac_abs_srcdir=$ac_srcdir;;
13451 case $ac_srcdir in
13452 .) ac_abs_srcdir=$ac_abs_builddir;;
13453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13455 esac;;
13456 esac
13457 case $ac_abs_builddir in
13458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13460 case $ac_top_srcdir in
13461 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13464 esac;;
13465 esac
13468 case $INSTALL in
13469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13471 esac
13473 if test x"$ac_file" != x-; then
13474 { echo "$as_me:$LINENO: creating $ac_file" >&5
13475 echo "$as_me: creating $ac_file" >&6;}
13476 rm -f "$ac_file"
13478 # Let's still pretend it is `configure' which instantiates (i.e., don't
13479 # use $as_me), people would be surprised to read:
13480 # /* config.h. Generated by config.status. */
13481 if test x"$ac_file" = x-; then
13482 configure_input=
13483 else
13484 configure_input="$ac_file. "
13486 configure_input=$configure_input"Generated from `echo $ac_file_in |
13487 sed 's,.*/,,'` by configure."
13489 # First look for the input files in the build tree, otherwise in the
13490 # src tree.
13491 ac_file_inputs=`IFS=:
13492 for f in $ac_file_in; do
13493 case $f in
13494 -) echo $tmp/stdin ;;
13495 [\\/$]*)
13496 # Absolute (can't be DOS-style, as IFS=:)
13497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13498 echo "$as_me: error: cannot find input file: $f" >&2;}
13499 { (exit 1); exit 1; }; }
13500 echo "$f";;
13501 *) # Relative
13502 if test -f "$f"; then
13503 # Build tree
13504 echo "$f"
13505 elif test -f "$srcdir/$f"; then
13506 # Source tree
13507 echo "$srcdir/$f"
13508 else
13509 # /dev/null tree
13510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13511 echo "$as_me: error: cannot find input file: $f" >&2;}
13512 { (exit 1); exit 1; }; }
13513 fi;;
13514 esac
13515 done` || { (exit 1); exit 1; }
13516 _ACEOF
13517 cat >>$CONFIG_STATUS <<_ACEOF
13518 sed "$ac_vpsub
13519 $extrasub
13520 _ACEOF
13521 cat >>$CONFIG_STATUS <<\_ACEOF
13523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13524 s,@configure_input@,$configure_input,;t t
13525 s,@srcdir@,$ac_srcdir,;t t
13526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13527 s,@top_srcdir@,$ac_top_srcdir,;t t
13528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13529 s,@builddir@,$ac_builddir,;t t
13530 s,@abs_builddir@,$ac_abs_builddir,;t t
13531 s,@top_builddir@,$ac_top_builddir,;t t
13532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13533 s,@INSTALL@,$ac_INSTALL,;t t
13534 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13535 rm -f $tmp/stdin
13536 if test x"$ac_file" != x-; then
13537 mv $tmp/out $ac_file
13538 else
13539 cat $tmp/out
13540 rm -f $tmp/out
13543 done
13544 _ACEOF
13545 cat >>$CONFIG_STATUS <<\_ACEOF
13548 # CONFIG_HEADER section.
13551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13554 # ac_d sets the value in "#define NAME VALUE" lines.
13555 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13556 ac_dB='[ ].*$,\1#\2'
13557 ac_dC=' '
13558 ac_dD=',;t'
13559 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13560 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13561 ac_uB='$,\1#\2define\3'
13562 ac_uC=' '
13563 ac_uD=',;t'
13565 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13567 case $ac_file in
13568 - | *:- | *:-:* ) # input from stdin
13569 cat >$tmp/stdin
13570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13574 * ) ac_file_in=$ac_file.in ;;
13575 esac
13577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13578 echo "$as_me: creating $ac_file" >&6;}
13580 # First look for the input files in the build tree, otherwise in the
13581 # src tree.
13582 ac_file_inputs=`IFS=:
13583 for f in $ac_file_in; do
13584 case $f in
13585 -) echo $tmp/stdin ;;
13586 [\\/$]*)
13587 # Absolute (can't be DOS-style, as IFS=:)
13588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13589 echo "$as_me: error: cannot find input file: $f" >&2;}
13590 { (exit 1); exit 1; }; }
13591 # Do quote $f, to prevent DOS paths from being IFS'd.
13592 echo "$f";;
13593 *) # Relative
13594 if test -f "$f"; then
13595 # Build tree
13596 echo "$f"
13597 elif test -f "$srcdir/$f"; then
13598 # Source tree
13599 echo "$srcdir/$f"
13600 else
13601 # /dev/null tree
13602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13603 echo "$as_me: error: cannot find input file: $f" >&2;}
13604 { (exit 1); exit 1; }; }
13605 fi;;
13606 esac
13607 done` || { (exit 1); exit 1; }
13608 # Remove the trailing spaces.
13609 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13611 _ACEOF
13613 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13614 # `conftest.undefs', that substitutes the proper values into
13615 # config.h.in to produce config.h. The first handles `#define'
13616 # templates, and the second `#undef' templates.
13617 # And first: Protect against being on the right side of a sed subst in
13618 # config.status. Protect against being in an unquoted here document
13619 # in config.status.
13620 rm -f conftest.defines conftest.undefs
13621 # Using a here document instead of a string reduces the quoting nightmare.
13622 # Putting comments in sed scripts is not portable.
13624 # `end' is used to avoid that the second main sed command (meant for
13625 # 0-ary CPP macros) applies to n-ary macro definitions.
13626 # See the Autoconf documentation for `clear'.
13627 cat >confdef2sed.sed <<\_ACEOF
13628 s/[\\&,]/\\&/g
13629 s,[\\$`],\\&,g
13630 t clear
13631 : clear
13632 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13633 t end
13634 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13635 : end
13636 _ACEOF
13637 # If some macros were called several times there might be several times
13638 # the same #defines, which is useless. Nevertheless, we may not want to
13639 # sort them, since we want the *last* AC-DEFINE to be honored.
13640 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13641 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13642 rm -f confdef2sed.sed
13644 # This sed command replaces #undef with comments. This is necessary, for
13645 # example, in the case of _POSIX_SOURCE, which is predefined and required
13646 # on some systems where configure will not decide to define it.
13647 cat >>conftest.undefs <<\_ACEOF
13648 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13649 _ACEOF
13651 # Break up conftest.defines because some shells have a limit on the size
13652 # of here documents, and old seds have small limits too (100 cmds).
13653 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13654 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13655 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13656 echo ' :' >>$CONFIG_STATUS
13657 rm -f conftest.tail
13658 while grep . conftest.defines >/dev/null
13660 # Write a limited-size here document to $tmp/defines.sed.
13661 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13662 # Speed up: don't consider the non `#define' lines.
13663 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13664 # Work around the forget-to-reset-the-flag bug.
13665 echo 't clr' >>$CONFIG_STATUS
13666 echo ': clr' >>$CONFIG_STATUS
13667 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13668 echo 'CEOF
13669 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13670 rm -f $tmp/in
13671 mv $tmp/out $tmp/in
13672 ' >>$CONFIG_STATUS
13673 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13674 rm -f conftest.defines
13675 mv conftest.tail conftest.defines
13676 done
13677 rm -f conftest.defines
13678 echo ' fi # grep' >>$CONFIG_STATUS
13679 echo >>$CONFIG_STATUS
13681 # Break up conftest.undefs because some shells have a limit on the size
13682 # of here documents, and old seds have small limits too (100 cmds).
13683 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13684 rm -f conftest.tail
13685 while grep . conftest.undefs >/dev/null
13687 # Write a limited-size here document to $tmp/undefs.sed.
13688 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13689 # Speed up: don't consider the non `#undef'
13690 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13691 # Work around the forget-to-reset-the-flag bug.
13692 echo 't clr' >>$CONFIG_STATUS
13693 echo ': clr' >>$CONFIG_STATUS
13694 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13695 echo 'CEOF
13696 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13697 rm -f $tmp/in
13698 mv $tmp/out $tmp/in
13699 ' >>$CONFIG_STATUS
13700 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13701 rm -f conftest.undefs
13702 mv conftest.tail conftest.undefs
13703 done
13704 rm -f conftest.undefs
13706 cat >>$CONFIG_STATUS <<\_ACEOF
13707 # Let's still pretend it is `configure' which instantiates (i.e., don't
13708 # use $as_me), people would be surprised to read:
13709 # /* config.h. Generated by config.status. */
13710 if test x"$ac_file" = x-; then
13711 echo "/* Generated by configure. */" >$tmp/config.h
13712 else
13713 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13715 cat $tmp/in >>$tmp/config.h
13716 rm -f $tmp/in
13717 if test x"$ac_file" != x-; then
13718 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13719 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13720 echo "$as_me: $ac_file is unchanged" >&6;}
13721 else
13722 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13724 X"$ac_file" : 'X\(//\)[^/]' \| \
13725 X"$ac_file" : 'X\(//\)$' \| \
13726 X"$ac_file" : 'X\(/\)' \| \
13727 . : '\(.\)' 2>/dev/null ||
13728 echo X"$ac_file" |
13729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13731 /^X\(\/\/\)$/{ s//\1/; q; }
13732 /^X\(\/\).*/{ s//\1/; q; }
13733 s/.*/./; q'`
13734 { if $as_mkdir_p; then
13735 mkdir -p "$ac_dir"
13736 else
13737 as_dir="$ac_dir"
13738 as_dirs=
13739 while test ! -d "$as_dir"; do
13740 as_dirs="$as_dir $as_dirs"
13741 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13743 X"$as_dir" : 'X\(//\)[^/]' \| \
13744 X"$as_dir" : 'X\(//\)$' \| \
13745 X"$as_dir" : 'X\(/\)' \| \
13746 . : '\(.\)' 2>/dev/null ||
13747 echo X"$as_dir" |
13748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13750 /^X\(\/\/\)$/{ s//\1/; q; }
13751 /^X\(\/\).*/{ s//\1/; q; }
13752 s/.*/./; q'`
13753 done
13754 test ! -n "$as_dirs" || mkdir $as_dirs
13755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13756 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13757 { (exit 1); exit 1; }; }; }
13759 rm -f $ac_file
13760 mv $tmp/config.h $ac_file
13762 else
13763 cat $tmp/config.h
13764 rm -f $tmp/config.h
13766 # Compute $ac_file's index in $config_headers.
13767 _am_stamp_count=1
13768 for _am_header in $config_headers :; do
13769 case $_am_header in
13770 $ac_file | $ac_file:* )
13771 break ;;
13773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13774 esac
13775 done
13776 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13777 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778 X$ac_file : 'X\(//\)[^/]' \| \
13779 X$ac_file : 'X\(//\)$' \| \
13780 X$ac_file : 'X\(/\)' \| \
13781 . : '\(.\)' 2>/dev/null ||
13782 echo X$ac_file |
13783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13785 /^X\(\/\/\)$/{ s//\1/; q; }
13786 /^X\(\/\).*/{ s//\1/; q; }
13787 s/.*/./; q'`/stamp-h$_am_stamp_count
13788 done
13789 _ACEOF
13790 cat >>$CONFIG_STATUS <<\_ACEOF
13793 # CONFIG_COMMANDS section.
13795 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13798 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13800 X"$ac_dest" : 'X\(//\)[^/]' \| \
13801 X"$ac_dest" : 'X\(//\)$' \| \
13802 X"$ac_dest" : 'X\(/\)' \| \
13803 . : '\(.\)' 2>/dev/null ||
13804 echo X"$ac_dest" |
13805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13807 /^X\(\/\/\)$/{ s//\1/; q; }
13808 /^X\(\/\).*/{ s//\1/; q; }
13809 s/.*/./; q'`
13810 { if $as_mkdir_p; then
13811 mkdir -p "$ac_dir"
13812 else
13813 as_dir="$ac_dir"
13814 as_dirs=
13815 while test ! -d "$as_dir"; do
13816 as_dirs="$as_dir $as_dirs"
13817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13819 X"$as_dir" : 'X\(//\)[^/]' \| \
13820 X"$as_dir" : 'X\(//\)$' \| \
13821 X"$as_dir" : 'X\(/\)' \| \
13822 . : '\(.\)' 2>/dev/null ||
13823 echo X"$as_dir" |
13824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13826 /^X\(\/\/\)$/{ s//\1/; q; }
13827 /^X\(\/\).*/{ s//\1/; q; }
13828 s/.*/./; q'`
13829 done
13830 test ! -n "$as_dirs" || mkdir $as_dirs
13831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13833 { (exit 1); exit 1; }; }; }
13835 ac_builddir=.
13837 if test "$ac_dir" != .; then
13838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13839 # A "../" for each directory in $ac_dir_suffix.
13840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13841 else
13842 ac_dir_suffix= ac_top_builddir=
13845 case $srcdir in
13846 .) # No --srcdir option. We are building in place.
13847 ac_srcdir=.
13848 if test -z "$ac_top_builddir"; then
13849 ac_top_srcdir=.
13850 else
13851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13852 fi ;;
13853 [\\/]* | ?:[\\/]* ) # Absolute path.
13854 ac_srcdir=$srcdir$ac_dir_suffix;
13855 ac_top_srcdir=$srcdir ;;
13856 *) # Relative path.
13857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13859 esac
13861 # Do not use `cd foo && pwd` to compute absolute paths, because
13862 # the directories may not exist.
13863 case `pwd` in
13864 .) ac_abs_builddir="$ac_dir";;
13866 case "$ac_dir" in
13867 .) ac_abs_builddir=`pwd`;;
13868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13869 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13870 esac;;
13871 esac
13872 case $ac_abs_builddir in
13873 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13875 case ${ac_top_builddir}. in
13876 .) ac_abs_top_builddir=$ac_abs_builddir;;
13877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13879 esac;;
13880 esac
13881 case $ac_abs_builddir in
13882 .) ac_abs_srcdir=$ac_srcdir;;
13884 case $ac_srcdir in
13885 .) ac_abs_srcdir=$ac_abs_builddir;;
13886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13888 esac;;
13889 esac
13890 case $ac_abs_builddir in
13891 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13893 case $ac_top_srcdir in
13894 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13897 esac;;
13898 esac
13901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13902 echo "$as_me: executing $ac_dest commands" >&6;}
13903 case $ac_dest in
13904 default-1 )
13905 # Only add multilib support code if we just rebuilt the top-level
13906 # Makefile.
13907 case " $CONFIG_FILES " in
13908 *" Makefile "*)
13909 ac_file=Makefile . ${multi_basedir}/config-ml.in
13911 esac ;;
13912 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13913 # Strip MF so we end up with the name of the file.
13914 mf=`echo "$mf" | sed -e 's/:.*$//'`
13915 # Check whether this is an Automake generated Makefile or not.
13916 # We used to match only the files named `Makefile.in', but
13917 # some people rename them; so instead we look at the file content.
13918 # Grep'ing the first line is not enough: some people post-process
13919 # each Makefile.in and add a new line on top of each file to say so.
13920 # So let's grep whole file.
13921 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13922 dirpart=`(dirname "$mf") 2>/dev/null ||
13923 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13924 X"$mf" : 'X\(//\)[^/]' \| \
13925 X"$mf" : 'X\(//\)$' \| \
13926 X"$mf" : 'X\(/\)' \| \
13927 . : '\(.\)' 2>/dev/null ||
13928 echo X"$mf" |
13929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13931 /^X\(\/\/\)$/{ s//\1/; q; }
13932 /^X\(\/\).*/{ s//\1/; q; }
13933 s/.*/./; q'`
13934 else
13935 continue
13937 # Extract the definition of DEPDIR, am__include, and am__quote
13938 # from the Makefile without running `make'.
13939 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13940 test -z "$DEPDIR" && continue
13941 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13942 test -z "am__include" && continue
13943 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13944 # When using ansi2knr, U may be empty or an underscore; expand it
13945 U=`sed -n 's/^U = //p' < "$mf"`
13946 # Find all dependency output files, they are included files with
13947 # $(DEPDIR) in their names. We invoke sed twice because it is the
13948 # simplest approach to changing $(DEPDIR) to its actual value in the
13949 # expansion.
13950 for file in `sed -n "
13951 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13952 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13953 # Make sure the directory exists.
13954 test -f "$dirpart/$file" && continue
13955 fdir=`(dirname "$file") 2>/dev/null ||
13956 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13957 X"$file" : 'X\(//\)[^/]' \| \
13958 X"$file" : 'X\(//\)$' \| \
13959 X"$file" : 'X\(/\)' \| \
13960 . : '\(.\)' 2>/dev/null ||
13961 echo X"$file" |
13962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13964 /^X\(\/\/\)$/{ s//\1/; q; }
13965 /^X\(\/\).*/{ s//\1/; q; }
13966 s/.*/./; q'`
13967 { if $as_mkdir_p; then
13968 mkdir -p $dirpart/$fdir
13969 else
13970 as_dir=$dirpart/$fdir
13971 as_dirs=
13972 while test ! -d "$as_dir"; do
13973 as_dirs="$as_dir $as_dirs"
13974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13976 X"$as_dir" : 'X\(//\)[^/]' \| \
13977 X"$as_dir" : 'X\(//\)$' \| \
13978 X"$as_dir" : 'X\(/\)' \| \
13979 . : '\(.\)' 2>/dev/null ||
13980 echo X"$as_dir" |
13981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13983 /^X\(\/\/\)$/{ s//\1/; q; }
13984 /^X\(\/\).*/{ s//\1/; q; }
13985 s/.*/./; q'`
13986 done
13987 test ! -n "$as_dirs" || mkdir $as_dirs
13988 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13989 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13990 { (exit 1); exit 1; }; }; }
13992 # echo "creating $dirpart/$file"
13993 echo '# dummy' > "$dirpart/$file"
13994 done
13995 done
13997 libtool )
13999 # See if we are running on zsh, and set the options which allow our
14000 # commands through without removal of \ escapes.
14001 if test -n "${ZSH_VERSION+set}" ; then
14002 setopt NO_GLOB_SUBST
14005 cfgfile="${ofile}T"
14006 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14007 $RM "$cfgfile"
14009 cat <<_LT_EOF >> "$cfgfile"
14010 #! $SHELL
14012 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14013 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14015 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14017 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14018 # 2006, 2007 Free Software Foundation, Inc.
14020 # This file is part of GNU Libtool:
14021 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14023 # This program is free software; you can redistribute it and/or modify
14024 # it under the terms of the GNU General Public License as published by
14025 # the Free Software Foundation; either version 2 of the License, or
14026 # (at your option) any later version.
14028 # This program is distributed in the hope that it will be useful, but
14029 # WITHOUT ANY WARRANTY; without even the implied warranty of
14030 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14031 # General Public License for more details.
14033 # You should have received a copy of the GNU General Public License
14034 # along with this program; if not, a copy can be downloaded from
14035 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14036 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14037 # MA 02110-1301, USA.
14039 # As a special exception to the GNU General Public License, if you
14040 # distribute this file as part of a program that contains a
14041 # configuration script generated by Autoconf, you may include it under
14042 # the same distribution terms that you use for the rest of that program.
14045 # The names of the tagged configurations supported by this script.
14046 available_tags=""
14048 # ### BEGIN LIBTOOL CONFIG
14050 # Which release of libtool.m4 was used?
14051 macro_version=$macro_version
14052 macro_revision=$macro_revision
14054 # Whether or not to build shared libraries.
14055 build_libtool_libs=$enable_shared
14057 # Whether or not to build static libraries.
14058 build_old_libs=$enable_static
14060 # What type of objects to build.
14061 pic_mode=$pic_mode
14063 # Whether or not to optimize for fast installation.
14064 fast_install=$enable_fast_install
14066 # The host system.
14067 host_alias=$host_alias
14068 host=$host
14069 host_os=$host_os
14071 # The build system.
14072 build_alias=$build_alias
14073 build=$build
14074 build_os=$build_os
14076 # A sed program that does not truncate output.
14077 SED=$lt_SED
14079 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14080 Xsed="\$SED -e 1s/^X//"
14082 # A grep program that handles long lines.
14083 GREP=$lt_GREP
14085 # An ERE matcher.
14086 EGREP=$lt_EGREP
14088 # A literal string matcher.
14089 FGREP=$lt_FGREP
14091 # A BSD- or MS-compatible name lister.
14092 NM=$lt_NM
14094 # Whether we need soft or hard links.
14095 LN_S=$lt_LN_S
14097 # What is the maximum length of a command?
14098 max_cmd_len=$max_cmd_len
14100 # Object file suffix (normally "o").
14101 objext=$ac_objext
14103 # Executable file suffix (normally "").
14104 exeext=$exeext
14106 # whether the shell understands "unset".
14107 lt_unset=$lt_unset
14109 # turn spaces into newlines.
14110 SP2NL=$lt_lt_SP2NL
14112 # turn newlines into spaces.
14113 NL2SP=$lt_lt_NL2SP
14115 # How to create reloadable object files.
14116 reload_flag=$lt_reload_flag
14117 reload_cmds=$lt_reload_cmds
14119 # Method to check whether dependent libraries are shared objects.
14120 deplibs_check_method=$lt_deplibs_check_method
14122 # Command to use when deplibs_check_method == "file_magic".
14123 file_magic_cmd=$lt_file_magic_cmd
14125 # The archiver.
14126 AR=$lt_AR
14127 AR_FLAGS=$lt_AR_FLAGS
14129 # A symbol stripping program.
14130 STRIP=$lt_STRIP
14132 # Commands used to install an old-style archive.
14133 RANLIB=$lt_RANLIB
14134 old_postinstall_cmds=$lt_old_postinstall_cmds
14135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14137 # A C compiler.
14138 LTCC=$lt_CC
14140 # LTCC compiler flags.
14141 LTCFLAGS=$lt_CFLAGS
14143 # Take the output of nm and produce a listing of raw symbols and C names.
14144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14146 # Transform the output of nm in a proper C declaration.
14147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14149 # Transform the output of nm in a C name address pair.
14150 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14152 # The name of the directory that contains temporary libtool files.
14153 objdir=$objdir
14155 # Shell to use when invoking shell scripts.
14156 SHELL=$lt_SHELL
14158 # An echo program that does not interpret backslashes.
14159 ECHO=$lt_ECHO
14161 # Used to examine libraries when file_magic_cmd begins with "file".
14162 MAGIC_CMD=$MAGIC_CMD
14164 # Must we lock files when doing compilation?
14165 need_locks=$lt_need_locks
14167 # Old archive suffix (normally "a").
14168 libext=$libext
14170 # Shared library suffix (normally ".so").
14171 shrext_cmds=$lt_shrext_cmds
14173 # The commands to extract the exported symbol list from a shared archive.
14174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14176 # Variables whose values should be saved in libtool wrapper scripts and
14177 # restored at link time.
14178 variables_saved_for_relink=$lt_variables_saved_for_relink
14180 # Do we need the "lib" prefix for modules?
14181 need_lib_prefix=$need_lib_prefix
14183 # Do we need a version for libraries?
14184 need_version=$need_version
14186 # Library versioning type.
14187 version_type=$version_type
14189 # Shared library runtime path variable.
14190 runpath_var=$runpath_var
14192 # Shared library path variable.
14193 shlibpath_var=$shlibpath_var
14195 # Is shlibpath searched before the hard-coded library search path?
14196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14198 # Format of library name prefix.
14199 libname_spec=$lt_libname_spec
14201 # List of archive names. First name is the real one, the rest are links.
14202 # The last name is the one that the linker finds with -lNAME
14203 library_names_spec=$lt_library_names_spec
14205 # The coded name of the library, if different from the real name.
14206 soname_spec=$lt_soname_spec
14208 # Command to use after installation of a shared archive.
14209 postinstall_cmds=$lt_postinstall_cmds
14211 # Command to use after uninstallation of a shared archive.
14212 postuninstall_cmds=$lt_postuninstall_cmds
14214 # Commands used to finish a libtool library installation in a directory.
14215 finish_cmds=$lt_finish_cmds
14217 # As "finish_cmds", except a single script fragment to be evaled but
14218 # not shown.
14219 finish_eval=$lt_finish_eval
14221 # Whether we should hardcode library paths into libraries.
14222 hardcode_into_libs=$hardcode_into_libs
14224 # Compile-time system search path for libraries.
14225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14227 # Run-time system search path for libraries.
14228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14230 # Whether dlopen is supported.
14231 dlopen_support=$enable_dlopen
14233 # Whether dlopen of programs is supported.
14234 dlopen_self=$enable_dlopen_self
14236 # Whether dlopen of statically linked programs is supported.
14237 dlopen_self_static=$enable_dlopen_self_static
14239 # Commands to strip libraries.
14240 old_striplib=$lt_old_striplib
14241 striplib=$lt_striplib
14244 # The linker used to build libraries.
14245 LD=$lt_LD
14247 # Commands used to build an old-style archive.
14248 old_archive_cmds=$lt_old_archive_cmds
14250 # A language specific compiler.
14251 CC=$lt_compiler
14253 # Is the compiler the GNU compiler?
14254 with_gcc=$GCC
14256 # Compiler flag to turn off builtin functions.
14257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14259 # How to pass a linker flag through the compiler.
14260 wl=$lt_lt_prog_compiler_wl
14262 # Additional compiler flags for building library objects.
14263 pic_flag=$lt_lt_prog_compiler_pic
14265 # Compiler flag to prevent dynamic linking.
14266 link_static_flag=$lt_lt_prog_compiler_static
14268 # Does compiler simultaneously support -c and -o options?
14269 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14271 # Whether or not to add -lc for building shared libraries.
14272 build_libtool_need_lc=$archive_cmds_need_lc
14274 # Whether or not to disallow shared libs when runtime libs are static.
14275 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14277 # Compiler flag to allow reflexive dlopens.
14278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14280 # Compiler flag to generate shared objects directly from archives.
14281 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14283 # Whether the compiler copes with passing no objects directly.
14284 compiler_needs_object=$lt_compiler_needs_object
14286 # Create an old-style archive from a shared archive.
14287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14289 # Create a temporary old-style archive to link instead of a shared archive.
14290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14292 # Commands used to build a shared archive.
14293 archive_cmds=$lt_archive_cmds
14294 archive_expsym_cmds=$lt_archive_expsym_cmds
14296 # Commands used to build a loadable module if different from building
14297 # a shared archive.
14298 module_cmds=$lt_module_cmds
14299 module_expsym_cmds=$lt_module_expsym_cmds
14301 # Whether we are building with GNU ld or not.
14302 with_gnu_ld=$lt_with_gnu_ld
14304 # Flag that allows shared libraries with undefined symbols to be built.
14305 allow_undefined_flag=$lt_allow_undefined_flag
14307 # Flag that enforces no undefined symbols.
14308 no_undefined_flag=$lt_no_undefined_flag
14310 # Flag to hardcode \$libdir into a binary during linking.
14311 # This must work even if \$libdir does not exist
14312 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14314 # If ld is used when linking, flag to hardcode \$libdir into a binary
14315 # during linking. This must work even if \$libdir does not exist.
14316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14318 # Whether we need a single "-rpath" flag with a separated argument.
14319 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14321 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14322 # DIR into the resulting binary.
14323 hardcode_direct=$hardcode_direct
14325 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14326 # DIR into the resulting binary and the resulting library dependency is
14327 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14328 # library is relocated.
14329 hardcode_direct_absolute=$hardcode_direct_absolute
14331 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14332 # into the resulting binary.
14333 hardcode_minus_L=$hardcode_minus_L
14335 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14336 # into the resulting binary.
14337 hardcode_shlibpath_var=$hardcode_shlibpath_var
14339 # Set to "yes" if building a shared library automatically hardcodes DIR
14340 # into the library and all subsequent libraries and executables linked
14341 # against it.
14342 hardcode_automatic=$hardcode_automatic
14344 # Set to yes if linker adds runtime paths of dependent libraries
14345 # to runtime path list.
14346 inherit_rpath=$inherit_rpath
14348 # Whether libtool must link a program against all its dependency libraries.
14349 link_all_deplibs=$link_all_deplibs
14351 # Fix the shell variable \$srcfile for the compiler.
14352 fix_srcfile_path=$lt_fix_srcfile_path
14354 # Set to "yes" if exported symbols are required.
14355 always_export_symbols=$always_export_symbols
14357 # The commands to list exported symbols.
14358 export_symbols_cmds=$lt_export_symbols_cmds
14360 # Symbols that should not be listed in the preloaded symbols.
14361 exclude_expsyms=$lt_exclude_expsyms
14363 # Symbols that must always be exported.
14364 include_expsyms=$lt_include_expsyms
14366 # Commands necessary for linking programs (against libraries) with templates.
14367 prelink_cmds=$lt_prelink_cmds
14369 # Specify filename containing input files.
14370 file_list_spec=$lt_file_list_spec
14372 # How to hardcode a shared library path into an executable.
14373 hardcode_action=$hardcode_action
14375 # ### END LIBTOOL CONFIG
14377 _LT_EOF
14379 case $host_os in
14380 aix3*)
14381 cat <<\_LT_EOF >> "$cfgfile"
14382 # AIX sometimes has problems with the GCC collect2 program. For some
14383 # reason, if we set the COLLECT_NAMES environment variable, the problems
14384 # vanish in a puff of smoke.
14385 if test "X${COLLECT_NAMES+set}" != Xset; then
14386 COLLECT_NAMES=
14387 export COLLECT_NAMES
14389 _LT_EOF
14391 esac
14394 ltmain="$ac_aux_dir/ltmain.sh"
14397 # We use sed instead of cat because bash on DJGPP gets confused if
14398 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14399 # text mode, it properly converts lines to CR/LF. This bash problem
14400 # is reportedly fixed, but why not run on old versions too?
14401 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14402 || (rm -f "$cfgfile"; exit 1)
14404 case $xsi_shell in
14405 yes)
14406 cat << \_LT_EOF >> "$cfgfile"
14407 # func_dirname file append nondir_replacement
14408 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14409 # otherwise set result to NONDIR_REPLACEMENT.
14410 func_dirname ()
14412 case ${1} in
14413 */*) func_dirname_result="${1%/*}${2}" ;;
14414 * ) func_dirname_result="${3}" ;;
14415 esac
14418 # func_basename file
14419 func_basename ()
14421 func_basename_result="${1##*/}"
14424 # func_stripname prefix suffix name
14425 # strip PREFIX and SUFFIX off of NAME.
14426 # PREFIX and SUFFIX must not contain globbing or regex special
14427 # characters, hashes, percent signs, but SUFFIX may contain a leading
14428 # dot (in which case that matches only a dot).
14429 func_stripname ()
14431 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14432 # positional parameters, so assign one to ordinary parameter first.
14433 func_stripname_result=${3}
14434 func_stripname_result=${func_stripname_result#"${1}"}
14435 func_stripname_result=${func_stripname_result%"${2}"}
14438 # func_opt_split
14439 func_opt_split ()
14441 func_opt_split_opt=${1%%=*}
14442 func_opt_split_arg=${1#*=}
14445 # func_lo2o object
14446 func_lo2o ()
14448 case ${1} in
14449 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14450 *) func_lo2o_result=${1} ;;
14451 esac
14453 _LT_EOF
14455 *) # Bourne compatible functions.
14456 cat << \_LT_EOF >> "$cfgfile"
14457 # func_dirname file append nondir_replacement
14458 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14459 # otherwise set result to NONDIR_REPLACEMENT.
14460 func_dirname ()
14462 # Extract subdirectory from the argument.
14463 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14464 if test "X$func_dirname_result" = "X${1}"; then
14465 func_dirname_result="${3}"
14466 else
14467 func_dirname_result="$func_dirname_result${2}"
14471 # func_basename file
14472 func_basename ()
14474 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14477 # func_stripname prefix suffix name
14478 # strip PREFIX and SUFFIX off of NAME.
14479 # PREFIX and SUFFIX must not contain globbing or regex special
14480 # characters, hashes, percent signs, but SUFFIX may contain a leading
14481 # dot (in which case that matches only a dot).
14482 # func_strip_suffix prefix name
14483 func_stripname ()
14485 case ${2} in
14486 .*) func_stripname_result=`$ECHO "X${3}" \
14487 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14488 *) func_stripname_result=`$ECHO "X${3}" \
14489 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14490 esac
14493 # sed scripts:
14494 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14495 my_sed_long_arg='1s/^-[^=]*=//'
14497 # func_opt_split
14498 func_opt_split ()
14500 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14501 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14504 # func_lo2o object
14505 func_lo2o ()
14507 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14509 _LT_EOF
14510 esac
14512 case $lt_shell_append in
14513 yes)
14514 cat << \_LT_EOF >> "$cfgfile"
14516 # func_append var value
14517 # Append VALUE to the end of shell variable VAR.
14518 func_append ()
14520 eval "$1+=\$2"
14522 _LT_EOF
14525 cat << \_LT_EOF >> "$cfgfile"
14527 # func_append var value
14528 # Append VALUE to the end of shell variable VAR.
14529 func_append ()
14531 eval "$1=\$$1\$2"
14533 _LT_EOF
14535 esac
14538 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14539 || (rm -f "$cfgfile"; exit 1)
14541 mv -f "$cfgfile" "$ofile" ||
14542 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14543 chmod +x "$ofile"
14546 esac
14547 done
14548 _ACEOF
14550 cat >>$CONFIG_STATUS <<\_ACEOF
14552 { (exit 0); exit 0; }
14553 _ACEOF
14554 chmod +x $CONFIG_STATUS
14555 ac_clean_files=$ac_clean_files_save
14558 # configure is writing to config.log, and then calls config.status.
14559 # config.status does its own redirection, appending to config.log.
14560 # Unfortunately, on DOS this fails, as config.log is still kept open
14561 # by configure, so config.status won't be able to write to it; its
14562 # output is simply discarded. So we exec the FD to /dev/null,
14563 # effectively closing config.log, so it can be properly (re)opened and
14564 # appended to by config.status. When coming back to configure, we
14565 # need to make the FD available again.
14566 if test "$no_create" != yes; then
14567 ac_cs_success=:
14568 ac_config_status_args=
14569 test "$silent" = yes &&
14570 ac_config_status_args="$ac_config_status_args --quiet"
14571 exec 5>/dev/null
14572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14573 exec 5>>config.log
14574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14575 # would make configure fail if this is the last instruction.
14576 $ac_cs_success || { (exit 1); exit 1; }