Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / libmudflap / configure
blobae1be92e2074628a95451a201ed339aaf7bfa2d5
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 OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913 # Report the --help message.
915 if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
921 Usage: $0 [OPTION]... [VAR=VALUE]...
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE. See below for descriptions of some of the useful variables.
926 Defaults for the options are specified in brackets.
928 Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
939 _ACEOF
941 cat <<_ACEOF
942 Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
953 For better control, use the options below.
955 Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968 _ACEOF
970 cat <<\_ACEOF
972 Program names:
973 --program-prefix=PREFIX prepend PREFIX to installed program names
974 --program-suffix=SUFFIX append SUFFIX to installed program names
975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
977 System types:
978 --build=BUILD configure for building on BUILD [guessed]
979 --host=HOST cross-compile to build programs to run on HOST [BUILD]
980 --target=TARGET configure for building compilers for TARGET [HOST]
981 _ACEOF
984 if test -n "$ac_init_help"; then
985 case $ac_init_help in
986 short | recursive ) echo "Configuration of libmudflap 1.0:";;
987 esac
988 cat <<\_ACEOF
990 Optional Features:
991 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
992 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
993 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
994 --enable-maintainer-mode enable make rules and dependencies not useful
995 (and sometimes confusing) to the casual installer
996 --enable-multilib build many library versions (default)
997 --disable-dependency-tracking speeds up one-time build
998 --enable-dependency-tracking do not reject slow dependency extractors
999 --enable-shared[=PKGS]
1000 build shared libraries [default=yes]
1001 --enable-static[=PKGS]
1002 build static libraries [default=yes]
1003 --enable-fast-install[=PKGS]
1004 optimize for fast installation [default=yes]
1005 --disable-libtool-lock avoid locking (might break parallel builds)
1006 --enable-tls Use thread-local storage [default=yes]
1008 Optional Packages:
1009 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1010 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1027 _ACEOF
1030 if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1037 if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042 ac_dir_suffix= ac_top_builddir=
1045 case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098 esac
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115 cd $ac_popdir
1116 done
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121 cat <<\_ACEOF
1122 libmudflap configure 1.0
1123 generated by GNU Autoconf 2.59
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129 exit 0
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1136 It was created by libmudflap $as_me 1.0, which was
1137 generated by GNU Autoconf 2.59. Invocation command line was
1139 $ $0 $@
1141 _ACEOF
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1157 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1165 _ASUNAME
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1170 IFS=$as_save_IFS
1171 test -z "$as_dir" && as_dir=.
1172 echo "PATH: $as_dir"
1173 done
1175 } >&5
1177 cat >&5 <<_ACEOF
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1184 _ACEOF
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1199 for ac_arg
1201 case $ac_arg in
1202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 continue ;;
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 esac
1209 case $ac_pass in
1210 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1212 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213 if test $ac_must_keep_next = true; then
1214 ac_must_keep_next=false # Got value, back to normal.
1215 else
1216 case $ac_arg in
1217 *=* | --config-cache | -C | -disable-* | --disable-* \
1218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220 | -with-* | --with-* | -without-* | --without-* | --x)
1221 case "$ac_configure_args0 " in
1222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223 esac
1225 -* ) ac_must_keep_next=true ;;
1226 esac
1228 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229 # Get rid of the leading space.
1230 ac_sep=" "
1232 esac
1233 done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log. We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244 # Save into config.log some information that might help in debugging.
1246 echo
1248 cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253 echo
1254 # The following way of writing the cache mishandles newlines in values,
1256 (set) 2>&1 |
1257 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258 *ac_space=\ *)
1259 sed -n \
1260 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1264 sed -n \
1265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1267 esac;
1269 echo
1271 cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276 echo
1277 for ac_var in $ac_subst_vars
1279 eval ac_val=$`echo $ac_var`
1280 echo "$ac_var='"'"'$ac_val'"'"'"
1281 done | sort
1282 echo
1284 if test -n "$ac_subst_files"; then
1285 cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_files
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1299 if test -s confdefs.h; then
1300 cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305 echo
1306 sed "/^$/d" confdefs.h | sort
1307 echo
1309 test "$ac_signal" != 0 &&
1310 echo "$as_me: caught signal $ac_signal"
1311 echo "$as_me: exit $exit_status"
1312 } >&5
1313 rm -f core *.core &&
1314 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315 exit $exit_status
1317 for ac_signal in 1 2 13 15; do
1318 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1327 # Predefined preprocessor variables.
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357 if test "x$prefix" != xNONE; then
1358 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359 else
1360 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1363 for ac_site_file in $CONFIG_SITE; do
1364 if test -r "$ac_site_file"; then
1365 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367 sed 's/^/| /' "$ac_site_file" >&5
1368 . "$ac_site_file"
1370 done
1372 if test -r "$cache_file"; then
1373 # Some versions of bash will fail to source /dev/null (special
1374 # files actually), so we avoid doing that.
1375 if test -f "$cache_file"; then
1376 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378 case $cache_file in
1379 [\\/]* | ?:[\\/]* ) . $cache_file;;
1380 *) . ./$cache_file;;
1381 esac
1383 else
1384 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386 >$cache_file
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395 eval ac_new_set=\$ac_env_${ac_var}_set
1396 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397 eval ac_new_val="\$ac_env_${ac_var}_value"
1398 case $ac_old_set,$ac_new_set in
1399 set,)
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1403 ,set)
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1407 ,);;
1409 if test "x$ac_old_val" != "x$ac_new_val"; then
1410 # differences in whitespace do not lead to failure.
1411 ac_old_val_w=`echo x $ac_old_val`
1412 ac_new_val_w=`echo x $ac_new_val`
1413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416 ac_cache_corrupted=:
1417 else
1418 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420 eval $ac_var=\$ac_old_val
1422 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1423 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1424 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1425 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1426 fi;;
1427 esac
1428 # Pass precious variables to config.status.
1429 if test "$ac_new_set" = set; then
1430 case $ac_new_val in
1431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433 *) ac_arg=$ac_var=$ac_new_val ;;
1434 esac
1435 case " $ac_configure_args " in
1436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1437 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438 esac
1440 done
1441 if $ac_cache_corrupted; then
1442 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 ac_cv_host_alias=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias=$ac_cv_build_alias
1552 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1560 host=$ac_cv_host
1561 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566 echo "$as_me:$LINENO: checking target system type" >&5
1567 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1568 if test "${ac_cv_target+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 ac_cv_target_alias=$target_alias
1572 test "x$ac_cv_target_alias" = "x" &&
1573 ac_cv_target_alias=$ac_cv_host_alias
1574 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1580 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1581 echo "${ECHO_T}$ac_cv_target" >&6
1582 target=$ac_cv_target
1583 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588 # The aliases save the names the user supplied, while $host etc.
1589 # will get canonicalized.
1590 test -n "$target_alias" &&
1591 test "$program_prefix$program_suffix$program_transform_name" = \
1592 NONENONEs,x,x, &&
1593 program_prefix=${target_alias}-
1594 case ${build_alias} in
1595 "") build_noncanonical=${build} ;;
1596 *) build_noncanonical=${build_alias} ;;
1597 esac
1599 case ${host_alias} in
1600 "") host_noncanonical=${build_noncanonical} ;;
1601 *) host_noncanonical=${host_alias} ;;
1602 esac
1604 case ${target_alias} in
1605 "") target_noncanonical=${host_noncanonical} ;;
1606 *) target_noncanonical=${target_alias} ;;
1607 esac
1612 am__api_version="1.9"
1613 # Find a good install program. We prefer a C program (faster),
1614 # so one script is as good as another. But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1619 # AIX /bin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 # Reject install programs that cannot install multiple files.
1627 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1628 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1629 if test -z "$INSTALL"; then
1630 if test "${ac_cv_path_install+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 # Account for people who put trailing slashes in PATH elements.
1639 case $as_dir/ in
1640 ./ | .// | /cC/* | \
1641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1642 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1643 /usr/ucb/* ) ;;
1645 # OSF1 and SCO ODT 3.0 have their own names for install.
1646 # Don't use installbsd from OSF since it installs stuff as root
1647 # by default.
1648 for ac_prog in ginstall scoinst install; do
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1651 if test $ac_prog = install &&
1652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1653 # AIX install. It has an incompatible calling convention.
1655 elif test $ac_prog = install &&
1656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1657 # program-specific install script used by HP pwplus--don't use.
1659 else
1660 rm -rf conftest.one conftest.two conftest.dir
1661 echo one > conftest.one
1662 echo two > conftest.two
1663 mkdir conftest.dir
1664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1665 test -s conftest.one && test -s conftest.two &&
1666 test -s conftest.dir/conftest.one &&
1667 test -s conftest.dir/conftest.two
1668 then
1669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1670 break 3
1674 done
1675 done
1677 esac
1678 done
1680 rm -rf conftest.one conftest.two conftest.dir
1683 if test "${ac_cv_path_install+set}" = set; then
1684 INSTALL=$ac_cv_path_install
1685 else
1686 # As a last resort, use the slow shell script. Don't cache a
1687 # value for INSTALL within a source directory, because that will
1688 # break other packages using the cache if that directory is
1689 # removed, or if the value is a relative name.
1690 INSTALL=$ac_install_sh
1693 echo "$as_me:$LINENO: result: $INSTALL" >&5
1694 echo "${ECHO_T}$INSTALL" >&6
1696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697 # It thinks the first close brace ends the variable substitution.
1698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1704 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706 # Just in case
1707 sleep 1
1708 echo timestamp > conftest.file
1709 # Do `set' in a subshell so we don't clobber the current shell's
1710 # arguments. Must try -L first in case configure is actually a
1711 # symlink; some systems play weird games with the mod time of symlinks
1712 # (eg FreeBSD returns the mod time of the symlink's containing
1713 # directory).
1714 if (
1715 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716 if test "$*" = "X"; then
1717 # -L didn't work.
1718 set X `ls -t $srcdir/configure conftest.file`
1720 rm -f conftest.file
1721 if test "$*" != "X $srcdir/configure conftest.file" \
1722 && test "$*" != "X conftest.file $srcdir/configure"; then
1724 # If neither matched, then we have a broken ls. This can happen
1725 # if, for instance, CONFIG_SHELL is bash and it inherits a
1726 # broken ls alias from the environment. This has actually
1727 # happened. Such a system could not be considered "sane".
1728 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1731 alias in your environment" >&2;}
1732 { (exit 1); exit 1; }; }
1735 test "$2" = conftest.file
1737 then
1738 # Ok.
1740 else
1741 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745 { (exit 1); exit 1; }; }
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749 test "$program_prefix" != NONE &&
1750 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751 # Use a double $ so make ignores it.
1752 test "$program_suffix" != NONE &&
1753 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754 # Double any \ or $. echo might interpret backslashes.
1755 # By default was `s,x,x', remove it if useless.
1756 cat <<\_ACEOF >conftest.sed
1757 s/[\\$]/&&/g;s/;s,x,x,$//
1758 _ACEOF
1759 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760 rm conftest.sed
1762 # expand $ac_aux_dir to an absolute path
1763 am_aux_dir=`cd $ac_aux_dir && pwd`
1765 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1766 # Use eval to expand $SHELL
1767 if eval "$MISSING --run true"; then
1768 am_missing_run="$MISSING --run "
1769 else
1770 am_missing_run=
1771 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1772 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1775 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1776 # We used to keeping the `.' as first argument, in order to
1777 # allow $(mkdir_p) to be used without argument. As in
1778 # $(mkdir_p) $(somedir)
1779 # where $(somedir) is conditionally defined. However this is wrong
1780 # for two reasons:
1781 # 1. if the package is installed by a user who cannot write `.'
1782 # make install will fail,
1783 # 2. the above comment should most certainly read
1784 # $(mkdir_p) $(DESTDIR)$(somedir)
1785 # so it does not work when $(somedir) is undefined and
1786 # $(DESTDIR) is not.
1787 # To support the latter case, we have to write
1788 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1789 # so the `.' trick is pointless.
1790 mkdir_p='mkdir -p --'
1791 else
1792 # On NextStep and OpenStep, the `mkdir' command does not
1793 # recognize any option. It will interpret all options as
1794 # directories to create, and then abort because `.' already
1795 # exists.
1796 for d in ./-p ./--version;
1798 test -d $d && rmdir $d
1799 done
1800 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1801 if test -f "$ac_aux_dir/mkinstalldirs"; then
1802 mkdir_p='$(mkinstalldirs)'
1803 else
1804 mkdir_p='$(install_sh) -d'
1808 for ac_prog in gawk mawk nawk awk
1810 # Extract the first word of "$ac_prog", so it can be a program name with args.
1811 set dummy $ac_prog; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_AWK+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$AWK"; then
1818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_AWK="$ac_prog"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1836 AWK=$ac_cv_prog_AWK
1837 if test -n "$AWK"; then
1838 echo "$as_me:$LINENO: result: $AWK" >&5
1839 echo "${ECHO_T}$AWK" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 test -n "$AWK" && break
1846 done
1848 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1849 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 cat >conftest.make <<\_ACEOF
1855 all:
1856 @echo 'ac_maketemp="$(MAKE)"'
1857 _ACEOF
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1860 if test -n "$ac_maketemp"; then
1861 eval ac_cv_prog_make_${ac_make}_set=yes
1862 else
1863 eval ac_cv_prog_make_${ac_make}_set=no
1865 rm -f conftest.make
1867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870 SET_MAKE=
1871 else
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 SET_MAKE="MAKE=${MAKE-make}"
1877 rm -rf .tst 2>/dev/null
1878 mkdir .tst 2>/dev/null
1879 if test -d .tst; then
1880 am__leading_dot=.
1881 else
1882 am__leading_dot=_
1884 rmdir .tst 2>/dev/null
1886 # test to see if srcdir already configured
1887 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1888 test -f $srcdir/config.status; then
1889 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1890 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1891 { (exit 1); exit 1; }; }
1894 # test whether we have cygpath
1895 if test -z "$CYGPATH_W"; then
1896 if (cygpath --version) >/dev/null 2>/dev/null; then
1897 CYGPATH_W='cygpath -w'
1898 else
1899 CYGPATH_W=echo
1904 # Define the identity of the package.
1905 PACKAGE='libmudflap'
1906 VERSION='1.0'
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE "$PACKAGE"
1911 _ACEOF
1914 cat >>confdefs.h <<_ACEOF
1915 #define VERSION "$VERSION"
1916 _ACEOF
1918 # Some tools Automake needs.
1920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'. However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$STRIP"; then
1950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970 echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1972 else
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1978 if test -z "$ac_cv_prog_STRIP"; then
1979 ac_ct_STRIP=$STRIP
1980 # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test -n "$ac_ct_STRIP"; then
1988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_STRIP="strip"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2001 done
2002 done
2004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 else
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2016 STRIP=$ac_ct_STRIP
2017 else
2018 STRIP="$ac_cv_prog_STRIP"
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2024 # We need awk for the "check" target. The system "awk" is bad on
2025 # some platforms.
2026 # Always define AMTAR for backward compatibility.
2028 AMTAR=${AMTAR-"${am_missing_run}tar"}
2030 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2037 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2038 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2039 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2040 if test "${enable_version_specific_runtime_libs+set}" = set; then
2041 enableval="$enable_version_specific_runtime_libs"
2042 case "$enableval" in
2043 yes) version_specific_libs=yes ;;
2044 no) version_specific_libs=no ;;
2045 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2046 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2047 { (exit 1); exit 1; }; };;
2048 esac
2049 else
2050 version_specific_libs=no
2052 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2053 echo "${ECHO_T}$version_specific_libs" >&6
2055 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2057 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058 if test "${enable_maintainer_mode+set}" = set; then
2059 enableval="$enable_maintainer_mode"
2060 USE_MAINTAINER_MODE=$enableval
2061 else
2062 USE_MAINTAINER_MODE=no
2064 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2068 if test $USE_MAINTAINER_MODE = yes; then
2069 MAINTAINER_MODE_TRUE=
2070 MAINTAINER_MODE_FALSE='#'
2071 else
2072 MAINTAINER_MODE_TRUE='#'
2073 MAINTAINER_MODE_FALSE=
2076 MAINT=$MAINTAINER_MODE_TRUE
2081 # Default to --enable-multilib
2082 # Check whether --enable-multilib or --disable-multilib was given.
2083 if test "${enable_multilib+set}" = set; then
2084 enableval="$enable_multilib"
2085 case "$enableval" in
2086 yes) multilib=yes ;;
2087 no) multilib=no ;;
2088 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2089 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2090 { (exit 1); exit 1; }; } ;;
2091 esac
2092 else
2093 multilib=yes
2096 # We may get other options which we leave undocumented:
2097 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2098 # See config-ml.in if you want the gory details.
2100 if test "$srcdir" = "."; then
2101 if test "$with_target_subdir" != "."; then
2102 multi_basedir="$srcdir/$with_multisrctop../.."
2103 else
2104 multi_basedir="$srcdir/$with_multisrctop.."
2106 else
2107 multi_basedir="$srcdir/.."
2111 # Even if the default multilib is not a cross compilation,
2112 # it may be that some of the other multilibs are.
2113 if test $cross_compiling = no && test $multilib = yes \
2114 && test "x${with_multisubdir}" != x ; then
2115 cross_compiling=maybe
2118 ac_config_commands="$ac_config_commands default-1"
2121 target_alias=${target_alias-$host_alias}
2124 ac_config_headers="$ac_config_headers config.h"
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2134 # We must force CC to /not/ be precious variables; otherwise
2135 # the wrong, non-multilib-adjusted value will be used in multilibs.
2136 # As a side effect, we have to subst CFLAGS ourselves.
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2182 if test -z "$ac_cv_prog_CC"; then
2183 ac_ct_CC=$CC
2184 # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="gcc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2219 CC=$ac_ct_CC
2220 else
2221 CC="$ac_cv_prog_CC"
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="${ac_tool_prefix}cc"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2262 if test -z "$ac_cv_prog_CC"; then
2263 ac_ct_CC=$CC
2264 # Extract the first word of "cc", so it can be a program name with args.
2265 set dummy cc; ac_word=$2
2266 echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 if test -n "$ac_ct_CC"; then
2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281 ac_cv_prog_ac_ct_CC="cc"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2285 done
2286 done
2290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291 if test -n "$ac_ct_CC"; then
2292 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293 echo "${ECHO_T}$ac_ct_CC" >&6
2294 else
2295 echo "$as_me:$LINENO: result: no" >&5
2296 echo "${ECHO_T}no" >&6
2299 CC=$ac_ct_CC
2300 else
2301 CC="$ac_cv_prog_CC"
2305 if test -z "$CC"; then
2306 # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316 ac_prog_rejected=no
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325 ac_prog_rejected=yes
2326 continue
2328 ac_cv_prog_CC="cc"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2332 done
2333 done
2335 if test $ac_prog_rejected = yes; then
2336 # We found a bogon in the path, so make sure we never use it.
2337 set dummy $ac_cv_prog_CC
2338 shift
2339 if test $# != 0; then
2340 # We chose a different compiler from the bogus one.
2341 # However, it has the same basename, so the bogon will be chosen
2342 # first if we set CC to just the basename; use the full file name.
2343 shift
2344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$CC"; then
2360 if test -n "$ac_tool_prefix"; then
2361 for ac_prog in cl
2363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391 echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2398 test -n "$CC" && break
2399 done
2401 if test -z "$CC"; then
2402 ac_ct_CC=$CC
2403 for ac_prog in cl
2405 # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412 if test -n "$ac_ct_CC"; then
2413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_ac_ct_CC="$ac_prog"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2426 done
2427 done
2431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432 if test -n "$ac_ct_CC"; then
2433 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434 echo "${ECHO_T}$ac_ct_CC" >&6
2435 else
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2440 test -n "$ac_ct_CC" && break
2441 done
2443 CC=$ac_ct_CC
2449 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455 { (exit 1); exit 1; }; }; }
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459 "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462 (eval $ac_compiler --version </dev/null >&5) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467 (eval $ac_compiler -v </dev/null >&5) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472 (eval $ac_compiler -V </dev/null >&5) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2485 main ()
2489 return 0;
2491 _ACEOF
2492 ac_clean_files_save=$ac_clean_files
2493 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2494 # Try to create an executable without -o first, disregard a.out.
2495 # It will help us diagnose broken compilers, and finding out an intuition
2496 # of exeext.
2497 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2498 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2499 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2501 (eval $ac_link_default) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; then
2505 # Find the output, starting from the most likely. This scheme is
2506 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2507 # resort.
2509 # Be careful to initialize this variable, since it used to be cached.
2510 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2511 ac_cv_exeext=
2512 # b.out is created by i960 compilers.
2513 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2515 test -f "$ac_file" || continue
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2519 conftest.$ac_ext )
2520 # This is the source file.
2522 [ab].out )
2523 # We found the default executable, but exeext='' is most
2524 # certainly right.
2525 break;;
2526 *.* )
2527 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 # FIXME: I believe we export ac_cv_exeext for Libtool,
2529 # but it would be cool to find out if it's true. Does anybody
2530 # maintain Libtool? --akim.
2531 export ac_cv_exeext
2532 break;;
2534 break;;
2535 esac
2536 done
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2542 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&2;}
2547 { (exit 77); exit 77; }; }; }
2550 ac_exeext=$ac_cv_exeext
2551 echo "$as_me:$LINENO: result: $ac_file" >&5
2552 echo "${ECHO_T}$ac_file" >&6
2554 # Check the compiler produces executables we can run. If not, either
2555 # the compiler is broken, or we cross compile.
2556 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2559 # If not cross compiling, check that we can run a simple program.
2560 if test "$cross_compiling" != yes; then
2561 if { ac_try='./$ac_file'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 cross_compiling=no
2568 else
2569 if test "$cross_compiling" = maybe; then
2570 cross_compiling=yes
2571 else
2572 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2573 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }; }
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 # `rm'.
2607 for ac_file in conftest.exe conftest conftest.*; do
2608 test -f "$ac_file" || continue
2609 case $ac_file in
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612 export ac_cv_exeext
2613 break;;
2614 * ) break;;
2615 esac
2616 done
2617 else
2618 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }; }
2627 rm -f conftest$ac_cv_exeext
2628 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2633 ac_exeext=$EXEEXT
2634 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2636 if test "${ac_cv_objext+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 main ()
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.o conftest.obj
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; then
2660 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2661 case $ac_file in
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2663 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664 break;;
2665 esac
2666 done
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2671 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2672 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2676 See \`config.log' for more details." >&2;}
2677 { (exit 1); exit 1; }; }; }
2680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2682 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2683 echo "${ECHO_T}$ac_cv_objext" >&6
2684 OBJEXT=$ac_cv_objext
2685 ac_objext=$OBJEXT
2686 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2687 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2688 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2699 main ()
2701 #ifndef __GNUC__
2702 choke me
2703 #endif
2706 return 0;
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_compiler_gnu=yes
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 ac_compiler_gnu=no
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 CFLAGS="-g"
2748 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 ac_cv_prog_cc_g=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 ac_cv_prog_cc_g=no
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2805 CFLAGS="-g -O2"
2806 else
2807 CFLAGS="-g"
2809 else
2810 if test "$GCC" = yes; then
2811 CFLAGS="-O2"
2812 else
2813 CFLAGS=
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 ac_cv_prog_cc_stdc=no
2822 ac_save_CC=$CC
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837 char **p;
2838 int i;
2840 return p[i];
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2844 char *s;
2845 va_list v;
2846 va_start (v,p);
2847 s = g (p, va_arg (v,int));
2848 va_end (v);
2849 return s;
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std1 is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std1. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 int argc;
2866 char **argv;
2868 main ()
2870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2872 return 0;
2874 _ACEOF
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX -qlanglvl=ansi
2878 # Ultrix and OSF/1 -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions -Aa -D_HPUX_SOURCE
2881 # SVR4 -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC="$ac_save_CC $ac_arg"
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag"
2895 || test ! -s conftest.err'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_prog_cc_stdc=$ac_arg
2908 break
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f conftest.err conftest.$ac_objext
2915 done
2916 rm -f conftest.$ac_ext conftest.$ac_objext
2917 CC=$ac_save_CC
2921 case "x$ac_cv_prog_cc_stdc" in
2922 x|xno)
2923 echo "$as_me:$LINENO: result: none needed" >&5
2924 echo "${ECHO_T}none needed" >&6 ;;
2926 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2928 CC="$CC $ac_cv_prog_cc_stdc" ;;
2929 esac
2931 # Some people use a C++ compiler to compile C. Since we use `exit',
2932 # in C++ we need to declare it. In case someone uses the same compiler
2933 # for both compiling C and C++ we need to have the C++ compiler decide
2934 # the declaration of exit, since it's the most demanding environment.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #ifndef __cplusplus
2937 choke me
2938 #endif
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 for ac_declaration in \
2963 '' \
2964 'extern "C" void std::exit (int) throw (); using std::exit;' \
2965 'extern "C" void std::exit (int); using std::exit;' \
2966 'extern "C" void exit (int) throw ();' \
2967 'extern "C" void exit (int);' \
2968 'void exit (int);'
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976 $ac_declaration
2977 #include <stdlib.h>
2979 main ()
2981 exit (42);
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988 (eval $ac_compile) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_c_werror_flag"
2996 || test ! -s conftest.err'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 continue
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 $ac_declaration
3024 main ()
3026 exit (42);
3028 return 0;
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag"
3041 || test ! -s conftest.err'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 break
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 done
3061 rm -f conftest*
3062 if test -n "$ac_declaration"; then
3063 echo '#ifdef __cplusplus' >>confdefs.h
3064 echo $ac_declaration >>confdefs.h
3065 echo '#endif' >>confdefs.h
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 DEPDIR="${am__leading_dot}deps"
3081 ac_config_commands="$ac_config_commands depfiles"
3084 am_make=${MAKE-make}
3085 cat > confinc << 'END'
3086 am__doit:
3087 @echo done
3088 .PHONY: am__doit
3090 # If we don't find an include directive, just comment out the code.
3091 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3092 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3093 am__include="#"
3094 am__quote=
3095 _am_result=none
3096 # First try GNU make style include.
3097 echo "include confinc" > confmf
3098 # We grep out `Entering directory' and `Leaving directory'
3099 # messages which can occur if `w' ends up in MAKEFLAGS.
3100 # In particular we don't look at `^make:' because GNU make might
3101 # be invoked under some other name (usually "gmake"), in which
3102 # case it prints its new name instead of `make'.
3103 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3104 am__include=include
3105 am__quote=
3106 _am_result=GNU
3108 # Now try BSD make style include.
3109 if test "$am__include" = "#"; then
3110 echo '.include "confinc"' > confmf
3111 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3112 am__include=.include
3113 am__quote="\""
3114 _am_result=BSD
3119 echo "$as_me:$LINENO: result: $_am_result" >&5
3120 echo "${ECHO_T}$_am_result" >&6
3121 rm -f confinc confmf
3123 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3124 if test "${enable_dependency_tracking+set}" = set; then
3125 enableval="$enable_dependency_tracking"
3128 if test "x$enable_dependency_tracking" != xno; then
3129 am_depcomp="$ac_aux_dir/depcomp"
3130 AMDEPBACKSLASH='\'
3134 if test "x$enable_dependency_tracking" != xno; then
3135 AMDEP_TRUE=
3136 AMDEP_FALSE='#'
3137 else
3138 AMDEP_TRUE='#'
3139 AMDEP_FALSE=
3145 depcc="$CC" am_compiler_list=
3147 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3148 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3153 # We make a subdir and do the tests there. Otherwise we can end up
3154 # making bogus files that we don't know about and never remove. For
3155 # instance it was reported that on HP-UX the gcc test will end up
3156 # making a dummy file named `D' -- because `-MD' means `put the output
3157 # in D'.
3158 mkdir conftest.dir
3159 # Copy depcomp to subdir because otherwise we won't find it if we're
3160 # using a relative directory.
3161 cp "$am_depcomp" conftest.dir
3162 cd conftest.dir
3163 # We will build objects and dependencies in a subdirectory because
3164 # it helps to detect inapplicable dependency modes. For instance
3165 # both Tru64's cc and ICC support -MD to output dependencies as a
3166 # side effect of compilation, but ICC will put the dependencies in
3167 # the current directory while Tru64 will put them in the object
3168 # directory.
3169 mkdir sub
3171 am_cv_CC_dependencies_compiler_type=none
3172 if test "$am_compiler_list" = ""; then
3173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3175 for depmode in $am_compiler_list; do
3176 # Setup a source with many dependencies, because some compilers
3177 # like to wrap large dependency lists on column 80 (with \), and
3178 # we should not choose a depcomp mode which is confused by this.
3180 # We need to recreate these files for each test, as the compiler may
3181 # overwrite some of them when testing with obscure command lines.
3182 # This happens at least with the AIX C compiler.
3183 : > sub/conftest.c
3184 for i in 1 2 3 4 5 6; do
3185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3187 # Solaris 8's {/usr,}/bin/sh.
3188 touch sub/conftst$i.h
3189 done
3190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3192 case $depmode in
3193 nosideeffect)
3194 # after this tag, mechanisms are not by side-effect, so they'll
3195 # only be used when explicitly requested
3196 if test "x$enable_dependency_tracking" = xyes; then
3197 continue
3198 else
3199 break
3202 none) break ;;
3203 esac
3204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3205 # mode. It turns out that the SunPro C++ compiler does not properly
3206 # handle `-M -o', and we need to detect this.
3207 if depmode=$depmode \
3208 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3210 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3211 >/dev/null 2>conftest.err &&
3212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3215 # icc doesn't choke on unknown options, it will just issue warnings
3216 # or remarks (even with -Werror). So we grep stderr for any message
3217 # that says an option was ignored or not supported.
3218 # When given -MP, icc 7.0 and 7.1 complain thusly:
3219 # icc: Command line warning: ignoring option '-M'; no argument required
3220 # The diagnosis changed in icc 8.0:
3221 # icc: Command line remark: option '-MP' not supported
3222 if (grep 'ignoring option' conftest.err ||
3223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3224 am_cv_CC_dependencies_compiler_type=$depmode
3225 break
3228 done
3230 cd ..
3231 rm -rf conftest.dir
3232 else
3233 am_cv_CC_dependencies_compiler_type=none
3237 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3238 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3244 test "x$enable_dependency_tracking" != xno \
3245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3246 am__fastdepCC_TRUE=
3247 am__fastdepCC_FALSE='#'
3248 else
3249 am__fastdepCC_TRUE='#'
3250 am__fastdepCC_FALSE=
3258 if test "x$GCC" != "xyes"; then
3259 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3260 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3261 { (exit 1); exit 1; }; }
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3272 CPP=
3274 if test -z "$CPP"; then
3275 if test "${ac_cv_prog_CPP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 # Double quotes because CPP needs to be expanded
3279 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3281 ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3284 # Use a header file that comes with gcc, so configuring glibc
3285 # with a fresh cross-compiler works.
3286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287 # <limits.h> exists even on freestanding compilers.
3288 # On the NeXT, cc -E runs the code through the compiler's parser,
3289 # not just through cpp. "Syntax error" is here to catch this case.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301 Syntax error
3302 _ACEOF
3303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } >/dev/null; then
3311 if test -s conftest.err; then
3312 ac_cpp_err=$ac_c_preproc_warn_flag
3313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 else
3315 ac_cpp_err=
3317 else
3318 ac_cpp_err=yes
3320 if test -z "$ac_cpp_err"; then
3322 else
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 # Broken: fails on valid input.
3327 continue
3329 rm -f conftest.err conftest.$ac_ext
3331 # OK, works on sane cases. Now check whether non-existent headers
3332 # can be detected and how.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <ac_nonexistent.h>
3340 _ACEOF
3341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } >/dev/null; then
3349 if test -s conftest.err; then
3350 ac_cpp_err=$ac_c_preproc_warn_flag
3351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352 else
3353 ac_cpp_err=
3355 else
3356 ac_cpp_err=yes
3358 if test -z "$ac_cpp_err"; then
3359 # Broken: success on invalid input.
3360 continue
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 # Passes both tests.
3366 ac_preproc_ok=:
3367 break
3369 rm -f conftest.err conftest.$ac_ext
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375 break
3378 done
3379 ac_cv_prog_CPP=$CPP
3382 CPP=$ac_cv_prog_CPP
3383 else
3384 ac_cv_prog_CPP=$CPP
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408 Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3424 else
3425 ac_cpp_err=yes
3427 if test -z "$ac_cpp_err"; then
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Broken: fails on valid input.
3434 continue
3436 rm -f conftest.err conftest.$ac_ext
3438 # OK, works on sane cases. Now check whether non-existent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null; then
3456 if test -s conftest.err; then
3457 ac_cpp_err=$ac_c_preproc_warn_flag
3458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 else
3460 ac_cpp_err=
3462 else
3463 ac_cpp_err=yes
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3467 continue
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3476 rm -f conftest.err conftest.$ac_ext
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3483 else
3484 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3485 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }; }
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3501 # symbol interposition. We disable shared libraries for these.
3502 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3503 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 #define _GNU_SOURCE
3513 #include <dlfcn.h>
3516 main ()
3518 void *foo = dlsym (RTLD_NEXT, "exit");
3520 return 0;
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3553 enable_shared=no
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3558 echo "$as_me:$LINENO: checking for egrep" >&5
3559 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3560 if test "${ac_cv_prog_egrep+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3564 then ac_cv_prog_egrep='grep -E'
3565 else ac_cv_prog_egrep='egrep'
3568 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3569 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3570 EGREP=$ac_cv_prog_egrep
3573 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3574 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3575 if test "${ac_cv_header_stdc+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h. */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3584 #include <stdlib.h>
3585 #include <stdarg.h>
3586 #include <string.h>
3587 #include <float.h>
3590 main ()
3594 return 0;
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_header_stdc=yes
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 ac_cv_header_stdc=no
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 if test $ac_cv_header_stdc = yes; then
3629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <string.h>
3638 _ACEOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 $EGREP "memchr" >/dev/null 2>&1; then
3642 else
3643 ac_cv_header_stdc=no
3645 rm -f conftest*
3649 if test $ac_cv_header_stdc = yes; then
3650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #include <stdlib.h>
3659 _ACEOF
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661 $EGREP "free" >/dev/null 2>&1; then
3663 else
3664 ac_cv_header_stdc=no
3666 rm -f conftest*
3670 if test $ac_cv_header_stdc = yes; then
3671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672 if test "$cross_compiling" = yes; then
3674 else
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 #include <ctype.h>
3682 #if ((' ' & 0x0FF) == 0x020)
3683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685 #else
3686 # define ISLOWER(c) \
3687 (('a' <= (c) && (c) <= 'i') \
3688 || ('j' <= (c) && (c) <= 'r') \
3689 || ('s' <= (c) && (c) <= 'z'))
3690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691 #endif
3693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3695 main ()
3697 int i;
3698 for (i = 0; i < 256; i++)
3699 if (XOR (islower (i), ISLOWER (i))
3700 || toupper (i) != TOUPPER (i))
3701 exit(2);
3702 exit (0);
3704 _ACEOF
3705 rm -f conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3717 else
3718 echo "$as_me: program exited with status $ac_status" >&5
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 ( exit $ac_status )
3723 ac_cv_header_stdc=no
3725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3731 if test $ac_cv_header_stdc = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define STDC_HEADERS 1
3735 _ACEOF
3739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750 inttypes.h stdint.h unistd.h
3752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 eval "$as_ac_Header=yes"
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 eval "$as_ac_Header=no"
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3808 done
3830 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3831 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3832 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836 echo "$as_me:$LINENO: checking for $ac_header" >&5
3837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3843 else
3844 # Is the header compilable?
3845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 $ac_includes_default
3854 #include <$ac_header>
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_header_compiler=yes
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_header_compiler=no
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3887 echo "${ECHO_T}$ac_header_compiler" >&6
3889 # Is the header present?
3890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <$ac_header>
3899 _ACEOF
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev/null; then
3908 if test -s conftest.err; then
3909 ac_cpp_err=$ac_c_preproc_warn_flag
3910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911 else
3912 ac_cpp_err=
3914 else
3915 ac_cpp_err=yes
3917 if test -z "$ac_cpp_err"; then
3918 ac_header_preproc=yes
3919 else
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 ac_header_preproc=no
3925 rm -f conftest.err conftest.$ac_ext
3926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3927 echo "${ECHO_T}$ac_header_preproc" >&6
3929 # So? What about this header?
3930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3931 yes:no: )
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3936 ac_header_preproc=yes
3938 no:yes:* )
3939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3952 cat <<\_ASBOX
3953 ## ------------------------------------- ##
3954 ## Report this to the libmudflap lists. ##
3955 ## ------------------------------------- ##
3956 _ASBOX
3958 sed "s/^/$as_me: WARNING: /" >&2
3960 esac
3961 echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 eval "$as_ac_Header=\$ac_header_preproc"
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973 cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3979 done
3986 for ac_func in backtrace backtrace_symbols gettimeofday signal
3988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3989 echo "$as_me:$LINENO: checking for $ac_func" >&5
3990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3991 if eval "test \"\${$as_ac_var+set}\" = set"; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4002 #define $ac_func innocuous_$ac_func
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char $ac_func (); below.
4006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 <limits.h> exists even on freestanding compilers. */
4009 #ifdef __STDC__
4010 # include <limits.h>
4011 #else
4012 # include <assert.h>
4013 #endif
4015 #undef $ac_func
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 #ifdef __cplusplus
4019 extern "C"
4021 #endif
4022 /* We use char because int might match the return type of a gcc2
4023 builtin and then its argument prototype would still apply. */
4024 char $ac_func ();
4025 /* The GNU C library defines this for functions which it implements
4026 to always fail with ENOSYS. Some functions are actually named
4027 something starting with __ and the normal name is an alias. */
4028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 choke me
4030 #else
4031 char (*f) () = $ac_func;
4032 #endif
4033 #ifdef __cplusplus
4035 #endif
4038 main ()
4040 return f != $ac_func;
4042 return 0;
4044 _ACEOF
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047 (eval $ac_link) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag"
4055 || test ! -s conftest.err'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; } &&
4061 { ac_try='test -s conftest$ac_exeext'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 (eval $ac_try) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_var=yes"
4068 else
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 eval "$as_ac_var=no"
4074 rm -f conftest.err conftest.$ac_objext \
4075 conftest$ac_exeext conftest.$ac_ext
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4079 if test `eval echo '${'$as_ac_var'}'` = yes; then
4080 cat >>confdefs.h <<_ACEOF
4081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4082 _ACEOF
4085 done
4092 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4095 echo "$as_me:$LINENO: checking for $ac_func" >&5
4096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4097 if eval "test \"\${$as_ac_var+set}\" = set"; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4108 #define $ac_func innocuous_$ac_func
4110 /* System header to define __stub macros and hopefully few prototypes,
4111 which can conflict with char $ac_func (); below.
4112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 <limits.h> exists even on freestanding compilers. */
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4121 #undef $ac_func
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 #ifdef __cplusplus
4125 extern "C"
4127 #endif
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4130 char $ac_func ();
4131 /* The GNU C library defines this for functions which it implements
4132 to always fail with ENOSYS. Some functions are actually named
4133 something starting with __ and the normal name is an alias. */
4134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4135 choke me
4136 #else
4137 char (*f) () = $ac_func;
4138 #endif
4139 #ifdef __cplusplus
4141 #endif
4144 main ()
4146 return f != $ac_func;
4148 return 0;
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153 (eval $ac_link) 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } &&
4160 { ac_try='test -z "$ac_c_werror_flag"
4161 || test ! -s conftest.err'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 eval "$as_ac_var=yes"
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 eval "$as_ac_var=no"
4180 rm -f conftest.err conftest.$ac_objext \
4181 conftest$ac_exeext conftest.$ac_ext
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4185 if test `eval echo '${'$as_ac_var'}'` = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4188 _ACEOF
4191 done
4197 for ac_func in setbuf setbuffer setlinebuf setvbuf
4199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200 echo "$as_me:$LINENO: checking for $ac_func" >&5
4201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202 if eval "test \"\${$as_ac_var+set}\" = set"; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4213 #define $ac_func innocuous_$ac_func
4215 /* System header to define __stub macros and hopefully few prototypes,
4216 which can conflict with char $ac_func (); below.
4217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 <limits.h> exists even on freestanding compilers. */
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4226 #undef $ac_func
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 #ifdef __cplusplus
4230 extern "C"
4232 #endif
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4235 char $ac_func ();
4236 /* The GNU C library defines this for functions which it implements
4237 to always fail with ENOSYS. Some functions are actually named
4238 something starting with __ and the normal name is an alias. */
4239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240 choke me
4241 #else
4242 char (*f) () = $ac_func;
4243 #endif
4244 #ifdef __cplusplus
4246 #endif
4249 main ()
4251 return f != $ac_func;
4253 return 0;
4255 _ACEOF
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 eval "$as_ac_var=yes"
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 eval "$as_ac_var=no"
4285 rm -f conftest.err conftest.$ac_objext \
4286 conftest$ac_exeext conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290 if test `eval echo '${'$as_ac_var'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293 _ACEOF
4296 done
4303 for ac_func in strnlen memrchr strncpy memmem sethostname
4305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4306 echo "$as_me:$LINENO: checking for $ac_func" >&5
4307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_var+set}\" = set"; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4319 #define $ac_func innocuous_$ac_func
4321 /* System header to define __stub macros and hopefully few prototypes,
4322 which can conflict with char $ac_func (); below.
4323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 <limits.h> exists even on freestanding compilers. */
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4332 #undef $ac_func
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 #ifdef __cplusplus
4336 extern "C"
4338 #endif
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char $ac_func ();
4342 /* The GNU C library defines this for functions which it implements
4343 to always fail with ENOSYS. Some functions are actually named
4344 something starting with __ and the normal name is an alias. */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 choke me
4347 #else
4348 char (*f) () = $ac_func;
4349 #endif
4350 #ifdef __cplusplus
4352 #endif
4355 main ()
4357 return f != $ac_func;
4359 return 0;
4361 _ACEOF
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>conftest.er1
4365 ac_status=$?
4366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 eval "$as_ac_var=yes"
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 eval "$as_ac_var=no"
4391 rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4396 if test `eval echo '${'$as_ac_var'}'` = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4399 _ACEOF
4402 done
4407 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4410 echo "$as_me:$LINENO: checking for $ac_func" >&5
4411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4412 if eval "test \"\${$as_ac_var+set}\" = set"; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h. */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4423 #define $ac_func innocuous_$ac_func
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char $ac_func (); below.
4427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 <limits.h> exists even on freestanding compilers. */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4436 #undef $ac_func
4438 /* Override any gcc2 internal prototype to avoid an error. */
4439 #ifdef __cplusplus
4440 extern "C"
4442 #endif
4443 /* We use char because int might match the return type of a gcc2
4444 builtin and then its argument prototype would still apply. */
4445 char $ac_func ();
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 char (*f) () = $ac_func;
4453 #endif
4454 #ifdef __cplusplus
4456 #endif
4459 main ()
4461 return f != $ac_func;
4463 return 0;
4465 _ACEOF
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag"
4476 || test ! -s conftest.err'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest$ac_exeext'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 eval "$as_ac_var=yes"
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 eval "$as_ac_var=no"
4495 rm -f conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4500 if test `eval echo '${'$as_ac_var'}'` = yes; then
4501 cat >>confdefs.h <<_ACEOF
4502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4503 _ACEOF
4506 done
4516 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4519 echo "$as_me:$LINENO: checking for $ac_func" >&5
4520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_var+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4532 #define $ac_func innocuous_$ac_func
4534 /* System header to define __stub macros and hopefully few prototypes,
4535 which can conflict with char $ac_func (); below.
4536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537 <limits.h> exists even on freestanding compilers. */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4545 #undef $ac_func
4547 /* Override any gcc2 internal prototype to avoid an error. */
4548 #ifdef __cplusplus
4549 extern "C"
4551 #endif
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char $ac_func ();
4555 /* The GNU C library defines this for functions which it implements
4556 to always fail with ENOSYS. Some functions are actually named
4557 something starting with __ and the normal name is an alias. */
4558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 choke me
4560 #else
4561 char (*f) () = $ac_func;
4562 #endif
4563 #ifdef __cplusplus
4565 #endif
4568 main ()
4570 return f != $ac_func;
4572 return 0;
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -z "$ac_c_werror_flag"
4585 || test ! -s conftest.err'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; } &&
4591 { ac_try='test -s conftest$ac_exeext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 eval "$as_ac_var=yes"
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 eval "$as_ac_var=no"
4604 rm -f conftest.err conftest.$ac_objext \
4605 conftest$ac_exeext conftest.$ac_ext
4607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4609 if test `eval echo '${'$as_ac_var'}'` = yes; then
4610 cat >>confdefs.h <<_ACEOF
4611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4612 _ACEOF
4615 done
4622 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4625 echo "$as_me:$LINENO: checking for $ac_func" >&5
4626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4627 if eval "test \"\${$as_ac_var+set}\" = set"; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4638 #define $ac_func innocuous_$ac_func
4640 /* System header to define __stub macros and hopefully few prototypes,
4641 which can conflict with char $ac_func (); below.
4642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643 <limits.h> exists even on freestanding compilers. */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4651 #undef $ac_func
4653 /* Override any gcc2 internal prototype to avoid an error. */
4654 #ifdef __cplusplus
4655 extern "C"
4657 #endif
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4660 char $ac_func ();
4661 /* The GNU C library defines this for functions which it implements
4662 to always fail with ENOSYS. Some functions are actually named
4663 something starting with __ and the normal name is an alias. */
4664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4665 choke me
4666 #else
4667 char (*f) () = $ac_func;
4668 #endif
4669 #ifdef __cplusplus
4671 #endif
4674 main ()
4676 return f != $ac_func;
4678 return 0;
4680 _ACEOF
4681 rm -f conftest.$ac_objext conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683 (eval $ac_link) 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -z "$ac_c_werror_flag"
4691 || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 eval "$as_ac_var=yes"
4704 else
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 eval "$as_ac_var=no"
4710 rm -f conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4715 if test `eval echo '${'$as_ac_var'}'` = yes; then
4716 cat >>confdefs.h <<_ACEOF
4717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4718 _ACEOF
4721 done
4728 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4731 echo "$as_me:$LINENO: checking for $ac_func" >&5
4732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_var+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4744 #define $ac_func innocuous_$ac_func
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func (); below.
4748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 <limits.h> exists even on freestanding compilers. */
4751 #ifdef __STDC__
4752 # include <limits.h>
4753 #else
4754 # include <assert.h>
4755 #endif
4757 #undef $ac_func
4759 /* Override any gcc2 internal prototype to avoid an error. */
4760 #ifdef __cplusplus
4761 extern "C"
4763 #endif
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4766 char $ac_func ();
4767 /* The GNU C library defines this for functions which it implements
4768 to always fail with ENOSYS. Some functions are actually named
4769 something starting with __ and the normal name is an alias. */
4770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4771 choke me
4772 #else
4773 char (*f) () = $ac_func;
4774 #endif
4775 #ifdef __cplusplus
4777 #endif
4780 main ()
4782 return f != $ac_func;
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 eval "$as_ac_var=yes"
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 eval "$as_ac_var=no"
4816 rm -f conftest.err conftest.$ac_objext \
4817 conftest$ac_exeext conftest.$ac_ext
4819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4821 if test `eval echo '${'$as_ac_var'}'` = yes; then
4822 cat >>confdefs.h <<_ACEOF
4823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4824 _ACEOF
4827 done
4832 for ac_func in getprotoent getprotobyname getprotobynumber
4834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835 echo "$as_me:$LINENO: checking for $ac_func" >&5
4836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_var+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4848 #define $ac_func innocuous_$ac_func
4850 /* System header to define __stub macros and hopefully few prototypes,
4851 which can conflict with char $ac_func (); below.
4852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 <limits.h> exists even on freestanding compilers. */
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4861 #undef $ac_func
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 #ifdef __cplusplus
4865 extern "C"
4867 #endif
4868 /* We use char because int might match the return type of a gcc2
4869 builtin and then its argument prototype would still apply. */
4870 char $ac_func ();
4871 /* The GNU C library defines this for functions which it implements
4872 to always fail with ENOSYS. Some functions are actually named
4873 something starting with __ and the normal name is an alias. */
4874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4875 choke me
4876 #else
4877 char (*f) () = $ac_func;
4878 #endif
4879 #ifdef __cplusplus
4881 #endif
4884 main ()
4886 return f != $ac_func;
4888 return 0;
4890 _ACEOF
4891 rm -f conftest.$ac_objext conftest$ac_exeext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893 (eval $ac_link) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -z "$ac_c_werror_flag"
4901 || test ! -s conftest.err'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; } &&
4907 { ac_try='test -s conftest$ac_exeext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 eval "$as_ac_var=yes"
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 eval "$as_ac_var=no"
4920 rm -f conftest.err conftest.$ac_objext \
4921 conftest$ac_exeext conftest.$ac_ext
4923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4925 if test `eval echo '${'$as_ac_var'}'` = yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4928 _ACEOF
4931 done
4936 for ac_func in getmntent setmntent addmntent
4938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4939 echo "$as_me:$LINENO: checking for $ac_func" >&5
4940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_var+set}\" = set"; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4952 #define $ac_func innocuous_$ac_func
4954 /* System header to define __stub macros and hopefully few prototypes,
4955 which can conflict with char $ac_func (); below.
4956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4957 <limits.h> exists even on freestanding compilers. */
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4965 #undef $ac_func
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 #ifdef __cplusplus
4969 extern "C"
4971 #endif
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4974 char $ac_func ();
4975 /* The GNU C library defines this for functions which it implements
4976 to always fail with ENOSYS. Some functions are actually named
4977 something starting with __ and the normal name is an alias. */
4978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4979 choke me
4980 #else
4981 char (*f) () = $ac_func;
4982 #endif
4983 #ifdef __cplusplus
4985 #endif
4988 main ()
4990 return f != $ac_func;
4992 return 0;
4994 _ACEOF
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4997 (eval $ac_link) 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest$ac_exeext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 eval "$as_ac_var=yes"
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 eval "$as_ac_var=no"
5024 rm -f conftest.err conftest.$ac_objext \
5025 conftest$ac_exeext conftest.$ac_ext
5027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5029 if test `eval echo '${'$as_ac_var'}'` = yes; then
5030 cat >>confdefs.h <<_ACEOF
5031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5032 _ACEOF
5035 done
5040 for ac_func in inet_ntoa mmap munmap
5042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5043 echo "$as_me:$LINENO: checking for $ac_func" >&5
5044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_var+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5056 #define $ac_func innocuous_$ac_func
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func (); below.
5060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061 <limits.h> exists even on freestanding compilers. */
5063 #ifdef __STDC__
5064 # include <limits.h>
5065 #else
5066 # include <assert.h>
5067 #endif
5069 #undef $ac_func
5071 /* Override any gcc2 internal prototype to avoid an error. */
5072 #ifdef __cplusplus
5073 extern "C"
5075 #endif
5076 /* We use char because int might match the return type of a gcc2
5077 builtin and then its argument prototype would still apply. */
5078 char $ac_func ();
5079 /* The GNU C library defines this for functions which it implements
5080 to always fail with ENOSYS. Some functions are actually named
5081 something starting with __ and the normal name is an alias. */
5082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5083 choke me
5084 #else
5085 char (*f) () = $ac_func;
5086 #endif
5087 #ifdef __cplusplus
5089 #endif
5092 main ()
5094 return f != $ac_func;
5096 return 0;
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 eval "$as_ac_var=yes"
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 eval "$as_ac_var=no"
5128 rm -f conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
5131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5133 if test `eval echo '${'$as_ac_var'}'` = yes; then
5134 cat >>confdefs.h <<_ACEOF
5135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5136 _ACEOF
5139 done
5142 for ac_func in __libc_freeres
5144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5145 echo "$as_me:$LINENO: checking for $ac_func" >&5
5146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5147 if eval "test \"\${$as_ac_var+set}\" = set"; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5158 #define $ac_func innocuous_$ac_func
5160 /* System header to define __stub macros and hopefully few prototypes,
5161 which can conflict with char $ac_func (); below.
5162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 <limits.h> exists even on freestanding compilers. */
5165 #ifdef __STDC__
5166 # include <limits.h>
5167 #else
5168 # include <assert.h>
5169 #endif
5171 #undef $ac_func
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 #ifdef __cplusplus
5175 extern "C"
5177 #endif
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5180 char $ac_func ();
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 choke me
5186 #else
5187 char (*f) () = $ac_func;
5188 #endif
5189 #ifdef __cplusplus
5191 #endif
5194 main ()
5196 return f != $ac_func;
5198 return 0;
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_c_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 eval "$as_ac_var=yes"
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5228 eval "$as_ac_var=no"
5230 rm -f conftest.err conftest.$ac_objext \
5231 conftest$ac_exeext conftest.$ac_ext
5233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5235 if test `eval echo '${'$as_ac_var'}'` = yes; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5238 _ACEOF
5241 done
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <sys/types.h>
5251 #include <sys/ipc.h>
5252 #include <sys/sem.h>
5254 main ()
5256 union semun foo;
5258 return 0;
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 mf_have_semun=1
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 mf_have_semun=0
5290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291 if test $mf_have_semun = 1
5292 then
5294 cat >>confdefs.h <<\_ACEOF
5295 #define HAVE_UNION_SEMUN 1
5296 _ACEOF
5301 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5302 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 #define _POSIX_PII_SOCKET
5310 #include <sys/types.h>
5311 #include <sys/socket.h>
5313 main ()
5315 socklen_t x = 5;
5317 return 0;
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest.$ac_objext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_SOCKLEN_T 1
5345 _ACEOF
5347 echo "$as_me:$LINENO: result: yes" >&5
5348 echo "${ECHO_T}yes" >&6
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358 enable_dlopen=yes
5362 case `pwd` in
5363 *\ * | *\ *)
5364 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5365 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5366 esac
5370 macro_version='2.2.6'
5371 macro_revision='1.3012'
5385 ltmain="$ac_aux_dir/ltmain.sh"
5387 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5388 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5389 if test "${lt_cv_path_SED+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 # Loop through the user's path and test for sed and gsed.
5393 # Then use that list of sed's as ones to test for truncation.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for lt_ac_prog in sed gsed; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5402 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5404 done
5405 done
5406 done
5407 IFS=$as_save_IFS
5408 lt_ac_max=0
5409 lt_ac_count=0
5410 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5411 # along with /bin/sed that truncates output.
5412 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5413 test ! -f $lt_ac_sed && continue
5414 cat /dev/null > conftest.in
5415 lt_ac_count=0
5416 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5417 # Check for GNU sed and select it if it is found.
5418 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5419 lt_cv_path_SED=$lt_ac_sed
5420 break
5422 while true; do
5423 cat conftest.in conftest.in >conftest.tmp
5424 mv conftest.tmp conftest.in
5425 cp conftest.in conftest.nl
5426 echo >>conftest.nl
5427 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5428 cmp -s conftest.out conftest.nl || break
5429 # 10000 chars as input seems more than enough
5430 test $lt_ac_count -gt 10 && break
5431 lt_ac_count=`expr $lt_ac_count + 1`
5432 if test $lt_ac_count -gt $lt_ac_max; then
5433 lt_ac_max=$lt_ac_count
5434 lt_cv_path_SED=$lt_ac_sed
5436 done
5437 done
5441 SED=$lt_cv_path_SED
5443 echo "$as_me:$LINENO: result: $SED" >&5
5444 echo "${ECHO_T}$SED" >&6
5446 test -z "$SED" && SED=sed
5447 Xsed="$SED -e 1s/^X//"
5459 echo "$as_me:$LINENO: checking for fgrep" >&5
5460 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5461 if test "${ac_cv_prog_fgrep+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5465 then ac_cv_prog_fgrep='grep -F'
5466 else ac_cv_prog_fgrep='fgrep'
5469 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5470 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5471 FGREP=$ac_cv_prog_fgrep
5474 test -z "$GREP" && GREP=grep
5494 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5495 if test "${with_gnu_ld+set}" = set; then
5496 withval="$with_gnu_ld"
5497 test "$withval" = no || with_gnu_ld=yes
5498 else
5499 with_gnu_ld=no
5501 ac_prog=ld
5502 if test "$GCC" = yes; then
5503 # Check if gcc -print-prog-name=ld gives a path.
5504 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5505 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5506 case $host in
5507 *-*-mingw*)
5508 # gcc leaves a trailing carriage return which upsets mingw
5509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5512 esac
5513 case $ac_prog in
5514 # Accept absolute paths.
5515 [\\/]* | ?:[\\/]*)
5516 re_direlt='/[^/][^/]*/\.\./'
5517 # Canonicalize the pathname of ld
5518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5521 done
5522 test -z "$LD" && LD="$ac_prog"
5525 # If it fails, then pretend we aren't using GCC.
5526 ac_prog=ld
5529 # If it is relative, then search for the first ld in PATH.
5530 with_gnu_ld=unknown
5532 esac
5533 elif test "$with_gnu_ld" = yes; then
5534 echo "$as_me:$LINENO: checking for GNU ld" >&5
5535 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5536 else
5537 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5538 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5540 if test "${lt_cv_path_LD+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 if test -z "$LD"; then
5544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5545 for ac_dir in $PATH; do
5546 IFS="$lt_save_ifs"
5547 test -z "$ac_dir" && ac_dir=.
5548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5549 lt_cv_path_LD="$ac_dir/$ac_prog"
5550 # Check to see if the program is GNU ld. I'd rather use --version,
5551 # but apparently some variants of GNU ld only accept -v.
5552 # Break only if it was the GNU/non-GNU ld that we prefer.
5553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5554 *GNU* | *'with BFD'*)
5555 test "$with_gnu_ld" != no && break
5558 test "$with_gnu_ld" != yes && break
5560 esac
5562 done
5563 IFS="$lt_save_ifs"
5564 else
5565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5569 LD="$lt_cv_path_LD"
5570 if test -n "$LD"; then
5571 echo "$as_me:$LINENO: result: $LD" >&5
5572 echo "${ECHO_T}$LD" >&6
5573 else
5574 echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5577 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5578 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5579 { (exit 1); exit 1; }; }
5580 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5581 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5582 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5586 case `$LD -v 2>&1 </dev/null` in
5587 *GNU* | *'with BFD'*)
5588 lt_cv_prog_gnu_ld=yes
5591 lt_cv_prog_gnu_ld=no
5593 esac
5595 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5596 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5597 with_gnu_ld=$lt_cv_prog_gnu_ld
5607 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5608 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5609 if test "${lt_cv_path_NM+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 if test -n "$NM"; then
5613 # Let the user override the test.
5614 lt_cv_path_NM="$NM"
5615 else
5616 lt_nm_to_check="${ac_tool_prefix}nm"
5617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5618 lt_nm_to_check="$lt_nm_to_check nm"
5620 for lt_tmp_nm in $lt_nm_to_check; do
5621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5623 IFS="$lt_save_ifs"
5624 test -z "$ac_dir" && ac_dir=.
5625 tmp_nm="$ac_dir/$lt_tmp_nm"
5626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5627 # Check to see if the nm accepts a BSD-compat flag.
5628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5629 # nm: unknown option "B" ignored
5630 # Tru64's nm complains that /dev/null is an invalid object file
5631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5632 */dev/null* | *'Invalid file or object type'*)
5633 lt_cv_path_NM="$tmp_nm -B"
5634 break
5637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5638 */dev/null*)
5639 lt_cv_path_NM="$tmp_nm -p"
5640 break
5643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5644 continue # so that we can try to find one that supports BSD flags
5646 esac
5648 esac
5650 done
5651 IFS="$lt_save_ifs"
5652 done
5653 : ${lt_cv_path_NM=no}
5656 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5657 echo "${ECHO_T}$lt_cv_path_NM" >&6
5658 if test "$lt_cv_path_NM" != "no"; then
5659 NM="$lt_cv_path_NM"
5660 else
5661 # Didn't find any BSD compatible name lister, look for dumpbin.
5662 if test -n "$ac_tool_prefix"; then
5663 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667 echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5669 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672 if test -n "$DUMPBIN"; then
5673 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5691 DUMPBIN=$ac_cv_prog_DUMPBIN
5692 if test -n "$DUMPBIN"; then
5693 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5694 echo "${ECHO_T}$DUMPBIN" >&6
5695 else
5696 echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5700 test -n "$DUMPBIN" && break
5701 done
5703 if test -z "$DUMPBIN"; then
5704 ac_ct_DUMPBIN=$DUMPBIN
5705 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5707 # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714 if test -n "$ac_ct_DUMPBIN"; then
5715 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5728 done
5729 done
5733 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5734 if test -n "$ac_ct_DUMPBIN"; then
5735 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5736 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5737 else
5738 echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5742 test -n "$ac_ct_DUMPBIN" && break
5743 done
5744 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5746 DUMPBIN=$ac_ct_DUMPBIN
5750 if test "$DUMPBIN" != ":"; then
5751 NM="$DUMPBIN"
5754 test -z "$NM" && NM=nm
5761 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5762 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5763 if test "${lt_cv_nm_interface+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 lt_cv_nm_interface="BSD nm"
5767 echo "int some_variable = 0;" > conftest.$ac_ext
5768 (eval echo "\"\$as_me:5768: $ac_compile\"" >&5)
5769 (eval "$ac_compile" 2>conftest.err)
5770 cat conftest.err >&5
5771 (eval echo "\"\$as_me:5771: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5772 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5773 cat conftest.err >&5
5774 (eval echo "\"\$as_me:5774: output\"" >&5)
5775 cat conftest.out >&5
5776 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5777 lt_cv_nm_interface="MS dumpbin"
5779 rm -f conftest*
5781 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5782 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5784 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5785 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5786 LN_S=$as_ln_s
5787 if test "$LN_S" = "ln -s"; then
5788 echo "$as_me:$LINENO: result: yes" >&5
5789 echo "${ECHO_T}yes" >&6
5790 else
5791 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5792 echo "${ECHO_T}no, using $LN_S" >&6
5795 # find the maximum length of command line arguments
5796 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5797 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5798 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5802 teststring="ABCD"
5804 case $build_os in
5805 msdosdjgpp*)
5806 # On DJGPP, this test can blow up pretty badly due to problems in libc
5807 # (any single argument exceeding 2000 bytes causes a buffer overrun
5808 # during glob expansion). Even if it were fixed, the result of this
5809 # check would be larger than it should be.
5810 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5813 gnu*)
5814 # Under GNU Hurd, this test is not required because there is
5815 # no limit to the length of command line arguments.
5816 # Libtool will interpret -1 as no limit whatsoever
5817 lt_cv_sys_max_cmd_len=-1;
5820 cygwin* | mingw* | cegcc*)
5821 # On Win9x/ME, this test blows up -- it succeeds, but takes
5822 # about 5 minutes as the teststring grows exponentially.
5823 # Worse, since 9x/ME are not pre-emptively multitasking,
5824 # you end up with a "frozen" computer, even though with patience
5825 # the test eventually succeeds (with a max line length of 256k).
5826 # Instead, let's just punt: use the minimum linelength reported by
5827 # all of the supported platforms: 8192 (on NT/2K/XP).
5828 lt_cv_sys_max_cmd_len=8192;
5831 amigaos*)
5832 # On AmigaOS with pdksh, this test takes hours, literally.
5833 # So we just punt and use a minimum line length of 8192.
5834 lt_cv_sys_max_cmd_len=8192;
5837 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5838 # This has been around since 386BSD, at least. Likely further.
5839 if test -x /sbin/sysctl; then
5840 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5841 elif test -x /usr/sbin/sysctl; then
5842 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5843 else
5844 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5846 # And add a safety zone
5847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5851 interix*)
5852 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5853 lt_cv_sys_max_cmd_len=196608
5856 osf*)
5857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5859 # nice to cause kernel panics so lets avoid the loop below.
5860 # First set a reasonable default.
5861 lt_cv_sys_max_cmd_len=16384
5863 if test -x /sbin/sysconfig; then
5864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5865 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5866 esac
5869 sco3.2v5*)
5870 lt_cv_sys_max_cmd_len=102400
5872 sysv5* | sco5v6* | sysv4.2uw2*)
5873 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5874 if test -n "$kargmax"; then
5875 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5876 else
5877 lt_cv_sys_max_cmd_len=32768
5881 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5882 if test -n "$lt_cv_sys_max_cmd_len"; then
5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5885 else
5886 # Make teststring a little bigger before we do anything with it.
5887 # a 1K string should be a reasonable start.
5888 for i in 1 2 3 4 5 6 7 8 ; do
5889 teststring=$teststring$teststring
5890 done
5891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5892 # If test is not a shell built-in, we'll probably end up computing a
5893 # maximum length that is only half of the actual maximum length, but
5894 # we can't tell.
5895 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5896 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5897 test $i != 17 # 1/2 MB should be enough
5899 i=`expr $i + 1`
5900 teststring=$teststring$teststring
5901 done
5902 # Only check the string length outside the loop.
5903 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5904 teststring=
5905 # Add a significant safety factor because C++ compilers can tack on
5906 # massive amounts of additional arguments before passing them to the
5907 # linker. It appears as though 1/2 is a usable value.
5908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5911 esac
5915 if test -n $lt_cv_sys_max_cmd_len ; then
5916 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5917 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5918 else
5919 echo "$as_me:$LINENO: result: none" >&5
5920 echo "${ECHO_T}none" >&6
5922 max_cmd_len=$lt_cv_sys_max_cmd_len
5929 : ${CP="cp -f"}
5930 : ${MV="mv -f"}
5931 : ${RM="rm -f"}
5933 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5934 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5935 # Try some XSI features
5936 xsi_shell=no
5937 ( _lt_dummy="a/b/c"
5938 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5939 = c,a/b,, \
5940 && eval 'test $(( 1 + 1 )) -eq 2 \
5941 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5942 && xsi_shell=yes
5943 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5944 echo "${ECHO_T}$xsi_shell" >&6
5947 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5948 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5949 lt_shell_append=no
5950 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5951 >/dev/null 2>&1 \
5952 && lt_shell_append=yes
5953 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5954 echo "${ECHO_T}$lt_shell_append" >&6
5957 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5958 lt_unset=unset
5959 else
5960 lt_unset=false
5967 # test EBCDIC or ASCII
5968 case `echo X|tr X '\101'` in
5969 A) # ASCII based system
5970 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5971 lt_SP2NL='tr \040 \012'
5972 lt_NL2SP='tr \015\012 \040\040'
5974 *) # EBCDIC based system
5975 lt_SP2NL='tr \100 \n'
5976 lt_NL2SP='tr \r\n \100\100'
5978 esac
5988 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5989 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5990 if test "${lt_cv_ld_reload_flag+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 lt_cv_ld_reload_flag='-r'
5995 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5996 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5997 reload_flag=$lt_cv_ld_reload_flag
5998 case $reload_flag in
5999 "" | " "*) ;;
6000 *) reload_flag=" $reload_flag" ;;
6001 esac
6002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6003 case $host_os in
6004 darwin*)
6005 if test "$GCC" = yes; then
6006 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6007 else
6008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6011 esac
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6024 echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 if test -n "$OBJDUMP"; then
6030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6043 done
6044 done
6048 OBJDUMP=$ac_cv_prog_OBJDUMP
6049 if test -n "$OBJDUMP"; then
6050 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6051 echo "${ECHO_T}$OBJDUMP" >&6
6052 else
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6058 if test -z "$ac_cv_prog_OBJDUMP"; then
6059 ac_ct_OBJDUMP=$OBJDUMP
6060 # Extract the first word of "objdump", so it can be a program name with args.
6061 set dummy objdump; ac_word=$2
6062 echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 if test -n "$ac_ct_OBJDUMP"; then
6068 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6081 done
6082 done
6084 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6087 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6088 if test -n "$ac_ct_OBJDUMP"; then
6089 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6090 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6091 else
6092 echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6096 OBJDUMP=$ac_ct_OBJDUMP
6097 else
6098 OBJDUMP="$ac_cv_prog_OBJDUMP"
6101 test -z "$OBJDUMP" && OBJDUMP=objdump
6111 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6112 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6113 if test "${lt_cv_deplibs_check_method+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116 lt_cv_file_magic_cmd='$MAGIC_CMD'
6117 lt_cv_file_magic_test_file=
6118 lt_cv_deplibs_check_method='unknown'
6119 # Need to set the preceding variable on all platforms that support
6120 # interlibrary dependencies.
6121 # 'none' -- dependencies not supported.
6122 # `unknown' -- same as none, but documents that we really don't know.
6123 # 'pass_all' -- all dependencies passed with no checks.
6124 # 'test_compile' -- check by making test program.
6125 # 'file_magic [[regex]]' -- check by looking for files in library path
6126 # which responds to the $file_magic_cmd with a given extended regex.
6127 # If you have `file' or equivalent on your system and you're not sure
6128 # whether `pass_all' will *always* work, you probably want this one.
6130 case $host_os in
6131 aix[4-9]*)
6132 lt_cv_deplibs_check_method=pass_all
6135 beos*)
6136 lt_cv_deplibs_check_method=pass_all
6139 bsdi[45]*)
6140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6141 lt_cv_file_magic_cmd='/usr/bin/file -L'
6142 lt_cv_file_magic_test_file=/shlib/libc.so
6145 cygwin*)
6146 # func_win32_libid is a shell function defined in ltmain.sh
6147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6148 lt_cv_file_magic_cmd='func_win32_libid'
6151 mingw* | pw32*)
6152 # Base MSYS/MinGW do not provide the 'file' command needed by
6153 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6154 # unless we find 'file', for example because we are cross-compiling.
6155 if ( file / ) >/dev/null 2>&1; then
6156 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6157 lt_cv_file_magic_cmd='func_win32_libid'
6158 else
6159 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6160 lt_cv_file_magic_cmd='$OBJDUMP -f'
6164 cegcc)
6165 # use the weaker test based on 'objdump'. See mingw*.
6166 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6167 lt_cv_file_magic_cmd='$OBJDUMP -f'
6170 darwin* | rhapsody*)
6171 lt_cv_deplibs_check_method=pass_all
6174 freebsd* | dragonfly*)
6175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6176 case $host_cpu in
6177 i*86 )
6178 # Not sure whether the presence of OpenBSD here was a mistake.
6179 # Let's accept both of them until this is cleared up.
6180 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6181 lt_cv_file_magic_cmd=/usr/bin/file
6182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6184 esac
6185 else
6186 lt_cv_deplibs_check_method=pass_all
6190 gnu*)
6191 lt_cv_deplibs_check_method=pass_all
6194 hpux10.20* | hpux11*)
6195 lt_cv_file_magic_cmd=/usr/bin/file
6196 case $host_cpu in
6197 ia64*)
6198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6199 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6201 hppa*64*)
6202 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]'
6203 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6207 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6209 esac
6212 interix[3-9]*)
6213 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6217 irix5* | irix6* | nonstopux*)
6218 case $LD in
6219 *-32|*"-32 ") libmagic=32-bit;;
6220 *-n32|*"-n32 ") libmagic=N32;;
6221 *-64|*"-64 ") libmagic=64-bit;;
6222 *) libmagic=never-match;;
6223 esac
6224 lt_cv_deplibs_check_method=pass_all
6227 # This must be Linux ELF.
6228 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6229 lt_cv_deplibs_check_method=pass_all
6232 netbsd*)
6233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6235 else
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6240 newos6*)
6241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6242 lt_cv_file_magic_cmd=/usr/bin/file
6243 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6246 *nto* | *qnx*)
6247 lt_cv_deplibs_check_method=pass_all
6250 openbsd*)
6251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6253 else
6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6258 osf3* | osf4* | osf5*)
6259 lt_cv_deplibs_check_method=pass_all
6262 rdos*)
6263 lt_cv_deplibs_check_method=pass_all
6266 solaris*)
6267 lt_cv_deplibs_check_method=pass_all
6270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6271 lt_cv_deplibs_check_method=pass_all
6274 sysv4 | sysv4.3*)
6275 case $host_vendor in
6276 motorola)
6277 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]'
6278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6280 ncr)
6281 lt_cv_deplibs_check_method=pass_all
6283 sequent)
6284 lt_cv_file_magic_cmd='/bin/file'
6285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6287 sni)
6288 lt_cv_file_magic_cmd='/bin/file'
6289 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6290 lt_cv_file_magic_test_file=/lib/libc.so
6292 siemens)
6293 lt_cv_deplibs_check_method=pass_all
6296 lt_cv_deplibs_check_method=pass_all
6298 esac
6301 tpf*)
6302 lt_cv_deplibs_check_method=pass_all
6304 esac
6307 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6308 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6309 file_magic_cmd=$lt_cv_file_magic_cmd
6310 deplibs_check_method=$lt_cv_deplibs_check_method
6311 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}ar; ac_word=$2
6327 echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6329 if test "${ac_cv_prog_AR+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 if test -n "$AR"; then
6333 ac_cv_prog_AR="$AR" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_AR="${ac_tool_prefix}ar"
6343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6346 done
6347 done
6351 AR=$ac_cv_prog_AR
6352 if test -n "$AR"; then
6353 echo "$as_me:$LINENO: result: $AR" >&5
6354 echo "${ECHO_T}$AR" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6361 if test -z "$ac_cv_prog_AR"; then
6362 ac_ct_AR=$AR
6363 # Extract the first word of "ar", so it can be a program name with args.
6364 set dummy ar; ac_word=$2
6365 echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6367 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 if test -n "$ac_ct_AR"; then
6371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_ac_ct_AR="ar"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6384 done
6385 done
6387 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6391 if test -n "$ac_ct_AR"; then
6392 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6393 echo "${ECHO_T}$ac_ct_AR" >&6
6394 else
6395 echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6399 AR=$ac_ct_AR
6400 else
6401 AR="$ac_cv_prog_AR"
6404 test -z "$AR" && AR=ar
6405 test -z "$AR_FLAGS" && AR_FLAGS=cru
6417 if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}strip; ac_word=$2
6420 echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6422 if test "${ac_cv_prog_STRIP+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 if test -n "$STRIP"; then
6426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6444 STRIP=$ac_cv_prog_STRIP
6445 if test -n "$STRIP"; then
6446 echo "$as_me:$LINENO: result: $STRIP" >&5
6447 echo "${ECHO_T}$STRIP" >&6
6448 else
6449 echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6
6454 if test -z "$ac_cv_prog_STRIP"; then
6455 ac_ct_STRIP=$STRIP
6456 # Extract the first word of "strip", so it can be a program name with args.
6457 set dummy strip; ac_word=$2
6458 echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 if test -n "$ac_ct_STRIP"; then
6464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_ac_ct_STRIP="strip"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6480 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6484 if test -n "$ac_ct_STRIP"; then
6485 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6486 echo "${ECHO_T}$ac_ct_STRIP" >&6
6487 else
6488 echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6492 STRIP=$ac_ct_STRIP
6493 else
6494 STRIP="$ac_cv_prog_STRIP"
6497 test -z "$STRIP" && STRIP=:
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6507 echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6509 if test "${ac_cv_prog_RANLIB+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512 if test -n "$RANLIB"; then
6513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6531 RANLIB=$ac_cv_prog_RANLIB
6532 if test -n "$RANLIB"; then
6533 echo "$as_me:$LINENO: result: $RANLIB" >&5
6534 echo "${ECHO_T}$RANLIB" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6
6541 if test -z "$ac_cv_prog_RANLIB"; then
6542 ac_ct_RANLIB=$RANLIB
6543 # Extract the first word of "ranlib", so it can be a program name with args.
6544 set dummy ranlib; ac_word=$2
6545 echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 if test -n "$ac_ct_RANLIB"; then
6551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_ac_ct_RANLIB="ranlib"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6564 done
6565 done
6567 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6571 if test -n "$ac_ct_RANLIB"; then
6572 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6573 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6579 RANLIB=$ac_ct_RANLIB
6580 else
6581 RANLIB="$ac_cv_prog_RANLIB"
6584 test -z "$RANLIB" && RANLIB=:
6591 # Determine commands to create old-style static archives.
6592 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6593 old_postinstall_cmds='chmod 644 $oldlib'
6594 old_postuninstall_cmds=
6596 if test -n "$RANLIB"; then
6597 case $host_os in
6598 openbsd*)
6599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6602 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6604 esac
6605 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6641 # If no C compiler was specified, use CC.
6642 LTCC=${LTCC-"$CC"}
6644 # If no C compiler flags were specified, use CFLAGS.
6645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6647 # Allow CC to be a program name with arguments.
6648 compiler=$CC
6651 # Check for command to grab the raw symbol name followed by C symbol from nm.
6652 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6653 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6654 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6658 # These are sane defaults that work on at least a few old systems.
6659 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6661 # Character class describing NM global symbol codes.
6662 symcode='[BCDEGRST]'
6664 # Regexp to match symbols that can be accessed directly from C.
6665 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6667 # Define system-specific variables.
6668 case $host_os in
6669 aix*)
6670 symcode='[BCDT]'
6672 cygwin* | mingw* | pw32* | cegcc*)
6673 symcode='[ABCDGISTW]'
6675 hpux*)
6676 if test "$host_cpu" = ia64; then
6677 symcode='[ABCDEGRST]'
6680 irix* | nonstopux*)
6681 symcode='[BCDEGRST]'
6683 osf*)
6684 symcode='[BCDEGQRST]'
6686 solaris*)
6687 symcode='[BDRT]'
6689 sco3.2v5*)
6690 symcode='[DT]'
6692 sysv4.2uw2*)
6693 symcode='[DT]'
6695 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6696 symcode='[ABDT]'
6698 sysv4)
6699 symcode='[DFNSTU]'
6701 esac
6703 # If we're using GNU nm, then use its standard symbol codes.
6704 case `$NM -V 2>&1` in
6705 *GNU* | *'with BFD'*)
6706 symcode='[ABCDGIRSTW]' ;;
6707 esac
6709 # Transform an extracted symbol line into a proper C declaration.
6710 # Some systems (esp. on ia64) link data and code symbols differently,
6711 # so use this general approach.
6712 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6714 # Transform an extracted symbol line into symbol name and symbol address
6715 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6716 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6718 # Handle CRLF in mingw tool chain
6719 opt_cr=
6720 case $build_os in
6721 mingw*)
6722 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6724 esac
6726 # Try without a prefix underscore, then with it.
6727 for ac_symprfx in "" "_"; do
6729 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6730 symxfrm="\\1 $ac_symprfx\\2 \\2"
6732 # Write the raw and C identifiers.
6733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6734 # Fake it for dumpbin and say T for any non-static function
6735 # and D for any global variable.
6736 # Also find C++ and __fastcall symbols from MSVC++,
6737 # which start with @ or ?.
6738 lt_cv_sys_global_symbol_pipe="$AWK '"\
6739 " {last_section=section; section=\$ 3};"\
6740 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6741 " \$ 0!~/External *\|/{next};"\
6742 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6743 " {if(hide[section]) next};"\
6744 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6745 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6746 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6747 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6748 " ' prfx=^$ac_symprfx"
6749 else
6750 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6753 # Check to see that the pipe works correctly.
6754 pipe_works=no
6756 rm -f conftest*
6757 cat > conftest.$ac_ext <<_LT_EOF
6758 #ifdef __cplusplus
6759 extern "C" {
6760 #endif
6761 char nm_test_var;
6762 void nm_test_func(void);
6763 void nm_test_func(void){}
6764 #ifdef __cplusplus
6766 #endif
6767 int main(){nm_test_var='a';nm_test_func();return(0);}
6768 _LT_EOF
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; then
6775 # Now try to grab the symbols.
6776 nlist=conftest.nm
6777 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6778 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } && test -s "$nlist"; then
6782 # Try sorting and uniquifying the output.
6783 if sort "$nlist" | uniq > "$nlist"T; then
6784 mv -f "$nlist"T "$nlist"
6785 else
6786 rm -f "$nlist"T
6789 # Make sure that we snagged all the symbols we need.
6790 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6791 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6792 cat <<_LT_EOF > conftest.$ac_ext
6793 #ifdef __cplusplus
6794 extern "C" {
6795 #endif
6797 _LT_EOF
6798 # Now generate the symbol file.
6799 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6801 cat <<_LT_EOF >> conftest.$ac_ext
6803 /* The mapping between symbol names and symbols. */
6804 const struct {
6805 const char *name;
6806 void *address;
6808 lt__PROGRAM__LTX_preloaded_symbols[] =
6810 { "@PROGRAM@", (void *) 0 },
6811 _LT_EOF
6812 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6813 cat <<\_LT_EOF >> conftest.$ac_ext
6814 {0, (void *) 0}
6817 /* This works around a problem in FreeBSD linker */
6818 #ifdef FREEBSD_WORKAROUND
6819 static const void *lt_preloaded_setup() {
6820 return lt__PROGRAM__LTX_preloaded_symbols;
6822 #endif
6824 #ifdef __cplusplus
6826 #endif
6827 _LT_EOF
6828 # Now try linking the two files.
6829 mv conftest.$ac_objext conftstm.$ac_objext
6830 lt_save_LIBS="$LIBS"
6831 lt_save_CFLAGS="$CFLAGS"
6832 LIBS="conftstm.$ac_objext"
6833 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6839 pipe_works=yes
6841 LIBS="$lt_save_LIBS"
6842 CFLAGS="$lt_save_CFLAGS"
6843 else
6844 echo "cannot find nm_test_func in $nlist" >&5
6846 else
6847 echo "cannot find nm_test_var in $nlist" >&5
6849 else
6850 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6852 else
6853 echo "$progname: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 rm -rf conftest* conftst*
6858 # Do not use the global_symbol_pipe unless it works.
6859 if test "$pipe_works" = yes; then
6860 break
6861 else
6862 lt_cv_sys_global_symbol_pipe=
6864 done
6868 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6869 lt_cv_sys_global_symbol_to_cdecl=
6871 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6872 echo "$as_me:$LINENO: result: failed" >&5
6873 echo "${ECHO_T}failed" >&6
6874 else
6875 echo "$as_me:$LINENO: result: ok" >&5
6876 echo "${ECHO_T}ok" >&6
6900 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6901 if test "${enable_libtool_lock+set}" = set; then
6902 enableval="$enable_libtool_lock"
6905 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6907 # Some flags need to be propagated to the compiler or linker for good
6908 # libtool support.
6909 case $host in
6910 ia64-*-hpux*)
6911 # Find out which ABI we are using.
6912 echo 'int i;' > conftest.$ac_ext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; then
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *ELF-32*)
6920 HPUX_IA64_MODE="32"
6922 *ELF-64*)
6923 HPUX_IA64_MODE="64"
6925 esac
6927 rm -rf conftest*
6929 *-*-irix6*)
6930 # Find out which ABI we are using.
6931 echo '#line 6931 "configure"' > conftest.$ac_ext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; then
6937 if test "$lt_cv_prog_gnu_ld" = yes; then
6938 case `/usr/bin/file conftest.$ac_objext` in
6939 *32-bit*)
6940 LD="${LD-ld} -melf32bsmip"
6942 *N32*)
6943 LD="${LD-ld} -melf32bmipn32"
6945 *64-bit*)
6946 LD="${LD-ld} -melf64bmip"
6948 esac
6949 else
6950 case `/usr/bin/file conftest.$ac_objext` in
6951 *32-bit*)
6952 LD="${LD-ld} -32"
6954 *N32*)
6955 LD="${LD-ld} -n32"
6957 *64-bit*)
6958 LD="${LD-ld} -64"
6960 esac
6963 rm -rf conftest*
6966 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6967 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6968 # Find out which ABI we are using.
6969 echo 'int i;' > conftest.$ac_ext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; then
6975 case `/usr/bin/file conftest.o` in
6976 *32-bit*)
6977 case $host in
6978 x86_64-*kfreebsd*-gnu)
6979 LD="${LD-ld} -m elf_i386_fbsd"
6981 x86_64-*linux*)
6982 LD="${LD-ld} -m elf_i386"
6984 ppc64-*linux*|powerpc64-*linux*)
6985 LD="${LD-ld} -m elf32ppclinux"
6987 s390x-*linux*)
6988 LD="${LD-ld} -m elf_s390"
6990 sparc64-*linux*)
6991 LD="${LD-ld} -m elf32_sparc"
6993 esac
6995 *64-bit*)
6996 case $host in
6997 x86_64-*kfreebsd*-gnu)
6998 LD="${LD-ld} -m elf_x86_64_fbsd"
7000 x86_64-*linux*)
7001 LD="${LD-ld} -m elf_x86_64"
7003 ppc*-*linux*|powerpc*-*linux*)
7004 LD="${LD-ld} -m elf64ppc"
7006 s390*-*linux*|s390*-*tpf*)
7007 LD="${LD-ld} -m elf64_s390"
7009 sparc*-*linux*)
7010 LD="${LD-ld} -m elf64_sparc"
7012 esac
7014 esac
7016 rm -rf conftest*
7019 *-*-sco3.2v5*)
7020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7021 SAVE_CFLAGS="$CFLAGS"
7022 CFLAGS="$CFLAGS -belf"
7023 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7024 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7025 if test "${lt_cv_cc_needs_belf+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 ac_ext=c
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7042 main ()
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -z "$ac_c_werror_flag"
7059 || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest$ac_exeext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 lt_cv_cc_needs_belf=yes
7072 else
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 lt_cv_cc_needs_belf=no
7078 rm -f conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7080 ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7087 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7088 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7089 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7090 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7091 CFLAGS="$SAVE_CFLAGS"
7094 sparc*-*solaris*)
7095 # Find out which ABI we are using.
7096 echo 'int i;' > conftest.$ac_ext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; then
7102 case `/usr/bin/file conftest.o` in
7103 *64-bit*)
7104 case $lt_cv_prog_gnu_ld in
7105 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7107 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7108 LD="${LD-ld} -64"
7111 esac
7113 esac
7115 rm -rf conftest*
7117 esac
7119 need_locks="$enable_libtool_lock"
7122 case $host_os in
7123 rhapsody* | darwin*)
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7127 echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 if test -n "$DSYMUTIL"; then
7133 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7146 done
7147 done
7151 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7152 if test -n "$DSYMUTIL"; then
7153 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7154 echo "${ECHO_T}$DSYMUTIL" >&6
7155 else
7156 echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7161 if test -z "$ac_cv_prog_DSYMUTIL"; then
7162 ac_ct_DSYMUTIL=$DSYMUTIL
7163 # Extract the first word of "dsymutil", so it can be a program name with args.
7164 set dummy dsymutil; ac_word=$2
7165 echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7167 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 if test -n "$ac_ct_DSYMUTIL"; then
7171 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7184 done
7185 done
7187 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7190 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7193 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7194 else
7195 echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6
7199 DSYMUTIL=$ac_ct_DSYMUTIL
7200 else
7201 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212 if test -n "$NMEDIT"; then
7213 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7226 done
7227 done
7231 NMEDIT=$ac_cv_prog_NMEDIT
7232 if test -n "$NMEDIT"; then
7233 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7234 echo "${ECHO_T}$NMEDIT" >&6
7235 else
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7241 if test -z "$ac_cv_prog_NMEDIT"; then
7242 ac_ct_NMEDIT=$NMEDIT
7243 # Extract the first word of "nmedit", so it can be a program name with args.
7244 set dummy nmedit; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 if test -n "$ac_ct_NMEDIT"; then
7251 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7267 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7270 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7271 if test -n "$ac_ct_NMEDIT"; then
7272 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7273 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7274 else
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7279 NMEDIT=$ac_ct_NMEDIT
7280 else
7281 NMEDIT="$ac_cv_prog_NMEDIT"
7284 if test -n "$ac_tool_prefix"; then
7285 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_prog_LIPO+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 if test -n "$LIPO"; then
7293 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7311 LIPO=$ac_cv_prog_LIPO
7312 if test -n "$LIPO"; then
7313 echo "$as_me:$LINENO: result: $LIPO" >&5
7314 echo "${ECHO_T}$LIPO" >&6
7315 else
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7321 if test -z "$ac_cv_prog_LIPO"; then
7322 ac_ct_LIPO=$LIPO
7323 # Extract the first word of "lipo", so it can be a program name with args.
7324 set dummy lipo; ac_word=$2
7325 echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 if test -n "$ac_ct_LIPO"; then
7331 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_ac_ct_LIPO="lipo"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7344 done
7345 done
7347 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7350 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7351 if test -n "$ac_ct_LIPO"; then
7352 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7353 echo "${ECHO_T}$ac_ct_LIPO" >&6
7354 else
7355 echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6
7359 LIPO=$ac_ct_LIPO
7360 else
7361 LIPO="$ac_cv_prog_LIPO"
7364 if test -n "$ac_tool_prefix"; then
7365 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7366 set dummy ${ac_tool_prefix}otool; ac_word=$2
7367 echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7369 if test "${ac_cv_prog_OTOOL+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 if test -n "$OTOOL"; then
7373 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7386 done
7387 done
7391 OTOOL=$ac_cv_prog_OTOOL
7392 if test -n "$OTOOL"; then
7393 echo "$as_me:$LINENO: result: $OTOOL" >&5
7394 echo "${ECHO_T}$OTOOL" >&6
7395 else
7396 echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7401 if test -z "$ac_cv_prog_OTOOL"; then
7402 ac_ct_OTOOL=$OTOOL
7403 # Extract the first word of "otool", so it can be a program name with args.
7404 set dummy otool; ac_word=$2
7405 echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7407 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 if test -n "$ac_ct_OTOOL"; then
7411 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_ac_ct_OTOOL="otool"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7424 done
7425 done
7427 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7430 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7431 if test -n "$ac_ct_OTOOL"; then
7432 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7433 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7434 else
7435 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7439 OTOOL=$ac_ct_OTOOL
7440 else
7441 OTOOL="$ac_cv_prog_OTOOL"
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7447 echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7449 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 if test -n "$OTOOL64"; then
7453 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7471 OTOOL64=$ac_cv_prog_OTOOL64
7472 if test -n "$OTOOL64"; then
7473 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7474 echo "${ECHO_T}$OTOOL64" >&6
7475 else
7476 echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7481 if test -z "$ac_cv_prog_OTOOL64"; then
7482 ac_ct_OTOOL64=$OTOOL64
7483 # Extract the first word of "otool64", so it can be a program name with args.
7484 set dummy otool64; ac_word=$2
7485 echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 if test -n "$ac_ct_OTOOL64"; then
7491 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_ac_ct_OTOOL64="otool64"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7504 done
7505 done
7507 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7511 if test -n "$ac_ct_OTOOL64"; then
7512 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7513 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7514 else
7515 echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7519 OTOOL64=$ac_ct_OTOOL64
7520 else
7521 OTOOL64="$ac_cv_prog_OTOOL64"
7550 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7551 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7552 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 lt_cv_apple_cc_single_mod=no
7556 if test -z "${LT_MULTI_MODULE}"; then
7557 # By default we will add the -single_module flag. You can override
7558 # by either setting the environment variable LT_MULTI_MODULE
7559 # non-empty at configure time, or by adding -multi_module to the
7560 # link flags.
7561 rm -rf libconftest.dylib*
7562 echo "int foo(void){return 1;}" > conftest.c
7563 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7564 -dynamiclib -Wl,-single_module conftest.c" >&5
7565 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7566 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7567 _lt_result=$?
7568 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7569 lt_cv_apple_cc_single_mod=yes
7570 else
7571 cat conftest.err >&5
7573 rm -rf libconftest.dylib*
7574 rm -f conftest.*
7577 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7578 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7579 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7580 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7581 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 lt_cv_ld_exported_symbols_list=no
7585 save_LDFLAGS=$LDFLAGS
7586 echo "_main" > conftest.sym
7587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7596 main ()
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 lt_cv_ld_exported_symbols_list=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 lt_cv_ld_exported_symbols_list=no
7632 rm -f conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
7634 LDFLAGS="$save_LDFLAGS"
7637 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7638 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7639 case $host_os in
7640 rhapsody* | darwin1.[012])
7641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7642 darwin1.*)
7643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7644 darwin*) # darwin 5.x on
7645 # if running on 10.5 or later, the deployment target defaults
7646 # to the OS version, if on x86, and 10.4, the deployment
7647 # target defaults to 10.4. Don't you love it?
7648 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7649 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7651 10.[012]*)
7652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7653 10.*)
7654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7655 esac
7657 esac
7658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7659 _lt_dar_single_mod='$single_module'
7661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7663 else
7664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7666 if test "$DSYMUTIL" != ":"; then
7667 _lt_dsymutil='~$DSYMUTIL $lib || :'
7668 else
7669 _lt_dsymutil=
7672 esac
7675 for ac_header in dlfcn.h
7677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7691 #include <$ac_header>
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 eval "$as_ac_Header=yes"
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 eval "$as_ac_Header=no"
7722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 _ACEOF
7733 done
7737 # Set options
7742 enable_win32_dll=no
7745 # Check whether --enable-shared or --disable-shared was given.
7746 if test "${enable_shared+set}" = set; then
7747 enableval="$enable_shared"
7748 p=${PACKAGE-default}
7749 case $enableval in
7750 yes) enable_shared=yes ;;
7751 no) enable_shared=no ;;
7753 enable_shared=no
7754 # Look at the argument we got. We use all the common list separators.
7755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7756 for pkg in $enableval; do
7757 IFS="$lt_save_ifs"
7758 if test "X$pkg" = "X$p"; then
7759 enable_shared=yes
7761 done
7762 IFS="$lt_save_ifs"
7764 esac
7765 else
7766 enable_shared=yes
7776 # Check whether --enable-static or --disable-static was given.
7777 if test "${enable_static+set}" = set; then
7778 enableval="$enable_static"
7779 p=${PACKAGE-default}
7780 case $enableval in
7781 yes) enable_static=yes ;;
7782 no) enable_static=no ;;
7784 enable_static=no
7785 # Look at the argument we got. We use all the common list separators.
7786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7787 for pkg in $enableval; do
7788 IFS="$lt_save_ifs"
7789 if test "X$pkg" = "X$p"; then
7790 enable_static=yes
7792 done
7793 IFS="$lt_save_ifs"
7795 esac
7796 else
7797 enable_static=yes
7808 # Check whether --with-pic or --without-pic was given.
7809 if test "${with_pic+set}" = set; then
7810 withval="$with_pic"
7811 pic_mode="$withval"
7812 else
7813 pic_mode=default
7816 test -z "$pic_mode" && pic_mode=default
7824 # Check whether --enable-fast-install or --disable-fast-install was given.
7825 if test "${enable_fast_install+set}" = set; then
7826 enableval="$enable_fast_install"
7827 p=${PACKAGE-default}
7828 case $enableval in
7829 yes) enable_fast_install=yes ;;
7830 no) enable_fast_install=no ;;
7832 enable_fast_install=no
7833 # Look at the argument we got. We use all the common list separators.
7834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835 for pkg in $enableval; do
7836 IFS="$lt_save_ifs"
7837 if test "X$pkg" = "X$p"; then
7838 enable_fast_install=yes
7840 done
7841 IFS="$lt_save_ifs"
7843 esac
7844 else
7845 enable_fast_install=yes
7857 # This can be used to rebuild libtool when needed
7858 LIBTOOL_DEPS="$ltmain"
7860 # Always use our own libtool.
7861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7887 test -z "$LN_S" && LN_S="ln -s"
7902 if test -n "${ZSH_VERSION+set}" ; then
7903 setopt NO_GLOB_SUBST
7906 echo "$as_me:$LINENO: checking for objdir" >&5
7907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7908 if test "${lt_cv_objdir+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 rm -f .libs 2>/dev/null
7912 mkdir .libs 2>/dev/null
7913 if test -d .libs; then
7914 lt_cv_objdir=.libs
7915 else
7916 # MS-DOS does not allow filenames that begin with a dot.
7917 lt_cv_objdir=_libs
7919 rmdir .libs 2>/dev/null
7921 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7922 echo "${ECHO_T}$lt_cv_objdir" >&6
7923 objdir=$lt_cv_objdir
7929 cat >>confdefs.h <<_ACEOF
7930 #define LT_OBJDIR "$lt_cv_objdir/"
7931 _ACEOF
7949 case $host_os in
7950 aix3*)
7951 # AIX sometimes has problems with the GCC collect2 program. For some
7952 # reason, if we set the COLLECT_NAMES environment variable, the problems
7953 # vanish in a puff of smoke.
7954 if test "X${COLLECT_NAMES+set}" != Xset; then
7955 COLLECT_NAMES=
7956 export COLLECT_NAMES
7959 esac
7961 # Sed substitution that helps us do robust quoting. It backslashifies
7962 # metacharacters that are still active within double-quoted strings.
7963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7965 # Same as above, but do not quote variable references.
7966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7968 # Sed substitution to delay expansion of an escaped shell variable in a
7969 # double_quote_subst'ed string.
7970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7972 # Sed substitution to delay expansion of an escaped single quote.
7973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7975 # Sed substitution to avoid accidental globbing in evaled expressions
7976 no_glob_subst='s/\*/\\\*/g'
7978 # Global variables:
7979 ofile=libtool
7980 can_build_shared=yes
7982 # All known linkers require a `.a' archive for static linking (except MSVC,
7983 # which needs '.lib').
7984 libext=a
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7988 old_CC="$CC"
7989 old_CFLAGS="$CFLAGS"
7991 # Set sane defaults for various variables
7992 test -z "$CC" && CC=cc
7993 test -z "$LTCC" && LTCC=$CC
7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7995 test -z "$LD" && LD=ld
7996 test -z "$ac_objext" && ac_objext=o
7998 for cc_temp in $compiler""; do
7999 case $cc_temp in
8000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8002 \-*) ;;
8003 *) break;;
8004 esac
8005 done
8006 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8009 # Only perform the check for file, if the check method requires it
8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8011 case $deplibs_check_method in
8012 file_magic*)
8013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8014 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8015 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8016 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 case $MAGIC_CMD in
8020 [\\/*] | ?:[\\/]*)
8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8024 lt_save_MAGIC_CMD="$MAGIC_CMD"
8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027 for ac_dir in $ac_dummy; do
8028 IFS="$lt_save_ifs"
8029 test -z "$ac_dir" && ac_dir=.
8030 if test -f $ac_dir/${ac_tool_prefix}file; then
8031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8032 if test -n "$file_magic_test_file"; then
8033 case $deplibs_check_method in
8034 "file_magic "*)
8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038 $EGREP "$file_magic_regex" > /dev/null; then
8040 else
8041 cat <<_LT_EOF 1>&2
8043 *** Warning: the command libtool uses to detect shared libraries,
8044 *** $file_magic_cmd, produces output that libtool cannot recognize.
8045 *** The result is that libtool may fail to recognize shared libraries
8046 *** as such. This will affect the creation of libtool libraries that
8047 *** depend on shared libraries, but programs linked with such libtool
8048 *** libraries will work regardless of this problem. Nevertheless, you
8049 *** may want to report the problem to your system manager and/or to
8050 *** bug-libtool@gnu.org
8052 _LT_EOF
8053 fi ;;
8054 esac
8056 break
8058 done
8059 IFS="$lt_save_ifs"
8060 MAGIC_CMD="$lt_save_MAGIC_CMD"
8062 esac
8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066 if test -n "$MAGIC_CMD"; then
8067 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8068 echo "${ECHO_T}$MAGIC_CMD" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6
8078 if test -z "$lt_cv_path_MAGIC_CMD"; then
8079 if test -n "$ac_tool_prefix"; then
8080 echo "$as_me:$LINENO: checking for file" >&5
8081 echo $ECHO_N "checking for file... $ECHO_C" >&6
8082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 case $MAGIC_CMD in
8086 [\\/*] | ?:[\\/]*)
8087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8090 lt_save_MAGIC_CMD="$MAGIC_CMD"
8091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8093 for ac_dir in $ac_dummy; do
8094 IFS="$lt_save_ifs"
8095 test -z "$ac_dir" && ac_dir=.
8096 if test -f $ac_dir/file; then
8097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8098 if test -n "$file_magic_test_file"; then
8099 case $deplibs_check_method in
8100 "file_magic "*)
8101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8104 $EGREP "$file_magic_regex" > /dev/null; then
8106 else
8107 cat <<_LT_EOF 1>&2
8109 *** Warning: the command libtool uses to detect shared libraries,
8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
8111 *** The result is that libtool may fail to recognize shared libraries
8112 *** as such. This will affect the creation of libtool libraries that
8113 *** depend on shared libraries, but programs linked with such libtool
8114 *** libraries will work regardless of this problem. Nevertheless, you
8115 *** may want to report the problem to your system manager and/or to
8116 *** bug-libtool@gnu.org
8118 _LT_EOF
8119 fi ;;
8120 esac
8122 break
8124 done
8125 IFS="$lt_save_ifs"
8126 MAGIC_CMD="$lt_save_MAGIC_CMD"
8128 esac
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132 if test -n "$MAGIC_CMD"; then
8133 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8134 echo "${ECHO_T}$MAGIC_CMD" >&6
8135 else
8136 echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8141 else
8142 MAGIC_CMD=:
8148 esac
8150 # Use C for the default configuration in the libtool script
8152 lt_save_CC="$CC"
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 # Source file extension for C test sources.
8161 ac_ext=c
8163 # Object file extension for compiled C test sources.
8164 objext=o
8165 objext=$objext
8167 # Code to be used in simple compile tests
8168 lt_simple_compile_test_code="int some_variable = 0;"
8170 # Code to be used in simple link tests
8171 lt_simple_link_test_code='int main(){return(0);}'
8179 # If no C compiler was specified, use CC.
8180 LTCC=${LTCC-"$CC"}
8182 # If no C compiler flags were specified, use CFLAGS.
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8185 # Allow CC to be a program name with arguments.
8186 compiler=$CC
8188 # Save the default compiler, since it gets overwritten when the other
8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8190 compiler_DEFAULT=$CC
8192 # save warnings/boilerplate of simple test code
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8196 _lt_compiler_boilerplate=`cat conftest.err`
8197 $RM conftest*
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8202 _lt_linker_boilerplate=`cat conftest.err`
8203 $RM -r conftest*
8206 ## CAVEAT EMPTOR:
8207 ## There is no encapsulation within the following macros, do not change
8208 ## the running order or otherwise move them around unless you know exactly
8209 ## what you are doing...
8210 if test -n "$compiler"; then
8212 lt_prog_compiler_no_builtin_flag=
8214 if test "$GCC" = yes; then
8215 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222 lt_cv_prog_compiler_rtti_exceptions=no
8223 ac_outfile=conftest.$ac_objext
8224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8225 lt_compiler_flag="-fno-rtti -fno-exceptions"
8226 # Insert the option either (1) after the last *FLAGS variable, or
8227 # (2) before a word containing "conftest.", or (3) at the end.
8228 # Note that $ac_compile itself does not contain backslashes and begins
8229 # with a dollar sign (not a hyphen), so the echo should work correctly.
8230 # The option is referenced via a variable to avoid confusing sed.
8231 lt_compile=`echo "$ac_compile" | $SED \
8232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234 -e 's:$: $lt_compiler_flag:'`
8235 (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236 (eval "$lt_compile" 2>conftest.err)
8237 ac_status=$?
8238 cat conftest.err >&5
8239 echo "$as_me:8239: \$? = $ac_status" >&5
8240 if (exit $ac_status) && test -s "$ac_outfile"; then
8241 # The compiler can only warn and ignore the option if not recognized
8242 # So say no if there are warnings other than the usual output.
8243 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8246 lt_cv_prog_compiler_rtti_exceptions=yes
8249 $RM conftest*
8252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8253 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8256 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8257 else
8268 lt_prog_compiler_wl=
8269 lt_prog_compiler_pic=
8270 lt_prog_compiler_static=
8272 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8275 if test "$GCC" = yes; then
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_static='-static'
8279 case $host_os in
8280 aix*)
8281 # All AIX code is PIC.
8282 if test "$host_cpu" = ia64; then
8283 # AIX 5 now supports IA64 processor
8284 lt_prog_compiler_static='-Bstatic'
8288 amigaos*)
8289 case $host_cpu in
8290 powerpc)
8291 # see comment about AmigaOS4 .so support
8292 lt_prog_compiler_pic='-fPIC'
8294 m68k)
8295 # FIXME: we need at least 68020 code to build shared libraries, but
8296 # adding the `-m68020' flag to GCC prevents building anything better,
8297 # like `-m68040'.
8298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8300 esac
8303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8304 # PIC is the default for these OSes.
8307 mingw* | cygwin* | pw32* | os2* | cegcc*)
8308 # This hack is so that the source file can tell whether it is being
8309 # built for inclusion in a dll (and should export symbols for example).
8310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8311 # (--disable-auto-import) libraries
8312 lt_prog_compiler_pic='-DDLL_EXPORT'
8315 darwin* | rhapsody*)
8316 # PIC is the default on this platform
8317 # Common symbols not allowed in MH_DYLIB files
8318 lt_prog_compiler_pic='-fno-common'
8321 hpux*)
8322 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8323 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8324 # sets the default TLS model and affects inlining.
8325 case $host_cpu in
8326 hppa*64*)
8327 # +Z the default
8330 lt_prog_compiler_pic='-fPIC'
8332 esac
8335 interix[3-9]*)
8336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8337 # Instead, we relocate shared libraries at runtime.
8340 msdosdjgpp*)
8341 # Just because we use GCC doesn't mean we suddenly get shared libraries
8342 # on systems that don't support them.
8343 lt_prog_compiler_can_build_shared=no
8344 enable_shared=no
8347 *nto* | *qnx*)
8348 # QNX uses GNU C++, but need to define -shared option too, otherwise
8349 # it will coredump.
8350 lt_prog_compiler_pic='-fPIC -shared'
8353 sysv4*MP*)
8354 if test -d /usr/nec; then
8355 lt_prog_compiler_pic=-Kconform_pic
8360 lt_prog_compiler_pic='-fPIC'
8362 esac
8363 else
8364 # PORTME Check for flag to pass linker flags through the system compiler.
8365 case $host_os in
8366 aix*)
8367 lt_prog_compiler_wl='-Wl,'
8368 if test "$host_cpu" = ia64; then
8369 # AIX 5 now supports IA64 processor
8370 lt_prog_compiler_static='-Bstatic'
8371 else
8372 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8376 mingw* | cygwin* | pw32* | os2* | cegcc*)
8377 # This hack is so that the source file can tell whether it is being
8378 # built for inclusion in a dll (and should export symbols for example).
8379 lt_prog_compiler_pic='-DDLL_EXPORT'
8382 hpux9* | hpux10* | hpux11*)
8383 lt_prog_compiler_wl='-Wl,'
8384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8385 # not for PA HP-UX.
8386 case $host_cpu in
8387 hppa*64*|ia64*)
8388 # +Z the default
8391 lt_prog_compiler_pic='+Z'
8393 esac
8394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8395 lt_prog_compiler_static='${wl}-a ${wl}archive'
8398 irix5* | irix6* | nonstopux*)
8399 lt_prog_compiler_wl='-Wl,'
8400 # PIC (with -KPIC) is the default.
8401 lt_prog_compiler_static='-non_shared'
8404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8405 case $cc_basename in
8406 # old Intel for x86_64 which still supported -KPIC.
8407 ecc*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-static'
8412 # icc used to be incompatible with GCC.
8413 # ICC 10 doesn't accept -KPIC any more.
8414 icc* | ifort*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-fPIC'
8417 lt_prog_compiler_static='-static'
8419 # Lahey Fortran 8.1.
8420 lf95*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='--shared'
8423 lt_prog_compiler_static='--static'
8425 pgcc* | pgf77* | pgf90* | pgf95*)
8426 # Portland Group compilers (*not* the Pentium gcc compiler,
8427 # which looks to be a dead project)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-fpic'
8430 lt_prog_compiler_static='-Bstatic'
8432 ccc*)
8433 lt_prog_compiler_wl='-Wl,'
8434 # All Alpha code is PIC.
8435 lt_prog_compiler_static='-non_shared'
8437 xl*)
8438 # IBM XL C 8.0/Fortran 10.1 on PPC
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-qpic'
8441 lt_prog_compiler_static='-qstaticlink'
8444 case `$CC -V 2>&1 | sed 5q` in
8445 *Sun\ C*)
8446 # Sun C 5.9
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 lt_prog_compiler_wl='-Wl,'
8451 *Sun\ F*)
8452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8453 lt_prog_compiler_pic='-KPIC'
8454 lt_prog_compiler_static='-Bstatic'
8455 lt_prog_compiler_wl=''
8457 esac
8459 esac
8462 newsos6)
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8467 *nto* | *qnx*)
8468 # QNX uses GNU C++, but need to define -shared option too, otherwise
8469 # it will coredump.
8470 lt_prog_compiler_pic='-fPIC -shared'
8473 osf3* | osf4* | osf5*)
8474 lt_prog_compiler_wl='-Wl,'
8475 # All OSF/1 code is PIC.
8476 lt_prog_compiler_static='-non_shared'
8479 rdos*)
8480 lt_prog_compiler_static='-non_shared'
8483 solaris*)
8484 lt_prog_compiler_pic='-KPIC'
8485 lt_prog_compiler_static='-Bstatic'
8486 case $cc_basename in
8487 f77* | f90* | f95*)
8488 lt_prog_compiler_wl='-Qoption ld ';;
8490 lt_prog_compiler_wl='-Wl,';;
8491 esac
8494 sunos4*)
8495 lt_prog_compiler_wl='-Qoption ld '
8496 lt_prog_compiler_pic='-PIC'
8497 lt_prog_compiler_static='-Bstatic'
8500 sysv4 | sysv4.2uw2* | sysv4.3*)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-KPIC'
8503 lt_prog_compiler_static='-Bstatic'
8506 sysv4*MP*)
8507 if test -d /usr/nec ;then
8508 lt_prog_compiler_pic='-Kconform_pic'
8509 lt_prog_compiler_static='-Bstatic'
8513 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8514 lt_prog_compiler_wl='-Wl,'
8515 lt_prog_compiler_pic='-KPIC'
8516 lt_prog_compiler_static='-Bstatic'
8519 unicos*)
8520 lt_prog_compiler_wl='-Wl,'
8521 lt_prog_compiler_can_build_shared=no
8524 uts4*)
8525 lt_prog_compiler_pic='-pic'
8526 lt_prog_compiler_static='-Bstatic'
8530 lt_prog_compiler_can_build_shared=no
8532 esac
8535 case $host_os in
8536 # For platforms which do not support PIC, -DPIC is meaningless:
8537 *djgpp*)
8538 lt_prog_compiler_pic=
8541 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8543 esac
8544 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8545 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8553 # Check to make sure the PIC flag actually works.
8555 if test -n "$lt_prog_compiler_pic"; then
8556 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8557 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8558 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561 lt_cv_prog_compiler_pic_works=no
8562 ac_outfile=conftest.$ac_objext
8563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8564 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8565 # Insert the option either (1) after the last *FLAGS variable, or
8566 # (2) before a word containing "conftest.", or (3) at the end.
8567 # Note that $ac_compile itself does not contain backslashes and begins
8568 # with a dollar sign (not a hyphen), so the echo should work correctly.
8569 # The option is referenced via a variable to avoid confusing sed.
8570 lt_compile=`echo "$ac_compile" | $SED \
8571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8573 -e 's:$: $lt_compiler_flag:'`
8574 (eval echo "\"\$as_me:8574: $lt_compile\"" >&5)
8575 (eval "$lt_compile" 2>conftest.err)
8576 ac_status=$?
8577 cat conftest.err >&5
8578 echo "$as_me:8578: \$? = $ac_status" >&5
8579 if (exit $ac_status) && test -s "$ac_outfile"; then
8580 # The compiler can only warn and ignore the option if not recognized
8581 # So say no if there are warnings other than the usual output.
8582 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8585 lt_cv_prog_compiler_pic_works=yes
8588 $RM conftest*
8591 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8592 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8594 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8595 case $lt_prog_compiler_pic in
8596 "" | " "*) ;;
8597 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8598 esac
8599 else
8600 lt_prog_compiler_pic=
8601 lt_prog_compiler_can_build_shared=no
8612 # Check to make sure the static flag actually works.
8614 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8615 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8616 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8617 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 lt_cv_prog_compiler_static_works=no
8621 save_LDFLAGS="$LDFLAGS"
8622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8623 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8625 # The linker can only warn and ignore the option if not recognized
8626 # So say no if there are warnings
8627 if test -s conftest.err; then
8628 # Append any errors to the config.log.
8629 cat conftest.err 1>&5
8630 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632 if diff conftest.exp conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_static_works=yes
8635 else
8636 lt_cv_prog_compiler_static_works=yes
8639 $RM -r conftest*
8640 LDFLAGS="$save_LDFLAGS"
8643 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8644 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8646 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8648 else
8649 lt_prog_compiler_static=
8658 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8660 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 lt_cv_prog_compiler_c_o=no
8664 $RM -r conftest 2>/dev/null
8665 mkdir conftest
8666 cd conftest
8667 mkdir out
8668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670 lt_compiler_flag="-o out/conftest2.$ac_objext"
8671 # Insert the option either (1) after the last *FLAGS variable, or
8672 # (2) before a word containing "conftest.", or (3) at the end.
8673 # Note that $ac_compile itself does not contain backslashes and begins
8674 # with a dollar sign (not a hyphen), so the echo should work correctly.
8675 lt_compile=`echo "$ac_compile" | $SED \
8676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8678 -e 's:$: $lt_compiler_flag:'`
8679 (eval echo "\"\$as_me:8679: $lt_compile\"" >&5)
8680 (eval "$lt_compile" 2>out/conftest.err)
8681 ac_status=$?
8682 cat out/conftest.err >&5
8683 echo "$as_me:8683: \$? = $ac_status" >&5
8684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8685 then
8686 # The compiler can only warn and ignore the option if not recognized
8687 # So say no if there are warnings
8688 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8691 lt_cv_prog_compiler_c_o=yes
8694 chmod u+w . 2>&5
8695 $RM conftest*
8696 # SGI C++ compiler will create directory out/ii_files/ for
8697 # template instantiation
8698 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8699 $RM out/* && rmdir out
8700 cd ..
8701 $RM -r conftest
8702 $RM conftest*
8705 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8713 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8714 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8715 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718 lt_cv_prog_compiler_c_o=no
8719 $RM -r conftest 2>/dev/null
8720 mkdir conftest
8721 cd conftest
8722 mkdir out
8723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725 lt_compiler_flag="-o out/conftest2.$ac_objext"
8726 # Insert the option either (1) after the last *FLAGS variable, or
8727 # (2) before a word containing "conftest.", or (3) at the end.
8728 # Note that $ac_compile itself does not contain backslashes and begins
8729 # with a dollar sign (not a hyphen), so the echo should work correctly.
8730 lt_compile=`echo "$ac_compile" | $SED \
8731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8733 -e 's:$: $lt_compiler_flag:'`
8734 (eval echo "\"\$as_me:8734: $lt_compile\"" >&5)
8735 (eval "$lt_compile" 2>out/conftest.err)
8736 ac_status=$?
8737 cat out/conftest.err >&5
8738 echo "$as_me:8738: \$? = $ac_status" >&5
8739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8740 then
8741 # The compiler can only warn and ignore the option if not recognized
8742 # So say no if there are warnings
8743 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8746 lt_cv_prog_compiler_c_o=yes
8749 chmod u+w . 2>&5
8750 $RM conftest*
8751 # SGI C++ compiler will create directory out/ii_files/ for
8752 # template instantiation
8753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8754 $RM out/* && rmdir out
8755 cd ..
8756 $RM -r conftest
8757 $RM conftest*
8760 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8761 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8766 hard_links="nottested"
8767 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8768 # do not overwrite the value of need_locks provided by the user
8769 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8771 hard_links=yes
8772 $RM conftest*
8773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8774 touch conftest.a
8775 ln conftest.a conftest.b 2>&5 || hard_links=no
8776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8777 echo "$as_me:$LINENO: result: $hard_links" >&5
8778 echo "${ECHO_T}$hard_links" >&6
8779 if test "$hard_links" = no; then
8780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8782 need_locks=warn
8784 else
8785 need_locks=no
8793 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8794 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8796 runpath_var=
8797 allow_undefined_flag=
8798 always_export_symbols=no
8799 archive_cmds=
8800 archive_expsym_cmds=
8801 compiler_needs_object=no
8802 enable_shared_with_static_runtimes=no
8803 export_dynamic_flag_spec=
8804 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8805 hardcode_automatic=no
8806 hardcode_direct=no
8807 hardcode_direct_absolute=no
8808 hardcode_libdir_flag_spec=
8809 hardcode_libdir_flag_spec_ld=
8810 hardcode_libdir_separator=
8811 hardcode_minus_L=no
8812 hardcode_shlibpath_var=unsupported
8813 inherit_rpath=no
8814 link_all_deplibs=unknown
8815 module_cmds=
8816 module_expsym_cmds=
8817 old_archive_from_new_cmds=
8818 old_archive_from_expsyms_cmds=
8819 thread_safe_flag_spec=
8820 whole_archive_flag_spec=
8821 # include_expsyms should be a list of space-separated symbols to be *always*
8822 # included in the symbol list
8823 include_expsyms=
8824 # exclude_expsyms can be an extended regexp of symbols to exclude
8825 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8826 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8827 # as well as any symbol that contains `d'.
8828 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8829 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8830 # platforms (ab)use it in PIC code, but their linkers get confused if
8831 # the symbol is explicitly referenced. Since portable code cannot
8832 # rely on this symbol name, it's probably fine to never include it in
8833 # preloaded symbol tables.
8834 # Exclude shared library initialization/finalization symbols.
8835 extract_expsyms_cmds=
8837 case $host_os in
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8840 # When not using gcc, we currently assume that we are using
8841 # Microsoft Visual C++.
8842 if test "$GCC" != yes; then
8843 with_gnu_ld=no
8846 interix*)
8847 # we just hope/assume this is gcc and not c89 (= MSVC++)
8848 with_gnu_ld=yes
8850 openbsd*)
8851 with_gnu_ld=no
8853 esac
8855 ld_shlibs=yes
8856 if test "$with_gnu_ld" = yes; then
8857 # If archive_cmds runs LD, not CC, wlarc should be empty
8858 wlarc='${wl}'
8860 # Set some defaults for GNU ld with shared library support. These
8861 # are reset later if shared libraries are not supported. Putting them
8862 # here allows them to be overridden if necessary.
8863 runpath_var=LD_RUN_PATH
8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865 export_dynamic_flag_spec='${wl}--export-dynamic'
8866 # ancient GNU ld didn't support --whole-archive et. al.
8867 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8868 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8869 else
8870 whole_archive_flag_spec=
8872 supports_anon_versioning=no
8873 case `$LD -v 2>&1` in
8874 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8875 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8876 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8877 *\ 2.11.*) ;; # other 2.11 versions
8878 *) supports_anon_versioning=yes ;;
8879 esac
8881 # See if GNU ld supports shared libraries.
8882 case $host_os in
8883 aix[3-9]*)
8884 # On AIX/PPC, the GNU linker is very broken
8885 if test "$host_cpu" != ia64; then
8886 ld_shlibs=no
8887 cat <<_LT_EOF 1>&2
8889 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8890 *** to be unable to reliably create shared libraries on AIX.
8891 *** Therefore, libtool is disabling shared libraries support. If you
8892 *** really care for shared libraries, you may want to modify your PATH
8893 *** so that a non-GNU linker is found, and then restart.
8895 _LT_EOF
8899 amigaos*)
8900 case $host_cpu in
8901 powerpc)
8902 # see comment about AmigaOS4 .so support
8903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904 archive_expsym_cmds=''
8906 m68k)
8907 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)'
8908 hardcode_libdir_flag_spec='-L$libdir'
8909 hardcode_minus_L=yes
8911 esac
8914 beos*)
8915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8916 allow_undefined_flag=unsupported
8917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8918 # support --undefined. This deserves some investigation. FIXME
8919 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 else
8921 ld_shlibs=no
8925 cygwin* | mingw* | pw32* | cegcc*)
8926 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8927 # as there is no search path for DLLs.
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 allow_undefined_flag=unsupported
8930 always_export_symbols=no
8931 enable_shared_with_static_runtimes=yes
8932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8934 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8936 # If the export-symbols file already is a .def file (1st line
8937 # is EXPORTS), use it as is; otherwise, prepend...
8938 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8939 cp $export_symbols $output_objdir/$soname.def;
8940 else
8941 echo EXPORTS > $output_objdir/$soname.def;
8942 cat $export_symbols >> $output_objdir/$soname.def;
8944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8945 else
8946 ld_shlibs=no
8950 interix[3-9]*)
8951 hardcode_direct=no
8952 hardcode_shlibpath_var=no
8953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954 export_dynamic_flag_spec='${wl}-E'
8955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8956 # Instead, shared libraries are loaded at an image base (0x10000000 by
8957 # default) and relocated if they conflict, which is a slow very memory
8958 # consuming and fragmenting process. To avoid this, we pick a random,
8959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8962 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'
8965 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8966 tmp_diet=no
8967 if test "$host_os" = linux-dietlibc; then
8968 case $cc_basename in
8969 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8970 esac
8972 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8973 && test "$tmp_diet" = no
8974 then
8975 tmp_addflag=
8976 tmp_sharedflag='-shared'
8977 case $cc_basename,$host_cpu in
8978 pgcc*) # Portland Group C compiler
8979 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'
8980 tmp_addflag=' $pic_flag'
8982 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8983 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'
8984 tmp_addflag=' $pic_flag -Mnomain' ;;
8985 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8986 tmp_addflag=' -i_dynamic' ;;
8987 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8988 tmp_addflag=' -i_dynamic -nofor_main' ;;
8989 ifc* | ifort*) # Intel Fortran compiler
8990 tmp_addflag=' -nofor_main' ;;
8991 lf95*) # Lahey Fortran 8.1
8992 whole_archive_flag_spec=
8993 tmp_sharedflag='--shared' ;;
8994 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8995 tmp_sharedflag='-qmkshrobj'
8996 tmp_addflag= ;;
8997 esac
8998 case `$CC -V 2>&1 | sed 5q` in
8999 *Sun\ C*) # Sun C 5.9
9000 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'
9001 compiler_needs_object=yes
9002 tmp_sharedflag='-G' ;;
9003 *Sun\ F*) # Sun Fortran 8.3
9004 tmp_sharedflag='-G' ;;
9005 esac
9006 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008 if test "x$supports_anon_versioning" = xyes; then
9009 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9011 echo "local: *; };" >> $output_objdir/$libname.ver~
9012 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9015 case $cc_basename in
9016 xlf*)
9017 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9018 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9019 hardcode_libdir_flag_spec=
9020 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9021 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9022 if test "x$supports_anon_versioning" = xyes; then
9023 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9025 echo "local: *; };" >> $output_objdir/$libname.ver~
9026 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9029 esac
9030 else
9031 ld_shlibs=no
9035 netbsd*)
9036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9037 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9038 wlarc=
9039 else
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045 solaris*)
9046 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9047 ld_shlibs=no
9048 cat <<_LT_EOF 1>&2
9050 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9051 *** create shared libraries on Solaris systems. Therefore, libtool
9052 *** is disabling shared libraries support. We urge you to upgrade GNU
9053 *** binutils to release 2.9.1 or newer. Another option is to modify
9054 *** your PATH or compiler configuration so that the native linker is
9055 *** used, and then restart.
9057 _LT_EOF
9058 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061 else
9062 ld_shlibs=no
9066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9067 case `$LD -v 2>&1` in
9068 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9069 ld_shlibs=no
9070 cat <<_LT_EOF 1>&2
9072 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9073 *** reliably create shared libraries on SCO systems. Therefore, libtool
9074 *** is disabling shared libraries support. We urge you to upgrade GNU
9075 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9076 *** your PATH or compiler configuration so that the native linker is
9077 *** used, and then restart.
9079 _LT_EOF
9082 # For security reasons, it is highly recommended that you always
9083 # use absolute paths for naming shared libraries, and exclude the
9084 # DT_RUNPATH tag from executables and libraries. But doing so
9085 # requires that you compile everything twice, which is a pain.
9086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 else
9091 ld_shlibs=no
9094 esac
9097 sunos4*)
9098 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9099 wlarc=
9100 hardcode_direct=yes
9101 hardcode_shlibpath_var=no
9105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108 else
9109 ld_shlibs=no
9112 esac
9114 if test "$ld_shlibs" = no; then
9115 runpath_var=
9116 hardcode_libdir_flag_spec=
9117 export_dynamic_flag_spec=
9118 whole_archive_flag_spec=
9120 else
9121 # PORTME fill in a description of your system's linker (not GNU ld)
9122 case $host_os in
9123 aix3*)
9124 allow_undefined_flag=unsupported
9125 always_export_symbols=yes
9126 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'
9127 # Note: this linker hardcodes the directories in LIBPATH if there
9128 # are no directories specified by -L.
9129 hardcode_minus_L=yes
9130 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9131 # Neither direct hardcoding nor static linking is supported with a
9132 # broken collect2.
9133 hardcode_direct=unsupported
9137 aix[4-9]*)
9138 if test "$host_cpu" = ia64; then
9139 # On IA64, the linker does run time linking by default, so we don't
9140 # have to do anything special.
9141 aix_use_runtimelinking=no
9142 exp_sym_flag='-Bexport'
9143 no_entry_flag=""
9144 else
9145 # If we're using GNU nm, then we don't want the "-C" option.
9146 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9147 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9148 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'
9149 else
9150 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'
9152 aix_use_runtimelinking=no
9154 # Test if we are trying to use run time linking or normal
9155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9156 # need to do runtime linking.
9157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9158 for ld_flag in $LDFLAGS; do
9159 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9160 aix_use_runtimelinking=yes
9161 break
9163 done
9165 esac
9167 exp_sym_flag='-bexport'
9168 no_entry_flag='-bnoentry'
9171 # When large executables or shared objects are built, AIX ld can
9172 # have problems creating the table of contents. If linking a library
9173 # or program results in "error TOC overflow" add -mminimal-toc to
9174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9177 archive_cmds=''
9178 hardcode_direct=yes
9179 hardcode_direct_absolute=yes
9180 hardcode_libdir_separator=':'
9181 link_all_deplibs=yes
9182 file_list_spec='${wl}-f,'
9184 if test "$GCC" = yes; then
9185 case $host_os in aix4.[012]|aix4.[012].*)
9186 # We only want to do this on AIX 4.2 and lower, the check
9187 # below for broken collect2 doesn't work under 4.3+
9188 collect2name=`${CC} -print-prog-name=collect2`
9189 if test -f "$collect2name" &&
9190 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9191 then
9192 # We have reworked collect2
9194 else
9195 # We have old collect2
9196 hardcode_direct=unsupported
9197 # It fails to find uninstalled libraries when the uninstalled
9198 # path is not listed in the libpath. Setting hardcode_minus_L
9199 # to unsupported forces relinking
9200 hardcode_minus_L=yes
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_libdir_separator=
9205 esac
9206 shared_flag='-shared'
9207 if test "$aix_use_runtimelinking" = yes; then
9208 shared_flag="$shared_flag "'${wl}-G'
9210 else
9211 # not using gcc
9212 if test "$host_cpu" = ia64; then
9213 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9214 # chokes on -Wl,-G. The following line is correct:
9215 shared_flag='-G'
9216 else
9217 if test "$aix_use_runtimelinking" = yes; then
9218 shared_flag='${wl}-G'
9219 else
9220 shared_flag='${wl}-bM:SRE'
9225 export_dynamic_flag_spec='${wl}-bexpall'
9226 # It seems that -bexpall does not export symbols beginning with
9227 # underscore (_), so it is better to generate a list of symbols to export.
9228 always_export_symbols=yes
9229 if test "$aix_use_runtimelinking" = yes; then
9230 # Warning - without using the other runtime loading flags (-brtl),
9231 # -berok will link without error, but may produce a broken library.
9232 allow_undefined_flag='-berok'
9233 # Determine the default libpath from the value encoded in an
9234 # empty executable.
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9243 main ()
9247 return 0;
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9273 lt_aix_libpath_sed='
9274 /Import File Strings/,/^$/ {
9275 /^0/ {
9276 s/^0 *\(.*\)$/\1/
9280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281 # Check for a 64-bit object if we didn't find anything.
9282 if test -z "$aix_libpath"; then
9283 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9295 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"
9296 else
9297 if test "$host_cpu" = ia64; then
9298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9299 allow_undefined_flag="-z nodefs"
9300 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"
9301 else
9302 # Determine the default libpath from the value encoded in an
9303 # empty executable.
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9312 main ()
9316 return 0;
9318 _ACEOF
9319 rm -f conftest.$ac_objext conftest$ac_exeext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9321 (eval $ac_link) 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -z "$ac_c_werror_flag"
9329 || test ! -s conftest.err'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 (eval $ac_try) 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; } &&
9335 { ac_try='test -s conftest$ac_exeext'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 (eval $ac_try) 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9342 lt_aix_libpath_sed='
9343 /Import File Strings/,/^$/ {
9344 /^0/ {
9345 s/^0 *\(.*\)$/\1/
9349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9350 # Check for a 64-bit object if we didn't find anything.
9351 if test -z "$aix_libpath"; then
9352 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9359 rm -f conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9364 # Warning - without using the other run time loading flags,
9365 # -berok will link without error, but may produce a broken library.
9366 no_undefined_flag=' ${wl}-bernotok'
9367 allow_undefined_flag=' ${wl}-berok'
9368 # Exported symbols can be pulled into shared objects from archives
9369 whole_archive_flag_spec='$convenience'
9370 archive_cmds_need_lc=yes
9371 # This is similar to how AIX traditionally builds its shared libraries.
9372 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'
9377 amigaos*)
9378 case $host_cpu in
9379 powerpc)
9380 # see comment about AmigaOS4 .so support
9381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382 archive_expsym_cmds=''
9384 m68k)
9385 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)'
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_minus_L=yes
9389 esac
9392 bsdi[45]*)
9393 export_dynamic_flag_spec=-rdynamic
9396 cygwin* | mingw* | pw32* | cegcc*)
9397 # When not using gcc, we currently assume that we are using
9398 # Microsoft Visual C++.
9399 # hardcode_libdir_flag_spec is actually meaningless, as there is
9400 # no search path for DLLs.
9401 hardcode_libdir_flag_spec=' '
9402 allow_undefined_flag=unsupported
9403 # Tell ltmain to make .lib files, not .a files.
9404 libext=lib
9405 # Tell ltmain to make .dll files, not .so files.
9406 shrext_cmds=".dll"
9407 # FIXME: Setting linknames here is a bad hack.
9408 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9409 # The linker will automatically build a .lib file if we build a DLL.
9410 old_archive_from_new_cmds='true'
9411 # FIXME: Should let the user specify the lib program.
9412 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9413 fix_srcfile_path='`cygpath -w "$srcfile"`'
9414 enable_shared_with_static_runtimes=yes
9417 darwin* | rhapsody*)
9420 archive_cmds_need_lc=no
9421 hardcode_direct=no
9422 hardcode_automatic=yes
9423 hardcode_shlibpath_var=unsupported
9424 whole_archive_flag_spec=''
9425 link_all_deplibs=yes
9426 allow_undefined_flag="$_lt_dar_allow_undefined"
9427 case $cc_basename in
9428 ifort*) _lt_dar_can_shared=yes ;;
9429 *) _lt_dar_can_shared=$GCC ;;
9430 esac
9431 if test "$_lt_dar_can_shared" = "yes"; then
9432 output_verbose_link_cmd=echo
9433 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9434 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9435 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9436 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9438 else
9439 ld_shlibs=no
9444 dgux*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9450 freebsd1*)
9451 ld_shlibs=no
9454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455 # support. Future versions do this automatically, but an explicit c++rt0.o
9456 # does not break anything, and helps significantly (at the cost of a little
9457 # extra space).
9458 freebsd2.2*)
9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460 hardcode_libdir_flag_spec='-R$libdir'
9461 hardcode_direct=yes
9462 hardcode_shlibpath_var=no
9465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9466 freebsd2*)
9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_direct=yes
9469 hardcode_minus_L=yes
9470 hardcode_shlibpath_var=no
9473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474 freebsd* | dragonfly*)
9475 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9477 hardcode_direct=yes
9478 hardcode_shlibpath_var=no
9481 hpux9*)
9482 if test "$GCC" = yes; then
9483 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'
9484 else
9485 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'
9487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488 hardcode_libdir_separator=:
9489 hardcode_direct=yes
9491 # hardcode_minus_L: Not really in the search PATH,
9492 # but as the default location of the library.
9493 hardcode_minus_L=yes
9494 export_dynamic_flag_spec='${wl}-E'
9497 hpux10*)
9498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9499 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9500 else
9501 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9503 if test "$with_gnu_ld" = no; then
9504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9505 hardcode_libdir_flag_spec_ld='+b $libdir'
9506 hardcode_libdir_separator=:
9507 hardcode_direct=yes
9508 hardcode_direct_absolute=yes
9509 export_dynamic_flag_spec='${wl}-E'
9510 # hardcode_minus_L: Not really in the search PATH,
9511 # but as the default location of the library.
9512 hardcode_minus_L=yes
9516 hpux11*)
9517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9518 case $host_cpu in
9519 hppa*64*)
9520 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 ia64*)
9523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9528 esac
9529 else
9530 case $host_cpu in
9531 hppa*64*)
9532 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 ia64*)
9535 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9540 esac
9542 if test "$with_gnu_ld" = no; then
9543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9544 hardcode_libdir_separator=:
9546 case $host_cpu in
9547 hppa*64*|ia64*)
9548 hardcode_direct=no
9549 hardcode_shlibpath_var=no
9552 hardcode_direct=yes
9553 hardcode_direct_absolute=yes
9554 export_dynamic_flag_spec='${wl}-E'
9556 # hardcode_minus_L: Not really in the search PATH,
9557 # but as the default location of the library.
9558 hardcode_minus_L=yes
9560 esac
9564 irix5* | irix6* | nonstopux*)
9565 if test "$GCC" = yes; then
9566 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'
9567 # Try to use the -exported_symbol ld option, if it does not
9568 # work, assume that -exports_file does not work either and
9569 # implicitly export all symbols.
9570 save_LDFLAGS="$LDFLAGS"
9571 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9572 cat >conftest.$ac_ext <<_ACEOF
9573 int foo(void) {}
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 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'
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9604 rm -f conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9606 LDFLAGS="$save_LDFLAGS"
9607 else
9608 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'
9609 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'
9611 archive_cmds_need_lc='no'
9612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613 hardcode_libdir_separator=:
9614 inherit_rpath=yes
9615 link_all_deplibs=yes
9618 netbsd*)
9619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9621 else
9622 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9629 newsos6)
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_direct=yes
9632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9633 hardcode_libdir_separator=:
9634 hardcode_shlibpath_var=no
9637 *nto* | *qnx*)
9640 openbsd*)
9641 if test -f /usr/libexec/ld.so; then
9642 hardcode_direct=yes
9643 hardcode_shlibpath_var=no
9644 hardcode_direct_absolute=yes
9645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9647 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9649 export_dynamic_flag_spec='${wl}-E'
9650 else
9651 case $host_os in
9652 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_libdir_flag_spec='-R$libdir'
9657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9660 esac
9662 else
9663 ld_shlibs=no
9667 os2*)
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_minus_L=yes
9670 allow_undefined_flag=unsupported
9671 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'
9672 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9675 osf3*)
9676 if test "$GCC" = yes; then
9677 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9678 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'
9679 else
9680 allow_undefined_flag=' -expect_unresolved \*'
9681 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'
9683 archive_cmds_need_lc='no'
9684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9685 hardcode_libdir_separator=:
9688 osf4* | osf5*) # as osf3* with the addition of -msym flag
9689 if test "$GCC" = yes; then
9690 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9691 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'
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693 else
9694 allow_undefined_flag=' -expect_unresolved \*'
9695 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'
9696 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~
9697 $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'
9699 # Both c and cxx compiler support -rpath directly
9700 hardcode_libdir_flag_spec='-rpath $libdir'
9702 archive_cmds_need_lc='no'
9703 hardcode_libdir_separator=:
9706 solaris*)
9707 no_undefined_flag=' -z defs'
9708 if test "$GCC" = yes; then
9709 wlarc='${wl}'
9710 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9712 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9713 else
9714 case `$CC -V 2>&1` in
9715 *"Compilers 5.0"*)
9716 wlarc=''
9717 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9719 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9722 wlarc='${wl}'
9723 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9725 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9727 esac
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_shlibpath_var=no
9731 case $host_os in
9732 solaris2.[0-5] | solaris2.[0-5].*) ;;
9734 # The compiler driver will combine and reorder linker options,
9735 # but understands `-z linker_flag'. GCC discards it without `$wl',
9736 # but is careful enough not to reorder.
9737 # Supported since Solaris 2.6 (maybe 2.5.1?)
9738 if test "$GCC" = yes; then
9739 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9740 else
9741 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9744 esac
9745 link_all_deplibs=yes
9748 sunos4*)
9749 if test "x$host_vendor" = xsequent; then
9750 # Use $CC to link under sequent, because it throws in some extra .o
9751 # files that make .init and .fini sections work.
9752 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9753 else
9754 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 hardcode_direct=yes
9758 hardcode_minus_L=yes
9759 hardcode_shlibpath_var=no
9762 sysv4)
9763 case $host_vendor in
9764 sni)
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_direct=yes # is this really true???
9768 siemens)
9769 ## LD is ld it makes a PLAMLIB
9770 ## CC just makes a GrossModule.
9771 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9772 reload_cmds='$CC -r -o $output$reload_objs'
9773 hardcode_direct=no
9775 motorola)
9776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9779 esac
9780 runpath_var='LD_RUN_PATH'
9781 hardcode_shlibpath_var=no
9784 sysv4.3*)
9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786 hardcode_shlibpath_var=no
9787 export_dynamic_flag_spec='-Bexport'
9790 sysv4*MP*)
9791 if test -d /usr/nec; then
9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793 hardcode_shlibpath_var=no
9794 runpath_var=LD_RUN_PATH
9795 hardcode_runpath_var=yes
9796 ld_shlibs=yes
9800 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9801 no_undefined_flag='${wl}-z,text'
9802 archive_cmds_need_lc=no
9803 hardcode_shlibpath_var=no
9804 runpath_var='LD_RUN_PATH'
9806 if test "$GCC" = yes; then
9807 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 sysv5* | sco3.2v5* | sco5v6*)
9816 # Note: We can NOT use -z defs as we might desire, because we do not
9817 # link with -lc, and that would cause any symbols used from libc to
9818 # always be unresolved, which means just about no library would
9819 # ever link correctly. If we're not using GNU ld we use -z text
9820 # though, which does catch some bad symbols but isn't as heavy-handed
9821 # as -z defs.
9822 no_undefined_flag='${wl}-z,text'
9823 allow_undefined_flag='${wl}-z,nodefs'
9824 archive_cmds_need_lc=no
9825 hardcode_shlibpath_var=no
9826 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9827 hardcode_libdir_separator=':'
9828 link_all_deplibs=yes
9829 export_dynamic_flag_spec='${wl}-Bexport'
9830 runpath_var='LD_RUN_PATH'
9832 if test "$GCC" = yes; then
9833 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 else
9836 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 uts4*)
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_shlibpath_var=no
9848 ld_shlibs=no
9850 esac
9852 if test x$host_vendor = xsni; then
9853 case $host in
9854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9855 export_dynamic_flag_spec='${wl}-Blargedynsym'
9857 esac
9861 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9862 echo "${ECHO_T}$ld_shlibs" >&6
9863 test "$ld_shlibs" = no && can_build_shared=no
9865 with_gnu_ld=$with_gnu_ld
9882 # Do we need to explicitly link libc?
9884 case "x$archive_cmds_need_lc" in
9885 x|xyes)
9886 # Assume -lc should be added
9887 archive_cmds_need_lc=yes
9889 if test "$enable_shared" = yes && test "$GCC" = yes; then
9890 case $archive_cmds in
9891 *'~'*)
9892 # FIXME: we may have to deal with multi-command sequences.
9894 '$CC '*)
9895 # Test whether the compiler implicitly links with -lc since on some
9896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9897 # to ld, don't add -lc before -lgcc.
9898 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9900 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 $RM conftest*
9904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } 2>conftest.err; then
9911 soname=conftest
9912 lib=conftest
9913 libobjs=conftest.$ac_objext
9914 deplibs=
9915 wl=$lt_prog_compiler_wl
9916 pic_flag=$lt_prog_compiler_pic
9917 compiler_flags=-v
9918 linker_flags=-v
9919 verstring=
9920 output_objdir=.
9921 libname=conftest
9922 lt_save_allow_undefined_flag=$allow_undefined_flag
9923 allow_undefined_flag=
9924 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9925 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }
9929 then
9930 lt_cv_archive_cmds_need_lc=no
9931 else
9932 lt_cv_archive_cmds_need_lc=yes
9934 allow_undefined_flag=$lt_save_allow_undefined_flag
9935 else
9936 cat conftest.err 1>&5
9938 $RM conftest*
9941 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9942 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9943 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9945 esac
9948 esac
10106 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10107 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10109 if test "$GCC" = yes; then
10110 case $host_os in
10111 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10112 *) lt_awk_arg="/^libraries:/" ;;
10113 esac
10114 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10115 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10116 # if the path contains ";" then we assume it to be the separator
10117 # otherwise default to the standard path separator (i.e. ":") - it is
10118 # assumed that no part of a normal pathname contains ";" but that should
10119 # okay in the real world where ";" in dirpaths is itself problematic.
10120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10121 else
10122 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10124 # Ok, now we have the path, separated by spaces, we can step through it
10125 # and add multilib dir if necessary.
10126 lt_tmp_lt_search_path_spec=
10127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10128 for lt_sys_path in $lt_search_path_spec; do
10129 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10131 else
10132 test -d "$lt_sys_path" && \
10133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10135 done
10136 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10137 BEGIN {RS=" "; FS="/|\n";} {
10138 lt_foo="";
10139 lt_count=0;
10140 for (lt_i = NF; lt_i > 0; lt_i--) {
10141 if ($lt_i != "" && $lt_i != ".") {
10142 if ($lt_i == "..") {
10143 lt_count++;
10144 } else {
10145 if (lt_count == 0) {
10146 lt_foo="/" $lt_i lt_foo;
10147 } else {
10148 lt_count--;
10153 if (lt_foo != "") { lt_freq[lt_foo]++; }
10154 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10156 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10157 else
10158 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10160 library_names_spec=
10161 libname_spec='lib$name'
10162 soname_spec=
10163 shrext_cmds=".so"
10164 postinstall_cmds=
10165 postuninstall_cmds=
10166 finish_cmds=
10167 finish_eval=
10168 shlibpath_var=
10169 shlibpath_overrides_runpath=unknown
10170 version_type=none
10171 dynamic_linker="$host_os ld.so"
10172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10173 need_lib_prefix=unknown
10174 hardcode_into_libs=no
10176 # when you set need_version to no, make sure it does not cause -set_version
10177 # flags to be left without arguments
10178 need_version=unknown
10180 case $host_os in
10181 aix3*)
10182 version_type=linux
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10184 shlibpath_var=LIBPATH
10186 # AIX 3 has no versioning support, so we append a major version to the name.
10187 soname_spec='${libname}${release}${shared_ext}$major'
10190 aix[4-9]*)
10191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 hardcode_into_libs=yes
10195 if test "$host_cpu" = ia64; then
10196 # AIX 5 supports IA64
10197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 else
10200 # With GCC up to 2.95.x, collect2 would create an import file
10201 # for dependence libraries. The import file would start with
10202 # the line `#! .'. This would cause the generated library to
10203 # depend on `.', always an invalid library. This was fixed in
10204 # development snapshots of GCC prior to 3.0.
10205 case $host_os in
10206 aix4 | aix4.[01] | aix4.[01].*)
10207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10208 echo ' yes '
10209 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10211 else
10212 can_build_shared=no
10215 esac
10216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10217 # soname into executable. Probably we can add versioning support to
10218 # collect2, so additional links can be useful in future.
10219 if test "$aix_use_runtimelinking" = yes; then
10220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10221 # instead of lib<name>.a to let people know that these are not
10222 # typical AIX shared libraries.
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 else
10225 # We preserve .a as extension for shared libraries through AIX4.2
10226 # and later when we are not doing run time linking.
10227 library_names_spec='${libname}${release}.a $libname.a'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LIBPATH
10234 amigaos*)
10235 case $host_cpu in
10236 powerpc)
10237 # Since July 2007 AmigaOS4 officially supports .so libraries.
10238 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 m68k)
10242 library_names_spec='$libname.ixlibrary $libname.a'
10243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10244 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'
10246 esac
10249 beos*)
10250 library_names_spec='${libname}${shared_ext}'
10251 dynamic_linker="$host_os ld.so"
10252 shlibpath_var=LIBRARY_PATH
10255 bsdi[45]*)
10256 version_type=linux
10257 need_version=no
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10264 # the default ld.so.conf also contains /usr/contrib/lib and
10265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10266 # libtool to hard-code these into programs
10269 cygwin* | mingw* | pw32* | cegcc*)
10270 version_type=windows
10271 shrext_cmds=".dll"
10272 need_version=no
10273 need_lib_prefix=no
10275 case $GCC,$host_os in
10276 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10277 library_names_spec='$libname.dll.a'
10278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10279 postinstall_cmds='base_file=`basename \${file}`~
10280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10281 dldir=$destdir/`dirname \$dlpath`~
10282 test -d \$dldir || mkdir -p \$dldir~
10283 $install_prog $dir/$dlname \$dldir/$dlname~
10284 chmod a+x \$dldir/$dlname~
10285 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10286 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10289 dlpath=$dir/\$dldll~
10290 $RM \$dlpath'
10291 shlibpath_overrides_runpath=yes
10293 case $host_os in
10294 cygwin*)
10295 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10296 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10299 mingw* | cegcc*)
10300 # MinGW DLLs use traditional 'lib' prefix
10301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10302 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10303 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10304 # It is most probably a Windows format PATH printed by
10305 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10306 # path with ; separators, and with drive letters. We can handle the
10307 # drive letters (cygwin fileutils understands them), so leave them,
10308 # especially as we might pass files found there to a mingw objdump,
10309 # which wouldn't understand a cygwinified path. Ahh.
10310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10311 else
10312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10315 pw32*)
10316 # pw32 DLLs use 'pw' prefix rather than 'lib'
10317 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10319 esac
10323 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10325 esac
10326 dynamic_linker='Win32 ld.exe'
10327 # FIXME: first we should search . and the directory the executable is in
10328 shlibpath_var=PATH
10331 darwin* | rhapsody*)
10332 dynamic_linker="$host_os dyld"
10333 version_type=darwin
10334 need_lib_prefix=no
10335 need_version=no
10336 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10337 soname_spec='${libname}${release}${major}$shared_ext'
10338 shlibpath_overrides_runpath=yes
10339 shlibpath_var=DYLD_LIBRARY_PATH
10340 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10342 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10346 dgux*)
10347 version_type=linux
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10355 freebsd1*)
10356 dynamic_linker=no
10359 freebsd* | dragonfly*)
10360 # DragonFly does not have aout. When/if they implement a new
10361 # versioning mechanism, adjust this.
10362 if test -x /usr/bin/objformat; then
10363 objformat=`/usr/bin/objformat`
10364 else
10365 case $host_os in
10366 freebsd[123]*) objformat=aout ;;
10367 *) objformat=elf ;;
10368 esac
10370 version_type=freebsd-$objformat
10371 case $version_type in
10372 freebsd-elf*)
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 need_version=no
10375 need_lib_prefix=no
10377 freebsd-*)
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10379 need_version=yes
10381 esac
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_os in
10384 freebsd2*)
10385 shlibpath_overrides_runpath=yes
10387 freebsd3.[01]* | freebsdelf3.[01]*)
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10396 *) # from 4.6 on, and DragonFly
10397 shlibpath_overrides_runpath=yes
10398 hardcode_into_libs=yes
10400 esac
10403 gnu*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 hardcode_into_libs=yes
10413 hpux9* | hpux10* | hpux11*)
10414 # Give a soname corresponding to the major version so that dld.sl refuses to
10415 # link against other versions.
10416 version_type=sunos
10417 need_lib_prefix=no
10418 need_version=no
10419 case $host_cpu in
10420 ia64*)
10421 shrext_cmds='.so'
10422 hardcode_into_libs=yes
10423 dynamic_linker="$host_os dld.so"
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 if test "X$HPUX_IA64_MODE" = X32; then
10429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10430 else
10431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10435 hppa*64*)
10436 shrext_cmds='.sl'
10437 hardcode_into_libs=yes
10438 dynamic_linker="$host_os dld.sl"
10439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10447 shrext_cmds='.sl'
10448 dynamic_linker="$host_os dld.sl"
10449 shlibpath_var=SHLIB_PATH
10450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10454 esac
10455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10456 postinstall_cmds='chmod 555 $lib'
10459 interix[3-9]*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10471 irix5* | irix6* | nonstopux*)
10472 case $host_os in
10473 nonstopux*) version_type=nonstopux ;;
10475 if test "$lt_cv_prog_gnu_ld" = yes; then
10476 version_type=linux
10477 else
10478 version_type=irix
10479 fi ;;
10480 esac
10481 need_lib_prefix=no
10482 need_version=no
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 case $host_os in
10486 irix5* | nonstopux*)
10487 libsuff= shlibsuff=
10490 case $LD in # libtool.m4 will add one of these switches to LD
10491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10492 libsuff= shlibsuff= libmagic=32-bit;;
10493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10494 libsuff=32 shlibsuff=N32 libmagic=N32;;
10495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10497 *) libsuff= shlibsuff= libmagic=never-match;;
10498 esac
10500 esac
10501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10502 shlibpath_overrides_runpath=no
10503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10505 hardcode_into_libs=yes
10508 # No shared lib support for Linux oldld, aout, or coff.
10509 linux*oldld* | linux*aout* | linux*coff*)
10510 dynamic_linker=no
10513 # This must be Linux ELF.
10514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10524 # Some binutils ld are patched to set DT_RUNPATH
10525 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 lt_cv_shlibpath_overrides_runpath=no
10529 save_LDFLAGS=$LDFLAGS
10530 save_libdir=$libdir
10531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10541 main ()
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag"
10558 || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest$ac_exeext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10571 lt_cv_shlibpath_overrides_runpath=yes
10574 else
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10579 rm -f conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LDFLAGS=$save_LDFLAGS
10582 libdir=$save_libdir
10586 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10588 # This implies no fast_install, which is unacceptable.
10589 # Some rework will be needed to allow for fast_install
10590 # before this can be enabled.
10591 hardcode_into_libs=yes
10593 # Append ld.so.conf contents to the search path
10594 if test -f /etc/ld.so.conf; then
10595 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10599 # We used to test for /lib/ld.so.1 and disable shared libraries on
10600 # powerpc, because MkLinux only supported shared libraries with the
10601 # GNU dynamic linker. Since this was broken with cross compilers,
10602 # most powerpc-linux boxes support dynamic linking these days and
10603 # people can always --disable-shared, the test was removed, and we
10604 # assume the GNU/Linux dynamic linker is in use.
10605 dynamic_linker='GNU/Linux ld.so'
10608 netbsd*)
10609 version_type=sunos
10610 need_lib_prefix=no
10611 need_version=no
10612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615 dynamic_linker='NetBSD (a.out) ld.so'
10616 else
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 dynamic_linker='NetBSD ld.elf_so'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=yes
10623 hardcode_into_libs=yes
10626 newsos6)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10633 *nto* | *qnx*)
10634 version_type=qnx
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=no
10641 hardcode_into_libs=yes
10642 dynamic_linker='ldqnx.so'
10645 openbsd*)
10646 version_type=sunos
10647 sys_lib_dlsearch_path_spec="/usr/lib"
10648 need_lib_prefix=no
10649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10650 case $host_os in
10651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10652 *) need_version=no ;;
10653 esac
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10658 case $host_os in
10659 openbsd2.[89] | openbsd2.[89].*)
10660 shlibpath_overrides_runpath=no
10663 shlibpath_overrides_runpath=yes
10665 esac
10666 else
10667 shlibpath_overrides_runpath=yes
10671 os2*)
10672 libname_spec='$name'
10673 shrext_cmds=".dll"
10674 need_lib_prefix=no
10675 library_names_spec='$libname${shared_ext} $libname.a'
10676 dynamic_linker='OS/2 ld.exe'
10677 shlibpath_var=LIBPATH
10680 osf3* | osf4* | osf5*)
10681 version_type=osf
10682 need_lib_prefix=no
10683 need_version=no
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10691 rdos*)
10692 dynamic_linker=no
10695 solaris*)
10696 version_type=linux
10697 need_lib_prefix=no
10698 need_version=no
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath=yes
10703 hardcode_into_libs=yes
10704 # ldd complains unless libraries are executable
10705 postinstall_cmds='chmod +x $lib'
10708 sunos4*)
10709 version_type=sunos
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=yes
10714 if test "$with_gnu_ld" = yes; then
10715 need_lib_prefix=no
10717 need_version=yes
10720 sysv4 | sysv4.3*)
10721 version_type=linux
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 case $host_vendor in
10726 sni)
10727 shlibpath_overrides_runpath=no
10728 need_lib_prefix=no
10729 runpath_var=LD_RUN_PATH
10731 siemens)
10732 need_lib_prefix=no
10734 motorola)
10735 need_lib_prefix=no
10736 need_version=no
10737 shlibpath_overrides_runpath=no
10738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740 esac
10743 sysv4*MP*)
10744 if test -d /usr/nec ;then
10745 version_type=linux
10746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10747 soname_spec='$libname${shared_ext}.$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10753 version_type=freebsd-elf
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=yes
10760 hardcode_into_libs=yes
10761 if test "$with_gnu_ld" = yes; then
10762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10763 else
10764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10765 case $host_os in
10766 sco3.2v5*)
10767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10769 esac
10771 sys_lib_dlsearch_path_spec='/usr/lib'
10774 tpf*)
10775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 shlibpath_overrides_runpath=no
10782 hardcode_into_libs=yes
10785 uts4*)
10786 version_type=linux
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10793 dynamic_linker=no
10795 esac
10796 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10797 echo "${ECHO_T}$dynamic_linker" >&6
10798 test "$dynamic_linker" = no && can_build_shared=no
10800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10801 if test "$GCC" = yes; then
10802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10898 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10899 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10900 hardcode_action=
10901 if test -n "$hardcode_libdir_flag_spec" ||
10902 test -n "$runpath_var" ||
10903 test "X$hardcode_automatic" = "Xyes" ; then
10905 # We can hardcode non-existent directories.
10906 if test "$hardcode_direct" != no &&
10907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10908 # have to relink, otherwise we might link with an installed library
10909 # when we should be linking with a yet-to-be-installed one
10910 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10911 test "$hardcode_minus_L" != no; then
10912 # Linking always hardcodes the temporary library directory.
10913 hardcode_action=relink
10914 else
10915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10916 hardcode_action=immediate
10918 else
10919 # We cannot hardcode anything, or else we can only hardcode existing
10920 # directories.
10921 hardcode_action=unsupported
10923 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10924 echo "${ECHO_T}$hardcode_action" >&6
10926 if test "$hardcode_action" = relink ||
10927 test "$inherit_rpath" = yes; then
10928 # Fast installation is not supported
10929 enable_fast_install=no
10930 elif test "$shlibpath_overrides_runpath" = yes ||
10931 test "$enable_shared" = no; then
10932 # Fast installation is not necessary
10933 enable_fast_install=needless
10941 if test "x$enable_dlopen" != xyes; then
10942 enable_dlopen=unknown
10943 enable_dlopen_self=unknown
10944 enable_dlopen_self_static=unknown
10945 else
10946 lt_cv_dlopen=no
10947 lt_cv_dlopen_libs=
10949 case $host_os in
10950 beos*)
10951 lt_cv_dlopen="load_add_on"
10952 lt_cv_dlopen_libs=
10953 lt_cv_dlopen_self=yes
10956 mingw* | pw32* | cegcc*)
10957 lt_cv_dlopen="LoadLibrary"
10958 lt_cv_dlopen_libs=
10961 cygwin*)
10962 lt_cv_dlopen="dlopen"
10963 lt_cv_dlopen_libs=
10966 darwin*)
10967 # if libdl is installed we need to link against it
10968 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-ldl $LIBS"
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10982 /* Override any gcc2 internal prototype to avoid an error. */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 /* We use char because int might match the return type of a gcc2
10987 builtin and then its argument prototype would still apply. */
10988 char dlopen ();
10990 main ()
10992 dlopen ();
10994 return 0;
10996 _ACEOF
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } &&
11006 { ac_try='test -z "$ac_c_werror_flag"
11007 || test ! -s conftest.err'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try='test -s conftest$ac_exeext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_cv_lib_dl_dlopen=yes
11020 else
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_cv_lib_dl_dlopen=no
11026 rm -f conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11032 if test $ac_cv_lib_dl_dlopen = yes; then
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11034 else
11036 lt_cv_dlopen="dyld"
11037 lt_cv_dlopen_libs=
11038 lt_cv_dlopen_self=yes
11045 echo "$as_me:$LINENO: checking for shl_load" >&5
11046 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11047 if test "${ac_cv_func_shl_load+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h. */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11058 #define shl_load innocuous_shl_load
11060 /* System header to define __stub macros and hopefully few prototypes,
11061 which can conflict with char shl_load (); below.
11062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11063 <limits.h> exists even on freestanding compilers. */
11065 #ifdef __STDC__
11066 # include <limits.h>
11067 #else
11068 # include <assert.h>
11069 #endif
11071 #undef shl_load
11073 /* Override any gcc2 internal prototype to avoid an error. */
11074 #ifdef __cplusplus
11075 extern "C"
11077 #endif
11078 /* We use char because int might match the return type of a gcc2
11079 builtin and then its argument prototype would still apply. */
11080 char shl_load ();
11081 /* The GNU C library defines this for functions which it implements
11082 to always fail with ENOSYS. Some functions are actually named
11083 something starting with __ and the normal name is an alias. */
11084 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11085 choke me
11086 #else
11087 char (*f) () = shl_load;
11088 #endif
11089 #ifdef __cplusplus
11091 #endif
11094 main ()
11096 return f != shl_load;
11098 return 0;
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag"
11111 || test ! -s conftest.err'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; } &&
11117 { ac_try='test -s conftest$ac_exeext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_cv_func_shl_load=yes
11124 else
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_cv_func_shl_load=no
11130 rm -f conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11133 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11134 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11135 if test $ac_cv_func_shl_load = yes; then
11136 lt_cv_dlopen="shl_load"
11137 else
11138 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11139 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-ldld $LIBS"
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11152 /* Override any gcc2 internal prototype to avoid an error. */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 /* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11158 char shl_load ();
11160 main ()
11162 shl_load ();
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_lib_dld_shl_load=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_cv_lib_dld_shl_load=no
11196 rm -f conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11200 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11201 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11202 if test $ac_cv_lib_dld_shl_load = yes; then
11203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11204 else
11205 echo "$as_me:$LINENO: checking for dlopen" >&5
11206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11207 if test "${ac_cv_func_dlopen+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11218 #define dlopen innocuous_dlopen
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char dlopen (); below.
11222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 <limits.h> exists even on freestanding compilers. */
11225 #ifdef __STDC__
11226 # include <limits.h>
11227 #else
11228 # include <assert.h>
11229 #endif
11231 #undef dlopen
11233 /* Override any gcc2 internal prototype to avoid an error. */
11234 #ifdef __cplusplus
11235 extern "C"
11237 #endif
11238 /* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11240 char dlopen ();
11241 /* The GNU C library defines this for functions which it implements
11242 to always fail with ENOSYS. Some functions are actually named
11243 something starting with __ and the normal name is an alias. */
11244 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11245 choke me
11246 #else
11247 char (*f) () = dlopen;
11248 #endif
11249 #ifdef __cplusplus
11251 #endif
11254 main ()
11256 return f != dlopen;
11258 return 0;
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263 (eval $ac_link) 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try='test -z "$ac_c_werror_flag"
11271 || test ! -s conftest.err'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest$ac_exeext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_cv_func_dlopen=yes
11284 else
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_func_dlopen=no
11290 rm -f conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11295 if test $ac_cv_func_dlopen = yes; then
11296 lt_cv_dlopen="dlopen"
11297 else
11298 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-ldl $LIBS"
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11312 /* Override any gcc2 internal prototype to avoid an error. */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 /* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11318 char dlopen ();
11320 main ()
11322 dlopen ();
11324 return 0;
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329 (eval $ac_link) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest$ac_exeext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_cv_lib_dl_dlopen=yes
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_cv_lib_dl_dlopen=no
11356 rm -f conftest.err conftest.$ac_objext \
11357 conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11362 if test $ac_cv_lib_dl_dlopen = yes; then
11363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11364 else
11365 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370 ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-lsvld $LIBS"
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11379 /* Override any gcc2 internal prototype to avoid an error. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11385 char dlopen ();
11387 main ()
11389 dlopen ();
11391 return 0;
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
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); }; } &&
11410 { ac_try='test -s conftest$ac_exeext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_lib_svld_dlopen=yes
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_cv_lib_svld_dlopen=no
11423 rm -f conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11427 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11429 if test $ac_cv_lib_svld_dlopen = yes; then
11430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11431 else
11432 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldld $LIBS"
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 /* Override any gcc2 internal prototype to avoid an error. */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11452 char dld_link ();
11454 main ()
11456 dld_link ();
11458 return 0;
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_lib_dld_dld_link=yes
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 ac_cv_lib_dld_dld_link=no
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11495 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11496 if test $ac_cv_lib_dld_dld_link = yes; then
11497 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11516 esac
11518 if test "x$lt_cv_dlopen" != xno; then
11519 enable_dlopen=yes
11520 else
11521 enable_dlopen=no
11524 case $lt_cv_dlopen in
11525 dlopen)
11526 save_CPPFLAGS="$CPPFLAGS"
11527 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11529 save_LDFLAGS="$LDFLAGS"
11530 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11532 save_LIBS="$LIBS"
11533 LIBS="$lt_cv_dlopen_libs $LIBS"
11535 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11536 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11537 if test "${lt_cv_dlopen_self+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 if test "$cross_compiling" = yes; then :
11541 lt_cv_dlopen_self=cross
11542 else
11543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11544 lt_status=$lt_dlunknown
11545 cat > conftest.$ac_ext <<_LT_EOF
11546 #line 11546 "configure"
11547 #include "confdefs.h"
11549 #if HAVE_DLFCN_H
11550 #include <dlfcn.h>
11551 #endif
11553 #include <stdio.h>
11555 #ifdef RTLD_GLOBAL
11556 # define LT_DLGLOBAL RTLD_GLOBAL
11557 #else
11558 # ifdef DL_GLOBAL
11559 # define LT_DLGLOBAL DL_GLOBAL
11560 # else
11561 # define LT_DLGLOBAL 0
11562 # endif
11563 #endif
11565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11566 find out it does not work in some platform. */
11567 #ifndef LT_DLLAZY_OR_NOW
11568 # ifdef RTLD_LAZY
11569 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11570 # else
11571 # ifdef DL_LAZY
11572 # define LT_DLLAZY_OR_NOW DL_LAZY
11573 # else
11574 # ifdef RTLD_NOW
11575 # define LT_DLLAZY_OR_NOW RTLD_NOW
11576 # else
11577 # ifdef DL_NOW
11578 # define LT_DLLAZY_OR_NOW DL_NOW
11579 # else
11580 # define LT_DLLAZY_OR_NOW 0
11581 # endif
11582 # endif
11583 # endif
11584 # endif
11585 #endif
11587 void fnord() { int i=42;}
11588 int main ()
11590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11591 int status = $lt_dlunknown;
11593 if (self)
11595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 /* dlclose (self); */
11599 else
11600 puts (dlerror ());
11602 return status;
11604 _LT_EOF
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11610 (./conftest; exit; ) >&5 2>/dev/null
11611 lt_status=$?
11612 case x$lt_status in
11613 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11614 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11615 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11616 esac
11617 else :
11618 # compilation failed
11619 lt_cv_dlopen_self=no
11622 rm -fr conftest*
11626 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11627 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11629 if test "x$lt_cv_dlopen_self" = xyes; then
11630 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11631 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11632 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11633 if test "${lt_cv_dlopen_self_static+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 if test "$cross_compiling" = yes; then :
11637 lt_cv_dlopen_self_static=cross
11638 else
11639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11640 lt_status=$lt_dlunknown
11641 cat > conftest.$ac_ext <<_LT_EOF
11642 #line 11642 "configure"
11643 #include "confdefs.h"
11645 #if HAVE_DLFCN_H
11646 #include <dlfcn.h>
11647 #endif
11649 #include <stdio.h>
11651 #ifdef RTLD_GLOBAL
11652 # define LT_DLGLOBAL RTLD_GLOBAL
11653 #else
11654 # ifdef DL_GLOBAL
11655 # define LT_DLGLOBAL DL_GLOBAL
11656 # else
11657 # define LT_DLGLOBAL 0
11658 # endif
11659 #endif
11661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11662 find out it does not work in some platform. */
11663 #ifndef LT_DLLAZY_OR_NOW
11664 # ifdef RTLD_LAZY
11665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11666 # else
11667 # ifdef DL_LAZY
11668 # define LT_DLLAZY_OR_NOW DL_LAZY
11669 # else
11670 # ifdef RTLD_NOW
11671 # define LT_DLLAZY_OR_NOW RTLD_NOW
11672 # else
11673 # ifdef DL_NOW
11674 # define LT_DLLAZY_OR_NOW DL_NOW
11675 # else
11676 # define LT_DLLAZY_OR_NOW 0
11677 # endif
11678 # endif
11679 # endif
11680 # endif
11681 #endif
11683 void fnord() { int i=42;}
11684 int main ()
11686 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11687 int status = $lt_dlunknown;
11689 if (self)
11691 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11692 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11693 /* dlclose (self); */
11695 else
11696 puts (dlerror ());
11698 return status;
11700 _LT_EOF
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702 (eval $ac_link) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11706 (./conftest; exit; ) >&5 2>/dev/null
11707 lt_status=$?
11708 case x$lt_status in
11709 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11710 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11711 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11712 esac
11713 else :
11714 # compilation failed
11715 lt_cv_dlopen_self_static=no
11718 rm -fr conftest*
11722 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11723 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11726 CPPFLAGS="$save_CPPFLAGS"
11727 LDFLAGS="$save_LDFLAGS"
11728 LIBS="$save_LIBS"
11730 esac
11732 case $lt_cv_dlopen_self in
11733 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11734 *) enable_dlopen_self=unknown ;;
11735 esac
11737 case $lt_cv_dlopen_self_static in
11738 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11739 *) enable_dlopen_self_static=unknown ;;
11740 esac
11759 striplib=
11760 old_striplib=
11761 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11762 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11763 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11764 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11765 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11766 echo "$as_me:$LINENO: result: yes" >&5
11767 echo "${ECHO_T}yes" >&6
11768 else
11769 # FIXME - insert some real tests, host_os isn't really good enough
11770 case $host_os in
11771 darwin*)
11772 if test -n "$STRIP" ; then
11773 striplib="$STRIP -x"
11774 old_striplib="$STRIP -S"
11775 echo "$as_me:$LINENO: result: yes" >&5
11776 echo "${ECHO_T}yes" >&6
11777 else
11778 echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6
11783 echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11786 esac
11800 # Report which library types will actually be built
11801 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11802 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11803 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11804 echo "${ECHO_T}$can_build_shared" >&6
11806 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11807 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11808 test "$can_build_shared" = "no" && enable_shared=no
11810 # On AIX, shared libraries and static libraries use the same namespace, and
11811 # are all built from PIC.
11812 case $host_os in
11813 aix3*)
11814 test "$enable_shared" = yes && enable_static=no
11815 if test -n "$RANLIB"; then
11816 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11817 postinstall_cmds='$RANLIB $lib'
11821 aix[4-9]*)
11822 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11823 test "$enable_shared" = yes && enable_static=no
11826 esac
11827 echo "$as_me:$LINENO: result: $enable_shared" >&5
11828 echo "${ECHO_T}$enable_shared" >&6
11830 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11831 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11832 # Make sure either enable_shared or enable_static is yes.
11833 test "$enable_shared" = yes || enable_static=yes
11834 echo "$as_me:$LINENO: result: $enable_static" >&5
11835 echo "${ECHO_T}$enable_static" >&6
11841 ac_ext=c
11842 ac_cpp='$CPP $CPPFLAGS'
11843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11847 CC="$lt_save_CC"
11861 ac_config_commands="$ac_config_commands libtool"
11866 # Only expand once:
11872 if test "${ac_cv_header_stdint_h+set}" = set; then
11873 echo "$as_me:$LINENO: checking for stdint.h" >&5
11874 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11875 if test "${ac_cv_header_stdint_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11879 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11880 else
11881 # Is the header compilable?
11882 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11883 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 $ac_includes_default
11891 #include <stdint.h>
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_header_compiler=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_header_compiler=no
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11924 echo "${ECHO_T}$ac_header_compiler" >&6
11926 # Is the header present?
11927 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11928 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <stdint.h>
11936 _ACEOF
11937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } >/dev/null; then
11945 if test -s conftest.err; then
11946 ac_cpp_err=$ac_c_preproc_warn_flag
11947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11948 else
11949 ac_cpp_err=
11951 else
11952 ac_cpp_err=yes
11954 if test -z "$ac_cpp_err"; then
11955 ac_header_preproc=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 ac_header_preproc=no
11962 rm -f conftest.err conftest.$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964 echo "${ECHO_T}$ac_header_preproc" >&6
11966 # So? What about this header?
11967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11968 yes:no: )
11969 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11970 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11972 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11973 ac_header_preproc=yes
11975 no:yes:* )
11976 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11977 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11979 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11981 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11983 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11985 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11987 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11989 cat <<\_ASBOX
11990 ## ------------------------------------- ##
11991 ## Report this to the libmudflap lists. ##
11992 ## ------------------------------------- ##
11993 _ASBOX
11995 sed "s/^/$as_me: WARNING: /" >&2
11997 esac
11998 echo "$as_me:$LINENO: checking for stdint.h" >&5
11999 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
12000 if test "${ac_cv_header_stdint_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_cv_header_stdint_h=$ac_header_preproc
12005 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
12006 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
12009 if test $ac_cv_header_stdint_h = yes; then
12010 MF_HAVE_STDINT_H=1
12011 else
12012 MF_HAVE_STDINT_H=0
12017 if test $MF_HAVE_STDINT_H = 1
12018 then
12019 MF_HAVE_UINTPTR_T=1
12020 else
12021 cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h. */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 #include <sys/types.h>
12029 main ()
12031 uintptr_t k = 0;
12033 return 0;
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_c_werror_flag"
12046 || test ! -s conftest.err'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest.$ac_objext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 MF_HAVE_UINTPTR_T=1
12059 else
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 MF_HAVE_UINTPTR_T=0
12065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069 if test ! -d pth
12070 then
12071 # libmudflapth objects are built in this subdirectory
12072 mkdir pth
12076 for ac_header in pthread.h
12078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12080 echo "$as_me:$LINENO: checking for $ac_header" >&5
12081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12087 else
12088 # Is the header compilable?
12089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h. */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12098 #include <$ac_header>
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_header_compiler=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_header_compiler=no
12129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12131 echo "${ECHO_T}$ac_header_compiler" >&6
12133 # Is the header present?
12134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12143 _ACEOF
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev/null; then
12152 if test -s conftest.err; then
12153 ac_cpp_err=$ac_c_preproc_warn_flag
12154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12155 else
12156 ac_cpp_err=
12158 else
12159 ac_cpp_err=yes
12161 if test -z "$ac_cpp_err"; then
12162 ac_header_preproc=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 ac_header_preproc=no
12169 rm -f conftest.err conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171 echo "${ECHO_T}$ac_header_preproc" >&6
12173 # So? What about this header?
12174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12175 yes:no: )
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc=yes
12182 no:yes:* )
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12196 cat <<\_ASBOX
12197 ## ------------------------------------- ##
12198 ## Report this to the libmudflap lists. ##
12199 ## ------------------------------------- ##
12200 _ASBOX
12202 sed "s/^/$as_me: WARNING: /" >&2
12204 esac
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 eval "$as_ac_Header=\$ac_header_preproc"
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219 _ACEOF
12223 done
12226 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
12227 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
12228 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
12229 echo "$as_me:$LINENO: result: $target_thread_file" >&5
12230 echo "${ECHO_T}$target_thread_file" >&6
12232 # We only support posix threads, or no threads at all.
12233 posix_threads=
12234 case ${target_thread_file} in
12235 posix)
12236 posix_threads=yes
12238 single)
12241 echo "${target_thread_file} is an unsupported thread package" 1>&2
12242 exit 1
12244 esac
12248 if test "x$posix_threads" != "x"; then
12249 LIBMUDFLAPTH_TRUE=
12250 LIBMUDFLAPTH_FALSE='#'
12251 else
12252 LIBMUDFLAPTH_TRUE='#'
12253 LIBMUDFLAPTH_FALSE=
12256 if test "x$posix_threads" != "x"
12257 then
12258 build_libmudflapth=1
12259 else
12260 build_libmudflapth=0
12265 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
12266 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
12267 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270 ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-ldl $LIBS"
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12279 /* Override any gcc2 internal prototype to avoid an error. */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 /* We use char because int might match the return type of a gcc2
12284 builtin and then its argument prototype would still apply. */
12285 char dlsym ();
12287 main ()
12289 dlsym ();
12291 return 0;
12293 _ACEOF
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12296 (eval $ac_link) 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag"
12304 || test ! -s conftest.err'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_cv_lib_dl_dlsym=yes
12317 else
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_lib_dl_dlsym=no
12323 rm -f conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_lib_save_LIBS
12327 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
12328 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
12329 if test $ac_cv_lib_dl_dlsym = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331 #define HAVE_LIBDL 1
12332 _ACEOF
12334 LIBS="-ldl $LIBS"
12339 # Calculate toolexeclibdir
12340 # Also toolexecdir, though it's only used in toolexeclibdir
12341 case ${version_specific_libs} in
12342 yes)
12343 # Need the gcc compiler version to know where to install libraries
12344 # and header files if --enable-version-specific-runtime-libs option
12345 # is selected.
12346 toolexecdir='$(libdir)/gcc/$(target_alias)'
12347 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12350 if test -n "$with_cross_host" &&
12351 test x"$with_cross_host" != x"no"; then
12352 # Install a library built with a cross compiler in tooldir, not libdir.
12353 toolexecdir='$(exec_prefix)/$(target_alias)'
12354 toolexeclibdir='$(toolexecdir)/lib'
12355 else
12356 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12357 toolexeclibdir='$(libdir)'
12359 multi_os_directory=`$CC -print-multi-os-directory`
12360 case $multi_os_directory in
12361 .) ;; # Avoid trailing /.
12362 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12363 esac
12365 esac
12369 includedir=${toolexecdir}/include
12372 pthread_create_version='""'
12373 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
12374 # NB: don't check for -lpthread here, because then it would be
12375 # added to LIBS. For the thread-unaware libmudflap.la, we don't
12376 # want it there.
12378 # glibc-related hacks. dlsym() may pick the wrong version of
12379 # interposed functions like pthread_create on modern glibc.
12380 # We need to find the proper symbol version string, and use
12381 # the nonstandard dlvsym().
12383 for ac_func in dlvsym
12385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12386 echo "$as_me:$LINENO: checking for $ac_func" >&5
12387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12388 if eval "test \"\${$as_ac_var+set}\" = set"; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12399 #define $ac_func innocuous_$ac_func
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char $ac_func (); below.
12403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404 <limits.h> exists even on freestanding compilers. */
12406 #ifdef __STDC__
12407 # include <limits.h>
12408 #else
12409 # include <assert.h>
12410 #endif
12412 #undef $ac_func
12414 /* Override any gcc2 internal prototype to avoid an error. */
12415 #ifdef __cplusplus
12416 extern "C"
12418 #endif
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12421 char $ac_func ();
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12426 choke me
12427 #else
12428 char (*f) () = $ac_func;
12429 #endif
12430 #ifdef __cplusplus
12432 #endif
12435 main ()
12437 return f != $ac_func;
12439 return 0;
12441 _ACEOF
12442 rm -f conftest.$ac_objext conftest$ac_exeext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag"
12452 || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 eval "$as_ac_var=yes"
12465 else
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 eval "$as_ac_var=no"
12471 rm -f conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12476 if test `eval echo '${'$as_ac_var'}'` = yes; then
12477 cat >>confdefs.h <<_ACEOF
12478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12479 _ACEOF
12482 done
12484 if test -n "$ac_tool_prefix"; then
12485 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
12486 set dummy ${ac_tool_prefix}nm; ac_word=$2
12487 echo "$as_me:$LINENO: checking for $ac_word" >&5
12488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12489 if test "${ac_cv_prog_NM+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 if test -n "$NM"; then
12493 ac_cv_prog_NM="$NM" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_NM="${ac_tool_prefix}nm"
12503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12506 done
12507 done
12511 NM=$ac_cv_prog_NM
12512 if test -n "$NM"; then
12513 echo "$as_me:$LINENO: result: $NM" >&5
12514 echo "${ECHO_T}$NM" >&6
12515 else
12516 echo "$as_me:$LINENO: result: no" >&5
12517 echo "${ECHO_T}no" >&6
12521 if test -z "$ac_cv_prog_NM"; then
12522 ac_ct_NM=$NM
12523 # Extract the first word of "nm", so it can be a program name with args.
12524 set dummy nm; ac_word=$2
12525 echo "$as_me:$LINENO: checking for $ac_word" >&5
12526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12527 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 if test -n "$ac_ct_NM"; then
12531 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_prog_ac_ct_NM="nm"
12541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12544 done
12545 done
12549 ac_ct_NM=$ac_cv_prog_ac_ct_NM
12550 if test -n "$ac_ct_NM"; then
12551 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
12552 echo "${ECHO_T}$ac_ct_NM" >&6
12553 else
12554 echo "$as_me:$LINENO: result: no" >&5
12555 echo "${ECHO_T}no" >&6
12558 NM=$ac_ct_NM
12559 else
12560 NM="$ac_cv_prog_NM"
12563 if test "x$ac_cv_have_dlvsym" != "x"; then
12564 # Try compiling a simple pthreads program. Find the shared libraries it
12565 # ends up with. Then use "nm" on those libraries to extract the
12566 # default symbol versioning suffix ("@@"), if any. But that's tricky.
12567 # Rather, run nm on the resulting executable. Unfortunately, autoconf
12568 # doesn't appear to have a macro that builds a test executable for
12569 # subsequent analysis ... so we do it by hand here.
12570 cat >> conftest.c << EOF
12571 #include <pthread.h>
12572 int main () { void *p = (void *) & pthread_create; return (int) p; }
12574 oldLIBS="$LIBS"
12575 LIBS="$LIBS -lpthread"
12576 pthread_create_version="\"\""
12577 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
12578 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
12579 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
12580 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
12581 if test "x$version" != "x"; then
12582 pthread_create_version="\"$version\""
12585 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
12586 echo "${ECHO_T}$pthread_create_version" >&6
12587 LIBS="$oldLIBS"
12591 cat >>confdefs.h <<_ACEOF
12592 #define PTHREAD_CREATE_VERSION $pthread_create_version
12593 _ACEOF
12597 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
12598 # similarly to how libstdc++ does it
12599 ac_test_CFLAGS="${CFLAGS+set}"
12600 ac_save_CFLAGS="$CFLAGS"
12602 # Check for -ffunction-sections -fdata-sections
12603 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
12604 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
12605 CFLAGS='-Werror -ffunction-sections -fdata-sections'
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12614 main ()
12616 int foo;
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_fdsections=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_fdsections=no
12650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12651 if test "$ac_test_CFLAGS" = set; then
12652 CFLAGS="$ac_save_CFLAGS"
12653 else
12654 # this is the suspicious part
12655 CFLAGS=""
12657 if test x"$ac_fdsections" = x"yes"; then
12658 SECTION_FLAGS='-ffunction-sections -fdata-sections'
12660 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
12661 echo "${ECHO_T}$ac_fdsections" >&6
12665 # Check for the name of the symbol used for the entry point.
12666 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
12667 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
12668 if test "${mudflap_cv_entry_point+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12672 for name in _start __start unknown; do
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 extern char $name[];
12681 main ()
12683 $name[0] = 0;
12685 return 0;
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 break
12711 else
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12716 rm -f conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 done
12719 mudflap_cv_entry_point="$name"
12721 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
12722 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
12723 if test "$mudflap_cv_entry_point" = unknown; then
12724 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
12725 echo "$as_me: error: none of the known symbol names works" >&2;}
12726 { (exit 1); exit 1; }; }
12729 cat >>confdefs.h <<_ACEOF
12730 #define ENTRY_POINT $mudflap_cv_entry_point
12731 _ACEOF
12735 if test ${multilib} = yes; then
12736 multilib_arg="--enable-multilib"
12737 else
12738 multilib_arg=
12741 # See if we support thread-local storage.
12743 # Check whether --enable-tls or --disable-tls was given.
12744 if test "${enable_tls+set}" = set; then
12745 enableval="$enable_tls"
12747 case "$enableval" in
12748 yes|no) ;;
12749 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12750 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12751 { (exit 1); exit 1; }; } ;;
12752 esac
12754 else
12755 enable_tls=yes
12758 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12759 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12760 if test "${gcc_cv_have_tls+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12764 if test "$cross_compiling" = yes; then
12765 cat >conftest.$ac_ext <<_ACEOF
12766 __thread int a; int b; int main() { return a = b; }
12767 _ACEOF
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12770 (eval $ac_link) 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -z "$ac_c_werror_flag"
12778 || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 gcc_cv_have_tls=yes
12791 else
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 gcc_cv_have_tls=no
12797 rm -f conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12801 else
12802 cat >conftest.$ac_ext <<_ACEOF
12803 __thread int a; int b; int main() { return a = b; }
12804 _ACEOF
12805 rm -f conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12816 chktls_save_LDFLAGS="$LDFLAGS"
12817 LDFLAGS="-static $LDFLAGS"
12818 cat >conftest.$ac_ext <<_ACEOF
12819 int main() { return 0; }
12820 _ACEOF
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 if test "$cross_compiling" = yes; then
12844 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12845 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12847 See \`config.log' for more details." >&5
12848 echo "$as_me: error: cannot run test program while cross compiling
12849 See \`config.log' for more details." >&2;}
12850 { (exit 1); exit 1; }; }; }
12851 else
12852 cat >conftest.$ac_ext <<_ACEOF
12853 __thread int a; int b; int main() { return a = b; }
12854 _ACEOF
12855 rm -f conftest$ac_exeext
12856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12857 (eval $ac_link) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 gcc_cv_have_tls=yes
12867 else
12868 echo "$as_me: program exited with status $ac_status" >&5
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 ( exit $ac_status )
12873 gcc_cv_have_tls=no
12875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 gcc_cv_have_tls=yes
12883 rm -f conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LDFLAGS="$chktls_save_LDFLAGS"
12886 if test $gcc_cv_have_tls = yes; then
12887 chktls_save_CFLAGS="$CFLAGS"
12888 thread_CFLAGS=failed
12889 for flag in '' '-pthread' '-lpthread'; do
12890 CFLAGS="$flag $chktls_save_CFLAGS"
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <pthread.h>
12898 void *g(void *d) { return NULL; }
12900 main ()
12902 pthread_t t; pthread_create(&t,NULL,g,NULL);
12904 return 0;
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 thread_CFLAGS="$flag"
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12935 rm -f conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 if test "X$thread_CFLAGS" != Xfailed; then
12938 break
12940 done
12941 CFLAGS="$chktls_save_CFLAGS"
12942 if test "X$thread_CFLAGS" != Xfailed; then
12943 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12944 if test "$cross_compiling" = yes; then
12945 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12946 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12947 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12948 See \`config.log' for more details." >&5
12949 echo "$as_me: error: cannot run test program while cross compiling
12950 See \`config.log' for more details." >&2;}
12951 { (exit 1); exit 1; }; }; }
12952 else
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include <pthread.h>
12960 __thread int a;
12961 static int *a_in_other_thread;
12962 static void *
12963 thread_func (void *arg)
12965 a_in_other_thread = &a;
12966 return (void *)0;
12969 main ()
12971 pthread_t thread;
12972 void *thread_retval;
12973 int *a_in_main_thread;
12974 if (pthread_create (&thread, (pthread_attr_t *)0,
12975 thread_func, (void *)0))
12976 return 0;
12977 a_in_main_thread = &a;
12978 if (pthread_join (thread, &thread_retval))
12979 return 0;
12980 return (a_in_other_thread == a_in_main_thread);
12982 return 0;
12984 _ACEOF
12985 rm -f conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987 (eval $ac_link) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 gcc_cv_have_tls=yes
12997 else
12998 echo "$as_me: program exited with status $ac_status" >&5
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ( exit $ac_status )
13003 gcc_cv_have_tls=no
13005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13007 CFLAGS="$chktls_save_CFLAGS"
13010 else
13011 echo "$as_me: program exited with status $ac_status" >&5
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ( exit $ac_status )
13016 gcc_cv_have_tls=no
13018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13021 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
13022 echo "${ECHO_T}$gcc_cv_have_tls" >&6
13023 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
13025 cat >>confdefs.h <<\_ACEOF
13026 #define HAVE_TLS 1
13027 _ACEOF
13031 echo "$as_me:$LINENO: checking whether the thread-local storage support is from emutls" >&5
13032 echo $ECHO_N "checking whether the thread-local storage support is from emutls... $ECHO_C" >&6
13033 if test "${gcc_cv_use_emutls+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13037 gcc_cv_use_emutls=no
13038 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
13039 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 if grep __emutls_get_address conftest.s > /dev/null; then
13046 gcc_cv_use_emutls=yes
13049 rm -f conftest.*
13052 echo "$as_me:$LINENO: result: $gcc_cv_use_emutls" >&5
13053 echo "${ECHO_T}$gcc_cv_use_emutls" >&6
13054 if test "$gcc_cv_use_emutls" = "yes" ; then
13056 cat >>confdefs.h <<\_ACEOF
13057 #define USE_EMUTLS 1
13058 _ACEOF
13062 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
13064 cat >confcache <<\_ACEOF
13065 # This file is a shell script that caches the results of configure
13066 # tests run on this system so they can be shared between configure
13067 # scripts and configure runs, see configure's option --config-cache.
13068 # It is not useful on other systems. If it contains results you don't
13069 # want to keep, you may remove or edit it.
13071 # config.status only pays attention to the cache file if you give it
13072 # the --recheck option to rerun configure.
13074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13076 # following values.
13078 _ACEOF
13080 # The following way of writing the cache mishandles newlines in values,
13081 # but we know of no workaround that is simple, portable, and efficient.
13082 # So, don't put newlines in cache variables' values.
13083 # Ultrix sh set writes to stderr and can't be redirected directly,
13084 # and sets the high bit in the cache file unless we assign to the vars.
13086 (set) 2>&1 |
13087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13088 *ac_space=\ *)
13089 # `set' does not quote correctly, so add quotes (double-quote
13090 # substitution turns \\\\ into \\, and sed turns \\ into \).
13091 sed -n \
13092 "s/'/'\\\\''/g;
13093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13096 # `set' quotes correctly as required by POSIX, so do not add quotes.
13097 sed -n \
13098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13100 esac;
13102 sed '
13103 t clear
13104 : clear
13105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13106 t end
13107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13108 : end' >>confcache
13109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13110 if test -w $cache_file; then
13111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13112 cat confcache >$cache_file
13113 else
13114 echo "not updating unwritable cache $cache_file"
13117 rm -f confcache
13119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13120 # Let make expand exec_prefix.
13121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13125 # trailing colons and then remove the whole line if VPATH becomes empty
13126 # (actually we leave an empty line to preserve line numbers).
13127 if test "x$srcdir" = x.; then
13128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13129 s/:*\$(srcdir):*/:/;
13130 s/:*\${srcdir}:*/:/;
13131 s/:*@srcdir@:*/:/;
13132 s/^\([^=]*=[ ]*\):*/\1/;
13133 s/:*$//;
13134 s/^[^=]*=[ ]*$//;
13138 DEFS=-DHAVE_CONFIG_H
13140 ac_libobjs=
13141 ac_ltlibobjs=
13142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13143 # 1. Remove the extension, and $U if already installed.
13144 ac_i=`echo "$ac_i" |
13145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13146 # 2. Add them.
13147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13149 done
13150 LIBOBJS=$ac_libobjs
13152 LTLIBOBJS=$ac_ltlibobjs
13155 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13156 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13157 Usually this means the macro was only invoked conditionally." >&5
13158 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13159 Usually this means the macro was only invoked conditionally." >&2;}
13160 { (exit 1); exit 1; }; }
13162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13163 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13164 Usually this means the macro was only invoked conditionally." >&5
13165 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13166 Usually this means the macro was only invoked conditionally." >&2;}
13167 { (exit 1); exit 1; }; }
13169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13170 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13171 Usually this means the macro was only invoked conditionally." >&5
13172 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13173 Usually this means the macro was only invoked conditionally." >&2;}
13174 { (exit 1); exit 1; }; }
13176 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
13177 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
13178 Usually this means the macro was only invoked conditionally." >&5
13179 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
13180 Usually this means the macro was only invoked conditionally." >&2;}
13181 { (exit 1); exit 1; }; }
13184 : ${CONFIG_STATUS=./config.status}
13185 ac_clean_files_save=$ac_clean_files
13186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13187 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13188 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13189 cat >$CONFIG_STATUS <<_ACEOF
13190 #! $SHELL
13191 # Generated by $as_me.
13192 # Run this file to recreate the current configuration.
13193 # Compiler output produced by configure, useful for debugging
13194 # configure, is in config.log if it exists.
13196 debug=false
13197 ac_cs_recheck=false
13198 ac_cs_silent=false
13199 SHELL=\${CONFIG_SHELL-$SHELL}
13200 _ACEOF
13202 cat >>$CONFIG_STATUS <<\_ACEOF
13203 ## --------------------- ##
13204 ## M4sh Initialization. ##
13205 ## --------------------- ##
13207 # Be Bourne compatible
13208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13209 emulate sh
13210 NULLCMD=:
13211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13212 # is contrary to our usage. Disable this feature.
13213 alias -g '${1+"$@"}'='"$@"'
13214 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13215 set -o posix
13217 DUALCASE=1; export DUALCASE # for MKS sh
13219 # Support unset when possible.
13220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13221 as_unset=unset
13222 else
13223 as_unset=false
13227 # Work around bugs in pre-3.0 UWIN ksh.
13228 $as_unset ENV MAIL MAILPATH
13229 PS1='$ '
13230 PS2='> '
13231 PS4='+ '
13233 # NLS nuisances.
13234 for as_var in \
13235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13237 LC_TELEPHONE LC_TIME
13239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13240 eval $as_var=C; export $as_var
13241 else
13242 $as_unset $as_var
13244 done
13246 # Required to use basename.
13247 if expr a : '\(a\)' >/dev/null 2>&1; then
13248 as_expr=expr
13249 else
13250 as_expr=false
13253 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13254 as_basename=basename
13255 else
13256 as_basename=false
13260 # Name of the executable.
13261 as_me=`$as_basename "$0" ||
13262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13263 X"$0" : 'X\(//\)$' \| \
13264 X"$0" : 'X\(/\)$' \| \
13265 . : '\(.\)' 2>/dev/null ||
13266 echo X/"$0" |
13267 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13268 /^X\/\(\/\/\)$/{ s//\1/; q; }
13269 /^X\/\(\/\).*/{ s//\1/; q; }
13270 s/.*/./; q'`
13273 # PATH needs CR, and LINENO needs CR and PATH.
13274 # Avoid depending upon Character Ranges.
13275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13278 as_cr_digits='0123456789'
13279 as_cr_alnum=$as_cr_Letters$as_cr_digits
13281 # The user is always right.
13282 if test "${PATH_SEPARATOR+set}" != set; then
13283 echo "#! /bin/sh" >conf$$.sh
13284 echo "exit 0" >>conf$$.sh
13285 chmod +x conf$$.sh
13286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13287 PATH_SEPARATOR=';'
13288 else
13289 PATH_SEPARATOR=:
13291 rm -f conf$$.sh
13295 as_lineno_1=$LINENO
13296 as_lineno_2=$LINENO
13297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13298 test "x$as_lineno_1" != "x$as_lineno_2" &&
13299 test "x$as_lineno_3" = "x$as_lineno_2" || {
13300 # Find who we are. Look in the path if we contain no path at all
13301 # relative or not.
13302 case $0 in
13303 *[\\/]* ) as_myself=$0 ;;
13304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13310 done
13313 esac
13314 # We did not find ourselves, most probably we were run as `sh COMMAND'
13315 # in which case we are not to be found in the path.
13316 if test "x$as_myself" = x; then
13317 as_myself=$0
13319 if test ! -f "$as_myself"; then
13320 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13321 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13322 { (exit 1); exit 1; }; }
13324 case $CONFIG_SHELL in
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
13331 for as_base in sh bash ksh sh5; do
13332 case $as_dir in
13334 if ("$as_dir/$as_base" -c '
13335 as_lineno_1=$LINENO
13336 as_lineno_2=$LINENO
13337 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13338 test "x$as_lineno_1" != "x$as_lineno_2" &&
13339 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13340 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13341 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13342 CONFIG_SHELL=$as_dir/$as_base
13343 export CONFIG_SHELL
13344 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13345 fi;;
13346 esac
13347 done
13348 done
13350 esac
13352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13353 # uniformly replaced by the line number. The first 'sed' inserts a
13354 # line-number line before each line; the second 'sed' does the real
13355 # work. The second script uses 'N' to pair each line-number line
13356 # with the numbered line, and appends trailing '-' during
13357 # substitution so that $LINENO is not a special case at line end.
13358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13359 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13360 sed '=' <$as_myself |
13361 sed '
13363 s,$,-,
13364 : loop
13365 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13366 t loop
13367 s,-$,,
13368 s,^['$as_cr_digits']*\n,,
13369 ' >$as_me.lineno &&
13370 chmod +x $as_me.lineno ||
13371 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13372 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13373 { (exit 1); exit 1; }; }
13375 # Don't try to exec as it changes $[0], causing all sort of problems
13376 # (the dirname of $[0] is not the place where we might find the
13377 # original and so on. Autoconf is especially sensible to this).
13378 . ./$as_me.lineno
13379 # Exit status is that of the last command.
13380 exit
13384 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13385 *c*,-n*) ECHO_N= ECHO_C='
13386 ' ECHO_T=' ' ;;
13387 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13388 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13389 esac
13391 if expr a : '\(a\)' >/dev/null 2>&1; then
13392 as_expr=expr
13393 else
13394 as_expr=false
13397 rm -f conf$$ conf$$.exe conf$$.file
13398 echo >conf$$.file
13399 if ln -s conf$$.file conf$$ 2>/dev/null; then
13400 # We could just check for DJGPP; but this test a) works b) is more generic
13401 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13402 if test -f conf$$.exe; then
13403 # Don't use ln at all; we don't have any links
13404 as_ln_s='cp -p'
13405 else
13406 as_ln_s='ln -s'
13408 elif ln conf$$.file conf$$ 2>/dev/null; then
13409 as_ln_s=ln
13410 else
13411 as_ln_s='cp -p'
13413 rm -f conf$$ conf$$.exe conf$$.file
13415 if mkdir -p . 2>/dev/null; then
13416 as_mkdir_p=:
13417 else
13418 test -d ./-p && rmdir ./-p
13419 as_mkdir_p=false
13422 as_executable_p="test -f"
13424 # Sed expression to map a string onto a valid CPP name.
13425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13427 # Sed expression to map a string onto a valid variable name.
13428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13431 # IFS
13432 # We need space, tab and new line, in precisely that order.
13433 as_nl='
13435 IFS=" $as_nl"
13437 # CDPATH.
13438 $as_unset CDPATH
13440 exec 6>&1
13442 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13443 # report actual input values of CONFIG_FILES etc. instead of their
13444 # values after options handling. Logging --version etc. is OK.
13445 exec 5>>config.log
13447 echo
13448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13449 ## Running $as_me. ##
13450 _ASBOX
13451 } >&5
13452 cat >&5 <<_CSEOF
13454 This file was extended by libmudflap $as_me 1.0, which was
13455 generated by GNU Autoconf 2.59. Invocation command line was
13457 CONFIG_FILES = $CONFIG_FILES
13458 CONFIG_HEADERS = $CONFIG_HEADERS
13459 CONFIG_LINKS = $CONFIG_LINKS
13460 CONFIG_COMMANDS = $CONFIG_COMMANDS
13461 $ $0 $@
13463 _CSEOF
13464 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13465 echo >&5
13466 _ACEOF
13468 # Files that config.status was made for.
13469 if test -n "$ac_config_files"; then
13470 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13473 if test -n "$ac_config_headers"; then
13474 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13477 if test -n "$ac_config_links"; then
13478 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13481 if test -n "$ac_config_commands"; then
13482 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13485 cat >>$CONFIG_STATUS <<\_ACEOF
13487 ac_cs_usage="\
13488 \`$as_me' instantiates files from templates according to the
13489 current configuration.
13491 Usage: $0 [OPTIONS] [FILE]...
13493 -h, --help print this help, then exit
13494 -V, --version print version number, then exit
13495 -q, --quiet do not print progress messages
13496 -d, --debug don't remove temporary files
13497 --recheck update $as_me by reconfiguring in the same conditions
13498 --file=FILE[:TEMPLATE]
13499 instantiate the configuration file FILE
13500 --header=FILE[:TEMPLATE]
13501 instantiate the configuration header FILE
13503 Configuration files:
13504 $config_files
13506 Configuration headers:
13507 $config_headers
13509 Configuration commands:
13510 $config_commands
13512 Report bugs to <bug-autoconf@gnu.org>."
13513 _ACEOF
13515 cat >>$CONFIG_STATUS <<_ACEOF
13516 ac_cs_version="\\
13517 libmudflap config.status 1.0
13518 configured by $0, generated by GNU Autoconf 2.59,
13519 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13521 Copyright (C) 2003 Free Software Foundation, Inc.
13522 This config.status script is free software; the Free Software Foundation
13523 gives unlimited permission to copy, distribute and modify it."
13524 srcdir=$srcdir
13525 INSTALL="$INSTALL"
13526 _ACEOF
13528 cat >>$CONFIG_STATUS <<\_ACEOF
13529 # If no file are specified by the user, then we need to provide default
13530 # value. By we need to know if files were specified by the user.
13531 ac_need_defaults=:
13532 while test $# != 0
13534 case $1 in
13535 --*=*)
13536 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13537 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13538 ac_shift=:
13541 ac_option=$1
13542 ac_optarg=$2
13543 ac_shift=shift
13545 *) # This is not an option, so the user has probably given explicit
13546 # arguments.
13547 ac_option=$1
13548 ac_need_defaults=false;;
13549 esac
13551 case $ac_option in
13552 # Handling of the options.
13553 _ACEOF
13554 cat >>$CONFIG_STATUS <<\_ACEOF
13555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13556 ac_cs_recheck=: ;;
13557 --version | --vers* | -V )
13558 echo "$ac_cs_version"; exit 0 ;;
13559 --he | --h)
13560 # Conflict between --help and --header
13561 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13562 Try \`$0 --help' for more information." >&5
13563 echo "$as_me: error: ambiguous option: $1
13564 Try \`$0 --help' for more information." >&2;}
13565 { (exit 1); exit 1; }; };;
13566 --help | --hel | -h )
13567 echo "$ac_cs_usage"; exit 0 ;;
13568 --debug | --d* | -d )
13569 debug=: ;;
13570 --file | --fil | --fi | --f )
13571 $ac_shift
13572 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13573 ac_need_defaults=false;;
13574 --header | --heade | --head | --hea )
13575 $ac_shift
13576 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13577 ac_need_defaults=false;;
13578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13580 ac_cs_silent=: ;;
13582 # This is an error.
13583 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13584 Try \`$0 --help' for more information." >&5
13585 echo "$as_me: error: unrecognized option: $1
13586 Try \`$0 --help' for more information." >&2;}
13587 { (exit 1); exit 1; }; } ;;
13589 *) ac_config_targets="$ac_config_targets $1" ;;
13591 esac
13592 shift
13593 done
13595 ac_configure_extra_args=
13597 if $ac_cs_silent; then
13598 exec 6>/dev/null
13599 ac_configure_extra_args="$ac_configure_extra_args --silent"
13602 _ACEOF
13603 cat >>$CONFIG_STATUS <<_ACEOF
13604 if \$ac_cs_recheck; then
13605 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13606 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13609 _ACEOF
13611 cat >>$CONFIG_STATUS <<_ACEOF
13613 # INIT-COMMANDS section.
13617 srcdir="$srcdir"
13618 host="$host"
13619 target="$target"
13620 with_multisubdir="$with_multisubdir"
13621 with_multisrctop="$with_multisrctop"
13622 with_target_subdir="$with_target_subdir"
13623 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13624 multi_basedir="$multi_basedir"
13625 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13626 CC="$CC"
13627 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13630 # The HP-UX ksh and POSIX shell print the target directory to stdout
13631 # if CDPATH is set.
13632 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13634 sed_quote_subst='$sed_quote_subst'
13635 double_quote_subst='$double_quote_subst'
13636 delay_variable_subst='$delay_variable_subst'
13637 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13638 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13639 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13640 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13641 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13642 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13643 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13644 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13645 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13646 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13647 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13648 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13649 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13650 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13651 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13652 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13653 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13654 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13655 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13656 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13657 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13658 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13659 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13660 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13661 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13662 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13663 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13664 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13665 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13666 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13667 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13668 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13669 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13670 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13671 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13672 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13673 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13674 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13675 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13676 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13677 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13678 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13679 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13680 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13681 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"`'
13682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13683 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13684 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13685 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13686 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13687 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13688 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13689 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13690 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13691 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13692 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13693 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13694 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13695 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13696 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13697 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13698 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13699 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13700 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13701 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13702 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13703 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13704 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13705 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13706 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13707 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13708 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13709 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13710 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13711 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13712 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13713 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13714 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13715 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13716 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13717 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13718 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13719 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13720 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13721 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13722 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13723 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13724 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13725 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13726 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13727 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13728 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13729 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13730 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13731 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13732 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13733 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13734 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13735 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13736 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13737 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13738 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13739 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13740 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13741 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13742 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13743 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13744 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13745 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13746 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13747 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13748 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13749 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13750 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13751 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13752 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13753 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13754 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13756 LTCC='$LTCC'
13757 LTCFLAGS='$LTCFLAGS'
13758 compiler='$compiler_DEFAULT'
13760 # Quote evaled strings.
13761 for var in SED \
13762 GREP \
13763 EGREP \
13764 FGREP \
13765 LD \
13766 NM \
13767 LN_S \
13768 lt_SP2NL \
13769 lt_NL2SP \
13770 reload_flag \
13771 OBJDUMP \
13772 deplibs_check_method \
13773 file_magic_cmd \
13774 AR \
13775 AR_FLAGS \
13776 STRIP \
13777 RANLIB \
13778 CC \
13779 CFLAGS \
13780 compiler \
13781 lt_cv_sys_global_symbol_pipe \
13782 lt_cv_sys_global_symbol_to_cdecl \
13783 lt_cv_sys_global_symbol_to_c_name_address \
13784 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13785 SHELL \
13786 ECHO \
13787 lt_prog_compiler_no_builtin_flag \
13788 lt_prog_compiler_wl \
13789 lt_prog_compiler_pic \
13790 lt_prog_compiler_static \
13791 lt_cv_prog_compiler_c_o \
13792 need_locks \
13793 DSYMUTIL \
13794 NMEDIT \
13795 LIPO \
13796 OTOOL \
13797 OTOOL64 \
13798 shrext_cmds \
13799 export_dynamic_flag_spec \
13800 whole_archive_flag_spec \
13801 compiler_needs_object \
13802 with_gnu_ld \
13803 allow_undefined_flag \
13804 no_undefined_flag \
13805 hardcode_libdir_flag_spec \
13806 hardcode_libdir_flag_spec_ld \
13807 hardcode_libdir_separator \
13808 fix_srcfile_path \
13809 exclude_expsyms \
13810 include_expsyms \
13811 file_list_spec \
13812 variables_saved_for_relink \
13813 libname_spec \
13814 library_names_spec \
13815 soname_spec \
13816 finish_eval \
13817 old_striplib \
13818 striplib; do
13819 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13820 *[\\\\\\\`\\"\\\$]*)
13821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13826 esac
13827 done
13829 # Double-quote double-evaled strings.
13830 for var in reload_cmds \
13831 old_postinstall_cmds \
13832 old_postuninstall_cmds \
13833 old_archive_cmds \
13834 extract_expsyms_cmds \
13835 old_archive_from_new_cmds \
13836 old_archive_from_expsyms_cmds \
13837 archive_cmds \
13838 archive_expsym_cmds \
13839 module_cmds \
13840 module_expsym_cmds \
13841 export_symbols_cmds \
13842 prelink_cmds \
13843 postinstall_cmds \
13844 postuninstall_cmds \
13845 finish_cmds \
13846 sys_lib_search_path_spec \
13847 sys_lib_dlsearch_path_spec; do
13848 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13849 *[\\\\\\\`\\"\\\$]*)
13850 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13853 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13855 esac
13856 done
13858 # Fix-up fallback echo if it was mangled by the above quoting rules.
13859 case \$lt_ECHO in
13860 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13862 esac
13864 ac_aux_dir='$ac_aux_dir'
13865 xsi_shell='$xsi_shell'
13866 lt_shell_append='$lt_shell_append'
13868 # See if we are running on zsh, and set the options which allow our
13869 # commands through without removal of \ escapes INIT.
13870 if test -n "\${ZSH_VERSION+set}" ; then
13871 setopt NO_GLOB_SUBST
13875 PACKAGE='$PACKAGE'
13876 VERSION='$VERSION'
13877 TIMESTAMP='$TIMESTAMP'
13878 RM='$RM'
13879 ofile='$ofile'
13884 _ACEOF
13888 cat >>$CONFIG_STATUS <<\_ACEOF
13889 for ac_config_target in $ac_config_targets
13891 case "$ac_config_target" in
13892 # Handling of arguments.
13893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13894 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13895 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13896 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13897 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13898 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13899 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13900 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13902 { (exit 1); exit 1; }; };;
13903 esac
13904 done
13906 # If the user did not use the arguments to specify the items to instantiate,
13907 # then the envvar interface is used. Set only those that are not.
13908 # We use the long form for the default assignment because of an extremely
13909 # bizarre bug on SunOS 4.1.3.
13910 if $ac_need_defaults; then
13911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13916 # Have a temporary directory for convenience. Make it in the build tree
13917 # simply because there is no reason to put it here, and in addition,
13918 # creating and moving files from /tmp can sometimes cause problems.
13919 # Create a temporary directory, and hook for its removal unless debugging.
13920 $debug ||
13922 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13923 trap '{ (exit 1); exit 1; }' 1 2 13 15
13926 # Create a (secure) tmp directory for tmp files.
13929 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13930 test -n "$tmp" && test -d "$tmp"
13931 } ||
13933 tmp=./confstat$$-$RANDOM
13934 (umask 077 && mkdir $tmp)
13935 } ||
13937 echo "$me: cannot create a temporary directory in ." >&2
13938 { (exit 1); exit 1; }
13941 _ACEOF
13943 cat >>$CONFIG_STATUS <<_ACEOF
13946 # CONFIG_FILES section.
13949 # No need to generate the scripts if there are no CONFIG_FILES.
13950 # This happens for instance when ./config.status config.h
13951 if test -n "\$CONFIG_FILES"; then
13952 # Protect against being on the right side of a sed subst in config.status.
13953 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13954 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13955 s,@SHELL@,$SHELL,;t t
13956 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13957 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13958 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13959 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13960 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13961 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13962 s,@exec_prefix@,$exec_prefix,;t t
13963 s,@prefix@,$prefix,;t t
13964 s,@program_transform_name@,$program_transform_name,;t t
13965 s,@bindir@,$bindir,;t t
13966 s,@sbindir@,$sbindir,;t t
13967 s,@libexecdir@,$libexecdir,;t t
13968 s,@datadir@,$datadir,;t t
13969 s,@sysconfdir@,$sysconfdir,;t t
13970 s,@sharedstatedir@,$sharedstatedir,;t t
13971 s,@localstatedir@,$localstatedir,;t t
13972 s,@libdir@,$libdir,;t t
13973 s,@includedir@,$includedir,;t t
13974 s,@oldincludedir@,$oldincludedir,;t t
13975 s,@infodir@,$infodir,;t t
13976 s,@mandir@,$mandir,;t t
13977 s,@build_alias@,$build_alias,;t t
13978 s,@host_alias@,$host_alias,;t t
13979 s,@target_alias@,$target_alias,;t t
13980 s,@DEFS@,$DEFS,;t t
13981 s,@ECHO_C@,$ECHO_C,;t t
13982 s,@ECHO_N@,$ECHO_N,;t t
13983 s,@ECHO_T@,$ECHO_T,;t t
13984 s,@LIBS@,$LIBS,;t t
13985 s,@build@,$build,;t t
13986 s,@build_cpu@,$build_cpu,;t t
13987 s,@build_vendor@,$build_vendor,;t t
13988 s,@build_os@,$build_os,;t t
13989 s,@host@,$host,;t t
13990 s,@host_cpu@,$host_cpu,;t t
13991 s,@host_vendor@,$host_vendor,;t t
13992 s,@host_os@,$host_os,;t t
13993 s,@target@,$target,;t t
13994 s,@target_cpu@,$target_cpu,;t t
13995 s,@target_vendor@,$target_vendor,;t t
13996 s,@target_os@,$target_os,;t t
13997 s,@target_noncanonical@,$target_noncanonical,;t t
13998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14001 s,@CYGPATH_W@,$CYGPATH_W,;t t
14002 s,@PACKAGE@,$PACKAGE,;t t
14003 s,@VERSION@,$VERSION,;t t
14004 s,@ACLOCAL@,$ACLOCAL,;t t
14005 s,@AUTOCONF@,$AUTOCONF,;t t
14006 s,@AUTOMAKE@,$AUTOMAKE,;t t
14007 s,@AUTOHEADER@,$AUTOHEADER,;t t
14008 s,@MAKEINFO@,$MAKEINFO,;t t
14009 s,@install_sh@,$install_sh,;t t
14010 s,@STRIP@,$STRIP,;t t
14011 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14012 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14013 s,@mkdir_p@,$mkdir_p,;t t
14014 s,@AWK@,$AWK,;t t
14015 s,@SET_MAKE@,$SET_MAKE,;t t
14016 s,@am__leading_dot@,$am__leading_dot,;t t
14017 s,@AMTAR@,$AMTAR,;t t
14018 s,@am__tar@,$am__tar,;t t
14019 s,@am__untar@,$am__untar,;t t
14020 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14021 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14022 s,@MAINT@,$MAINT,;t t
14023 s,@multi_basedir@,$multi_basedir,;t t
14024 s,@CC@,$CC,;t t
14025 s,@ac_ct_CC@,$ac_ct_CC,;t t
14026 s,@EXEEXT@,$EXEEXT,;t t
14027 s,@OBJEXT@,$OBJEXT,;t t
14028 s,@DEPDIR@,$DEPDIR,;t t
14029 s,@am__include@,$am__include,;t t
14030 s,@am__quote@,$am__quote,;t t
14031 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14032 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14033 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14034 s,@CCDEPMODE@,$CCDEPMODE,;t t
14035 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14036 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14037 s,@CFLAGS@,$CFLAGS,;t t
14038 s,@CPP@,$CPP,;t t
14039 s,@CPPFLAGS@,$CPPFLAGS,;t t
14040 s,@EGREP@,$EGREP,;t t
14041 s,@LIBTOOL@,$LIBTOOL,;t t
14042 s,@SED@,$SED,;t t
14043 s,@FGREP@,$FGREP,;t t
14044 s,@GREP@,$GREP,;t t
14045 s,@LD@,$LD,;t t
14046 s,@DUMPBIN@,$DUMPBIN,;t t
14047 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14048 s,@NM@,$NM,;t t
14049 s,@LN_S@,$LN_S,;t t
14050 s,@OBJDUMP@,$OBJDUMP,;t t
14051 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
14052 s,@AR@,$AR,;t t
14053 s,@ac_ct_AR@,$ac_ct_AR,;t t
14054 s,@RANLIB@,$RANLIB,;t t
14055 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14056 s,@lt_ECHO@,$lt_ECHO,;t t
14057 s,@DSYMUTIL@,$DSYMUTIL,;t t
14058 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
14059 s,@NMEDIT@,$NMEDIT,;t t
14060 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
14061 s,@LIPO@,$LIPO,;t t
14062 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
14063 s,@OTOOL@,$OTOOL,;t t
14064 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
14065 s,@OTOOL64@,$OTOOL64,;t t
14066 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
14067 s,@enable_shared@,$enable_shared,;t t
14068 s,@enable_static@,$enable_static,;t t
14069 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
14070 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
14071 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
14072 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
14073 s,@build_libmudflapth@,$build_libmudflapth,;t t
14074 s,@toolexecdir@,$toolexecdir,;t t
14075 s,@toolexeclibdir@,$toolexeclibdir,;t t
14076 s,@ac_ct_NM@,$ac_ct_NM,;t t
14077 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
14078 s,@LIBOBJS@,$LIBOBJS,;t t
14079 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14080 CEOF
14082 _ACEOF
14084 cat >>$CONFIG_STATUS <<\_ACEOF
14085 # Split the substitutions into bite-sized pieces for seds with
14086 # small command number limits, like on Digital OSF/1 and HP-UX.
14087 ac_max_sed_lines=48
14088 ac_sed_frag=1 # Number of current file.
14089 ac_beg=1 # First line for current file.
14090 ac_end=$ac_max_sed_lines # Line after last line for current file.
14091 ac_more_lines=:
14092 ac_sed_cmds=
14093 while $ac_more_lines; do
14094 if test $ac_beg -gt 1; then
14095 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14096 else
14097 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14099 if test ! -s $tmp/subs.frag; then
14100 ac_more_lines=false
14101 else
14102 # The purpose of the label and of the branching condition is to
14103 # speed up the sed processing (if there are no `@' at all, there
14104 # is no need to browse any of the substitutions).
14105 # These are the two extra sed commands mentioned above.
14106 (echo ':t
14107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14108 if test -z "$ac_sed_cmds"; then
14109 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14110 else
14111 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14113 ac_sed_frag=`expr $ac_sed_frag + 1`
14114 ac_beg=$ac_end
14115 ac_end=`expr $ac_end + $ac_max_sed_lines`
14117 done
14118 if test -z "$ac_sed_cmds"; then
14119 ac_sed_cmds=cat
14121 fi # test -n "$CONFIG_FILES"
14123 _ACEOF
14124 cat >>$CONFIG_STATUS <<\_ACEOF
14125 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14127 case $ac_file in
14128 - | *:- | *:-:* ) # input from stdin
14129 cat >$tmp/stdin
14130 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14132 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14134 * ) ac_file_in=$ac_file.in ;;
14135 esac
14137 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14140 X"$ac_file" : 'X\(//\)[^/]' \| \
14141 X"$ac_file" : 'X\(//\)$' \| \
14142 X"$ac_file" : 'X\(/\)' \| \
14143 . : '\(.\)' 2>/dev/null ||
14144 echo X"$ac_file" |
14145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14147 /^X\(\/\/\)$/{ s//\1/; q; }
14148 /^X\(\/\).*/{ s//\1/; q; }
14149 s/.*/./; q'`
14150 { if $as_mkdir_p; then
14151 mkdir -p "$ac_dir"
14152 else
14153 as_dir="$ac_dir"
14154 as_dirs=
14155 while test ! -d "$as_dir"; do
14156 as_dirs="$as_dir $as_dirs"
14157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14159 X"$as_dir" : 'X\(//\)[^/]' \| \
14160 X"$as_dir" : 'X\(//\)$' \| \
14161 X"$as_dir" : 'X\(/\)' \| \
14162 . : '\(.\)' 2>/dev/null ||
14163 echo X"$as_dir" |
14164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14166 /^X\(\/\/\)$/{ s//\1/; q; }
14167 /^X\(\/\).*/{ s//\1/; q; }
14168 s/.*/./; q'`
14169 done
14170 test ! -n "$as_dirs" || mkdir $as_dirs
14171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14173 { (exit 1); exit 1; }; }; }
14175 ac_builddir=.
14177 if test "$ac_dir" != .; then
14178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14179 # A "../" for each directory in $ac_dir_suffix.
14180 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14181 else
14182 ac_dir_suffix= ac_top_builddir=
14185 case $srcdir in
14186 .) # No --srcdir option. We are building in place.
14187 ac_srcdir=.
14188 if test -z "$ac_top_builddir"; then
14189 ac_top_srcdir=.
14190 else
14191 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14192 fi ;;
14193 [\\/]* | ?:[\\/]* ) # Absolute path.
14194 ac_srcdir=$srcdir$ac_dir_suffix;
14195 ac_top_srcdir=$srcdir ;;
14196 *) # Relative path.
14197 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14198 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14199 esac
14201 # Do not use `cd foo && pwd` to compute absolute paths, because
14202 # the directories may not exist.
14203 case `pwd` in
14204 .) ac_abs_builddir="$ac_dir";;
14206 case "$ac_dir" in
14207 .) ac_abs_builddir=`pwd`;;
14208 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14209 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14210 esac;;
14211 esac
14212 case $ac_abs_builddir in
14213 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14215 case ${ac_top_builddir}. in
14216 .) ac_abs_top_builddir=$ac_abs_builddir;;
14217 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14218 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14219 esac;;
14220 esac
14221 case $ac_abs_builddir in
14222 .) ac_abs_srcdir=$ac_srcdir;;
14224 case $ac_srcdir in
14225 .) ac_abs_srcdir=$ac_abs_builddir;;
14226 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14227 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14228 esac;;
14229 esac
14230 case $ac_abs_builddir in
14231 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14233 case $ac_top_srcdir in
14234 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14235 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14236 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14237 esac;;
14238 esac
14241 case $INSTALL in
14242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14243 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14244 esac
14246 if test x"$ac_file" != x-; then
14247 { echo "$as_me:$LINENO: creating $ac_file" >&5
14248 echo "$as_me: creating $ac_file" >&6;}
14249 rm -f "$ac_file"
14251 # Let's still pretend it is `configure' which instantiates (i.e., don't
14252 # use $as_me), people would be surprised to read:
14253 # /* config.h. Generated by config.status. */
14254 if test x"$ac_file" = x-; then
14255 configure_input=
14256 else
14257 configure_input="$ac_file. "
14259 configure_input=$configure_input"Generated from `echo $ac_file_in |
14260 sed 's,.*/,,'` by configure."
14262 # First look for the input files in the build tree, otherwise in the
14263 # src tree.
14264 ac_file_inputs=`IFS=:
14265 for f in $ac_file_in; do
14266 case $f in
14267 -) echo $tmp/stdin ;;
14268 [\\/$]*)
14269 # Absolute (can't be DOS-style, as IFS=:)
14270 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14271 echo "$as_me: error: cannot find input file: $f" >&2;}
14272 { (exit 1); exit 1; }; }
14273 echo "$f";;
14274 *) # Relative
14275 if test -f "$f"; then
14276 # Build tree
14277 echo "$f"
14278 elif test -f "$srcdir/$f"; then
14279 # Source tree
14280 echo "$srcdir/$f"
14281 else
14282 # /dev/null tree
14283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14284 echo "$as_me: error: cannot find input file: $f" >&2;}
14285 { (exit 1); exit 1; }; }
14286 fi;;
14287 esac
14288 done` || { (exit 1); exit 1; }
14289 _ACEOF
14290 cat >>$CONFIG_STATUS <<_ACEOF
14291 sed "$ac_vpsub
14292 $extrasub
14293 _ACEOF
14294 cat >>$CONFIG_STATUS <<\_ACEOF
14296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14297 s,@configure_input@,$configure_input,;t t
14298 s,@srcdir@,$ac_srcdir,;t t
14299 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14300 s,@top_srcdir@,$ac_top_srcdir,;t t
14301 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14302 s,@builddir@,$ac_builddir,;t t
14303 s,@abs_builddir@,$ac_abs_builddir,;t t
14304 s,@top_builddir@,$ac_top_builddir,;t t
14305 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14306 s,@INSTALL@,$ac_INSTALL,;t t
14307 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14308 rm -f $tmp/stdin
14309 if test x"$ac_file" != x-; then
14310 mv $tmp/out $ac_file
14311 else
14312 cat $tmp/out
14313 rm -f $tmp/out
14316 done
14317 _ACEOF
14318 cat >>$CONFIG_STATUS <<\_ACEOF
14321 # CONFIG_HEADER section.
14324 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14325 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14327 # ac_d sets the value in "#define NAME VALUE" lines.
14328 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14329 ac_dB='[ ].*$,\1#\2'
14330 ac_dC=' '
14331 ac_dD=',;t'
14332 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14333 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14334 ac_uB='$,\1#\2define\3'
14335 ac_uC=' '
14336 ac_uD=',;t'
14338 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14340 case $ac_file in
14341 - | *:- | *:-:* ) # input from stdin
14342 cat >$tmp/stdin
14343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14347 * ) ac_file_in=$ac_file.in ;;
14348 esac
14350 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14351 echo "$as_me: creating $ac_file" >&6;}
14353 # First look for the input files in the build tree, otherwise in the
14354 # src tree.
14355 ac_file_inputs=`IFS=:
14356 for f in $ac_file_in; do
14357 case $f in
14358 -) echo $tmp/stdin ;;
14359 [\\/$]*)
14360 # Absolute (can't be DOS-style, as IFS=:)
14361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14362 echo "$as_me: error: cannot find input file: $f" >&2;}
14363 { (exit 1); exit 1; }; }
14364 # Do quote $f, to prevent DOS paths from being IFS'd.
14365 echo "$f";;
14366 *) # Relative
14367 if test -f "$f"; then
14368 # Build tree
14369 echo "$f"
14370 elif test -f "$srcdir/$f"; then
14371 # Source tree
14372 echo "$srcdir/$f"
14373 else
14374 # /dev/null tree
14375 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14376 echo "$as_me: error: cannot find input file: $f" >&2;}
14377 { (exit 1); exit 1; }; }
14378 fi;;
14379 esac
14380 done` || { (exit 1); exit 1; }
14381 # Remove the trailing spaces.
14382 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14384 _ACEOF
14386 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14387 # `conftest.undefs', that substitutes the proper values into
14388 # config.h.in to produce config.h. The first handles `#define'
14389 # templates, and the second `#undef' templates.
14390 # And first: Protect against being on the right side of a sed subst in
14391 # config.status. Protect against being in an unquoted here document
14392 # in config.status.
14393 rm -f conftest.defines conftest.undefs
14394 # Using a here document instead of a string reduces the quoting nightmare.
14395 # Putting comments in sed scripts is not portable.
14397 # `end' is used to avoid that the second main sed command (meant for
14398 # 0-ary CPP macros) applies to n-ary macro definitions.
14399 # See the Autoconf documentation for `clear'.
14400 cat >confdef2sed.sed <<\_ACEOF
14401 s/[\\&,]/\\&/g
14402 s,[\\$`],\\&,g
14403 t clear
14404 : clear
14405 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14406 t end
14407 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14408 : end
14409 _ACEOF
14410 # If some macros were called several times there might be several times
14411 # the same #defines, which is useless. Nevertheless, we may not want to
14412 # sort them, since we want the *last* AC-DEFINE to be honored.
14413 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14414 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14415 rm -f confdef2sed.sed
14417 # This sed command replaces #undef with comments. This is necessary, for
14418 # example, in the case of _POSIX_SOURCE, which is predefined and required
14419 # on some systems where configure will not decide to define it.
14420 cat >>conftest.undefs <<\_ACEOF
14421 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14422 _ACEOF
14424 # Break up conftest.defines because some shells have a limit on the size
14425 # of here documents, and old seds have small limits too (100 cmds).
14426 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14427 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14428 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14429 echo ' :' >>$CONFIG_STATUS
14430 rm -f conftest.tail
14431 while grep . conftest.defines >/dev/null
14433 # Write a limited-size here document to $tmp/defines.sed.
14434 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14435 # Speed up: don't consider the non `#define' lines.
14436 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14437 # Work around the forget-to-reset-the-flag bug.
14438 echo 't clr' >>$CONFIG_STATUS
14439 echo ': clr' >>$CONFIG_STATUS
14440 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14441 echo 'CEOF
14442 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14443 rm -f $tmp/in
14444 mv $tmp/out $tmp/in
14445 ' >>$CONFIG_STATUS
14446 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14447 rm -f conftest.defines
14448 mv conftest.tail conftest.defines
14449 done
14450 rm -f conftest.defines
14451 echo ' fi # grep' >>$CONFIG_STATUS
14452 echo >>$CONFIG_STATUS
14454 # Break up conftest.undefs because some shells have a limit on the size
14455 # of here documents, and old seds have small limits too (100 cmds).
14456 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14457 rm -f conftest.tail
14458 while grep . conftest.undefs >/dev/null
14460 # Write a limited-size here document to $tmp/undefs.sed.
14461 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14462 # Speed up: don't consider the non `#undef'
14463 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14464 # Work around the forget-to-reset-the-flag bug.
14465 echo 't clr' >>$CONFIG_STATUS
14466 echo ': clr' >>$CONFIG_STATUS
14467 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14468 echo 'CEOF
14469 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14470 rm -f $tmp/in
14471 mv $tmp/out $tmp/in
14472 ' >>$CONFIG_STATUS
14473 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14474 rm -f conftest.undefs
14475 mv conftest.tail conftest.undefs
14476 done
14477 rm -f conftest.undefs
14479 cat >>$CONFIG_STATUS <<\_ACEOF
14480 # Let's still pretend it is `configure' which instantiates (i.e., don't
14481 # use $as_me), people would be surprised to read:
14482 # /* config.h. Generated by config.status. */
14483 if test x"$ac_file" = x-; then
14484 echo "/* Generated by configure. */" >$tmp/config.h
14485 else
14486 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14488 cat $tmp/in >>$tmp/config.h
14489 rm -f $tmp/in
14490 if test x"$ac_file" != x-; then
14491 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14493 echo "$as_me: $ac_file is unchanged" >&6;}
14494 else
14495 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14497 X"$ac_file" : 'X\(//\)[^/]' \| \
14498 X"$ac_file" : 'X\(//\)$' \| \
14499 X"$ac_file" : 'X\(/\)' \| \
14500 . : '\(.\)' 2>/dev/null ||
14501 echo X"$ac_file" |
14502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14504 /^X\(\/\/\)$/{ s//\1/; q; }
14505 /^X\(\/\).*/{ s//\1/; q; }
14506 s/.*/./; q'`
14507 { if $as_mkdir_p; then
14508 mkdir -p "$ac_dir"
14509 else
14510 as_dir="$ac_dir"
14511 as_dirs=
14512 while test ! -d "$as_dir"; do
14513 as_dirs="$as_dir $as_dirs"
14514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14516 X"$as_dir" : 'X\(//\)[^/]' \| \
14517 X"$as_dir" : 'X\(//\)$' \| \
14518 X"$as_dir" : 'X\(/\)' \| \
14519 . : '\(.\)' 2>/dev/null ||
14520 echo X"$as_dir" |
14521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14523 /^X\(\/\/\)$/{ s//\1/; q; }
14524 /^X\(\/\).*/{ s//\1/; q; }
14525 s/.*/./; q'`
14526 done
14527 test ! -n "$as_dirs" || mkdir $as_dirs
14528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14530 { (exit 1); exit 1; }; }; }
14532 rm -f $ac_file
14533 mv $tmp/config.h $ac_file
14535 else
14536 cat $tmp/config.h
14537 rm -f $tmp/config.h
14539 # Compute $ac_file's index in $config_headers.
14540 _am_stamp_count=1
14541 for _am_header in $config_headers :; do
14542 case $_am_header in
14543 $ac_file | $ac_file:* )
14544 break ;;
14546 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14547 esac
14548 done
14549 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14550 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551 X$ac_file : 'X\(//\)[^/]' \| \
14552 X$ac_file : 'X\(//\)$' \| \
14553 X$ac_file : 'X\(/\)' \| \
14554 . : '\(.\)' 2>/dev/null ||
14555 echo X$ac_file |
14556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14558 /^X\(\/\/\)$/{ s//\1/; q; }
14559 /^X\(\/\).*/{ s//\1/; q; }
14560 s/.*/./; q'`/stamp-h$_am_stamp_count
14561 done
14562 _ACEOF
14563 cat >>$CONFIG_STATUS <<\_ACEOF
14566 # CONFIG_COMMANDS section.
14568 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14569 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14570 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14571 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14572 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14573 X"$ac_dest" : 'X\(//\)[^/]' \| \
14574 X"$ac_dest" : 'X\(//\)$' \| \
14575 X"$ac_dest" : 'X\(/\)' \| \
14576 . : '\(.\)' 2>/dev/null ||
14577 echo X"$ac_dest" |
14578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14580 /^X\(\/\/\)$/{ s//\1/; q; }
14581 /^X\(\/\).*/{ s//\1/; q; }
14582 s/.*/./; q'`
14583 { if $as_mkdir_p; then
14584 mkdir -p "$ac_dir"
14585 else
14586 as_dir="$ac_dir"
14587 as_dirs=
14588 while test ! -d "$as_dir"; do
14589 as_dirs="$as_dir $as_dirs"
14590 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14592 X"$as_dir" : 'X\(//\)[^/]' \| \
14593 X"$as_dir" : 'X\(//\)$' \| \
14594 X"$as_dir" : 'X\(/\)' \| \
14595 . : '\(.\)' 2>/dev/null ||
14596 echo X"$as_dir" |
14597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14599 /^X\(\/\/\)$/{ s//\1/; q; }
14600 /^X\(\/\).*/{ s//\1/; q; }
14601 s/.*/./; q'`
14602 done
14603 test ! -n "$as_dirs" || mkdir $as_dirs
14604 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14605 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14606 { (exit 1); exit 1; }; }; }
14608 ac_builddir=.
14610 if test "$ac_dir" != .; then
14611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14612 # A "../" for each directory in $ac_dir_suffix.
14613 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14614 else
14615 ac_dir_suffix= ac_top_builddir=
14618 case $srcdir in
14619 .) # No --srcdir option. We are building in place.
14620 ac_srcdir=.
14621 if test -z "$ac_top_builddir"; then
14622 ac_top_srcdir=.
14623 else
14624 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14625 fi ;;
14626 [\\/]* | ?:[\\/]* ) # Absolute path.
14627 ac_srcdir=$srcdir$ac_dir_suffix;
14628 ac_top_srcdir=$srcdir ;;
14629 *) # Relative path.
14630 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14631 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14632 esac
14634 # Do not use `cd foo && pwd` to compute absolute paths, because
14635 # the directories may not exist.
14636 case `pwd` in
14637 .) ac_abs_builddir="$ac_dir";;
14639 case "$ac_dir" in
14640 .) ac_abs_builddir=`pwd`;;
14641 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14642 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14643 esac;;
14644 esac
14645 case $ac_abs_builddir in
14646 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14648 case ${ac_top_builddir}. in
14649 .) ac_abs_top_builddir=$ac_abs_builddir;;
14650 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14651 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14652 esac;;
14653 esac
14654 case $ac_abs_builddir in
14655 .) ac_abs_srcdir=$ac_srcdir;;
14657 case $ac_srcdir in
14658 .) ac_abs_srcdir=$ac_abs_builddir;;
14659 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14660 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14661 esac;;
14662 esac
14663 case $ac_abs_builddir in
14664 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14666 case $ac_top_srcdir in
14667 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14668 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14669 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14670 esac;;
14671 esac
14674 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14675 echo "$as_me: executing $ac_dest commands" >&6;}
14676 case $ac_dest in
14677 default-1 )
14678 # Only add multilib support code if we just rebuilt the top-level
14679 # Makefile.
14680 case " $CONFIG_FILES " in
14681 *" Makefile "*)
14682 ac_file=Makefile . ${multi_basedir}/config-ml.in
14684 esac ;;
14685 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14686 # Strip MF so we end up with the name of the file.
14687 mf=`echo "$mf" | sed -e 's/:.*$//'`
14688 # Check whether this is an Automake generated Makefile or not.
14689 # We used to match only the files named `Makefile.in', but
14690 # some people rename them; so instead we look at the file content.
14691 # Grep'ing the first line is not enough: some people post-process
14692 # each Makefile.in and add a new line on top of each file to say so.
14693 # So let's grep whole file.
14694 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14695 dirpart=`(dirname "$mf") 2>/dev/null ||
14696 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14697 X"$mf" : 'X\(//\)[^/]' \| \
14698 X"$mf" : 'X\(//\)$' \| \
14699 X"$mf" : 'X\(/\)' \| \
14700 . : '\(.\)' 2>/dev/null ||
14701 echo X"$mf" |
14702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14704 /^X\(\/\/\)$/{ s//\1/; q; }
14705 /^X\(\/\).*/{ s//\1/; q; }
14706 s/.*/./; q'`
14707 else
14708 continue
14710 # Extract the definition of DEPDIR, am__include, and am__quote
14711 # from the Makefile without running `make'.
14712 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14713 test -z "$DEPDIR" && continue
14714 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14715 test -z "am__include" && continue
14716 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14717 # When using ansi2knr, U may be empty or an underscore; expand it
14718 U=`sed -n 's/^U = //p' < "$mf"`
14719 # Find all dependency output files, they are included files with
14720 # $(DEPDIR) in their names. We invoke sed twice because it is the
14721 # simplest approach to changing $(DEPDIR) to its actual value in the
14722 # expansion.
14723 for file in `sed -n "
14724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14726 # Make sure the directory exists.
14727 test -f "$dirpart/$file" && continue
14728 fdir=`(dirname "$file") 2>/dev/null ||
14729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14730 X"$file" : 'X\(//\)[^/]' \| \
14731 X"$file" : 'X\(//\)$' \| \
14732 X"$file" : 'X\(/\)' \| \
14733 . : '\(.\)' 2>/dev/null ||
14734 echo X"$file" |
14735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14737 /^X\(\/\/\)$/{ s//\1/; q; }
14738 /^X\(\/\).*/{ s//\1/; q; }
14739 s/.*/./; q'`
14740 { if $as_mkdir_p; then
14741 mkdir -p $dirpart/$fdir
14742 else
14743 as_dir=$dirpart/$fdir
14744 as_dirs=
14745 while test ! -d "$as_dir"; do
14746 as_dirs="$as_dir $as_dirs"
14747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| \
14752 . : '\(.\)' 2>/dev/null ||
14753 echo X"$as_dir" |
14754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14756 /^X\(\/\/\)$/{ s//\1/; q; }
14757 /^X\(\/\).*/{ s//\1/; q; }
14758 s/.*/./; q'`
14759 done
14760 test ! -n "$as_dirs" || mkdir $as_dirs
14761 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14762 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14763 { (exit 1); exit 1; }; }; }
14765 # echo "creating $dirpart/$file"
14766 echo '# dummy' > "$dirpart/$file"
14767 done
14768 done
14770 libtool )
14772 # See if we are running on zsh, and set the options which allow our
14773 # commands through without removal of \ escapes.
14774 if test -n "${ZSH_VERSION+set}" ; then
14775 setopt NO_GLOB_SUBST
14778 cfgfile="${ofile}T"
14779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14780 $RM "$cfgfile"
14782 cat <<_LT_EOF >> "$cfgfile"
14783 #! $SHELL
14785 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14786 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14788 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14790 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14791 # 2006, 2007, 2008 Free Software Foundation, Inc.
14792 # Written by Gordon Matzigkeit, 1996
14794 # This file is part of GNU Libtool.
14796 # GNU Libtool is free software; you can redistribute it and/or
14797 # modify it under the terms of the GNU General Public License as
14798 # published by the Free Software Foundation; either version 2 of
14799 # the License, or (at your option) any later version.
14801 # As a special exception to the GNU General Public License,
14802 # if you distribute this file as part of a program or library that
14803 # is built using GNU Libtool, you may include this file under the
14804 # same distribution terms that you use for the rest of that program.
14806 # GNU Libtool is distributed in the hope that it will be useful,
14807 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14809 # GNU General Public License for more details.
14811 # You should have received a copy of the GNU General Public License
14812 # along with GNU Libtool; see the file COPYING. If not, a copy
14813 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14814 # obtained by writing to the Free Software Foundation, Inc.,
14815 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14818 # The names of the tagged configurations supported by this script.
14819 available_tags=""
14821 # ### BEGIN LIBTOOL CONFIG
14823 # Which release of libtool.m4 was used?
14824 macro_version=$macro_version
14825 macro_revision=$macro_revision
14827 # Whether or not to build shared libraries.
14828 build_libtool_libs=$enable_shared
14830 # Whether or not to build static libraries.
14831 build_old_libs=$enable_static
14833 # What type of objects to build.
14834 pic_mode=$pic_mode
14836 # Whether or not to optimize for fast installation.
14837 fast_install=$enable_fast_install
14839 # The host system.
14840 host_alias=$host_alias
14841 host=$host
14842 host_os=$host_os
14844 # The build system.
14845 build_alias=$build_alias
14846 build=$build
14847 build_os=$build_os
14849 # A sed program that does not truncate output.
14850 SED=$lt_SED
14852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14853 Xsed="\$SED -e 1s/^X//"
14855 # A grep program that handles long lines.
14856 GREP=$lt_GREP
14858 # An ERE matcher.
14859 EGREP=$lt_EGREP
14861 # A literal string matcher.
14862 FGREP=$lt_FGREP
14864 # A BSD- or MS-compatible name lister.
14865 NM=$lt_NM
14867 # Whether we need soft or hard links.
14868 LN_S=$lt_LN_S
14870 # What is the maximum length of a command?
14871 max_cmd_len=$max_cmd_len
14873 # Object file suffix (normally "o").
14874 objext=$ac_objext
14876 # Executable file suffix (normally "").
14877 exeext=$exeext
14879 # whether the shell understands "unset".
14880 lt_unset=$lt_unset
14882 # turn spaces into newlines.
14883 SP2NL=$lt_lt_SP2NL
14885 # turn newlines into spaces.
14886 NL2SP=$lt_lt_NL2SP
14888 # How to create reloadable object files.
14889 reload_flag=$lt_reload_flag
14890 reload_cmds=$lt_reload_cmds
14892 # An object symbol dumper.
14893 OBJDUMP=$lt_OBJDUMP
14895 # Method to check whether dependent libraries are shared objects.
14896 deplibs_check_method=$lt_deplibs_check_method
14898 # Command to use when deplibs_check_method == "file_magic".
14899 file_magic_cmd=$lt_file_magic_cmd
14901 # The archiver.
14902 AR=$lt_AR
14903 AR_FLAGS=$lt_AR_FLAGS
14905 # A symbol stripping program.
14906 STRIP=$lt_STRIP
14908 # Commands used to install an old-style archive.
14909 RANLIB=$lt_RANLIB
14910 old_postinstall_cmds=$lt_old_postinstall_cmds
14911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14913 # A C compiler.
14914 LTCC=$lt_CC
14916 # LTCC compiler flags.
14917 LTCFLAGS=$lt_CFLAGS
14919 # Take the output of nm and produce a listing of raw symbols and C names.
14920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14922 # Transform the output of nm in a proper C declaration.
14923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14925 # Transform the output of nm in a C name address pair.
14926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14928 # Transform the output of nm in a C name address pair when lib prefix is needed.
14929 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14931 # The name of the directory that contains temporary libtool files.
14932 objdir=$objdir
14934 # Shell to use when invoking shell scripts.
14935 SHELL=$lt_SHELL
14937 # An echo program that does not interpret backslashes.
14938 ECHO=$lt_ECHO
14940 # Used to examine libraries when file_magic_cmd begins with "file".
14941 MAGIC_CMD=$MAGIC_CMD
14943 # Must we lock files when doing compilation?
14944 need_locks=$lt_need_locks
14946 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14947 DSYMUTIL=$lt_DSYMUTIL
14949 # Tool to change global to local symbols on Mac OS X.
14950 NMEDIT=$lt_NMEDIT
14952 # Tool to manipulate fat objects and archives on Mac OS X.
14953 LIPO=$lt_LIPO
14955 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14956 OTOOL=$lt_OTOOL
14958 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14959 OTOOL64=$lt_OTOOL64
14961 # Old archive suffix (normally "a").
14962 libext=$libext
14964 # Shared library suffix (normally ".so").
14965 shrext_cmds=$lt_shrext_cmds
14967 # The commands to extract the exported symbol list from a shared archive.
14968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970 # Variables whose values should be saved in libtool wrapper scripts and
14971 # restored at link time.
14972 variables_saved_for_relink=$lt_variables_saved_for_relink
14974 # Do we need the "lib" prefix for modules?
14975 need_lib_prefix=$need_lib_prefix
14977 # Do we need a version for libraries?
14978 need_version=$need_version
14980 # Library versioning type.
14981 version_type=$version_type
14983 # Shared library runtime path variable.
14984 runpath_var=$runpath_var
14986 # Shared library path variable.
14987 shlibpath_var=$shlibpath_var
14989 # Is shlibpath searched before the hard-coded library search path?
14990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14992 # Format of library name prefix.
14993 libname_spec=$lt_libname_spec
14995 # List of archive names. First name is the real one, the rest are links.
14996 # The last name is the one that the linker finds with -lNAME
14997 library_names_spec=$lt_library_names_spec
14999 # The coded name of the library, if different from the real name.
15000 soname_spec=$lt_soname_spec
15002 # Command to use after installation of a shared archive.
15003 postinstall_cmds=$lt_postinstall_cmds
15005 # Command to use after uninstallation of a shared archive.
15006 postuninstall_cmds=$lt_postuninstall_cmds
15008 # Commands used to finish a libtool library installation in a directory.
15009 finish_cmds=$lt_finish_cmds
15011 # As "finish_cmds", except a single script fragment to be evaled but
15012 # not shown.
15013 finish_eval=$lt_finish_eval
15015 # Whether we should hardcode library paths into libraries.
15016 hardcode_into_libs=$hardcode_into_libs
15018 # Compile-time system search path for libraries.
15019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15021 # Run-time system search path for libraries.
15022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15024 # Whether dlopen is supported.
15025 dlopen_support=$enable_dlopen
15027 # Whether dlopen of programs is supported.
15028 dlopen_self=$enable_dlopen_self
15030 # Whether dlopen of statically linked programs is supported.
15031 dlopen_self_static=$enable_dlopen_self_static
15033 # Commands to strip libraries.
15034 old_striplib=$lt_old_striplib
15035 striplib=$lt_striplib
15038 # The linker used to build libraries.
15039 LD=$lt_LD
15041 # Commands used to build an old-style archive.
15042 old_archive_cmds=$lt_old_archive_cmds
15044 # A language specific compiler.
15045 CC=$lt_compiler
15047 # Is the compiler the GNU compiler?
15048 with_gcc=$GCC
15050 # Compiler flag to turn off builtin functions.
15051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15053 # How to pass a linker flag through the compiler.
15054 wl=$lt_lt_prog_compiler_wl
15056 # Additional compiler flags for building library objects.
15057 pic_flag=$lt_lt_prog_compiler_pic
15059 # Compiler flag to prevent dynamic linking.
15060 link_static_flag=$lt_lt_prog_compiler_static
15062 # Does compiler simultaneously support -c and -o options?
15063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15065 # Whether or not to add -lc for building shared libraries.
15066 build_libtool_need_lc=$archive_cmds_need_lc
15068 # Whether or not to disallow shared libs when runtime libs are static.
15069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15071 # Compiler flag to allow reflexive dlopens.
15072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15074 # Compiler flag to generate shared objects directly from archives.
15075 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15077 # Whether the compiler copes with passing no objects directly.
15078 compiler_needs_object=$lt_compiler_needs_object
15080 # Create an old-style archive from a shared archive.
15081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15083 # Create a temporary old-style archive to link instead of a shared archive.
15084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15086 # Commands used to build a shared archive.
15087 archive_cmds=$lt_archive_cmds
15088 archive_expsym_cmds=$lt_archive_expsym_cmds
15090 # Commands used to build a loadable module if different from building
15091 # a shared archive.
15092 module_cmds=$lt_module_cmds
15093 module_expsym_cmds=$lt_module_expsym_cmds
15095 # Whether we are building with GNU ld or not.
15096 with_gnu_ld=$lt_with_gnu_ld
15098 # Flag that allows shared libraries with undefined symbols to be built.
15099 allow_undefined_flag=$lt_allow_undefined_flag
15101 # Flag that enforces no undefined symbols.
15102 no_undefined_flag=$lt_no_undefined_flag
15104 # Flag to hardcode \$libdir into a binary during linking.
15105 # This must work even if \$libdir does not exist
15106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15108 # If ld is used when linking, flag to hardcode \$libdir into a binary
15109 # during linking. This must work even if \$libdir does not exist.
15110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15112 # Whether we need a single "-rpath" flag with a separated argument.
15113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15116 # DIR into the resulting binary.
15117 hardcode_direct=$hardcode_direct
15119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15120 # DIR into the resulting binary and the resulting library dependency is
15121 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15122 # library is relocated.
15123 hardcode_direct_absolute=$hardcode_direct_absolute
15125 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15126 # into the resulting binary.
15127 hardcode_minus_L=$hardcode_minus_L
15129 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15130 # into the resulting binary.
15131 hardcode_shlibpath_var=$hardcode_shlibpath_var
15133 # Set to "yes" if building a shared library automatically hardcodes DIR
15134 # into the library and all subsequent libraries and executables linked
15135 # against it.
15136 hardcode_automatic=$hardcode_automatic
15138 # Set to yes if linker adds runtime paths of dependent libraries
15139 # to runtime path list.
15140 inherit_rpath=$inherit_rpath
15142 # Whether libtool must link a program against all its dependency libraries.
15143 link_all_deplibs=$link_all_deplibs
15145 # Fix the shell variable \$srcfile for the compiler.
15146 fix_srcfile_path=$lt_fix_srcfile_path
15148 # Set to "yes" if exported symbols are required.
15149 always_export_symbols=$always_export_symbols
15151 # The commands to list exported symbols.
15152 export_symbols_cmds=$lt_export_symbols_cmds
15154 # Symbols that should not be listed in the preloaded symbols.
15155 exclude_expsyms=$lt_exclude_expsyms
15157 # Symbols that must always be exported.
15158 include_expsyms=$lt_include_expsyms
15160 # Commands necessary for linking programs (against libraries) with templates.
15161 prelink_cmds=$lt_prelink_cmds
15163 # Specify filename containing input files.
15164 file_list_spec=$lt_file_list_spec
15166 # How to hardcode a shared library path into an executable.
15167 hardcode_action=$hardcode_action
15169 # ### END LIBTOOL CONFIG
15171 _LT_EOF
15173 case $host_os in
15174 aix3*)
15175 cat <<\_LT_EOF >> "$cfgfile"
15176 # AIX sometimes has problems with the GCC collect2 program. For some
15177 # reason, if we set the COLLECT_NAMES environment variable, the problems
15178 # vanish in a puff of smoke.
15179 if test "X${COLLECT_NAMES+set}" != Xset; then
15180 COLLECT_NAMES=
15181 export COLLECT_NAMES
15183 _LT_EOF
15185 esac
15188 ltmain="$ac_aux_dir/ltmain.sh"
15191 # We use sed instead of cat because bash on DJGPP gets confused if
15192 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15193 # text mode, it properly converts lines to CR/LF. This bash problem
15194 # is reportedly fixed, but why not run on old versions too?
15195 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15196 || (rm -f "$cfgfile"; exit 1)
15198 case $xsi_shell in
15199 yes)
15200 cat << \_LT_EOF >> "$cfgfile"
15202 # func_dirname file append nondir_replacement
15203 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15204 # otherwise set result to NONDIR_REPLACEMENT.
15205 func_dirname ()
15207 case ${1} in
15208 */*) func_dirname_result="${1%/*}${2}" ;;
15209 * ) func_dirname_result="${3}" ;;
15210 esac
15213 # func_basename file
15214 func_basename ()
15216 func_basename_result="${1##*/}"
15219 # func_dirname_and_basename file append nondir_replacement
15220 # perform func_basename and func_dirname in a single function
15221 # call:
15222 # dirname: Compute the dirname of FILE. If nonempty,
15223 # add APPEND to the result, otherwise set result
15224 # to NONDIR_REPLACEMENT.
15225 # value returned in "$func_dirname_result"
15226 # basename: Compute filename of FILE.
15227 # value retuned in "$func_basename_result"
15228 # Implementation must be kept synchronized with func_dirname
15229 # and func_basename. For efficiency, we do not delegate to
15230 # those functions but instead duplicate the functionality here.
15231 func_dirname_and_basename ()
15233 case ${1} in
15234 */*) func_dirname_result="${1%/*}${2}" ;;
15235 * ) func_dirname_result="${3}" ;;
15236 esac
15237 func_basename_result="${1##*/}"
15240 # func_stripname prefix suffix name
15241 # strip PREFIX and SUFFIX off of NAME.
15242 # PREFIX and SUFFIX must not contain globbing or regex special
15243 # characters, hashes, percent signs, but SUFFIX may contain a leading
15244 # dot (in which case that matches only a dot).
15245 func_stripname ()
15247 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15248 # positional parameters, so assign one to ordinary parameter first.
15249 func_stripname_result=${3}
15250 func_stripname_result=${func_stripname_result#"${1}"}
15251 func_stripname_result=${func_stripname_result%"${2}"}
15254 # func_opt_split
15255 func_opt_split ()
15257 func_opt_split_opt=${1%%=*}
15258 func_opt_split_arg=${1#*=}
15261 # func_lo2o object
15262 func_lo2o ()
15264 case ${1} in
15265 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15266 *) func_lo2o_result=${1} ;;
15267 esac
15270 # func_xform libobj-or-source
15271 func_xform ()
15273 func_xform_result=${1%.*}.lo
15276 # func_arith arithmetic-term...
15277 func_arith ()
15279 func_arith_result=$(( $* ))
15282 # func_len string
15283 # STRING may not start with a hyphen.
15284 func_len ()
15286 func_len_result=${#1}
15289 _LT_EOF
15291 *) # Bourne compatible functions.
15292 cat << \_LT_EOF >> "$cfgfile"
15294 # func_dirname file append nondir_replacement
15295 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15296 # otherwise set result to NONDIR_REPLACEMENT.
15297 func_dirname ()
15299 # Extract subdirectory from the argument.
15300 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15301 if test "X$func_dirname_result" = "X${1}"; then
15302 func_dirname_result="${3}"
15303 else
15304 func_dirname_result="$func_dirname_result${2}"
15308 # func_basename file
15309 func_basename ()
15311 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15315 # func_stripname prefix suffix name
15316 # strip PREFIX and SUFFIX off of NAME.
15317 # PREFIX and SUFFIX must not contain globbing or regex special
15318 # characters, hashes, percent signs, but SUFFIX may contain a leading
15319 # dot (in which case that matches only a dot).
15320 # func_strip_suffix prefix name
15321 func_stripname ()
15323 case ${2} in
15324 .*) func_stripname_result=`$ECHO "X${3}" \
15325 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15326 *) func_stripname_result=`$ECHO "X${3}" \
15327 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15328 esac
15331 # sed scripts:
15332 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15333 my_sed_long_arg='1s/^-[^=]*=//'
15335 # func_opt_split
15336 func_opt_split ()
15338 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15339 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15342 # func_lo2o object
15343 func_lo2o ()
15345 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15348 # func_xform libobj-or-source
15349 func_xform ()
15351 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15354 # func_arith arithmetic-term...
15355 func_arith ()
15357 func_arith_result=`expr "$@"`
15360 # func_len string
15361 # STRING may not start with a hyphen.
15362 func_len ()
15364 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15367 _LT_EOF
15368 esac
15370 case $lt_shell_append in
15371 yes)
15372 cat << \_LT_EOF >> "$cfgfile"
15374 # func_append var value
15375 # Append VALUE to the end of shell variable VAR.
15376 func_append ()
15378 eval "$1+=\$2"
15380 _LT_EOF
15383 cat << \_LT_EOF >> "$cfgfile"
15385 # func_append var value
15386 # Append VALUE to the end of shell variable VAR.
15387 func_append ()
15389 eval "$1=\$$1\$2"
15392 _LT_EOF
15394 esac
15397 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15398 || (rm -f "$cfgfile"; exit 1)
15400 mv -f "$cfgfile" "$ofile" ||
15401 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15402 chmod +x "$ofile"
15405 esac
15406 done
15407 _ACEOF
15409 cat >>$CONFIG_STATUS <<\_ACEOF
15411 { (exit 0); exit 0; }
15412 _ACEOF
15413 chmod +x $CONFIG_STATUS
15414 ac_clean_files=$ac_clean_files_save
15417 # configure is writing to config.log, and then calls config.status.
15418 # config.status does its own redirection, appending to config.log.
15419 # Unfortunately, on DOS this fails, as config.log is still kept open
15420 # by configure, so config.status won't be able to write to it; its
15421 # output is simply discarded. So we exec the FD to /dev/null,
15422 # effectively closing config.log, so it can be properly (re)opened and
15423 # appended to by config.status. When coming back to configure, we
15424 # need to make the FD available again.
15425 if test "$no_create" != yes; then
15426 ac_cs_success=:
15427 ac_config_status_args=
15428 test "$silent" = yes &&
15429 ac_config_status_args="$ac_config_status_args --quiet"
15430 exec 5>/dev/null
15431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15432 exec 5>>config.log
15433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15434 # would make configure fail if this is the last instruction.
15435 $ac_cs_success || { (exit 1); exit 1; }