]> git.ipfire.org Git - thirdparty/gcc.git/blame - libmudflap/configure
configure: Regenerate.
[thirdparty/gcc.git] / libmudflap / configure
CommitLineData
6de9cd9a 1#! /bin/sh
6de9cd9a 2# Guess values for system-dependent variables and create Makefiles.
076e5443 3# Generated by GNU Autoconf 2.59 for libmudflap 1.0.
6de9cd9a 4#
076e5443 5# Copyright (C) 2003 Free Software Foundation, Inc.
6de9cd9a
DN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42fcd7bb
AJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
076e5443 22DUALCASE=1; export DUALCASE # for MKS sh
42fcd7bb
AJ
23
24# Support unset when possible.
076e5443 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42fcd7bb
AJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
076e5443 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42fcd7bb
AJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
6de9cd9a 193
42fcd7bb
AJ
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
076e5443 221 test -d ./-p && rmdir ./-p
42fcd7bb
AJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
076e5443 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42fcd7bb
AJ
229
230# Sed expression to map a string onto a valid variable name.
076e5443 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42fcd7bb
AJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
1cf3d07d
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
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
282
283if 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
292 fi
293 done
294 fi
295
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
299 :
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'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
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
316 fi
317 done
318 IFS="$lt_save_ifs"
319
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
342 :
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=:
360
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
365 fi
366 prev="$cmd"
367 done
368
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
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42fcd7bb
AJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
6de9cd9a 403ac_default_prefix=/usr/local
42fcd7bb
AJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
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}
415
416# Identity of this package.
076e5443
PB
417PACKAGE_NAME='libmudflap'
418PACKAGE_TARNAME='libmudflap'
419PACKAGE_VERSION='1.0'
420PACKAGE_STRING='libmudflap 1.0'
421PACKAGE_BUGREPORT=''
42fcd7bb
AJ
422
423ac_unique_file="mf-runtime.c"
424# Factoring default headers for most tests.
425ac_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"
460
1cf3d07d 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
42fcd7bb 462ac_subst_files=''
6de9cd9a
DN
463
464# Initialize some variables set by options.
42fcd7bb
AJ
465ac_init_help=
466ac_init_version=false
6de9cd9a
DN
467# The variables have the same names as the options, with
468# dashes changed to underlines.
42fcd7bb 469cache_file=/dev/null
6de9cd9a 470exec_prefix=NONE
6de9cd9a 471no_create=
6de9cd9a
DN
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
6de9cd9a
DN
480verbose=
481x_includes=NONE
482x_libraries=NONE
42fcd7bb
AJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
6de9cd9a
DN
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
6de9cd9a
DN
502ac_prev=
503for ac_option
504do
6de9cd9a
DN
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
42fcd7bb 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
6de9cd9a
DN
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
42fcd7bb 516 case $ac_option in
6de9cd9a
DN
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42fcd7bb 521 bindir=$ac_optarg ;;
6de9cd9a
DN
522
523 -build | --build | --buil | --bui | --bu)
42fcd7bb 524 ac_prev=build_alias ;;
6de9cd9a 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42fcd7bb 526 build_alias=$ac_optarg ;;
6de9cd9a
DN
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42fcd7bb
AJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
6de9cd9a
DN
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
42fcd7bb 542 datadir=$ac_optarg ;;
6de9cd9a
DN
543
544 -disable-* | --disable-*)
42fcd7bb 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 546 # Reject names that are not valid shell variable names.
42fcd7bb
AJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
6de9cd9a
DN
552
553 -enable-* | --enable-*)
42fcd7bb 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 555 # Reject names that are not valid shell variable names.
42fcd7bb
AJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6de9cd9a
DN
562 *) ac_optarg=yes ;;
563 esac
42fcd7bb 564 eval "enable_$ac_feature='$ac_optarg'" ;;
6de9cd9a
DN
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
42fcd7bb 573 exec_prefix=$ac_optarg ;;
6de9cd9a
DN
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
42fcd7bb
AJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
6de9cd9a
DN
585
586 -host | --host | --hos | --ho)
42fcd7bb 587 ac_prev=host_alias ;;
6de9cd9a 588 -host=* | --host=* | --hos=* | --ho=*)
42fcd7bb 589 host_alias=$ac_optarg ;;
6de9cd9a
DN
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
42fcd7bb 596 includedir=$ac_optarg ;;
6de9cd9a
DN
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42fcd7bb 601 infodir=$ac_optarg ;;
6de9cd9a
DN
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42fcd7bb 606 libdir=$ac_optarg ;;
6de9cd9a
DN
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
42fcd7bb 613 libexecdir=$ac_optarg ;;
6de9cd9a
DN
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42fcd7bb 622 localstatedir=$ac_optarg ;;
6de9cd9a
DN
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42fcd7bb 627 mandir=$ac_optarg ;;
6de9cd9a
DN
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42fcd7bb 634 | --no-cr | --no-c | -n)
6de9cd9a
DN
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42fcd7bb 648 oldincludedir=$ac_optarg ;;
6de9cd9a
DN
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42fcd7bb 653 prefix=$ac_optarg ;;
6de9cd9a
DN
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42fcd7bb 660 program_prefix=$ac_optarg ;;
6de9cd9a
DN
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42fcd7bb 667 program_suffix=$ac_optarg ;;
6de9cd9a
DN
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
42fcd7bb 684 program_transform_name=$ac_optarg ;;
6de9cd9a
DN
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
42fcd7bb 694 sbindir=$ac_optarg ;;
6de9cd9a
DN
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
42fcd7bb 705 sharedstatedir=$ac_optarg ;;
6de9cd9a
DN
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
42fcd7bb 710 site=$ac_optarg ;;
6de9cd9a
DN
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42fcd7bb 715 srcdir=$ac_optarg ;;
6de9cd9a
DN
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42fcd7bb 722 sysconfdir=$ac_optarg ;;
6de9cd9a
DN
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
42fcd7bb 725 ac_prev=target_alias ;;
6de9cd9a 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42fcd7bb 727 target_alias=$ac_optarg ;;
6de9cd9a
DN
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
42fcd7bb
AJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
6de9cd9a
DN
734
735 -with-* | --with-*)
42fcd7bb 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 737 # Reject names that are not valid shell variable names.
42fcd7bb
AJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
6de9cd9a 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
42fcd7bb
AJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
6de9cd9a
DN
744 *) ac_optarg=yes ;;
745 esac
42fcd7bb 746 eval "with_$ac_package='$ac_optarg'" ;;
6de9cd9a
DN
747
748 -without-* | --without-*)
42fcd7bb 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 750 # Reject names that are not valid shell variable names.
42fcd7bb
AJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
6de9cd9a
DN
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42fcd7bb 766 x_includes=$ac_optarg ;;
6de9cd9a
DN
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42fcd7bb 773 x_libraries=$ac_optarg ;;
6de9cd9a 774
42fcd7bb
AJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
6de9cd9a
DN
778 ;;
779
42fcd7bb
AJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
6de9cd9a 790 *)
42fcd7bb
AJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
6de9cd9a
DN
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
42fcd7bb
AJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
6de9cd9a 805fi
6de9cd9a 806
42fcd7bb
AJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
6de9cd9a 817
42fcd7bb
AJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
076e5443 820 localstatedir libdir includedir oldincludedir infodir mandir
6de9cd9a 821do
42fcd7bb
AJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
6de9cd9a
DN
827 esac
828done
829
42fcd7bb
AJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
6de9cd9a 847
42fcd7bb
AJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
6de9cd9a 852
6de9cd9a
DN
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
42fcd7bb
AJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
6de9cd9a
DN
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
42fcd7bb
AJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
6de9cd9a 881 else
42fcd7bb
AJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
6de9cd9a
DN
884 fi
885fi
42fcd7bb
AJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911#
912# Report the --help message.
913#
914if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
076e5443 918\`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
42fcd7bb
AJ
919
920Usage: $0 [OPTION]... [VAR=VALUE]...
921
922To assign environment variables (e.g., CC, CFLAGS...), specify them as
923VAR=VALUE. See below for descriptions of some of the useful variables.
924
925Defaults for the options are specified in brackets.
926
927Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
937
938_ACEOF
939
940 cat <<_ACEOF
941Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
076e5443 943 [$ac_default_prefix]
42fcd7bb 944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
076e5443 945 [PREFIX]
42fcd7bb
AJ
946
947By default, \`make install' will install all the files in
948\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950for instance \`--prefix=\$HOME'.
951
952For better control, use the options below.
953
954Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967_ACEOF
968
969 cat <<\_ACEOF
970
971Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
975
976System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980_ACEOF
981fi
982
983if test -n "$ac_init_help"; then
076e5443
PB
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libmudflap 1.0:";;
986 esac
42fcd7bb
AJ
987 cat <<\_ACEOF
988
989Optional Features:
990 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
991 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
992 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
076e5443
PB
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-multilib build many library versions (default)
996 --disable-dependency-tracking speeds up one-time build
997 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
998 --enable-shared[=PKGS]
999 build shared libraries [default=yes]
1000 --enable-static[=PKGS]
1001 build static libraries [default=yes]
1002 --enable-fast-install[=PKGS]
1003 optimize for fast installation [default=yes]
42fcd7bb 1004 --disable-libtool-lock avoid locking (might break parallel builds)
2fb31455 1005 --enable-tls Use thread-local storage [default=yes]
42fcd7bb
AJ
1006
1007Optional Packages:
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42fcd7bb
AJ
1013
1014Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1022
1023Use these variables to override the choices made by `configure' or to help
1024it to find libraries and programs with nonstandard names/locations.
1025
1026_ACEOF
1027fi
1028
1029if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1035
1036if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040else
1041 ac_dir_suffix= ac_top_builddir=
1042fi
1043
1044case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058esac
076e5443
PB
1059
1060# Do not use `cd foo && pwd` to compute absolute paths, because
1061# the directories may not exist.
1062case `pwd` in
1063.) ac_abs_builddir="$ac_dir";;
1064*)
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070esac
1071case $ac_abs_builddir in
1072.) ac_abs_top_builddir=${ac_top_builddir}.;;
1073*)
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079esac
1080case $ac_abs_builddir in
1081.) ac_abs_srcdir=$ac_srcdir;;
1082*)
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088esac
1089case $ac_abs_builddir in
1090.) ac_abs_top_srcdir=$ac_top_srcdir;;
1091*)
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097esac
42fcd7bb
AJ
1098
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
076e5443 1108 test -f $ac_srcdir/configure.in; then
42fcd7bb
AJ
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113 fi
66a5d3b1 1114 cd $ac_popdir
42fcd7bb
AJ
1115 done
1116fi
1117
1118test -n "$ac_init_help" && exit 0
1119if $ac_init_version; then
1120 cat <<\_ACEOF
076e5443
PB
1121libmudflap configure 1.0
1122generated by GNU Autoconf 2.59
42fcd7bb 1123
076e5443 1124Copyright (C) 2003 Free Software Foundation, Inc.
42fcd7bb
AJ
1125This configure script is free software; the Free Software Foundation
1126gives unlimited permission to copy, distribute and modify it.
1127_ACEOF
1128 exit 0
1129fi
1130exec 5>config.log
1131cat >&5 <<_ACEOF
1132This file contains any messages produced by compilers while
1133running configure, to aid debugging if configure makes a mistake.
1134
076e5443
PB
1135It was created by libmudflap $as_me 1.0, which was
1136generated by GNU Autoconf 2.59. Invocation command line was
42fcd7bb
AJ
1137
1138 $ $0 $@
1139
1140_ACEOF
1141{
1142cat <<_ASUNAME
1143## --------- ##
1144## Platform. ##
1145## --------- ##
1146
1147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152
1153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1155
1156/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1157/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1160/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1161/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1162/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1163
1164_ASUNAME
1165
1166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167for as_dir in $PATH
1168do
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172done
1173
1174} >&5
1175
1176cat >&5 <<_ACEOF
1177
1178
1179## ----------- ##
1180## Core tests. ##
1181## ----------- ##
1182
1183_ACEOF
1184
1185
1186# Keep a trace of the command line.
1187# Strip out --no-create and --no-recursion so they do not pile up.
1188# Strip out --silent because we don't want to record it for future runs.
1189# Also quote any args containing shell meta-characters.
1190# Make two passes to allow for proper duplicate-argument suppression.
1191ac_configure_args=
1192ac_configure_args0=
1193ac_configure_args1=
1194ac_sep=
1195ac_must_keep_next=false
1196for ac_pass in 1 2
1197do
1198 for ac_arg
1199 do
1200 case $ac_arg in
1201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 continue ;;
1205 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 esac
1208 case $ac_pass in
1209 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210 2)
1211 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212 if test $ac_must_keep_next = true; then
076e5443 1213 ac_must_keep_next=false # Got value, back to normal.
42fcd7bb 1214 else
076e5443
PB
1215 case $ac_arg in
1216 *=* | --config-cache | -C | -disable-* | --disable-* \
1217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219 | -with-* | --with-* | -without-* | --without-* | --x)
1220 case "$ac_configure_args0 " in
1221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 esac
1223 ;;
1224 -* ) ac_must_keep_next=true ;;
1225 esac
42fcd7bb
AJ
1226 fi
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
1230 ;;
1231 esac
1232 done
1233done
1234$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236
1237# When interrupted or exit'd, cleanup temporary files, and complete
1238# config.log. We remove comments because anyway the quotes in there
1239# would cause problems or look ugly.
1240# WARNING: Be sure not to use single quotes in there, as some shells,
1241# such as our DU 5.0 friend, will then `close' the trap.
1242trap 'exit_status=$?
1243 # Save into config.log some information that might help in debugging.
1244 {
1245 echo
1246
1247 cat <<\_ASBOX
1248## ---------------- ##
1249## Cache variables. ##
1250## ---------------- ##
1251_ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
1254{
1255 (set) 2>&1 |
1256 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 *ac_space=\ *)
1258 sed -n \
076e5443
PB
1259 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
42fcd7bb
AJ
1261 ;;
1262 *)
1263 sed -n \
076e5443 1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
42fcd7bb
AJ
1265 ;;
1266 esac;
1267}
1268 echo
1269
1270 cat <<\_ASBOX
1271## ----------------- ##
1272## Output variables. ##
1273## ----------------- ##
1274_ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1277 do
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
1282
1283 if test -n "$ac_subst_files"; then
1284 cat <<\_ASBOX
1285## ------------- ##
1286## Output files. ##
1287## ------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_files
1291 do
1292 eval ac_val=$`echo $ac_var`
076e5443 1293 echo "$ac_var='"'"'$ac_val'"'"'"
42fcd7bb
AJ
1294 done | sort
1295 echo
1296 fi
1297
1298 if test -s confdefs.h; then
1299 cat <<\_ASBOX
1300## ----------- ##
1301## confdefs.h. ##
1302## ----------- ##
1303_ASBOX
1304 echo
1305 sed "/^$/d" confdefs.h | sort
1306 echo
1307 fi
1308 test "$ac_signal" != 0 &&
1309 echo "$as_me: caught signal $ac_signal"
1310 echo "$as_me: exit $exit_status"
1311 } >&5
076e5443 1312 rm -f core *.core &&
42fcd7bb
AJ
1313 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 exit $exit_status
1315 ' 0
1316for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318done
1319ac_signal=0
1320
1321# confdefs.h avoids OS command line length limits that DEFS can exceed.
1322rm -rf conftest* confdefs.h
1323# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324echo >confdefs.h
1325
1326# Predefined preprocessor variables.
1327
1328cat >>confdefs.h <<_ACEOF
1329#define PACKAGE_NAME "$PACKAGE_NAME"
1330_ACEOF
1331
1332
1333cat >>confdefs.h <<_ACEOF
1334#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335_ACEOF
6de9cd9a 1336
42fcd7bb
AJ
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_VERSION "$PACKAGE_VERSION"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_STRING "$PACKAGE_STRING"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350_ACEOF
1351
1352
1353# Let the site file select an alternate cache file if it wants to.
6de9cd9a
DN
1354# Prefer explicitly selected file to automatically selected ones.
1355if test -z "$CONFIG_SITE"; then
1356 if test "x$prefix" != xNONE; then
1357 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358 else
1359 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360 fi
1361fi
1362for ac_site_file in $CONFIG_SITE; do
1363 if test -r "$ac_site_file"; then
42fcd7bb
AJ
1364 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
6de9cd9a
DN
1367 . "$ac_site_file"
1368 fi
1369done
1370
1371if test -r "$cache_file"; then
42fcd7bb
AJ
1372 # Some versions of bash will fail to source /dev/null (special
1373 # files actually), so we avoid doing that.
1374 if test -f "$cache_file"; then
1375 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1381 fi
6de9cd9a 1382else
42fcd7bb
AJ
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1386fi
1387
1388# Check that the precious variables saved in the cache have kept the same
1389# value.
1390ac_cache_corrupted=false
1391for ac_var in `(set) 2>&1 |
076e5443 1392 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
42fcd7bb
AJ
1393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394 eval ac_new_set=\$ac_env_${ac_var}_set
1395 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396 eval ac_new_val="\$ac_env_${ac_var}_value"
1397 case $ac_old_set,$ac_new_set in
1398 set,)
1399 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401 ac_cache_corrupted=: ;;
1402 ,set)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,);;
1407 *)
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
076e5443 1409 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42fcd7bb 1410echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
076e5443 1411 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
42fcd7bb 1412echo "$as_me: former value: $ac_old_val" >&2;}
076e5443 1413 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
42fcd7bb 1414echo "$as_me: current value: $ac_new_val" >&2;}
076e5443 1415 ac_cache_corrupted=:
42fcd7bb
AJ
1416 fi;;
1417 esac
1418 # Pass precious variables to config.status.
1419 if test "$ac_new_set" = set; then
1420 case $ac_new_val in
1421 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 *) ac_arg=$ac_var=$ac_new_val ;;
1424 esac
1425 case " $ac_configure_args " in
1426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1427 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428 esac
1429 fi
1430done
1431if $ac_cache_corrupted; then
1432 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1433echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1434 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1435echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1436 { (exit 1); exit 1; }; }
6de9cd9a
DN
1437fi
1438
1439ac_ext=c
6de9cd9a 1440ac_cpp='$CPP $CPPFLAGS'
42fcd7bb
AJ
1441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
076e5443
PB
1455
1456
1457
1458
1459
1460
1461
1462
1463
42fcd7bb
AJ
1464
1465
1466
1467
1468
1469
6de9cd9a
DN
1470
1471
1472ac_aux_dir=
42fcd7bb 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6de9cd9a
DN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
42fcd7bb
AJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
6de9cd9a
DN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
42fcd7bb
AJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
6de9cd9a 1492fi
42fcd7bb
AJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529echo "$as_me:$LINENO: checking host system type" >&5
1530echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533else
1534 ac_cv_host_alias=$host_alias
1535test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias=$ac_cv_build_alias
1537ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544echo "${ECHO_T}$ac_cv_host" >&6
1545host=$ac_cv_host
1546host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking target system type" >&5
1552echo $ECHO_N "checking target system type... $ECHO_C" >&6
1553if test "${ac_cv_target+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_target_alias=$target_alias
1557test "x$ac_cv_target_alias" = "x" &&
1558 ac_cv_target_alias=$ac_cv_host_alias
1559ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
6de9cd9a 1563
42fcd7bb
AJ
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1566echo "${ECHO_T}$ac_cv_target" >&6
1567target=$ac_cv_target
1568target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6de9cd9a 1571
6de9cd9a
DN
1572
1573# The aliases save the names the user supplied, while $host etc.
1574# will get canonicalized.
42fcd7bb 1575test -n "$target_alias" &&
6de9cd9a
DN
1576 test "$program_prefix$program_suffix$program_transform_name" = \
1577 NONENONEs,x,x, &&
1578 program_prefix=${target_alias}-
89040431
FCE
1579 case ${build_alias} in
1580 "") build_noncanonical=${build} ;;
1581 *) build_noncanonical=${build_alias} ;;
1582esac
1583
1584 case ${host_alias} in
1585 "") host_noncanonical=${build_noncanonical} ;;
1586 *) host_noncanonical=${host_alias} ;;
1587esac
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
1592esac
1593
1594
1595
076e5443 1596
4e55a162 1597am__api_version="1.9"
6de9cd9a
DN
1598# Find a good install program. We prefer a C program (faster),
1599# so one script is as good as another. But avoid the broken or
1600# incompatible versions:
1601# SysV /etc/install, /usr/sbin/install
1602# SunOS /usr/etc/install
1603# IRIX /sbin/install
1604# AIX /bin/install
42fcd7bb 1605# AmigaOS /C/install, which installs bootblocks on floppy discs
6de9cd9a
DN
1606# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1607# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1608# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
076e5443 1609# OS/2's system install, which has a completely different semantic
6de9cd9a 1610# ./install, which can be erroneously created by make from ./install.sh.
42fcd7bb
AJ
1611echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1612echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6de9cd9a 1613if test -z "$INSTALL"; then
42fcd7bb
AJ
1614if test "${ac_cv_path_install+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 1616else
42fcd7bb
AJ
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 # Account for people who put trailing slashes in PATH elements.
1623case $as_dir/ in
1624 ./ | .// | /cC/* | \
1625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
076e5443 1626 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
42fcd7bb
AJ
1627 /usr/ucb/* ) ;;
1628 *)
1629 # OSF1 and SCO ODT 3.0 have their own names for install.
1630 # Don't use installbsd from OSF since it installs stuff as root
1631 # by default.
1632 for ac_prog in ginstall scoinst install; do
1633 for ac_exec_ext in '' $ac_executable_extensions; do
076e5443
PB
1634 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1635 if test $ac_prog = install &&
1636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1637 # AIX install. It has an incompatible calling convention.
1638 :
1639 elif test $ac_prog = install &&
1640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641 # program-specific install script used by HP pwplus--don't use.
1642 :
1643 else
1644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1645 break 3
1646 fi
1647 fi
6de9cd9a 1648 done
42fcd7bb
AJ
1649 done
1650 ;;
1651esac
1652done
1653
6de9cd9a
DN
1654
1655fi
1656 if test "${ac_cv_path_install+set}" = set; then
42fcd7bb 1657 INSTALL=$ac_cv_path_install
6de9cd9a
DN
1658 else
1659 # As a last resort, use the slow shell script. We don't cache a
1660 # path for INSTALL within a source directory, because that will
1661 # break other packages using the cache if that directory is
1662 # removed, or if the path is relative.
42fcd7bb 1663 INSTALL=$ac_install_sh
6de9cd9a
DN
1664 fi
1665fi
42fcd7bb
AJ
1666echo "$as_me:$LINENO: result: $INSTALL" >&5
1667echo "${ECHO_T}$INSTALL" >&6
6de9cd9a
DN
1668
1669# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1670# It thinks the first close brace ends the variable substitution.
1671test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1672
42fcd7bb 1673test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6de9cd9a
DN
1674
1675test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1676
42fcd7bb
AJ
1677echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1678echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6de9cd9a
DN
1679# Just in case
1680sleep 1
42fcd7bb 1681echo timestamp > conftest.file
6de9cd9a
DN
1682# Do `set' in a subshell so we don't clobber the current shell's
1683# arguments. Must try -L first in case configure is actually a
1684# symlink; some systems play weird games with the mod time of symlinks
1685# (eg FreeBSD returns the mod time of the symlink's containing
1686# directory).
1687if (
42fcd7bb 1688 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6de9cd9a
DN
1689 if test "$*" = "X"; then
1690 # -L didn't work.
42fcd7bb 1691 set X `ls -t $srcdir/configure conftest.file`
6de9cd9a 1692 fi
42fcd7bb
AJ
1693 rm -f conftest.file
1694 if test "$*" != "X $srcdir/configure conftest.file" \
1695 && test "$*" != "X conftest.file $srcdir/configure"; then
6de9cd9a
DN
1696
1697 # If neither matched, then we have a broken ls. This can happen
1698 # if, for instance, CONFIG_SHELL is bash and it inherits a
1699 # broken ls alias from the environment. This has actually
1700 # happened. Such a system could not be considered "sane".
42fcd7bb
AJ
1701 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1702alias in your environment" >&5
1703echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1704alias in your environment" >&2;}
1705 { (exit 1); exit 1; }; }
6de9cd9a
DN
1706 fi
1707
42fcd7bb 1708 test "$2" = conftest.file
6de9cd9a
DN
1709 )
1710then
1711 # Ok.
1712 :
1713else
42fcd7bb
AJ
1714 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1715Check your system clock" >&5
1716echo "$as_me: error: newly created file is older than distributed files!
1717Check your system clock" >&2;}
1718 { (exit 1); exit 1; }; }
1719fi
1720echo "$as_me:$LINENO: result: yes" >&5
1721echo "${ECHO_T}yes" >&6
6de9cd9a 1722test "$program_prefix" != NONE &&
42fcd7bb 1723 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6de9cd9a
DN
1724# Use a double $ so make ignores it.
1725test "$program_suffix" != NONE &&
42fcd7bb
AJ
1726 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1727# Double any \ or $. echo might interpret backslashes.
1728# By default was `s,x,x', remove it if useless.
1729cat <<\_ACEOF >conftest.sed
1730s/[\\$]/&&/g;s/;s,x,x,$//
1731_ACEOF
1732program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1733rm conftest.sed
1734
1735# expand $ac_aux_dir to an absolute path
1736am_aux_dir=`cd $ac_aux_dir && pwd`
1737
1738test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1739# Use eval to expand $SHELL
1740if eval "$MISSING --run true"; then
1741 am_missing_run="$MISSING --run "
1742else
1743 am_missing_run=
1744 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1745echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1746fi
1747
076e5443 1748if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4e55a162
KC
1749 # We used to keeping the `.' as first argument, in order to
1750 # allow $(mkdir_p) to be used without argument. As in
076e5443 1751 # $(mkdir_p) $(somedir)
4e55a162
KC
1752 # where $(somedir) is conditionally defined. However this is wrong
1753 # for two reasons:
1754 # 1. if the package is installed by a user who cannot write `.'
1755 # make install will fail,
1756 # 2. the above comment should most certainly read
1757 # $(mkdir_p) $(DESTDIR)$(somedir)
1758 # so it does not work when $(somedir) is undefined and
1759 # $(DESTDIR) is not.
1760 # To support the latter case, we have to write
1761 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1762 # so the `.' trick is pointless.
1763 mkdir_p='mkdir -p --'
076e5443
PB
1764else
1765 # On NextStep and OpenStep, the `mkdir' command does not
1766 # recognize any option. It will interpret all options as
1767 # directories to create, and then abort because `.' already
1768 # exists.
1769 for d in ./-p ./--version;
1770 do
1771 test -d $d && rmdir $d
1772 done
1773 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1774 if test -f "$ac_aux_dir/mkinstalldirs"; then
1775 mkdir_p='$(mkinstalldirs)'
1776 else
1777 mkdir_p='$(install_sh) -d'
1778 fi
1779fi
1780
42fcd7bb
AJ
1781for ac_prog in gawk mawk nawk awk
1782do
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784set dummy $ac_prog; ac_word=$2
1785echo "$as_me:$LINENO: checking for $ac_word" >&5
1786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787if test "${ac_cv_prog_AWK+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 if test -n "$AWK"; then
1791 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1792else
1793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794for as_dir in $PATH
1795do
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_AWK="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 break 2
1803 fi
1804done
1805done
1806
1807fi
1808fi
1809AWK=$ac_cv_prog_AWK
1810if test -n "$AWK"; then
1811 echo "$as_me:$LINENO: result: $AWK" >&5
1812echo "${ECHO_T}$AWK" >&6
1813else
1814 echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816fi
6de9cd9a 1817
42fcd7bb
AJ
1818 test -n "$AWK" && break
1819done
6de9cd9a 1820
42fcd7bb
AJ
1821echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1822echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
076e5443 1823set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
42fcd7bb
AJ
1824if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 1826else
42fcd7bb 1827 cat >conftest.make <<\_ACEOF
6de9cd9a 1828all:
42fcd7bb
AJ
1829 @echo 'ac_maketemp="$(MAKE)"'
1830_ACEOF
6de9cd9a 1831# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42fcd7bb 1832eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6de9cd9a
DN
1833if test -n "$ac_maketemp"; then
1834 eval ac_cv_prog_make_${ac_make}_set=yes
1835else
1836 eval ac_cv_prog_make_${ac_make}_set=no
1837fi
42fcd7bb 1838rm -f conftest.make
6de9cd9a
DN
1839fi
1840if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42fcd7bb
AJ
1841 echo "$as_me:$LINENO: result: yes" >&5
1842echo "${ECHO_T}yes" >&6
6de9cd9a
DN
1843 SET_MAKE=
1844else
42fcd7bb
AJ
1845 echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
6de9cd9a
DN
1847 SET_MAKE="MAKE=${MAKE-make}"
1848fi
1849
42fcd7bb
AJ
1850rm -rf .tst 2>/dev/null
1851mkdir .tst 2>/dev/null
1852if test -d .tst; then
1853 am__leading_dot=.
1854else
1855 am__leading_dot=_
1856fi
1857rmdir .tst 2>/dev/null
6de9cd9a 1858
076e5443 1859# test to see if srcdir already configured
42fcd7bb
AJ
1860if test "`cd $srcdir && pwd`" != "`pwd`" &&
1861 test -f $srcdir/config.status; then
1862 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1863echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1864 { (exit 1); exit 1; }; }
1865fi
6de9cd9a 1866
42fcd7bb
AJ
1867# test whether we have cygpath
1868if test -z "$CYGPATH_W"; then
1869 if (cygpath --version) >/dev/null 2>/dev/null; then
1870 CYGPATH_W='cygpath -w'
1871 else
1872 CYGPATH_W=echo
1873 fi
6de9cd9a 1874fi
42fcd7bb
AJ
1875
1876
1877# Define the identity of the package.
076e5443
PB
1878 PACKAGE='libmudflap'
1879 VERSION='1.0'
42fcd7bb
AJ
1880
1881
1882cat >>confdefs.h <<_ACEOF
6de9cd9a 1883#define PACKAGE "$PACKAGE"
42fcd7bb 1884_ACEOF
6de9cd9a 1885
42fcd7bb
AJ
1886
1887cat >>confdefs.h <<_ACEOF
6de9cd9a 1888#define VERSION "$VERSION"
42fcd7bb 1889_ACEOF
6de9cd9a 1890
42fcd7bb 1891# Some tools Automake needs.
6de9cd9a 1892
42fcd7bb 1893ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6de9cd9a 1894
42fcd7bb
AJ
1895
1896AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1897
1898
1899AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1900
1901
1902AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1903
1904
1905MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1906
42fcd7bb
AJ
1907install_sh=${install_sh-"$am_aux_dir/install-sh"}
1908
1909# Installed binaries are usually stripped using `strip' when the user
1910# run `make install-strip'. However `strip' might not be the right
1911# tool to use in cross-compilation environments, therefore Automake
1912# will honor the `STRIP' environment variable to overrule this program.
1913if test "$cross_compiling" != no; then
1914 if test -n "$ac_tool_prefix"; then
1915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1916set dummy ${ac_tool_prefix}strip; ac_word=$2
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919if test "${ac_cv_prog_STRIP+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 1921else
42fcd7bb
AJ
1922 if test -n "$STRIP"; then
1923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936done
1937done
6de9cd9a 1938
42fcd7bb
AJ
1939fi
1940fi
1941STRIP=$ac_cv_prog_STRIP
1942if test -n "$STRIP"; then
1943 echo "$as_me:$LINENO: result: $STRIP" >&5
1944echo "${ECHO_T}$STRIP" >&6
6de9cd9a 1945else
42fcd7bb
AJ
1946 echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
6de9cd9a
DN
1948fi
1949
6de9cd9a 1950fi
42fcd7bb
AJ
1951if test -z "$ac_cv_prog_STRIP"; then
1952 ac_ct_STRIP=$STRIP
1953 # Extract the first word of "strip", so it can be a program name with args.
1954set dummy strip; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960 if test -n "$ac_ct_STRIP"; then
1961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_STRIP="strip"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974done
1975done
6de9cd9a 1976
42fcd7bb
AJ
1977 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1978fi
1979fi
1980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1981if test -n "$ac_ct_STRIP"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1983echo "${ECHO_T}$ac_ct_STRIP" >&6
6de9cd9a 1984else
42fcd7bb
AJ
1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
6de9cd9a
DN
1987fi
1988
42fcd7bb 1989 STRIP=$ac_ct_STRIP
6de9cd9a 1990else
42fcd7bb 1991 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
1992fi
1993
42fcd7bb
AJ
1994fi
1995INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1996
1997# We need awk for the "check" target. The system "awk" is bad on
1998# some platforms.
4e55a162
KC
1999# Always define AMTAR for backward compatibility.
2000
2001AMTAR=${AMTAR-"${am_missing_run}tar"}
2002
2003am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2004
2005
42fcd7bb
AJ
2006
2007
6de9cd9a
DN
2008
2009
42fcd7bb
AJ
2010echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2011echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2012# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2013if test "${enable_version_specific_runtime_libs+set}" = set; then
2014 enableval="$enable_version_specific_runtime_libs"
2015 case "$enableval" in
2016 yes) version_specific_libs=yes ;;
2017 no) version_specific_libs=no ;;
2018 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2019echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2020 { (exit 1); exit 1; }; };;
2021 esac
2022else
2023 version_specific_libs=no
2024fi;
2025echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2026echo "${ECHO_T}$version_specific_libs" >&6
2027
2028echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2029echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6de9cd9a
DN
2030 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2031if test "${enable_maintainer_mode+set}" = set; then
2032 enableval="$enable_maintainer_mode"
2033 USE_MAINTAINER_MODE=$enableval
2034else
2035 USE_MAINTAINER_MODE=no
42fcd7bb
AJ
2036fi;
2037 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2038echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6de9cd9a 2039
6de9cd9a
DN
2040
2041if test $USE_MAINTAINER_MODE = yes; then
2042 MAINTAINER_MODE_TRUE=
2043 MAINTAINER_MODE_FALSE='#'
2044else
2045 MAINTAINER_MODE_TRUE='#'
2046 MAINTAINER_MODE_FALSE=
2047fi
6de9cd9a 2048
42fcd7bb 2049 MAINT=$MAINTAINER_MODE_TRUE
6de9cd9a 2050
6de9cd9a 2051
6de9cd9a 2052
6de9cd9a 2053
42fcd7bb
AJ
2054# Default to --enable-multilib
2055# Check whether --enable-multilib or --disable-multilib was given.
2056if test "${enable_multilib+set}" = set; then
2057 enableval="$enable_multilib"
2058 case "$enableval" in
2059 yes) multilib=yes ;;
2060 no) multilib=no ;;
2061 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2062echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2063 { (exit 1); exit 1; }; } ;;
2064 esac
6de9cd9a 2065else
42fcd7bb
AJ
2066 multilib=yes
2067fi;
6de9cd9a 2068
42fcd7bb
AJ
2069# We may get other options which we leave undocumented:
2070# --with-target-subdir, --with-multisrctop, --with-multisubdir
2071# See config-ml.in if you want the gory details.
6de9cd9a 2072
42fcd7bb
AJ
2073if test "$srcdir" = "."; then
2074 if test "$with_target_subdir" != "."; then
2075 multi_basedir="$srcdir/$with_multisrctop../.."
6de9cd9a 2076 else
42fcd7bb 2077 multi_basedir="$srcdir/$with_multisrctop.."
6de9cd9a 2078 fi
42fcd7bb
AJ
2079else
2080 multi_basedir="$srcdir/.."
6de9cd9a
DN
2081fi
2082
42fcd7bb 2083
1cf3d07d
SE
2084# Even if the default multilib is not a cross compilation,
2085# it may be that some of the other multilibs are.
2086if test $cross_compiling = no && test $multilib = yes \
2087 && test "x${with_multisubdir}" != x ; then
2088 cross_compiling=maybe
2089fi
2090
42fcd7bb 2091 ac_config_commands="$ac_config_commands default-1"
6de9cd9a
DN
2092
2093
124e22d4 2094target_alias=${target_alias-$host_alias}
6de9cd9a
DN
2095
2096
42fcd7bb 2097 ac_config_headers="$ac_config_headers config.h"
6de9cd9a
DN
2098
2099
42fcd7bb
AJ
2100ac_ext=c
2101ac_cpp='$CPP $CPPFLAGS'
2102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2107# We must force CC to /not/ be precious variables; otherwise
2108# the wrong, non-multilib-adjusted value will be used in multilibs.
2109# As a side effect, we have to subst CFLAGS ourselves.
2110
6de9cd9a
DN
2111
2112
2113ac_ext=c
6de9cd9a 2114ac_cpp='$CPP $CPPFLAGS'
42fcd7bb
AJ
2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2120set dummy ${ac_tool_prefix}gcc; ac_word=$2
2121echo "$as_me:$LINENO: checking for $ac_word" >&5
2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123if test "${ac_cv_prog_CC+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126 if test -n "$CC"; then
2127 ac_cv_prog_CC="$CC" # Let the user override the test.
2128else
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 break 2
2139 fi
2140done
2141done
2142
2143fi
2144fi
2145CC=$ac_cv_prog_CC
2146if test -n "$CC"; then
2147 echo "$as_me:$LINENO: result: $CC" >&5
2148echo "${ECHO_T}$CC" >&6
2149else
2150 echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6
2152fi
6de9cd9a 2153
42fcd7bb
AJ
2154fi
2155if test -z "$ac_cv_prog_CC"; then
2156 ac_ct_CC=$CC
2157 # Extract the first word of "gcc", so it can be a program name with args.
6de9cd9a 2158set dummy gcc; ac_word=$2
42fcd7bb
AJ
2159echo "$as_me:$LINENO: checking for $ac_word" >&5
2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164 if test -n "$ac_ct_CC"; then
2165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166else
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_ac_ct_CC="gcc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2177 fi
2178done
2179done
2180
2181fi
2182fi
2183ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184if test -n "$ac_ct_CC"; then
2185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186echo "${ECHO_T}$ac_ct_CC" >&6
2187else
2188 echo "$as_me:$LINENO: result: no" >&5
2189echo "${ECHO_T}no" >&6
2190fi
2191
2192 CC=$ac_ct_CC
2193else
2194 CC="$ac_cv_prog_CC"
2195fi
2196
2197if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200set dummy ${ac_tool_prefix}cc; ac_word=$2
2201echo "$as_me:$LINENO: checking for $ac_word" >&5
2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
2205else
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2208else
42fcd7bb
AJ
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_CC="${ac_tool_prefix}cc"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2219 fi
2220done
2221done
2222
6de9cd9a
DN
2223fi
2224fi
42fcd7bb 2225CC=$ac_cv_prog_CC
6de9cd9a 2226if test -n "$CC"; then
42fcd7bb
AJ
2227 echo "$as_me:$LINENO: result: $CC" >&5
2228echo "${ECHO_T}$CC" >&6
2229else
2230 echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6
2232fi
2233
2234fi
2235if test -z "$ac_cv_prog_CC"; then
2236 ac_ct_CC=$CC
2237 # Extract the first word of "cc", so it can be a program name with args.
2238set dummy cc; ac_word=$2
2239echo "$as_me:$LINENO: checking for $ac_word" >&5
2240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244 if test -n "$ac_ct_CC"; then
2245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246else
2247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248for as_dir in $PATH
2249do
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_ac_ct_CC="cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2257 fi
2258done
2259done
2260
2261fi
2262fi
2263ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264if test -n "$ac_ct_CC"; then
2265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266echo "${ECHO_T}$ac_ct_CC" >&6
2267else
2268 echo "$as_me:$LINENO: result: no" >&5
2269echo "${ECHO_T}no" >&6
2270fi
2271
2272 CC=$ac_ct_CC
6de9cd9a 2273else
42fcd7bb 2274 CC="$ac_cv_prog_CC"
6de9cd9a
DN
2275fi
2276
42fcd7bb 2277fi
6de9cd9a
DN
2278if test -z "$CC"; then
2279 # Extract the first word of "cc", so it can be a program name with args.
2280set dummy cc; ac_word=$2
42fcd7bb
AJ
2281echo "$as_me:$LINENO: checking for $ac_word" >&5
2282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283if test "${ac_cv_prog_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
2285else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288else
6de9cd9a 2289 ac_prog_rejected=no
42fcd7bb
AJ
2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2298 ac_prog_rejected=yes
2299 continue
2300 fi
2301 ac_cv_prog_CC="cc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2304 fi
2305done
2306done
2307
6de9cd9a
DN
2308if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2311 shift
42fcd7bb 2312 if test $# != 0; then
6de9cd9a
DN
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2316 shift
42fcd7bb 2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6de9cd9a
DN
2318 fi
2319fi
2320fi
2321fi
42fcd7bb 2322CC=$ac_cv_prog_CC
6de9cd9a 2323if test -n "$CC"; then
42fcd7bb
AJ
2324 echo "$as_me:$LINENO: result: $CC" >&5
2325echo "${ECHO_T}$CC" >&6
6de9cd9a 2326else
42fcd7bb
AJ
2327 echo "$as_me:$LINENO: result: no" >&5
2328echo "${ECHO_T}no" >&6
6de9cd9a
DN
2329fi
2330
42fcd7bb
AJ
2331fi
2332if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl
2335 do
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338echo "$as_me:$LINENO: checking for $ac_word" >&5
2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
2342else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345else
42fcd7bb
AJ
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357done
2358done
2359
6de9cd9a
DN
2360fi
2361fi
42fcd7bb 2362CC=$ac_cv_prog_CC
6de9cd9a 2363if test -n "$CC"; then
42fcd7bb
AJ
2364 echo "$as_me:$LINENO: result: $CC" >&5
2365echo "${ECHO_T}$CC" >&6
6de9cd9a 2366else
42fcd7bb
AJ
2367 echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6
6de9cd9a
DN
2369fi
2370
42fcd7bb
AJ
2371 test -n "$CC" && break
2372 done
6de9cd9a 2373fi
42fcd7bb
AJ
2374if test -z "$CC"; then
2375 ac_ct_CC=$CC
2376 for ac_prog in cl
2377do
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379set dummy $ac_prog; ac_word=$2
2380echo "$as_me:$LINENO: checking for $ac_word" >&5
2381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 2384else
42fcd7bb
AJ
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 2387else
42fcd7bb
AJ
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399done
2400done
2401
6de9cd9a 2402fi
42fcd7bb
AJ
2403fi
2404ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405if test -n "$ac_ct_CC"; then
2406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407echo "${ECHO_T}$ac_ct_CC" >&6
2408else
2409 echo "$as_me:$LINENO: result: no" >&5
2410echo "${ECHO_T}no" >&6
2411fi
2412
2413 test -n "$ac_ct_CC" && break
2414done
6de9cd9a 2415
42fcd7bb
AJ
2416 CC=$ac_ct_CC
2417fi
2418
2419fi
2420
2421
2422test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: no acceptable C compiler found in \$PATH
2425See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427
2428# Provide some information about the compiler.
2429echo "$as_me:$LINENO:" \
2430 "checking for C compiler version" >&5
2431ac_compiler=`set X $ac_compile; echo $2`
2432{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433 (eval $ac_compiler --version </dev/null >&5) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438 (eval $ac_compiler -v </dev/null >&5) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2443 (eval $ac_compiler -V </dev/null >&5) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447
2448cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h. */
2454
2455int
2456main ()
2457{
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463ac_clean_files_save=$ac_clean_files
2464ac_clean_files="$ac_clean_files a.out a.exe b.out"
2465# Try to create an executable without -o first, disregard a.out.
2466# It will help us diagnose broken compilers, and finding out an intuition
2467# of exeext.
076e5443
PB
2468echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2469echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
42fcd7bb
AJ
2470ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2471if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2472 (eval $ac_link_default) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; then
2476 # Find the output, starting from the most likely. This scheme is
2477# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2478# resort.
2479
2480# Be careful to initialize this variable, since it used to be cached.
2481# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2482ac_cv_exeext=
2483# b.out is created by i960 compilers.
2484for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2485do
2486 test -f "$ac_file" || continue
2487 case $ac_file in
2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
076e5443 2489 ;;
42fcd7bb 2490 conftest.$ac_ext )
076e5443
PB
2491 # This is the source file.
2492 ;;
42fcd7bb 2493 [ab].out )
076e5443
PB
2494 # We found the default executable, but exeext='' is most
2495 # certainly right.
2496 break;;
42fcd7bb 2497 *.* )
076e5443
PB
2498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2499 # FIXME: I believe we export ac_cv_exeext for Libtool,
2500 # but it would be cool to find out if it's true. Does anybody
2501 # maintain Libtool? --akim.
2502 export ac_cv_exeext
2503 break;;
42fcd7bb 2504 * )
076e5443 2505 break;;
42fcd7bb
AJ
2506 esac
2507done
6de9cd9a 2508else
42fcd7bb
AJ
2509 echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2513See \`config.log' for more details." >&5
2514echo "$as_me: error: C compiler cannot create executables
2515See \`config.log' for more details." >&2;}
2516 { (exit 77); exit 77; }; }
2517fi
2518
2519ac_exeext=$ac_cv_exeext
2520echo "$as_me:$LINENO: result: $ac_file" >&5
2521echo "${ECHO_T}$ac_file" >&6
2522
2523# Check the compiler produces executables we can run. If not, either
2524# the compiler is broken, or we cross compile.
2525echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2526echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2527# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2528# If not cross compiling, check that we can run a simple program.
2529if test "$cross_compiling" != yes; then
2530 if { ac_try='./$ac_file'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 cross_compiling=no
2537 else
2538 if test "$cross_compiling" = maybe; then
2539 cross_compiling=yes
2540 else
2541 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2542If you meant to cross compile, use \`--host'.
2543See \`config.log' for more details." >&5
2544echo "$as_me: error: cannot run C compiled programs.
2545If you meant to cross compile, use \`--host'.
2546See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2548 fi
2549 fi
2550fi
2551echo "$as_me:$LINENO: result: yes" >&5
2552echo "${ECHO_T}yes" >&6
2553
2554rm -f a.out a.exe conftest$ac_cv_exeext b.out
2555ac_clean_files=$ac_clean_files_save
2556# Check the compiler produces executables we can run. If not, either
2557# the compiler is broken, or we cross compile.
2558echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2559echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2560echo "$as_me:$LINENO: result: $cross_compiling" >&5
2561echo "${ECHO_T}$cross_compiling" >&6
2562
2563echo "$as_me:$LINENO: checking for suffix of executables" >&5
2564echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2571# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2572# work properly (i.e., refer to `conftest.exe'), while it won't with
2573# `rm'.
2574for ac_file in conftest.exe conftest conftest.*; do
2575 test -f "$ac_file" || continue
2576 case $ac_file in
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
076e5443
PB
2579 export ac_cv_exeext
2580 break;;
42fcd7bb
AJ
2581 * ) break;;
2582 esac
2583done
6de9cd9a 2584else
42fcd7bb
AJ
2585 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2586See \`config.log' for more details." >&5
2587echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2588See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }
6de9cd9a 2590fi
6de9cd9a 2591
42fcd7bb
AJ
2592rm -f conftest$ac_cv_exeext
2593echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2594echo "${ECHO_T}$ac_cv_exeext" >&6
2595
2596rm -f conftest.$ac_ext
2597EXEEXT=$ac_cv_exeext
2598ac_exeext=$EXEEXT
2599echo "$as_me:$LINENO: checking for suffix of object files" >&5
2600echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2601if test "${ac_cv_objext+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 cat >conftest.$ac_ext <<_ACEOF
2605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
2610
2611int
2612main ()
2613{
2614
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.o conftest.obj
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629 break;;
2630 esac
2631done
2632else
2633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
2636{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2637See \`config.log' for more details." >&5
2638echo "$as_me: error: cannot compute suffix of object files: cannot compile
2639See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
6de9cd9a
DN
2641fi
2642
42fcd7bb
AJ
2643rm -f conftest.$ac_cv_objext conftest.$ac_ext
2644fi
2645echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2646echo "${ECHO_T}$ac_cv_objext" >&6
2647OBJEXT=$ac_cv_objext
2648ac_objext=$OBJEXT
2649echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2651if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
2660
2661int
2662main ()
2663{
2664#ifndef __GNUC__
2665 choke me
2666#endif
2667
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 2674 (eval $ac_compile) 2>conftest.er1
42fcd7bb 2675 ac_status=$?
076e5443
PB
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
42fcd7bb
AJ
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
66a5d3b1
FCE
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
076e5443
PB
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_compiler_gnu=yes
2695else
2696 echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699ac_compiler_gnu=no
2700fi
076e5443 2701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
2702ac_cv_c_compiler_gnu=$ac_compiler_gnu
2703
2704fi
2705echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2707GCC=`test $ac_compiler_gnu = yes && echo yes`
2708ac_test_CFLAGS=${CFLAGS+set}
2709ac_save_CFLAGS=$CFLAGS
2710CFLAGS="-g"
2711echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2713if test "${ac_cv_prog_cc_g+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722
2723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 2733 (eval $ac_compile) 2>conftest.er1
42fcd7bb 2734 ac_status=$?
076e5443
PB
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
42fcd7bb
AJ
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
66a5d3b1
FCE
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
076e5443
PB
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 ac_cv_prog_cc_g=yes
2754else
2755 echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758ac_cv_prog_cc_g=no
2759fi
076e5443 2760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
2761fi
2762echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2763echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6de9cd9a 2764if test "$ac_test_CFLAGS" = set; then
42fcd7bb 2765 CFLAGS=$ac_save_CFLAGS
6de9cd9a
DN
2766elif test $ac_cv_prog_cc_g = yes; then
2767 if test "$GCC" = yes; then
2768 CFLAGS="-g -O2"
2769 else
2770 CFLAGS="-g"
2771 fi
2772else
2773 if test "$GCC" = yes; then
2774 CFLAGS="-O2"
2775 else
2776 CFLAGS=
2777 fi
2778fi
42fcd7bb
AJ
2779echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2780echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2781if test "${ac_cv_prog_cc_stdc+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 ac_cv_prog_cc_stdc=no
2785ac_save_CC=$CC
2786cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
2792#include <stdarg.h>
2793#include <stdio.h>
2794#include <sys/types.h>
2795#include <sys/stat.h>
2796/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2797struct buf { int x; };
2798FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799static char *e (p, i)
2800 char **p;
2801 int i;
2802{
2803 return p[i];
2804}
2805static char *f (char * (*g) (char **, int), char **p, ...)
2806{
2807 char *s;
2808 va_list v;
2809 va_start (v,p);
2810 s = g (p, va_arg (v,int));
2811 va_end (v);
2812 return s;
2813}
076e5443
PB
2814
2815/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2816 function prototypes and stuff, but not '\xHH' hex character constants.
2817 These don't provoke an error unfortunately, instead are silently treated
2818 as 'x'. The following induces an error, until -std1 is added to get
2819 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2820 array size at least. It's necessary to write '\x00'==0 to get something
2821 that's true only with -std1. */
2822int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2823
42fcd7bb
AJ
2824int test (int i, double x);
2825struct s1 {int (*f) (int a);};
2826struct s2 {int (*f) (double a);};
2827int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828int argc;
2829char **argv;
2830int
2831main ()
2832{
2833return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838# Don't try gcc -ansi; that turns off useful extensions and
2839# breaks some systems' header files.
2840# AIX -qlanglvl=ansi
2841# Ultrix and OSF/1 -std1
2842# HP-UX 10.20 and later -Ae
2843# HP-UX older versions -Aa -D_HPUX_SOURCE
2844# SVR4 -Xc -D__EXTENSIONS__
2845for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2846do
2847 CC="$ac_save_CC $ac_arg"
2848 rm -f conftest.$ac_objext
2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 2850 (eval $ac_compile) 2>conftest.er1
42fcd7bb 2851 ac_status=$?
076e5443
PB
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
42fcd7bb
AJ
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
66a5d3b1
FCE
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
076e5443
PB
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_prog_cc_stdc=$ac_arg
2871break
2872else
2873 echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876fi
076e5443 2877rm -f conftest.err conftest.$ac_objext
42fcd7bb
AJ
2878done
2879rm -f conftest.$ac_ext conftest.$ac_objext
2880CC=$ac_save_CC
2881
2882fi
2883
2884case "x$ac_cv_prog_cc_stdc" in
2885 x|xno)
2886 echo "$as_me:$LINENO: result: none needed" >&5
2887echo "${ECHO_T}none needed" >&6 ;;
2888 *)
2889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2890echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2891 CC="$CC $ac_cv_prog_cc_stdc" ;;
2892esac
2893
2894# Some people use a C++ compiler to compile C. Since we use `exit',
2895# in C++ we need to declare it. In case someone uses the same compiler
2896# for both compiling C and C++ we need to have the C++ compiler decide
2897# the declaration of exit, since it's the most demanding environment.
2898cat >conftest.$ac_ext <<_ACEOF
2899#ifndef __cplusplus
2900 choke me
2901#endif
2902_ACEOF
2903rm -f conftest.$ac_objext
2904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 2905 (eval $ac_compile) 2>conftest.er1
42fcd7bb 2906 ac_status=$?
076e5443
PB
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
42fcd7bb
AJ
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
66a5d3b1
FCE
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
076e5443
PB
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 for ac_declaration in \
076e5443 2926 '' \
42fcd7bb
AJ
2927 'extern "C" void std::exit (int) throw (); using std::exit;' \
2928 'extern "C" void std::exit (int); using std::exit;' \
2929 'extern "C" void exit (int) throw ();' \
2930 'extern "C" void exit (int);' \
2931 'void exit (int);'
2932do
2933 cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h. */
7954e85c 2939$ac_declaration
076e5443 2940#include <stdlib.h>
42fcd7bb
AJ
2941int
2942main ()
2943{
2944exit (42);
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 2951 (eval $ac_compile) 2>conftest.er1
42fcd7bb 2952 ac_status=$?
076e5443
PB
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
42fcd7bb
AJ
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
66a5d3b1
FCE
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
076e5443
PB
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972else
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976continue
2977fi
076e5443 2978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
2979 cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h. */
2985$ac_declaration
2986int
2987main ()
2988{
2989exit (42);
2990 ;
2991 return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext
2995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 2996 (eval $ac_compile) 2>conftest.er1
42fcd7bb 2997 ac_status=$?
076e5443
PB
2998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
42fcd7bb
AJ
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
66a5d3b1
FCE
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
076e5443
PB
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 break
3017else
3018 echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021fi
076e5443 3022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3023done
3024rm -f conftest*
3025if test -n "$ac_declaration"; then
3026 echo '#ifdef __cplusplus' >>confdefs.h
3027 echo $ac_declaration >>confdefs.h
3028 echo '#endif' >>confdefs.h
3029fi
3030
3031else
3032 echo "$as_me: failed program was:" >&5
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
3035fi
076e5443 3036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042DEPDIR="${am__leading_dot}deps"
3043
3044 ac_config_commands="$ac_config_commands depfiles"
3045
3046
3047am_make=${MAKE-make}
3048cat > confinc << 'END'
3049am__doit:
3050 @echo done
3051.PHONY: am__doit
3052END
3053# If we don't find an include directive, just comment out the code.
3054echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3055echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3056am__include="#"
3057am__quote=
3058_am_result=none
3059# First try GNU make style include.
3060echo "include confinc" > confmf
3061# We grep out `Entering directory' and `Leaving directory'
3062# messages which can occur if `w' ends up in MAKEFLAGS.
3063# In particular we don't look at `^make:' because GNU make might
3064# be invoked under some other name (usually "gmake"), in which
3065# case it prints its new name instead of `make'.
3066if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3067 am__include=include
3068 am__quote=
3069 _am_result=GNU
3070fi
3071# Now try BSD make style include.
3072if test "$am__include" = "#"; then
3073 echo '.include "confinc"' > confmf
3074 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3075 am__include=.include
3076 am__quote="\""
3077 _am_result=BSD
3078 fi
3079fi
3080
3081
3082echo "$as_me:$LINENO: result: $_am_result" >&5
3083echo "${ECHO_T}$_am_result" >&6
3084rm -f confinc confmf
3085
3086# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3087if test "${enable_dependency_tracking+set}" = set; then
3088 enableval="$enable_dependency_tracking"
3089
3090fi;
3091if test "x$enable_dependency_tracking" != xno; then
3092 am_depcomp="$ac_aux_dir/depcomp"
3093 AMDEPBACKSLASH='\'
3094fi
3095
3096
3097if test "x$enable_dependency_tracking" != xno; then
3098 AMDEP_TRUE=
3099 AMDEP_FALSE='#'
3100else
3101 AMDEP_TRUE='#'
3102 AMDEP_FALSE=
3103fi
3104
3105
3106
3107
3108depcc="$CC" am_compiler_list=
3109
3110echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3111echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3112if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3116 # We make a subdir and do the tests there. Otherwise we can end up
3117 # making bogus files that we don't know about and never remove. For
3118 # instance it was reported that on HP-UX the gcc test will end up
3119 # making a dummy file named `D' -- because `-MD' means `put the output
3120 # in D'.
3121 mkdir conftest.dir
3122 # Copy depcomp to subdir because otherwise we won't find it if we're
3123 # using a relative directory.
3124 cp "$am_depcomp" conftest.dir
3125 cd conftest.dir
3126 # We will build objects and dependencies in a subdirectory because
3127 # it helps to detect inapplicable dependency modes. For instance
3128 # both Tru64's cc and ICC support -MD to output dependencies as a
3129 # side effect of compilation, but ICC will put the dependencies in
3130 # the current directory while Tru64 will put them in the object
3131 # directory.
3132 mkdir sub
3133
3134 am_cv_CC_dependencies_compiler_type=none
3135 if test "$am_compiler_list" = ""; then
3136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3137 fi
3138 for depmode in $am_compiler_list; do
3139 # Setup a source with many dependencies, because some compilers
3140 # like to wrap large dependency lists on column 80 (with \), and
3141 # we should not choose a depcomp mode which is confused by this.
3142 #
3143 # We need to recreate these files for each test, as the compiler may
3144 # overwrite some of them when testing with obscure command lines.
3145 # This happens at least with the AIX C compiler.
3146 : > sub/conftest.c
3147 for i in 1 2 3 4 5 6; do
3148 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3149 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3150 # Solaris 8's {/usr,}/bin/sh.
3151 touch sub/conftst$i.h
42fcd7bb
AJ
3152 done
3153 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3154
3155 case $depmode in
3156 nosideeffect)
3157 # after this tag, mechanisms are not by side-effect, so they'll
3158 # only be used when explicitly requested
3159 if test "x$enable_dependency_tracking" = xyes; then
3160 continue
3161 else
3162 break
3163 fi
3164 ;;
3165 none) break ;;
3166 esac
3167 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3168 # mode. It turns out that the SunPro C++ compiler does not properly
3169 # handle `-M -o', and we need to detect this.
3170 if depmode=$depmode \
3171 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3172 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3173 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3174 >/dev/null 2>conftest.err &&
3175 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3176 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3177 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3178 # icc doesn't choke on unknown options, it will just issue warnings
076e5443
PB
3179 # or remarks (even with -Werror). So we grep stderr for any message
3180 # that says an option was ignored or not supported.
3181 # When given -MP, icc 7.0 and 7.1 complain thusly:
3182 # icc: Command line warning: ignoring option '-M'; no argument required
3183 # The diagnosis changed in icc 8.0:
3184 # icc: Command line remark: option '-MP' not supported
3185 if (grep 'ignoring option' conftest.err ||
3186 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
42fcd7bb
AJ
3187 am_cv_CC_dependencies_compiler_type=$depmode
3188 break
3189 fi
3190 fi
3191 done
3192
3193 cd ..
3194 rm -rf conftest.dir
3195else
3196 am_cv_CC_dependencies_compiler_type=none
3197fi
3198
3199fi
3200echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3201echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3202CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3203
3204
3205
3206if
3207 test "x$enable_dependency_tracking" != xno \
3208 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3209 am__fastdepCC_TRUE=
3210 am__fastdepCC_FALSE='#'
3211else
3212 am__fastdepCC_TRUE='#'
3213 am__fastdepCC_FALSE=
3214fi
3215
3216
3217
3218
3219
6de9cd9a
DN
3220
3221if test "x$GCC" != "xyes"; then
42fcd7bb
AJ
3222 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3223echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3224 { (exit 1); exit 1; }; }
6de9cd9a 3225fi
42fcd7bb
AJ
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6de9cd9a
DN
3233# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then
3235 CPP=
3236fi
3237if test -z "$CPP"; then
42fcd7bb
AJ
3238 if test "${ac_cv_prog_CPP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3240else
42fcd7bb
AJ
3241 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do
3244 ac_preproc_ok=false
3245for ac_c_preproc_warn_flag in '' yes
3246do
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
6de9cd9a 3251 # On the NeXT, cc -E runs the code through the compiler's parser,
42fcd7bb
AJ
3252 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#ifdef __STDC__
3260# include <limits.h>
3261#else
3262# include <assert.h>
3263#endif
076e5443 3264 Syntax error
42fcd7bb
AJ
3265_ACEOF
3266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 3276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
3277 else
3278 ac_cpp_err=
3279 fi
6de9cd9a 3280else
42fcd7bb
AJ
3281 ac_cpp_err=yes
3282fi
3283if test -z "$ac_cpp_err"; then
6de9cd9a
DN
3284 :
3285else
42fcd7bb
AJ
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 # Broken: fails on valid input.
3290continue
3291fi
3292rm -f conftest.err conftest.$ac_ext
3293
3294 # OK, works on sane cases. Now check whether non-existent headers
3295 # can be detected and how.
3296 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302#include <ac_nonexistent.h>
3303_ACEOF
3304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
3315 else
3316 ac_cpp_err=
3317 fi
6de9cd9a 3318else
42fcd7bb 3319 ac_cpp_err=yes
6de9cd9a 3320fi
42fcd7bb
AJ
3321if test -z "$ac_cpp_err"; then
3322 # Broken: success on invalid input.
3323continue
3324else
3325 echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 # Passes both tests.
3329ac_preproc_ok=:
3330break
6de9cd9a 3331fi
42fcd7bb
AJ
3332rm -f conftest.err conftest.$ac_ext
3333
3334done
3335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3336rm -f conftest.err conftest.$ac_ext
3337if $ac_preproc_ok; then
3338 break
6de9cd9a 3339fi
42fcd7bb
AJ
3340
3341 done
3342 ac_cv_prog_CPP=$CPP
3343
3344fi
3345 CPP=$ac_cv_prog_CPP
3346else
3347 ac_cv_prog_CPP=$CPP
3348fi
3349echo "$as_me:$LINENO: result: $CPP" >&5
3350echo "${ECHO_T}$CPP" >&6
3351ac_preproc_ok=false
3352for ac_c_preproc_warn_flag in '' yes
3353do
3354 # Use a header file that comes with gcc, so configuring glibc
3355 # with a fresh cross-compiler works.
3356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357 # <limits.h> exists even on freestanding compilers.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp. "Syntax error" is here to catch this case.
3360 cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#ifdef __STDC__
3367# include <limits.h>
3368#else
3369# include <assert.h>
3370#endif
076e5443 3371 Syntax error
42fcd7bb
AJ
3372_ACEOF
3373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 3383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
3384 else
3385 ac_cpp_err=
3386 fi
3387else
3388 ac_cpp_err=yes
3389fi
3390if test -z "$ac_cpp_err"; then
3391 :
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 # Broken: fails on valid input.
3397continue
3398fi
3399rm -f conftest.err conftest.$ac_ext
3400
3401 # OK, works on sane cases. Now check whether non-existent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409#include <ac_nonexistent.h>
3410_ACEOF
3411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
3422 else
3423 ac_cpp_err=
3424 fi
3425else
3426 ac_cpp_err=yes
3427fi
3428if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3430continue
3431else
3432 echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 # Passes both tests.
3436ac_preproc_ok=:
3437break
6de9cd9a 3438fi
42fcd7bb
AJ
3439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
3444if $ac_preproc_ok; then
3445 :
6de9cd9a 3446else
42fcd7bb
AJ
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
6de9cd9a 3452fi
42fcd7bb
AJ
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
3459
3460
3461# Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3462# symbol interposition. We disable shared libraries for these.
42fcd7bb
AJ
3463echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3464echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3465
3466cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
6de9cd9a
DN
3472
3473#define _GNU_SOURCE
3474#include <dlfcn.h>
3475
42fcd7bb
AJ
3476int
3477main ()
3478{
6de9cd9a 3479void *foo = dlsym (RTLD_NEXT, "exit");
42fcd7bb
AJ
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 3486 (eval $ac_compile) 2>conftest.er1
42fcd7bb 3487 ac_status=$?
076e5443
PB
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
42fcd7bb
AJ
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
66a5d3b1
FCE
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
076e5443
PB
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507echo "${ECHO_T}yes" >&6
6de9cd9a 3508else
42fcd7bb
AJ
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6
6de9cd9a
DN
3514enable_shared=no
3515fi
076e5443 3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3517
3518
3519echo "$as_me:$LINENO: checking for egrep" >&5
3520echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3521if test "${ac_cv_prog_egrep+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3525 then ac_cv_prog_egrep='grep -E'
3526 else ac_cv_prog_egrep='egrep'
3527 fi
3528fi
3529echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3530echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3531 EGREP=$ac_cv_prog_egrep
3532
3533
3534echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3535echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3536if test "${ac_cv_header_stdc+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545#include <stdlib.h>
3546#include <stdarg.h>
3547#include <string.h>
3548#include <float.h>
3549
3550int
3551main ()
3552{
3553
3554 ;
3555 return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext
3559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 3560 (eval $ac_compile) 2>conftest.er1
42fcd7bb 3561 ac_status=$?
076e5443
PB
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
42fcd7bb
AJ
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
66a5d3b1
FCE
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
076e5443
PB
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_header_stdc=yes
3581else
3582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585ac_cv_header_stdc=no
3586fi
076e5443 3587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3588
3589if test $ac_cv_header_stdc = yes; then
3590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591 cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
3597#include <string.h>
3598
3599_ACEOF
3600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "memchr" >/dev/null 2>&1; then
3602 :
3603else
3604 ac_cv_header_stdc=no
3605fi
6de9cd9a
DN
3606rm -f conftest*
3607
42fcd7bb
AJ
3608fi
3609
3610if test $ac_cv_header_stdc = yes; then
3611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#include <stdlib.h>
3619
3620_ACEOF
3621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 $EGREP "free" >/dev/null 2>&1; then
3623 :
6de9cd9a 3624else
42fcd7bb 3625 ac_cv_header_stdc=no
6de9cd9a
DN
3626fi
3627rm -f conftest*
42fcd7bb 3628
6de9cd9a 3629fi
42fcd7bb
AJ
3630
3631if test $ac_cv_header_stdc = yes; then
3632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3633 if test "$cross_compiling" = yes; then
3634 :
3635else
3636 cat >conftest.$ac_ext <<_ACEOF
3637/* confdefs.h. */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h. */
3642#include <ctype.h>
3643#if ((' ' & 0x0FF) == 0x020)
3644# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3645# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3646#else
3647# define ISLOWER(c) \
076e5443
PB
3648 (('a' <= (c) && (c) <= 'i') \
3649 || ('j' <= (c) && (c) <= 'r') \
3650 || ('s' <= (c) && (c) <= 'z'))
42fcd7bb
AJ
3651# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3652#endif
3653
3654#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3655int
3656main ()
3657{
3658 int i;
3659 for (i = 0; i < 256; i++)
3660 if (XOR (islower (i), ISLOWER (i))
076e5443 3661 || toupper (i) != TOUPPER (i))
42fcd7bb
AJ
3662 exit(2);
3663 exit (0);
3664}
3665_ACEOF
3666rm -f conftest$ac_exeext
3667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668 (eval $ac_link) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 :
3678else
3679 echo "$as_me: program exited with status $ac_status" >&5
3680echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683( exit $ac_status )
3684ac_cv_header_stdc=no
3685fi
076e5443 3686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3687fi
3688fi
3689fi
3690echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3691echo "${ECHO_T}$ac_cv_header_stdc" >&6
3692if test $ac_cv_header_stdc = yes; then
3693
3694cat >>confdefs.h <<\_ACEOF
3695#define STDC_HEADERS 1
3696_ACEOF
3697
3698fi
3699
3700# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
076e5443 3711 inttypes.h stdint.h unistd.h
42fcd7bb
AJ
3712do
3713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714echo "$as_me:$LINENO: checking for $ac_header" >&5
3715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3716if eval "test \"\${$as_ac_Header+set}\" = set"; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719 cat >conftest.$ac_ext <<_ACEOF
3720/* confdefs.h. */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h. */
3725$ac_includes_default
3726
3727#include <$ac_header>
3728_ACEOF
3729rm -f conftest.$ac_objext
3730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 3731 (eval $ac_compile) 2>conftest.er1
42fcd7bb 3732 ac_status=$?
076e5443
PB
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
42fcd7bb
AJ
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
66a5d3b1
FCE
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
076e5443
PB
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 eval "$as_ac_Header=yes"
3752else
3753 echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756eval "$as_ac_Header=no"
3757fi
076e5443 3758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3759fi
3760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3762if test `eval echo '${'$as_ac_Header'}'` = yes; then
3763 cat >>confdefs.h <<_ACEOF
3764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3765_ACEOF
3766
3767fi
3768
3769done
3770
3771
3772
3773
3774
3775
b9d71ce3
PB
3776
3777
3778
3779
3780
7954e85c 3781
dc88d66f 3782
962fe395 3783
66a5d3b1 3784
07c2f075
FCE
3785
3786
3787
3788
ddfabf89 3789
66a5d3b1
FCE
3790
3791for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
73407061 3792 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
ddfabf89 3793 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
42fcd7bb
AJ
3794do
3795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo "$as_me:$LINENO: checking for $ac_header" >&5
3798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3799if eval "test \"\${$as_ac_Header+set}\" = set"; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801fi
3802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3804else
3805 # Is the header compilable?
3806echo "$as_me:$LINENO: checking $ac_header usability" >&5
3807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3808cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
3814$ac_includes_default
3815#include <$ac_header>
3816_ACEOF
3817rm -f conftest.$ac_objext
3818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 3819 (eval $ac_compile) 2>conftest.er1
42fcd7bb 3820 ac_status=$?
076e5443
PB
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
42fcd7bb
AJ
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
66a5d3b1
FCE
3826 { ac_try='test -z "$ac_c_werror_flag"
3827 || test ! -s conftest.err'
076e5443
PB
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_header_compiler=yes
3840else
3841 echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844ac_header_compiler=no
3845fi
076e5443 3846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
3847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3848echo "${ECHO_T}$ac_header_compiler" >&6
3849
3850# Is the header present?
3851echo "$as_me:$LINENO: checking $ac_header presence" >&5
3852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3853cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#include <$ac_header>
3860_ACEOF
3861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 3871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
3872 else
3873 ac_cpp_err=
3874 fi
3875else
3876 ac_cpp_err=yes
3877fi
3878if test -z "$ac_cpp_err"; then
3879 ac_header_preproc=yes
6de9cd9a 3880else
42fcd7bb
AJ
3881 echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_header_preproc=no
3885fi
3886rm -f conftest.err conftest.$ac_ext
3887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3888echo "${ECHO_T}$ac_header_preproc" >&6
3889
3890# So? What about this header?
076e5443
PB
3891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3892 yes:no: )
42fcd7bb
AJ
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
076e5443
PB
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3897 ac_header_preproc=yes
42fcd7bb 3898 ;;
076e5443 3899 no:yes:* )
42fcd7bb
AJ
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
076e5443
PB
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42fcd7bb
AJ
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
076e5443
PB
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42fcd7bb
AJ
3912 (
3913 cat <<\_ASBOX
076e5443
PB
3914## ------------------------------------- ##
3915## Report this to the libmudflap lists. ##
3916## ------------------------------------- ##
42fcd7bb
AJ
3917_ASBOX
3918 ) |
3919 sed "s/^/$as_me: WARNING: /" >&2
3920 ;;
3921esac
3922echo "$as_me:$LINENO: checking for $ac_header" >&5
3923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924if eval "test \"\${$as_ac_Header+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
076e5443 3927 eval "$as_ac_Header=\$ac_header_preproc"
42fcd7bb
AJ
3928fi
3929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3931
6de9cd9a 3932fi
42fcd7bb
AJ
3933if test `eval echo '${'$as_ac_Header'}'` = yes; then
3934 cat >>confdefs.h <<_ACEOF
3935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3936_ACEOF
3937
3938fi
3939
6de9cd9a
DN
3940done
3941
42fcd7bb
AJ
3942
3943
3944
3945
07c2f075 3946
6de9cd9a
DN
3947for ac_func in backtrace backtrace_symbols gettimeofday signal
3948do
42fcd7bb
AJ
3949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3950echo "$as_me:$LINENO: checking for $ac_func" >&5
3951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3952if eval "test \"\${$as_ac_var+set}\" = set"; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955 cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
076e5443
PB
3961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3963#define $ac_func innocuous_$ac_func
3964
6de9cd9a 3965/* System header to define __stub macros and hopefully few prototypes,
42fcd7bb
AJ
3966 which can conflict with char $ac_func (); below.
3967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 <limits.h> exists even on freestanding compilers. */
076e5443 3969
42fcd7bb
AJ
3970#ifdef __STDC__
3971# include <limits.h>
3972#else
3973# include <assert.h>
3974#endif
076e5443
PB
3975
3976#undef $ac_func
3977
42fcd7bb
AJ
3978/* Override any gcc2 internal prototype to avoid an error. */
3979#ifdef __cplusplus
3980extern "C"
3981{
3982#endif
3983/* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985char $ac_func ();
6de9cd9a
DN
3986/* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3990choke me
3991#else
42fcd7bb
AJ
3992char (*f) () = $ac_func;
3993#endif
3994#ifdef __cplusplus
3995}
6de9cd9a
DN
3996#endif
3997
42fcd7bb
AJ
3998int
3999main ()
4000{
4001return f != $ac_func;
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 4008 (eval $ac_link) 2>conftest.er1
42fcd7bb 4009 ac_status=$?
076e5443
PB
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
42fcd7bb
AJ
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
66a5d3b1
FCE
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
076e5443
PB
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest$ac_exeext'
42fcd7bb
AJ
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 eval "$as_ac_var=yes"
6de9cd9a 4029else
42fcd7bb
AJ
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033eval "$as_ac_var=no"
6de9cd9a 4034fi
076e5443
PB
4035rm -f conftest.err conftest.$ac_objext \
4036 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 4037fi
42fcd7bb
AJ
4038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4040if test `eval echo '${'$as_ac_var'}'` = yes; then
4041 cat >>confdefs.h <<_ACEOF
4042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4043_ACEOF
6de9cd9a 4044
6de9cd9a
DN
4045fi
4046done
4047
4048
42fcd7bb
AJ
4049
4050
4051
ddfabf89
FCE
4052
4053for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4054do
4055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4056echo "$as_me:$LINENO: checking for $ac_func" >&5
4057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4058if eval "test \"\${$as_ac_var+set}\" = set"; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
4067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4069#define $ac_func innocuous_$ac_func
4070
4071/* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char $ac_func (); below.
4073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 <limits.h> exists even on freestanding compilers. */
4075
4076#ifdef __STDC__
4077# include <limits.h>
4078#else
4079# include <assert.h>
4080#endif
4081
4082#undef $ac_func
4083
4084/* Override any gcc2 internal prototype to avoid an error. */
4085#ifdef __cplusplus
4086extern "C"
4087{
4088#endif
4089/* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4091char $ac_func ();
4092/* The GNU C library defines this for functions which it implements
4093 to always fail with ENOSYS. Some functions are actually named
4094 something starting with __ and the normal name is an alias. */
4095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4096choke me
4097#else
4098char (*f) () = $ac_func;
4099#endif
4100#ifdef __cplusplus
4101}
4102#endif
4103
4104int
4105main ()
4106{
4107return f != $ac_func;
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext conftest$ac_exeext
4113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag"
4122 || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest$ac_exeext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 eval "$as_ac_var=yes"
4135else
4136 echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139eval "$as_ac_var=no"
4140fi
4141rm -f conftest.err conftest.$ac_objext \
4142 conftest$ac_exeext conftest.$ac_ext
4143fi
4144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4146if test `eval echo '${'$as_ac_var'}'` = yes; then
4147 cat >>confdefs.h <<_ACEOF
4148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4149_ACEOF
4150
4151fi
4152done
4153
4154
4155
4156
4157
4158for ac_func in setbuf setbuffer setlinebuf setvbuf
42fcd7bb
AJ
4159do
4160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4161echo "$as_me:$LINENO: checking for $ac_func" >&5
4162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4163if eval "test \"\${$as_ac_var+set}\" = set"; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166 cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
076e5443
PB
4172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4174#define $ac_func innocuous_$ac_func
4175
42fcd7bb
AJ
4176/* System header to define __stub macros and hopefully few prototypes,
4177 which can conflict with char $ac_func (); below.
4178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 <limits.h> exists even on freestanding compilers. */
076e5443 4180
42fcd7bb
AJ
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
076e5443
PB
4186
4187#undef $ac_func
4188
6de9cd9a 4189/* Override any gcc2 internal prototype to avoid an error. */
42fcd7bb
AJ
4190#ifdef __cplusplus
4191extern "C"
4192{
4193#endif
6de9cd9a 4194/* We use char because int might match the return type of a gcc2
42fcd7bb
AJ
4195 builtin and then its argument prototype would still apply. */
4196char $ac_func ();
6de9cd9a
DN
4197/* The GNU C library defines this for functions which it implements
4198 to always fail with ENOSYS. Some functions are actually named
4199 something starting with __ and the normal name is an alias. */
4200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4201choke me
4202#else
42fcd7bb
AJ
4203char (*f) () = $ac_func;
4204#endif
4205#ifdef __cplusplus
4206}
6de9cd9a
DN
4207#endif
4208
42fcd7bb
AJ
4209int
4210main ()
4211{
4212return f != $ac_func;
4213 ;
4214 return 0;
4215}
4216_ACEOF
4217rm -f conftest.$ac_objext conftest$ac_exeext
4218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 4219 (eval $ac_link) 2>conftest.er1
42fcd7bb 4220 ac_status=$?
076e5443
PB
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
42fcd7bb
AJ
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
66a5d3b1
FCE
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
076e5443
PB
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
42fcd7bb
AJ
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954e85c
FCE
4238 (exit $ac_status); }; }; then
4239 eval "$as_ac_var=yes"
4240else
4241 echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
4244eval "$as_ac_var=no"
4245fi
076e5443
PB
4246rm -f conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
7954e85c
FCE
4248fi
4249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4251if test `eval echo '${'$as_ac_var'}'` = yes; then
4252 cat >>confdefs.h <<_ACEOF
4253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4254_ACEOF
4255
4256fi
4257done
4258
4259
4260
4261
4262
4263
7954e85c
FCE
4264for ac_func in strnlen memrchr strncpy memmem sethostname
4265do
4266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4267echo "$as_me:$LINENO: checking for $ac_func" >&5
4268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4269if eval "test \"\${$as_ac_var+set}\" = set"; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272 cat >conftest.$ac_ext <<_ACEOF
7954e85c
FCE
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
076e5443
PB
4278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4280#define $ac_func innocuous_$ac_func
4281
7954e85c
FCE
4282/* System header to define __stub macros and hopefully few prototypes,
4283 which can conflict with char $ac_func (); below.
4284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 <limits.h> exists even on freestanding compilers. */
076e5443 4286
7954e85c
FCE
4287#ifdef __STDC__
4288# include <limits.h>
4289#else
4290# include <assert.h>
4291#endif
076e5443
PB
4292
4293#undef $ac_func
4294
7954e85c
FCE
4295/* Override any gcc2 internal prototype to avoid an error. */
4296#ifdef __cplusplus
4297extern "C"
4298{
4299#endif
4300/* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4302char $ac_func ();
4303/* The GNU C library defines this for functions which it implements
4304 to always fail with ENOSYS. Some functions are actually named
4305 something starting with __ and the normal name is an alias. */
4306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4307choke me
4308#else
4309char (*f) () = $ac_func;
4310#endif
4311#ifdef __cplusplus
4312}
4313#endif
4314
4315int
4316main ()
4317{
4318return f != $ac_func;
4319 ;
4320 return 0;
4321}
4322_ACEOF
4323rm -f conftest.$ac_objext conftest$ac_exeext
4324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 4325 (eval $ac_link) 2>conftest.er1
7954e85c 4326 ac_status=$?
076e5443
PB
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
7954e85c
FCE
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
66a5d3b1
FCE
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
076e5443
PB
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest$ac_exeext'
42fcd7bb
AJ
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 eval "$as_ac_var=yes"
6de9cd9a 4346else
42fcd7bb
AJ
4347 echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350eval "$as_ac_var=no"
6de9cd9a 4351fi
076e5443
PB
4352rm -f conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 4354fi
42fcd7bb
AJ
4355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4357if test `eval echo '${'$as_ac_var'}'` = yes; then
4358 cat >>confdefs.h <<_ACEOF
4359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4360_ACEOF
6de9cd9a 4361
6de9cd9a
DN
4362fi
4363done
4364
4365
dc88d66f
FCE
4366
4367
dc88d66f
FCE
4368for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4369do
4370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4371echo "$as_me:$LINENO: checking for $ac_func" >&5
4372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4373if eval "test \"\${$as_ac_var+set}\" = set"; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376 cat >conftest.$ac_ext <<_ACEOF
dc88d66f
FCE
4377/* confdefs.h. */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h. */
076e5443
PB
4382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4384#define $ac_func innocuous_$ac_func
4385
dc88d66f
FCE
4386/* System header to define __stub macros and hopefully few prototypes,
4387 which can conflict with char $ac_func (); below.
4388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 <limits.h> exists even on freestanding compilers. */
076e5443 4390
dc88d66f
FCE
4391#ifdef __STDC__
4392# include <limits.h>
4393#else
4394# include <assert.h>
4395#endif
076e5443
PB
4396
4397#undef $ac_func
4398
dc88d66f
FCE
4399/* Override any gcc2 internal prototype to avoid an error. */
4400#ifdef __cplusplus
4401extern "C"
4402{
4403#endif
4404/* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4406char $ac_func ();
4407/* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4411choke me
4412#else
4413char (*f) () = $ac_func;
4414#endif
4415#ifdef __cplusplus
4416}
4417#endif
4418
4419int
4420main ()
4421{
4422return f != $ac_func;
4423 ;
4424 return 0;
4425}
4426_ACEOF
4427rm -f conftest.$ac_objext conftest$ac_exeext
4428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 4429 (eval $ac_link) 2>conftest.er1
dc88d66f 4430 ac_status=$?
076e5443
PB
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
dc88d66f
FCE
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
66a5d3b1
FCE
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 eval "$as_ac_var=yes"
4450else
4451 echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454eval "$as_ac_var=no"
4455fi
4456rm -f conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
4458fi
4459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4461if test `eval echo '${'$as_ac_var'}'` = yes; then
4462 cat >>confdefs.h <<_ACEOF
4463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4464_ACEOF
4465
4466fi
4467done
4468
4469
4470
4471
4472
4473
4474
4475
4476
66a5d3b1
FCE
4477for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4478do
4479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4480echo "$as_me:$LINENO: checking for $ac_func" >&5
4481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4482if eval "test \"\${$as_ac_var+set}\" = set"; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485 cat >conftest.$ac_ext <<_ACEOF
4486/* confdefs.h. */
4487_ACEOF
4488cat confdefs.h >>conftest.$ac_ext
4489cat >>conftest.$ac_ext <<_ACEOF
4490/* end confdefs.h. */
4491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4493#define $ac_func innocuous_$ac_func
4494
4495/* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char $ac_func (); below.
4497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4498 <limits.h> exists even on freestanding compilers. */
4499
4500#ifdef __STDC__
4501# include <limits.h>
4502#else
4503# include <assert.h>
4504#endif
4505
4506#undef $ac_func
4507
4508/* Override any gcc2 internal prototype to avoid an error. */
4509#ifdef __cplusplus
4510extern "C"
4511{
4512#endif
4513/* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4515char $ac_func ();
4516/* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520choke me
4521#else
4522char (*f) () = $ac_func;
4523#endif
4524#ifdef __cplusplus
4525}
4526#endif
4527
4528int
4529main ()
4530{
4531return f != $ac_func;
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext conftest$ac_exeext
4537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_var=yes"
4559else
4560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563eval "$as_ac_var=no"
4564fi
4565rm -f conftest.err conftest.$ac_objext \
4566 conftest$ac_exeext conftest.$ac_ext
4567fi
4568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4570if test `eval echo '${'$as_ac_var'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4573_ACEOF
4574
4575fi
4576done
4577
4578
4579
4580
4581
4582
4583for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4584do
4585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586echo "$as_me:$LINENO: checking for $ac_func" >&5
4587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4588if eval "test \"\${$as_ac_var+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4599#define $ac_func innocuous_$ac_func
4600
4601/* System header to define __stub macros and hopefully few prototypes,
4602 which can conflict with char $ac_func (); below.
4603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604 <limits.h> exists even on freestanding compilers. */
4605
4606#ifdef __STDC__
4607# include <limits.h>
4608#else
4609# include <assert.h>
4610#endif
4611
4612#undef $ac_func
4613
4614/* Override any gcc2 internal prototype to avoid an error. */
4615#ifdef __cplusplus
4616extern "C"
4617{
4618#endif
4619/* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621char $ac_func ();
4622/* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626choke me
4627#else
4628char (*f) () = $ac_func;
4629#endif
4630#ifdef __cplusplus
4631}
4632#endif
4633
4634int
4635main ()
4636{
4637return f != $ac_func;
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642rm -f conftest.$ac_objext conftest$ac_exeext
4643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -z "$ac_c_werror_flag"
4652 || test ! -s conftest.err'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 eval "$as_ac_var=yes"
4665else
4666 echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669eval "$as_ac_var=no"
4670fi
4671rm -f conftest.err conftest.$ac_objext \
4672 conftest$ac_exeext conftest.$ac_ext
4673fi
4674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4676if test `eval echo '${'$as_ac_var'}'` = yes; then
4677 cat >>confdefs.h <<_ACEOF
4678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4679_ACEOF
4680
4681fi
4682done
4683
4684
4685
4686
4687
4688
4689for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4690do
4691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4692echo "$as_me:$LINENO: checking for $ac_func" >&5
4693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4694if eval "test \"\${$as_ac_var+set}\" = set"; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697 cat >conftest.$ac_ext <<_ACEOF
4698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4705#define $ac_func innocuous_$ac_func
4706
4707/* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char $ac_func (); below.
4709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 <limits.h> exists even on freestanding compilers. */
4711
4712#ifdef __STDC__
4713# include <limits.h>
4714#else
4715# include <assert.h>
4716#endif
4717
4718#undef $ac_func
4719
4720/* Override any gcc2 internal prototype to avoid an error. */
4721#ifdef __cplusplus
4722extern "C"
4723{
4724#endif
4725/* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4727char $ac_func ();
4728/* The GNU C library defines this for functions which it implements
4729 to always fail with ENOSYS. Some functions are actually named
4730 something starting with __ and the normal name is an alias. */
4731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4732choke me
4733#else
4734char (*f) () = $ac_func;
4735#endif
4736#ifdef __cplusplus
4737}
4738#endif
4739
4740int
4741main ()
4742{
4743return f != $ac_func;
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748rm -f conftest.$ac_objext conftest$ac_exeext
4749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750 (eval $ac_link) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_c_werror_flag"
4758 || test ! -s conftest.err'
076e5443
PB
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest$ac_exeext'
dc88d66f
FCE
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 eval "$as_ac_var=yes"
4771else
4772 echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775eval "$as_ac_var=no"
4776fi
076e5443
PB
4777rm -f conftest.err conftest.$ac_objext \
4778 conftest$ac_exeext conftest.$ac_ext
dc88d66f
FCE
4779fi
4780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4782if test `eval echo '${'$as_ac_var'}'` = yes; then
4783 cat >>confdefs.h <<_ACEOF
4784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4785_ACEOF
4786
4787fi
4788done
4789
4790
07c2f075
FCE
4791
4792
4793for ac_func in getprotoent getprotobyname getprotobynumber
4794do
4795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4796echo "$as_me:$LINENO: checking for $ac_func" >&5
4797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4798if eval "test \"\${$as_ac_var+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801 cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
4807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4809#define $ac_func innocuous_$ac_func
4810
4811/* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func (); below.
4813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 <limits.h> exists even on freestanding compilers. */
4815
4816#ifdef __STDC__
4817# include <limits.h>
4818#else
4819# include <assert.h>
4820#endif
4821
4822#undef $ac_func
4823
4824/* Override any gcc2 internal prototype to avoid an error. */
4825#ifdef __cplusplus
4826extern "C"
4827{
4828#endif
4829/* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4831char $ac_func ();
4832/* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836choke me
4837#else
4838char (*f) () = $ac_func;
4839#endif
4840#ifdef __cplusplus
4841}
4842#endif
4843
4844int
4845main ()
4846{
4847return f != $ac_func;
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext conftest$ac_exeext
4853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest$ac_exeext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 eval "$as_ac_var=yes"
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879eval "$as_ac_var=no"
4880fi
4881rm -f conftest.err conftest.$ac_objext \
4882 conftest$ac_exeext conftest.$ac_ext
4883fi
4884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4886if test `eval echo '${'$as_ac_var'}'` = yes; then
4887 cat >>confdefs.h <<_ACEOF
4888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4889_ACEOF
4890
4891fi
4892done
4893
4894
4895
4896
4897for ac_func in getmntent setmntent addmntent
4898do
4899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4900echo "$as_me:$LINENO: checking for $ac_func" >&5
4901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_var+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4913#define $ac_func innocuous_$ac_func
4914
4915/* System header to define __stub macros and hopefully few prototypes,
4916 which can conflict with char $ac_func (); below.
4917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 <limits.h> exists even on freestanding compilers. */
4919
4920#ifdef __STDC__
4921# include <limits.h>
4922#else
4923# include <assert.h>
4924#endif
4925
4926#undef $ac_func
4927
4928/* Override any gcc2 internal prototype to avoid an error. */
4929#ifdef __cplusplus
4930extern "C"
4931{
4932#endif
4933/* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4935char $ac_func ();
4936/* The GNU C library defines this for functions which it implements
4937 to always fail with ENOSYS. Some functions are actually named
4938 something starting with __ and the normal name is an alias. */
4939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4940choke me
4941#else
4942char (*f) () = $ac_func;
4943#endif
4944#ifdef __cplusplus
4945}
4946#endif
4947
4948int
4949main ()
4950{
4951return f != $ac_func;
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext conftest$ac_exeext
4957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 eval "$as_ac_var=yes"
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983eval "$as_ac_var=no"
4984fi
4985rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
4987fi
4988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4990if test `eval echo '${'$as_ac_var'}'` = yes; then
4991 cat >>confdefs.h <<_ACEOF
4992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4993_ACEOF
4994
4995fi
4996done
4997
4998
ddfabf89
FCE
4999
5000
5001for ac_func in inet_ntoa mmap munmap
07c2f075
FCE
5002do
5003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5004echo "$as_me:$LINENO: checking for $ac_func" >&5
5005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5006if eval "test \"\${$as_ac_var+set}\" = set"; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5017#define $ac_func innocuous_$ac_func
5018
5019/* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func (); below.
5021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 <limits.h> exists even on freestanding compilers. */
5023
5024#ifdef __STDC__
5025# include <limits.h>
5026#else
5027# include <assert.h>
5028#endif
5029
5030#undef $ac_func
5031
5032/* Override any gcc2 internal prototype to avoid an error. */
5033#ifdef __cplusplus
5034extern "C"
5035{
5036#endif
5037/* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5039char $ac_func ();
5040/* The GNU C library defines this for functions which it implements
5041 to always fail with ENOSYS. Some functions are actually named
5042 something starting with __ and the normal name is an alias. */
5043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5044choke me
5045#else
5046char (*f) () = $ac_func;
5047#endif
5048#ifdef __cplusplus
5049}
5050#endif
5051
5052int
5053main ()
5054{
5055return f != $ac_func;
5056 ;
5057 return 0;
5058}
5059_ACEOF
5060rm -f conftest.$ac_objext conftest$ac_exeext
5061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 eval "$as_ac_var=yes"
5083else
5084 echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087eval "$as_ac_var=no"
5088fi
5089rm -f conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091fi
5092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5094if test `eval echo '${'$as_ac_var'}'` = yes; then
5095 cat >>confdefs.h <<_ACEOF
5096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5097_ACEOF
5098
5099fi
5100done
5101
5102
a548d7b7
FCE
5103for ac_func in __libc_freeres
5104do
5105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5106echo "$as_me:$LINENO: checking for $ac_func" >&5
5107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5108if eval "test \"\${$as_ac_var+set}\" = set"; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h. */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h. */
5117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5119#define $ac_func innocuous_$ac_func
5120
5121/* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func (); below.
5123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 <limits.h> exists even on freestanding compilers. */
5125
5126#ifdef __STDC__
5127# include <limits.h>
5128#else
5129# include <assert.h>
5130#endif
5131
5132#undef $ac_func
5133
5134/* Override any gcc2 internal prototype to avoid an error. */
5135#ifdef __cplusplus
5136extern "C"
5137{
5138#endif
5139/* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5141char $ac_func ();
5142/* The GNU C library defines this for functions which it implements
5143 to always fail with ENOSYS. Some functions are actually named
5144 something starting with __ and the normal name is an alias. */
5145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5146choke me
5147#else
5148char (*f) () = $ac_func;
5149#endif
5150#ifdef __cplusplus
5151}
5152#endif
5153
5154int
5155main ()
5156{
5157return f != $ac_func;
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162rm -f conftest.$ac_objext conftest$ac_exeext
5163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_c_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 eval "$as_ac_var=yes"
5185else
5186 echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189eval "$as_ac_var=no"
5190fi
5191rm -f conftest.err conftest.$ac_objext \
5192 conftest$ac_exeext conftest.$ac_ext
5193fi
5194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5195echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5196if test `eval echo '${'$as_ac_var'}'` = yes; then
5197 cat >>confdefs.h <<_ACEOF
5198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5199_ACEOF
5200
5201fi
5202done
5203
5204
42fcd7bb
AJ
5205cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
6de9cd9a
DN
5211#include <sys/types.h>
5212#include <sys/ipc.h>
5213#include <sys/sem.h>
42fcd7bb
AJ
5214int
5215main ()
5216{
6de9cd9a 5217union semun foo;
42fcd7bb
AJ
5218 ;
5219 return 0;
5220}
5221_ACEOF
5222rm -f conftest.$ac_objext
5223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 5224 (eval $ac_compile) 2>conftest.er1
42fcd7bb 5225 ac_status=$?
076e5443
PB
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
42fcd7bb
AJ
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
66a5d3b1
FCE
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
076e5443
PB
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
6de9cd9a
DN
5244 mf_have_semun=1
5245else
42fcd7bb
AJ
5246 echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249mf_have_semun=0
6de9cd9a 5250fi
076e5443 5251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
5252if test $mf_have_semun = 1
5253then
42fcd7bb
AJ
5254
5255cat >>confdefs.h <<\_ACEOF
6de9cd9a 5256#define HAVE_UNION_SEMUN 1
42fcd7bb 5257_ACEOF
6de9cd9a
DN
5258
5259fi
5260
5261
42fcd7bb
AJ
5262echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5263echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5264cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
6de9cd9a 5270#define _POSIX_PII_SOCKET
42fcd7bb 5271#include <sys/types.h>
6de9cd9a 5272#include <sys/socket.h>
42fcd7bb
AJ
5273int
5274main ()
5275{
6de9cd9a 5276socklen_t x = 5;
42fcd7bb
AJ
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 5283 (eval $ac_compile) 2>conftest.er1
42fcd7bb 5284 ac_status=$?
076e5443
PB
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
42fcd7bb
AJ
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
66a5d3b1
FCE
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
076e5443
PB
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303
5304cat >>confdefs.h <<\_ACEOF
6de9cd9a 5305#define HAVE_SOCKLEN_T 1
42fcd7bb 5306_ACEOF
6de9cd9a 5307
42fcd7bb
AJ
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
6de9cd9a 5310else
42fcd7bb
AJ
5311 echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
5314echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
6de9cd9a 5316fi
076e5443 5317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5318
1cf3d07d
SE
5319enable_dlopen=yes
5320
5321
5322
5323
5324
5325macro_version='2.1a'
5326macro_revision='1.2435'
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339ltmain="$ac_aux_dir/ltmain.sh"
5340
5341# Set options
5342
5343
5344enable_win32_dll=no
5345
6de9cd9a
DN
5346
5347# Check whether --enable-shared or --disable-shared was given.
5348if test "${enable_shared+set}" = set; then
5349 enableval="$enable_shared"
5350 p=${PACKAGE-default}
1cf3d07d
SE
5351 case $enableval in
5352 yes) enable_shared=yes ;;
5353 no) enable_shared=no ;;
5354 *)
5355 enable_shared=no
5356 # Look at the argument we got. We use all the common list separators.
5357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5358 for pkg in $enableval; do
5359 IFS="$lt_save_ifs"
5360 if test "X$pkg" = "X$p"; then
5361 enable_shared=yes
5362 fi
5363 done
5364 IFS="$lt_save_ifs"
5365 ;;
5366 esac
6de9cd9a
DN
5367else
5368 enable_shared=yes
42fcd7bb 5369fi;
1cf3d07d
SE
5370
5371
5372
5373
5374
5375
5376
5377
6de9cd9a
DN
5378# Check whether --enable-static or --disable-static was given.
5379if test "${enable_static+set}" = set; then
5380 enableval="$enable_static"
5381 p=${PACKAGE-default}
1cf3d07d
SE
5382 case $enableval in
5383 yes) enable_static=yes ;;
5384 no) enable_static=no ;;
5385 *)
5386 enable_static=no
5387 # Look at the argument we got. We use all the common list separators.
5388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5389 for pkg in $enableval; do
5390 IFS="$lt_save_ifs"
5391 if test "X$pkg" = "X$p"; then
5392 enable_static=yes
5393 fi
5394 done
5395 IFS="$lt_save_ifs"
5396 ;;
5397 esac
6de9cd9a
DN
5398else
5399 enable_static=yes
42fcd7bb 5400fi;
1cf3d07d
SE
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410# Check whether --with-pic or --without-pic was given.
5411if test "${with_pic+set}" = set; then
5412 withval="$with_pic"
5413 pic_mode="$withval"
5414else
5415 pic_mode=default
5416fi;
5417
5418test -z "$pic_mode" && pic_mode=default
5419
5420
5421
5422
5423
5424
5425
6de9cd9a
DN
5426# Check whether --enable-fast-install or --disable-fast-install was given.
5427if test "${enable_fast_install+set}" = set; then
5428 enableval="$enable_fast_install"
5429 p=${PACKAGE-default}
1cf3d07d
SE
5430 case $enableval in
5431 yes) enable_fast_install=yes ;;
5432 no) enable_fast_install=no ;;
5433 *)
5434 enable_fast_install=no
5435 # Look at the argument we got. We use all the common list separators.
5436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5437 for pkg in $enableval; do
5438 IFS="$lt_save_ifs"
5439 if test "X$pkg" = "X$p"; then
5440 enable_fast_install=yes
5441 fi
5442 done
5443 IFS="$lt_save_ifs"
5444 ;;
5445 esac
6de9cd9a
DN
5446else
5447 enable_fast_install=yes
42fcd7bb 5448fi;
6de9cd9a 5449
1cf3d07d
SE
5450
5451
5452
5453
5454
5455
5456
5457echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5458echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5459if test "${lt_cv_path_SED+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462 # Loop through the user's path and test for sed and gsed.
5463# Then use that list of sed's as ones to test for truncation.
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for lt_ac_prog in sed gsed; do
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5472 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5473 fi
5474 done
5475 done
5476done
5477IFS=$as_save_IFS
5478lt_ac_max=0
5479lt_ac_count=0
5480# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5481# along with /bin/sed that truncates output.
5482for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5483 test ! -f $lt_ac_sed && continue
5484 cat /dev/null > conftest.in
5485 lt_ac_count=0
5486 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5487 # Check for GNU sed and select it if it is found.
5488 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5489 lt_cv_path_SED=$lt_ac_sed
5490 break
5491 fi
5492 while true; do
5493 cat conftest.in conftest.in >conftest.tmp
5494 mv conftest.tmp conftest.in
5495 cp conftest.in conftest.nl
5496 echo >>conftest.nl
5497 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5498 cmp -s conftest.out conftest.nl || break
5499 # 10000 chars as input seems more than enough
5500 test $lt_ac_count -gt 10 && break
5501 lt_ac_count=`expr $lt_ac_count + 1`
5502 if test $lt_ac_count -gt $lt_ac_max; then
5503 lt_ac_max=$lt_ac_count
5504 lt_cv_path_SED=$lt_ac_sed
5505 fi
5506 done
5507done
5508
5509fi
5510
5511SED=$lt_cv_path_SED
5512
5513echo "$as_me:$LINENO: result: $SED" >&5
5514echo "${ECHO_T}$SED" >&6
5515
5516test -z "$SED" && SED=sed
5517Xsed="$SED -e 1s/^X//"
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529echo "$as_me:$LINENO: checking for fgrep" >&5
5530echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5531if test "${ac_cv_prog_fgrep+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5535 then ac_cv_prog_fgrep='grep -F'
5536 else ac_cv_prog_fgrep='fgrep'
5537 fi
5538fi
5539echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5540echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5541 FGREP=$ac_cv_prog_fgrep
5542
5543
5544test -z "$GREP" && GREP=grep
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
6de9cd9a
DN
5564# Check whether --with-gnu-ld or --without-gnu-ld was given.
5565if test "${with_gnu_ld+set}" = set; then
5566 withval="$with_gnu_ld"
5567 test "$withval" = no || with_gnu_ld=yes
5568else
5569 with_gnu_ld=no
42fcd7bb 5570fi;
6de9cd9a
DN
5571ac_prog=ld
5572if test "$GCC" = yes; then
5573 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
5574 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5575echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6de9cd9a
DN
5576 case $host in
5577 *-*-mingw*)
5578 # gcc leaves a trailing carriage return which upsets mingw
5579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5580 *)
5581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5582 esac
5583 case $ac_prog in
5584 # Accept absolute paths.
1cf3d07d 5585 [\\/]* | ?:[\\/]*)
6de9cd9a 5586 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5587 # Canonicalize the pathname of ld
5588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6de9cd9a
DN
5591 done
5592 test -z "$LD" && LD="$ac_prog"
5593 ;;
5594 "")
5595 # If it fails, then pretend we aren't using GCC.
5596 ac_prog=ld
5597 ;;
5598 *)
5599 # If it is relative, then search for the first ld in PATH.
5600 with_gnu_ld=unknown
5601 ;;
5602 esac
5603elif test "$with_gnu_ld" = yes; then
42fcd7bb
AJ
5604 echo "$as_me:$LINENO: checking for GNU ld" >&5
5605echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6de9cd9a 5606else
42fcd7bb
AJ
5607 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5608echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6de9cd9a 5609fi
42fcd7bb
AJ
5610if test "${lt_cv_path_LD+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
5612else
5613 if test -z "$LD"; then
1cf3d07d 5614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6de9cd9a 5615 for ac_dir in $PATH; do
1cf3d07d 5616 IFS="$lt_save_ifs"
6de9cd9a
DN
5617 test -z "$ac_dir" && ac_dir=.
5618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5619 lt_cv_path_LD="$ac_dir/$ac_prog"
5620 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5621 # but apparently some variants of GNU ld only accept -v.
6de9cd9a 5622 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5624 *GNU* | *'with BFD'*)
6de9cd9a 5625 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5626 ;;
5627 *)
6de9cd9a 5628 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5629 ;;
5630 esac
6de9cd9a
DN
5631 fi
5632 done
1cf3d07d 5633 IFS="$lt_save_ifs"
6de9cd9a
DN
5634else
5635 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5636fi
5637fi
5638
5639LD="$lt_cv_path_LD"
5640if test -n "$LD"; then
42fcd7bb
AJ
5641 echo "$as_me:$LINENO: result: $LD" >&5
5642echo "${ECHO_T}$LD" >&6
6de9cd9a 5643else
42fcd7bb
AJ
5644 echo "$as_me:$LINENO: result: no" >&5
5645echo "${ECHO_T}no" >&6
5646fi
5647test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5648echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5649 { (exit 1); exit 1; }; }
5650echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5651echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5652if test "${lt_cv_prog_gnu_ld+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5654else
1cf3d07d
SE
5655 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5656case `$LD -v 2>&1 </dev/null` in
5657*GNU* | *'with BFD'*)
6de9cd9a 5658 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5659 ;;
5660*)
6de9cd9a 5661 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5662 ;;
5663esac
6de9cd9a 5664fi
42fcd7bb
AJ
5665echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5666echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6de9cd9a
DN
5667with_gnu_ld=$lt_cv_prog_gnu_ld
5668
5669
6de9cd9a 5670
1cf3d07d
SE
5671
5672
5673
5674
5675
5676
5677
5678echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5679echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
42fcd7bb
AJ
5680if test "${lt_cv_path_NM+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
5682else
5683 if test -n "$NM"; then
5684 # Let the user override the test.
5685 lt_cv_path_NM="$NM"
5686else
1cf3d07d
SE
5687 lt_nm_to_check="${ac_tool_prefix}nm"
5688 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5689 lt_nm_to_check="$lt_nm_to_check nm"
5690 fi
5691 for lt_tmp_nm in $lt_nm_to_check; do
5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5694 IFS="$lt_save_ifs"
5695 test -z "$ac_dir" && ac_dir=.
5696 tmp_nm="$ac_dir/$lt_tmp_nm"
5697 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5698 # Check to see if the nm accepts a BSD-compat flag.
5699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5700 # nm: unknown option "B" ignored
5701 # Tru64's nm complains that /dev/null is an invalid object file
5702 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5703 */dev/null* | *'Invalid file or object type'*)
5704 lt_cv_path_NM="$tmp_nm -B"
5705 break
5706 ;;
5707 *)
5708 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5709 */dev/null*)
5710 lt_cv_path_NM="$tmp_nm -p"
5711 break
5712 ;;
5713 *)
5714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5715 continue # so that we can try to find one that supports BSD flags
5716 ;;
5717 esac
5718 ;;
5719 esac
6de9cd9a 5720 fi
1cf3d07d
SE
5721 done
5722 IFS="$lt_save_ifs"
6de9cd9a 5723 done
1cf3d07d 5724 : ${lt_cv_path_NM=no}
6de9cd9a
DN
5725fi
5726fi
1cf3d07d
SE
5727echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5728echo "${ECHO_T}$lt_cv_path_NM" >&6
5729if test "$lt_cv_path_NM" != "no"; then
5730 NM="$lt_cv_path_NM"
6de9cd9a 5731else
1cf3d07d
SE
5732 # Didn't find any BSD compatible name lister, look for dumpbin.
5733 if test -n "$ac_tool_prefix"; then
5734 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5735 do
5736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5738echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740if test "${ac_cv_prog_DUMPBIN+set}" = set; then
68c8f6ab
KC
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
1cf3d07d
SE
5743 if test -n "$DUMPBIN"; then
5744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5756 fi
5757done
5758done
6de9cd9a 5759
1cf3d07d
SE
5760fi
5761fi
5762DUMPBIN=$ac_cv_prog_DUMPBIN
5763if test -n "$DUMPBIN"; then
5764 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5765echo "${ECHO_T}$DUMPBIN" >&6
5766else
5767 echo "$as_me:$LINENO: result: no" >&5
5768echo "${ECHO_T}no" >&6
5769fi
6de9cd9a 5770
1cf3d07d
SE
5771 test -n "$DUMPBIN" && break
5772 done
5773fi
5774if test -z "$DUMPBIN"; then
5775 ac_ct_DUMPBIN=$DUMPBIN
5776 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5777do
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779set dummy $ac_prog; ac_word=$2
5780echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785 if test -n "$ac_ct_DUMPBIN"; then
5786 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
6de9cd9a 5798 fi
1cf3d07d
SE
5799done
5800done
6de9cd9a 5801
1cf3d07d
SE
5802fi
5803fi
5804ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5805if test -n "$ac_ct_DUMPBIN"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5807echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
6de9cd9a 5812
1cf3d07d
SE
5813 test -n "$ac_ct_DUMPBIN" && break
5814done
5815test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
6de9cd9a 5816
1cf3d07d
SE
5817 DUMPBIN=$ac_ct_DUMPBIN
5818fi
6de9cd9a 5819
6de9cd9a 5820
1cf3d07d
SE
5821 if test "$DUMPBIN" != ":"; then
5822 NM="$DUMPBIN"
6de9cd9a 5823 fi
1cf3d07d
SE
5824fi
5825test -z "$NM" && NM=nm
6de9cd9a 5826
6de9cd9a 5827
6de9cd9a 5828
6de9cd9a 5829
6de9cd9a 5830
68c8f6ab 5831
1cf3d07d
SE
5832echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5833echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5834if test "${lt_cv_nm_interface+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 lt_cv_nm_interface="BSD nm"
5838 echo "int some_variable = 0;" > conftest.$ac_ext
5839 (eval echo "\"\$as_me:5839: $ac_compile\"" >&5)
5840 (eval "$ac_compile" 2>conftest.err)
5841 cat conftest.err >&5
5842 (eval echo "\"\$as_me:5842: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5843 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5844 cat conftest.err >&5
5845 (eval echo "\"\$as_me:5845: output\"" >&5)
5846 cat conftest.out >&5
5847 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5848 lt_cv_nm_interface="MS dumpbin"
5849 fi
5850 rm -f conftest*
68c8f6ab 5851fi
1cf3d07d
SE
5852echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5853echo "${ECHO_T}$lt_cv_nm_interface" >&6
6de9cd9a 5854
1cf3d07d
SE
5855echo "$as_me:$LINENO: checking whether ln -s works" >&5
5856echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5857LN_S=$as_ln_s
5858if test "$LN_S" = "ln -s"; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
5861else
5862 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5863echo "${ECHO_T}no, using $LN_S" >&6
5864fi
6de9cd9a 5865
6dab073b
MS
5866# find the maximum length of command line arguments
5867echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5868echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5869if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 i=0
5873 teststring="ABCD"
5874
5875 case $build_os in
5876 msdosdjgpp*)
5877 # On DJGPP, this test can blow up pretty badly due to problems in libc
5878 # (any single argument exceeding 2000 bytes causes a buffer overrun
5879 # during glob expansion). Even if it were fixed, the result of this
5880 # check would be larger than it should be.
5881 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5882 ;;
5883
1cf3d07d
SE
5884 gnu*)
5885 # Under GNU Hurd, this test is not required because there is
5886 # no limit to the length of command line arguments.
5887 # Libtool will interpret -1 as no limit whatsoever
5888 lt_cv_sys_max_cmd_len=-1;
5889 ;;
5890
6dab073b
MS
5891 cygwin* | mingw*)
5892 # On Win9x/ME, this test blows up -- it succeeds, but takes
5893 # about 5 minutes as the teststring grows exponentially.
5894 # Worse, since 9x/ME are not pre-emptively multitasking,
5895 # you end up with a "frozen" computer, even though with patience
5896 # the test eventually succeeds (with a max line length of 256k).
5897 # Instead, let's just punt: use the minimum linelength reported by
5898 # all of the supported platforms: 8192 (on NT/2K/XP).
5899 lt_cv_sys_max_cmd_len=8192;
5900 ;;
5901
5902 amigaos*)
5903 # On AmigaOS with pdksh, this test takes hours, literally.
5904 # So we just punt and use a minimum line length of 8192.
5905 lt_cv_sys_max_cmd_len=8192;
5906 ;;
5907
5908 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5909 # This has been around since 386BSD, at least. Likely further.
5910 if test -x /sbin/sysctl; then
5911 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5912 elif test -x /usr/sbin/sysctl; then
5913 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5914 else
1cf3d07d 5915 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5916 fi
5917 # And add a safety zone
5918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5920 ;;
1cf3d07d
SE
5921
5922 interix*)
5923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5924 lt_cv_sys_max_cmd_len=196608
5925 ;;
5926
5927 osf*)
5928 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5929 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5930 # nice to cause kernel panics so lets avoid the loop below.
5931 # First set a reasonable default.
5932 lt_cv_sys_max_cmd_len=16384
5933 #
5934 if test -x /sbin/sysconfig; then
5935 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5936 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5937 esac
5938 fi
5939 ;;
5940 sco3.2v5*)
5941 lt_cv_sys_max_cmd_len=102400
5942 ;;
5943 sysv5* | sco5v6* | sysv4.2uw2*)
5944 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5945 if test -n "$kargmax"; then
5946 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5947 else
5948 lt_cv_sys_max_cmd_len=32768
5949 fi
5950 ;;
5951 *)
82a6cadf
PB
5952 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5953 if test -n $lt_cv_sys_max_cmd_len; then
5954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5956 else
5957 # Make teststring a little bigger before we do anything with it.
5958 # a 1K string should be a reasonable start.
5959 for i in 1 2 3 4 5 6 7 8 ; do
5960 teststring=$teststring$teststring
5961 done
5962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5963 # If test is not a shell built-in, we'll probably end up computing a
5964 # maximum length that is only half of the actual maximum length, but
5965 # we can't tell.
5966 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5967 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5968 test $i != 17 # 1/2 MB should be enough
5969 do
5970 i=`expr $i + 1`
5971 teststring=$teststring$teststring
5972 done
5973 # Only check the string length outside the loop.
5974 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5975 teststring=
5976 # Add a significant safety factor because C++ compilers can tack on
5977 # massive amounts of additional arguments before passing them to the
5978 # linker. It appears as though 1/2 is a usable value.
5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5980 fi
1cf3d07d 5981 ;;
6dab073b
MS
5982 esac
5983
5984fi
5985
1cf3d07d 5986if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
5987 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5988echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5989else
5990 echo "$as_me:$LINENO: result: none" >&5
5991echo "${ECHO_T}none" >&6
5992fi
1cf3d07d 5993max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5994
5995
6de9cd9a 5996
6de9cd9a 5997
6de9cd9a 5998
1cf3d07d
SE
5999
6000: ${CP="cp -f"}
6001: ${MV="mv -f"}
6002: ${RM="rm -f"}
6003
6004echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6005echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6006# Try some XSI features
6007xsi_shell=no
6008( _lt_dummy="a/b/c"
6009 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6010 = c,a/b,, ) >/dev/null 2>&1 \
6011 && xsi_shell=yes
6012echo "$as_me:$LINENO: result: $xsi_shell" >&5
6013echo "${ECHO_T}$xsi_shell" >&6
6014
6015
6016echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6017echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6018lt_shell_append=no
6019( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6020 >/dev/null 2>&1 \
6021 && lt_shell_append=yes
6022echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6023echo "${ECHO_T}$lt_shell_append" >&6
6024
6025
6026if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6027 lt_unset=unset
6de9cd9a 6028else
1cf3d07d 6029 lt_unset=false
6de9cd9a
DN
6030fi
6031
1cf3d07d
SE
6032
6033
6034
6035
6036# test EBCDIC or ASCII
6037case `echo X|tr X '\101'` in
6038 A) # ASCII based system
6039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6040 lt_SP2NL='tr \040 \012'
6041 lt_NL2SP='tr \015\012 \040\040'
6de9cd9a 6042 ;;
1cf3d07d
SE
6043 *) # EBCDIC based system
6044 lt_SP2NL='tr \100 \n'
6045 lt_NL2SP='tr \r\n \100\100'
6de9cd9a 6046 ;;
1cf3d07d 6047esac
6de9cd9a 6048
6de9cd9a 6049
1cf3d07d
SE
6050
6051
6052
6053
6054
6055
6056
6057echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6058echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6059if test "${lt_cv_ld_reload_flag+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062 lt_cv_ld_reload_flag='-r'
6063fi
6064echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6065echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6066reload_flag=$lt_cv_ld_reload_flag
6067case $reload_flag in
6068"" | " "*) ;;
6069*) reload_flag=" $reload_flag" ;;
6070esac
6071reload_cmds='$LD$reload_flag -o $output$reload_objs'
6072case $host_os in
6073 darwin*)
6074 if test "$GCC" = yes; then
6075 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6076 else
6077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6de9cd9a 6078 fi
1cf3d07d 6079 ;;
6de9cd9a 6080esac
6de9cd9a 6081
1cf3d07d
SE
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6092echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6093if test "${lt_cv_deplibs_check_method+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 6095else
1cf3d07d
SE
6096 lt_cv_file_magic_cmd='$MAGIC_CMD'
6097lt_cv_file_magic_test_file=
6098lt_cv_deplibs_check_method='unknown'
6099# Need to set the preceding variable on all platforms that support
6100# interlibrary dependencies.
6101# 'none' -- dependencies not supported.
6102# `unknown' -- same as none, but documents that we really don't know.
6103# 'pass_all' -- all dependencies passed with no checks.
6104# 'test_compile' -- check by making test program.
6105# 'file_magic [[regex]]' -- check by looking for files in library path
6106# which responds to the $file_magic_cmd with a given extended regex.
6107# If you have `file' or equivalent on your system and you're not sure
6108# whether `pass_all' will *always* work, you probably want this one.
6109
6110case $host_os in
6111aix4* | aix5*)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115beos*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119bsdi[45]*)
6120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6121 lt_cv_file_magic_cmd='/usr/bin/file -L'
6122 lt_cv_file_magic_test_file=/shlib/libc.so
6123 ;;
6124
6125cygwin*)
6126 # func_win32_libid is a shell function defined in ltmain.sh
6127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6128 lt_cv_file_magic_cmd='func_win32_libid'
6129 ;;
6de9cd9a 6130
1cf3d07d
SE
6131mingw* | pw32*)
6132 # Base MSYS/MinGW do not provide the 'file' command needed by
6133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6134 # unless we find 'file', for example because we are cross-compiling.
6135 if ( file / ) >/dev/null 2>&1; then
6136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6137 lt_cv_file_magic_cmd='func_win32_libid'
6de9cd9a 6138 else
1cf3d07d
SE
6139 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6140 lt_cv_file_magic_cmd='$OBJDUMP -f'
6de9cd9a 6141 fi
1cf3d07d
SE
6142 ;;
6143
6144darwin* | rhapsody*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
6147
6148freebsd* | dragonfly*)
6149 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6150 case $host_cpu in
6151 i*86 )
6152 # Not sure whether the presence of OpenBSD here was a mistake.
6153 # Let's accept both of them until this is cleared up.
6154 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6155 lt_cv_file_magic_cmd=/usr/bin/file
6156 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6157 ;;
6158 esac
6159 else
6160 lt_cv_deplibs_check_method=pass_all
6161 fi
6162 ;;
6163
6164gnu*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168hpux10.20* | hpux11*)
6169 lt_cv_file_magic_cmd=/usr/bin/file
6170 case $host_cpu in
6171 ia64*)
6172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6174 ;;
6175 hppa*64*)
6176 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]'
6177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6178 ;;
6179 *)
6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6182 ;;
6183 esac
6184 ;;
6185
6186interix[3-9]*)
6187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6189 ;;
6de9cd9a 6190
1cf3d07d
SE
6191irix5* | irix6* | nonstopux*)
6192 case $LD in
6193 *-32|*"-32 ") libmagic=32-bit;;
6194 *-n32|*"-n32 ") libmagic=N32;;
6195 *-64|*"-64 ") libmagic=64-bit;;
6196 *) libmagic=never-match;;
6197 esac
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200
6201# This must be Linux ELF.
6202linux* | k*bsd*-gnu)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206netbsd*)
6207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6209 else
6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6211 fi
6212 ;;
6213
6214newos6*)
6215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6216 lt_cv_file_magic_cmd=/usr/bin/file
6217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6218 ;;
6219
6220*nto* | *qnx*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224openbsd*)
6225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6227 else
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6de9cd9a
DN
6229 fi
6230 ;;
1cf3d07d
SE
6231
6232osf3* | osf4* | osf5*)
6233 lt_cv_deplibs_check_method=pass_all
6234 ;;
6235
6236rdos*)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239
6240solaris*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247
6248sysv4 | sysv4.3*)
6249 case $host_vendor in
6250 motorola)
6251 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]'
6252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6253 ;;
6254 ncr)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257 sequent)
6258 lt_cv_file_magic_cmd='/bin/file'
6259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6260 ;;
6261 sni)
6262 lt_cv_file_magic_cmd='/bin/file'
6263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6264 lt_cv_file_magic_test_file=/lib/libc.so
6265 ;;
6266 siemens)
6267 lt_cv_deplibs_check_method=pass_all
6268 ;;
6269 pc)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272 esac
6273 ;;
6274
6275tpf*)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6de9cd9a
DN
6278esac
6279
1cf3d07d
SE
6280fi
6281echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6282echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6283file_magic_cmd=$lt_cv_file_magic_cmd
6284deplibs_check_method=$lt_cv_deplibs_check_method
6285test -z "$deplibs_check_method" && deplibs_check_method=unknown
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
42fcd7bb 6298if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
6299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6300set dummy ${ac_tool_prefix}ar; ac_word=$2
42fcd7bb
AJ
6301echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 6303if test "${ac_cv_prog_AR+set}" = set; then
42fcd7bb 6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 6305else
1cf3d07d
SE
6306 if test -n "$AR"; then
6307 ac_cv_prog_AR="$AR" # Let the user override the test.
6de9cd9a 6308else
42fcd7bb
AJ
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 6316 ac_cv_prog_AR="${ac_tool_prefix}ar"
42fcd7bb
AJ
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321done
6322
6de9cd9a
DN
6323fi
6324fi
1cf3d07d
SE
6325AR=$ac_cv_prog_AR
6326if test -n "$AR"; then
6327 echo "$as_me:$LINENO: result: $AR" >&5
6328echo "${ECHO_T}$AR" >&6
6de9cd9a 6329else
42fcd7bb
AJ
6330 echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
6de9cd9a
DN
6332fi
6333
42fcd7bb 6334fi
1cf3d07d
SE
6335if test -z "$ac_cv_prog_AR"; then
6336 ac_ct_AR=$AR
6337 # Extract the first word of "ar", so it can be a program name with args.
6338set dummy ar; ac_word=$2
42fcd7bb
AJ
6339echo "$as_me:$LINENO: checking for $ac_word" >&5
6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 6341if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42fcd7bb 6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 6343else
1cf3d07d
SE
6344 if test -n "$ac_ct_AR"; then
6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6de9cd9a 6346else
42fcd7bb
AJ
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 6354 ac_cv_prog_ac_ct_AR="ar"
42fcd7bb
AJ
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358done
6359done
6360
1cf3d07d 6361 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6de9cd9a
DN
6362fi
6363fi
1cf3d07d
SE
6364ac_ct_AR=$ac_cv_prog_ac_ct_AR
6365if test -n "$ac_ct_AR"; then
6366 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6367echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a 6368else
42fcd7bb
AJ
6369 echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6
6de9cd9a
DN
6371fi
6372
1cf3d07d 6373 AR=$ac_ct_AR
6de9cd9a 6374else
1cf3d07d 6375 AR="$ac_cv_prog_AR"
6de9cd9a
DN
6376fi
6377
1cf3d07d
SE
6378test -z "$AR" && AR=ar
6379test -z "$AR_FLAGS" && AR_FLAGS=cru
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
42fcd7bb
AJ
6391if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6de9cd9a 6393set dummy ${ac_tool_prefix}strip; ac_word=$2
42fcd7bb
AJ
6394echo "$as_me:$LINENO: checking for $ac_word" >&5
6395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396if test "${ac_cv_prog_STRIP+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
6398else
6399 if test -n "$STRIP"; then
6400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6401else
42fcd7bb
AJ
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413done
6414done
6415
6de9cd9a
DN
6416fi
6417fi
42fcd7bb 6418STRIP=$ac_cv_prog_STRIP
6de9cd9a 6419if test -n "$STRIP"; then
42fcd7bb
AJ
6420 echo "$as_me:$LINENO: result: $STRIP" >&5
6421echo "${ECHO_T}$STRIP" >&6
6de9cd9a 6422else
42fcd7bb
AJ
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6de9cd9a
DN
6425fi
6426
42fcd7bb 6427fi
6de9cd9a 6428if test -z "$ac_cv_prog_STRIP"; then
42fcd7bb 6429 ac_ct_STRIP=$STRIP
6de9cd9a
DN
6430 # Extract the first word of "strip", so it can be a program name with args.
6431set dummy strip; ac_word=$2
42fcd7bb
AJ
6432echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 6436else
42fcd7bb
AJ
6437 if test -n "$ac_ct_STRIP"; then
6438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6de9cd9a 6439else
42fcd7bb
AJ
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_STRIP="strip"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451done
6452done
6453
6454 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
6455fi
6456fi
42fcd7bb
AJ
6457ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6458if test -n "$ac_ct_STRIP"; then
6459 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6460echo "${ECHO_T}$ac_ct_STRIP" >&6
6de9cd9a 6461else
42fcd7bb
AJ
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6de9cd9a
DN
6464fi
6465
42fcd7bb 6466 STRIP=$ac_ct_STRIP
6de9cd9a 6467else
42fcd7bb 6468 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
6469fi
6470
1cf3d07d 6471test -z "$STRIP" && STRIP=:
6de9cd9a 6472
42fcd7bb 6473
6de9cd9a 6474
6de9cd9a 6475
6de9cd9a 6476
42fcd7bb 6477
1cf3d07d
SE
6478if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6480set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6481echo "$as_me:$LINENO: checking for $ac_word" >&5
6482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6483if test "${ac_cv_prog_RANLIB+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 6485else
1cf3d07d
SE
6486 if test -n "$RANLIB"; then
6487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500done
6501done
6502
6503fi
6504fi
6505RANLIB=$ac_cv_prog_RANLIB
6506if test -n "$RANLIB"; then
6507 echo "$as_me:$LINENO: result: $RANLIB" >&5
6508echo "${ECHO_T}$RANLIB" >&6
6509else
6510 echo "$as_me:$LINENO: result: no" >&5
6511echo "${ECHO_T}no" >&6
6512fi
6513
6514fi
6515if test -z "$ac_cv_prog_RANLIB"; then
6516 ac_ct_RANLIB=$RANLIB
6517 # Extract the first word of "ranlib", so it can be a program name with args.
6518set dummy ranlib; ac_word=$2
6519echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6521if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 if test -n "$ac_ct_RANLIB"; then
6525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_ac_ct_RANLIB="ranlib"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539done
6540
6541 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6542fi
6543fi
6544ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6545if test -n "$ac_ct_RANLIB"; then
6546 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6547echo "${ECHO_T}$ac_ct_RANLIB" >&6
6548else
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551fi
6552
6553 RANLIB=$ac_ct_RANLIB
6554else
6555 RANLIB="$ac_cv_prog_RANLIB"
6556fi
6557
6558test -z "$RANLIB" && RANLIB=:
6559
6560
6561
6562
6563
6564
6565# Determine commands to create old-style static archives.
6566old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6567old_postinstall_cmds='chmod 644 $oldlib'
6568old_postuninstall_cmds=
6569
6570if test -n "$RANLIB"; then
6571 case $host_os in
6572 openbsd*)
6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6574 ;;
6575 *)
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6577 ;;
6578 esac
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6580fi
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615# If no C compiler was specified, use CC.
6616LTCC=${LTCC-"$CC"}
6617
6618# If no C compiler flags were specified, use CFLAGS.
6619LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6620
6621# Allow CC to be a program name with arguments.
6622compiler=$CC
6623
6624
6625# Check for command to grab the raw symbol name followed by C symbol from nm.
6626echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6627echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6628if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631
6632# These are sane defaults that work on at least a few old systems.
6633# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6634
6635# Character class describing NM global symbol codes.
6636symcode='[BCDEGRST]'
6637
6638# Regexp to match symbols that can be accessed directly from C.
6639sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6640
6641# Define system-specific variables.
6642case $host_os in
6643aix*)
6644 symcode='[BCDT]'
6645 ;;
6646cygwin* | mingw* | pw32*)
6647 symcode='[ABCDGISTW]'
6648 ;;
6649hpux*)
6650 if test "$host_cpu" = ia64; then
6651 symcode='[ABCDEGRST]'
6652 fi
6653 ;;
6654irix* | nonstopux*)
6655 symcode='[BCDEGRST]'
6656 ;;
6657osf*)
6658 symcode='[BCDEGQRST]'
6659 ;;
6660solaris*)
6661 symcode='[BDRT]'
6662 ;;
6663sco3.2v5*)
6664 symcode='[DT]'
6665 ;;
6666sysv4.2uw2*)
6667 symcode='[DT]'
6668 ;;
6669sysv5* | sco5v6* | unixware* | OpenUNIX*)
6670 symcode='[ABDT]'
6671 ;;
6672sysv4)
6673 symcode='[DFNSTU]'
6674 ;;
6675esac
6676
6677# If we're using GNU nm, then use its standard symbol codes.
6678case `$NM -V 2>&1` in
6679*GNU* | *'with BFD'*)
6680 symcode='[ABCDGIRSTW]' ;;
6681esac
6682
6683# Transform an extracted symbol line into a proper C declaration.
6684# Some systems (esp. on ia64) link data and code symbols differently,
6685# so use this general approach.
6686lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6687
6688# Transform an extracted symbol line into symbol name and symbol address
6689lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6690
6691# Handle CRLF in mingw tool chain
6692opt_cr=
6693case $build_os in
6694mingw*)
6695 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6696 ;;
6697esac
6698
6699# Try without a prefix underscore, then with it.
6700for ac_symprfx in "" "_"; do
6701
6702 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6703 symxfrm="\\1 $ac_symprfx\\2 \\2"
6704
6705 # Write the raw and C identifiers.
6706 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6707 # Fake it for dumpbin and say T for any non-static function
6708 # and D for any global variable.
6709 # Also find C++ and __fastcall symbols from MSVC++,
6710 # which start with @ or ?.
6711 lt_cv_sys_global_symbol_pipe="$AWK '"\
6712" {last_section=section; section=\$ 3};"\
6713" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6714" \$ 0!~/External *\|/{next};"\
6715" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6716" {if(hide[section]) next};"\
6717" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6718" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6719" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6720" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6721" ' prfx=^$ac_symprfx"
6722 else
6723 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6724 fi
6725
6726 # Check to see that the pipe works correctly.
6727 pipe_works=no
6728
6729 rm -f conftest*
6730 cat > conftest.$ac_ext <<_LT_EOF
6731#ifdef __cplusplus
6732extern "C" {
6733#endif
6734char nm_test_var;
6735void nm_test_func(void);
6736void nm_test_func(void){}
6737#ifdef __cplusplus
6738}
6739#endif
6740int main(){nm_test_var='a';nm_test_func();return(0);}
6741_LT_EOF
6742
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; then
6748 # Now try to grab the symbols.
6749 nlist=conftest.nm
6750 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6751 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && test -s "$nlist"; then
6755 # Try sorting and uniquifying the output.
6756 if sort "$nlist" | uniq > "$nlist"T; then
6757 mv -f "$nlist"T "$nlist"
6758 else
6759 rm -f "$nlist"T
6760 fi
6761
6762 # Make sure that we snagged all the symbols we need.
6763 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6764 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6765 cat <<_LT_EOF > conftest.$ac_ext
6766#ifdef __cplusplus
6767extern "C" {
6768#endif
6769
6770_LT_EOF
6771 # Now generate the symbol file.
6772 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6773
6774 cat <<_LT_EOF >> conftest.$ac_ext
6775
6776/* The mapping between symbol names and symbols. */
6777const struct {
6778 const char *name;
6779 void *address;
6780}
6781lt__PROGRAM__LTX_preloaded_symbols[] =
6782{
6783 { "@PROGRAM@", (void *) 0 },
6784_LT_EOF
6785 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6786 cat <<\_LT_EOF >> conftest.$ac_ext
6787 {0, (void *) 0}
6788};
6789
6790/* This works around a problem in FreeBSD linker */
6791#ifdef FREEBSD_WORKAROUND
6792static const void *lt_preloaded_setup() {
6793 return lt__PROGRAM__LTX_preloaded_symbols;
6794}
6795#endif
6796
6797#ifdef __cplusplus
6798}
6799#endif
6800_LT_EOF
6801 # Now try linking the two files.
6802 mv conftest.$ac_objext conftstm.$ac_objext
6803 lt_save_LIBS="$LIBS"
6804 lt_save_CFLAGS="$CFLAGS"
6805 LIBS="conftstm.$ac_objext"
6806 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6812 pipe_works=yes
6813 fi
6814 LIBS="$lt_save_LIBS"
6815 CFLAGS="$lt_save_CFLAGS"
6816 else
6817 echo "cannot find nm_test_func in $nlist" >&5
6818 fi
6819 else
6820 echo "cannot find nm_test_var in $nlist" >&5
6821 fi
6822 else
6823 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6824 fi
6825 else
6826 echo "$progname: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6828 fi
6829 rm -f conftest* conftst*
6830
6831 # Do not use the global_symbol_pipe unless it works.
6832 if test "$pipe_works" = yes; then
6833 break
6834 else
6835 lt_cv_sys_global_symbol_pipe=
6836 fi
6837done
6838
6839fi
6840
6841if test -z "$lt_cv_sys_global_symbol_pipe"; then
6842 lt_cv_sys_global_symbol_to_cdecl=
6843fi
6844if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6845 echo "$as_me:$LINENO: result: failed" >&5
6846echo "${ECHO_T}failed" >&6
6847else
6848 echo "$as_me:$LINENO: result: ok" >&5
6849echo "${ECHO_T}ok" >&6
6850fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6869if test "${enable_libtool_lock+set}" = set; then
6870 enableval="$enable_libtool_lock"
6871
6872fi;
6873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875# Some flags need to be propagated to the compiler or linker for good
6876# libtool support.
6de9cd9a 6877case $host in
1cf3d07d 6878ia64-*-hpux*)
6de9cd9a 6879 # Find out which ABI we are using.
1cf3d07d 6880 echo 'int i;' > conftest.$ac_ext
42fcd7bb
AJ
6881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; then
6de9cd9a 6886 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6892 ;;
6de9cd9a
DN
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
1cf3d07d 6897*-*-irix6*)
6de9cd9a 6898 # Find out which ABI we are using.
82a6cadf 6899 echo '#line 6899 "configure"' > conftest.$ac_ext
42fcd7bb
AJ
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
6904 (exit $ac_status); }; then
6905 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6909 ;;
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6912 ;;
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6915 ;;
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6921 ;;
6922 *N32*)
6923 LD="${LD-ld} -n32"
6924 ;;
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6927 ;;
6928 esac
6929 fi
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
6934x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; then
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6948 ;;
6949 x86_64-*linux*)
6950 LD="${LD-ld} -m elf_i386"
6951 ;;
6952 ppc64-*linux*|powerpc64-*linux*)
6953 LD="${LD-ld} -m elf32ppclinux"
6954 ;;
6955 s390x-*linux*)
6956 LD="${LD-ld} -m elf_s390"
6957 ;;
6958 sparc64-*linux*)
6959 LD="${LD-ld} -m elf32_sparc"
6960 ;;
6961 esac
6962 ;;
6963 *64-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_x86_64_fbsd"
6967 ;;
6968 x86_64-*linux*)
6969 LD="${LD-ld} -m elf_x86_64"
6970 ;;
6971 ppc*-*linux*|powerpc*-*linux*)
6972 LD="${LD-ld} -m elf64ppc"
6973 ;;
6974 s390*-*linux*|s390*-*tpf*)
6975 LD="${LD-ld} -m elf64_s390"
6976 ;;
6977 sparc*-*linux*)
6978 LD="${LD-ld} -m elf64_sparc"
6979 ;;
6980 esac
6981 ;;
6982 esac
6983 fi
6984 rm -rf conftest*
6985 ;;
6986
6987*-*-sco3.2v5*)
6988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6989 SAVE_CFLAGS="$CFLAGS"
6990 CFLAGS="$CFLAGS -belf"
6991 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6992echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6993if test "${lt_cv_cc_needs_belf+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 ac_ext=c
6997ac_cpp='$CPP $CPPFLAGS'
6998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
7002 cat >conftest.$ac_ext <<_ACEOF
7003/* confdefs.h. */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h. */
7008
7009int
7010main ()
7011{
7012
7013 ;
7014 return 0;
7015}
7016_ACEOF
7017rm -f conftest.$ac_objext conftest$ac_exeext
7018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_c_werror_flag"
7027 || test ! -s conftest.err'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; } &&
7033 { ac_try='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 lt_cv_cc_needs_belf=yes
7040else
7041 echo "$as_me: failed program was:" >&5
7042sed 's/^/| /' conftest.$ac_ext >&5
7043
7044lt_cv_cc_needs_belf=no
7045fi
7046rm -f conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 ac_ext=c
7049ac_cpp='$CPP $CPPFLAGS'
7050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052ac_compiler_gnu=$ac_cv_c_compiler_gnu
7053
7054fi
7055echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7056echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7059 CFLAGS="$SAVE_CFLAGS"
7060 fi
7061 ;;
7062sparc*-*solaris*)
7063 # Find out which ABI we are using.
7064 echo 'int i;' > conftest.$ac_ext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; then
7070 case `/usr/bin/file conftest.o` in
7071 *64-bit*)
7072 case $lt_cv_prog_gnu_ld in
7073 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7074 *) LD="${LD-ld} -64" ;;
7075 esac
7076 ;;
7077 esac
7078 fi
7079 rm -rf conftest*
7080 ;;
7081esac
7082
7083need_locks="$enable_libtool_lock"
7084
7085
7086for ac_header in dlfcn.h
7087do
7088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7089echo "$as_me:$LINENO: checking for $ac_header" >&5
7090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094 cat >conftest.$ac_ext <<_ACEOF
7095/* confdefs.h. */
7096_ACEOF
7097cat confdefs.h >>conftest.$ac_ext
7098cat >>conftest.$ac_ext <<_ACEOF
7099/* end confdefs.h. */
7100$ac_includes_default
7101
7102#include <$ac_header>
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 eval "$as_ac_Header=yes"
7127else
7128 echo "$as_me: failed program was:" >&5
7129sed 's/^/| /' conftest.$ac_ext >&5
7130
7131eval "$as_ac_Header=no"
7132fi
7133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7134fi
7135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7137if test `eval echo '${'$as_ac_Header'}'` = yes; then
7138 cat >>confdefs.h <<_ACEOF
7139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140_ACEOF
7141
7142fi
7143
7144done
7145
7146
7147
7148# This can be used to rebuild libtool when needed
7149LIBTOOL_DEPS="$ltmain"
7150
7151# Always use our own libtool.
7152LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178test -z "$LN_S" && LN_S="ln -s"
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193if test -n "${ZSH_VERSION+set}" ; then
7194 setopt NO_GLOB_SUBST
7195fi
7196
7197echo "$as_me:$LINENO: checking for objdir" >&5
7198echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7199if test "${lt_cv_objdir+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 rm -f .libs 2>/dev/null
7203mkdir .libs 2>/dev/null
7204if test -d .libs; then
7205 lt_cv_objdir=.libs
7206else
7207 # MS-DOS does not allow filenames that begin with a dot.
7208 lt_cv_objdir=_libs
7209fi
7210rmdir .libs 2>/dev/null
7211fi
7212echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7213echo "${ECHO_T}$lt_cv_objdir" >&6
7214objdir=$lt_cv_objdir
7215
7216
7217
7218
7219
7220cat >>confdefs.h <<_ACEOF
7221#define LT_OBJDIR "$lt_cv_objdir/"
7222_ACEOF
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240case $host_os in
7241aix3*)
7242 # AIX sometimes has problems with the GCC collect2 program. For some
7243 # reason, if we set the COLLECT_NAMES environment variable, the problems
7244 # vanish in a puff of smoke.
7245 if test "X${COLLECT_NAMES+set}" != Xset; then
7246 COLLECT_NAMES=
7247 export COLLECT_NAMES
7248 fi
7249 ;;
7250esac
7251
7252# Sed substitution that helps us do robust quoting. It backslashifies
7253# metacharacters that are still active within double-quoted strings.
7254sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7255
7256# Same as above, but do not quote variable references.
7257double_quote_subst='s/\(["`\\]\)/\\\1/g'
7258
7259# Sed substitution to delay expansion of an escaped shell variable in a
7260# double_quote_subst'ed string.
7261delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7262
7263# Sed substitution to delay expansion of an escaped single quote.
7264delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7265
7266# Sed substitution to avoid accidental globbing in evaled expressions
7267no_glob_subst='s/\*/\\\*/g'
7268
7269# Global variables:
7270ofile=libtool
7271can_build_shared=yes
7272
7273# All known linkers require a `.a' archive for static linking (except MSVC,
7274# which needs '.lib').
7275libext=a
7276
7277with_gnu_ld="$lt_cv_prog_gnu_ld"
7278
7279old_CC="$CC"
7280old_CFLAGS="$CFLAGS"
7281
7282# Set sane defaults for various variables
7283test -z "$CC" && CC=cc
7284test -z "$LTCC" && LTCC=$CC
7285test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7286test -z "$LD" && LD=ld
7287test -z "$ac_objext" && ac_objext=o
7288
7289for cc_temp in $compiler""; do
7290 case $cc_temp in
7291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7293 \-*) ;;
7294 *) break;;
7295 esac
7296done
7297cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7298
7299
7300# Only perform the check for file, if the check method requires it
7301test -z "$MAGIC_CMD" && MAGIC_CMD=file
7302case $deplibs_check_method in
7303file_magic*)
7304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7305 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7306echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7307if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310 case $MAGIC_CMD in
7311[\\/*] | ?:[\\/]*)
7312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7313 ;;
7314*)
7315 lt_save_MAGIC_CMD="$MAGIC_CMD"
7316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7318 for ac_dir in $ac_dummy; do
7319 IFS="$lt_save_ifs"
7320 test -z "$ac_dir" && ac_dir=.
7321 if test -f $ac_dir/${ac_tool_prefix}file; then
7322 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7323 if test -n "$file_magic_test_file"; then
7324 case $deplibs_check_method in
7325 "file_magic "*)
7326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7329 $EGREP "$file_magic_regex" > /dev/null; then
7330 :
7331 else
7332 cat <<_LT_EOF 1>&2
7333
7334*** Warning: the command libtool uses to detect shared libraries,
7335*** $file_magic_cmd, produces output that libtool cannot recognize.
7336*** The result is that libtool may fail to recognize shared libraries
7337*** as such. This will affect the creation of libtool libraries that
7338*** depend on shared libraries, but programs linked with such libtool
7339*** libraries will work regardless of this problem. Nevertheless, you
7340*** may want to report the problem to your system manager and/or to
7341*** bug-libtool@gnu.org
7342
7343_LT_EOF
7344 fi ;;
7345 esac
7346 fi
7347 break
7348 fi
7349 done
7350 IFS="$lt_save_ifs"
7351 MAGIC_CMD="$lt_save_MAGIC_CMD"
7352 ;;
7353esac
7354fi
7355
7356MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7357if test -n "$MAGIC_CMD"; then
7358 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7359echo "${ECHO_T}$MAGIC_CMD" >&6
7360else
7361 echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6
7363fi
7364
7365
7366
7367
7368
7369if test -z "$lt_cv_path_MAGIC_CMD"; then
7370 if test -n "$ac_tool_prefix"; then
7371 echo "$as_me:$LINENO: checking for file" >&5
7372echo $ECHO_N "checking for file... $ECHO_C" >&6
7373if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376 case $MAGIC_CMD in
7377[\\/*] | ?:[\\/]*)
7378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7379 ;;
7380*)
7381 lt_save_MAGIC_CMD="$MAGIC_CMD"
7382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7384 for ac_dir in $ac_dummy; do
7385 IFS="$lt_save_ifs"
7386 test -z "$ac_dir" && ac_dir=.
7387 if test -f $ac_dir/file; then
7388 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7389 if test -n "$file_magic_test_file"; then
7390 case $deplibs_check_method in
7391 "file_magic "*)
7392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7395 $EGREP "$file_magic_regex" > /dev/null; then
7396 :
7397 else
7398 cat <<_LT_EOF 1>&2
7399
7400*** Warning: the command libtool uses to detect shared libraries,
7401*** $file_magic_cmd, produces output that libtool cannot recognize.
7402*** The result is that libtool may fail to recognize shared libraries
7403*** as such. This will affect the creation of libtool libraries that
7404*** depend on shared libraries, but programs linked with such libtool
7405*** libraries will work regardless of this problem. Nevertheless, you
7406*** may want to report the problem to your system manager and/or to
7407*** bug-libtool@gnu.org
7408
7409_LT_EOF
7410 fi ;;
7411 esac
7412 fi
7413 break
7414 fi
7415 done
7416 IFS="$lt_save_ifs"
7417 MAGIC_CMD="$lt_save_MAGIC_CMD"
7418 ;;
7419esac
7420fi
7421
7422MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423if test -n "$MAGIC_CMD"; then
7424 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7425echo "${ECHO_T}$MAGIC_CMD" >&6
7426else
7427 echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429fi
7430
7431
7432 else
7433 MAGIC_CMD=:
7434 fi
7435fi
7436
7437 fi
7438 ;;
7439esac
7440
7441# Use C for the default configuration in the libtool script
7442
7443lt_save_CC="$CC"
7444ac_ext=c
7445ac_cpp='$CPP $CPPFLAGS'
7446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449
7450
7451# Source file extension for C test sources.
7452ac_ext=c
7453
7454# Object file extension for compiled C test sources.
7455objext=o
7456objext=$objext
7457
7458# Code to be used in simple compile tests
7459lt_simple_compile_test_code="int some_variable = 0;"
7460
7461# Code to be used in simple link tests
7462lt_simple_link_test_code='int main(){return(0);}'
7463
7464
7465
7466
7467
7468
7469
7470# If no C compiler was specified, use CC.
7471LTCC=${LTCC-"$CC"}
7472
7473# If no C compiler flags were specified, use CFLAGS.
7474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7475
7476# Allow CC to be a program name with arguments.
7477compiler=$CC
7478
7479# Save the default compiler, since it gets overwritten when the other
7480# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7481compiler_DEFAULT=$CC
7482
7483# save warnings/boilerplate of simple test code
7484ac_outfile=conftest.$ac_objext
7485echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7486eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487_lt_compiler_boilerplate=`cat conftest.err`
7488$RM conftest*
7489
7490ac_outfile=conftest.$ac_objext
7491echo "$lt_simple_link_test_code" >conftest.$ac_ext
7492eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493_lt_linker_boilerplate=`cat conftest.err`
7494$RM conftest*
7495
7496
7497## CAVEAT EMPTOR:
7498## There is no encapsulation within the following macros, do not change
7499## the running order or otherwise move them around unless you know exactly
7500## what you are doing...
7501if test -n "$compiler"; then
7502
7503lt_prog_compiler_no_builtin_flag=
7504
7505if test "$GCC" = yes; then
7506 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7507
7508 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7509echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7510if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 lt_cv_prog_compiler_rtti_exceptions=no
7514 ac_outfile=conftest.$ac_objext
7515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7516 lt_compiler_flag="-fno-rtti -fno-exceptions"
7517 # Insert the option either (1) after the last *FLAGS variable, or
7518 # (2) before a word containing "conftest.", or (3) at the end.
7519 # Note that $ac_compile itself does not contain backslashes and begins
7520 # with a dollar sign (not a hyphen), so the echo should work correctly.
7521 # The option is referenced via a variable to avoid confusing sed.
7522 lt_compile=`echo "$ac_compile" | $SED \
7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7525 -e 's:$: $lt_compiler_flag:'`
82a6cadf 7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
1cf3d07d
SE
7527 (eval "$lt_compile" 2>conftest.err)
7528 ac_status=$?
7529 cat conftest.err >&5
82a6cadf 7530 echo "$as_me:7530: \$? = $ac_status" >&5
1cf3d07d
SE
7531 if (exit $ac_status) && test -s "$ac_outfile"; then
7532 # The compiler can only warn and ignore the option if not recognized
7533 # So say no if there are warnings other than the usual output.
7534 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7537 lt_cv_prog_compiler_rtti_exceptions=yes
7538 fi
7539 fi
7540 $RM conftest*
7541
7542fi
7543echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7544echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7545
7546if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7548else
7549 :
7550fi
7551
7552fi
7553
7554
7555
7556
7557
7558
7559 lt_prog_compiler_wl=
7560lt_prog_compiler_pic=
7561lt_prog_compiler_static=
7562
7563echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7564echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7565
7566 if test "$GCC" = yes; then
7567 lt_prog_compiler_wl='-Wl,'
7568 lt_prog_compiler_static='-static'
7569
7570 case $host_os in
7571 aix*)
7572 # All AIX code is PIC.
7573 if test "$host_cpu" = ia64; then
7574 # AIX 5 now supports IA64 processor
7575 lt_prog_compiler_static='-Bstatic'
7576 fi
7577 ;;
7578
7579 amigaos*)
7580 if test "$host_cpu" = m68k; then
7581 # FIXME: we need at least 68020 code to build shared libraries, but
7582 # adding the `-m68020' flag to GCC prevents building anything better,
7583 # like `-m68040'.
7584 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7585 fi
7586 ;;
7587
7588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589 # PIC is the default for these OSes.
7590 ;;
7591
7592 mingw* | cygwin* | pw32* | os2*)
7593 # This hack is so that the source file can tell whether it is being
7594 # built for inclusion in a dll (and should export symbols for example).
7595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7596 # (--disable-auto-import) libraries
7597 lt_prog_compiler_pic='-DDLL_EXPORT'
7598 ;;
7599
7600 darwin* | rhapsody*)
7601 # PIC is the default on this platform
7602 # Common symbols not allowed in MH_DYLIB files
7603 lt_prog_compiler_pic='-fno-common'
7604 ;;
7605
7606 hpux*)
7607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7608 # not for PA HP-UX.
7609 case $host_cpu in
7610 hppa*64*|ia64*)
7611 # +Z the default
7612 ;;
7613 *)
7614 lt_prog_compiler_pic='-fPIC'
7615 ;;
7616 esac
7617 ;;
7618
7619 interix[3-9]*)
7620 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7621 # Instead, we relocate shared libraries at runtime.
7622 ;;
7623
7624 msdosdjgpp*)
7625 # Just because we use GCC doesn't mean we suddenly get shared libraries
7626 # on systems that don't support them.
7627 lt_prog_compiler_can_build_shared=no
7628 enable_shared=no
7629 ;;
7630
7631 *nto* | *qnx*)
7632 # QNX uses GNU C++, but need to define -shared option too, otherwise
7633 # it will coredump.
7634 lt_prog_compiler_pic='-fPIC -shared'
7635 ;;
7636
7637 sysv4*MP*)
7638 if test -d /usr/nec; then
7639 lt_prog_compiler_pic=-Kconform_pic
7640 fi
7641 ;;
7642
7643 *)
7644 lt_prog_compiler_pic='-fPIC'
7645 ;;
7646 esac
7647 else
7648 # PORTME Check for flag to pass linker flags through the system compiler.
7649 case $host_os in
7650 aix*)
7651 lt_prog_compiler_wl='-Wl,'
7652 if test "$host_cpu" = ia64; then
7653 # AIX 5 now supports IA64 processor
7654 lt_prog_compiler_static='-Bstatic'
7655 else
7656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7657 fi
7658 ;;
7659 darwin*)
7660 # PIC is the default on this platform
7661 # Common symbols not allowed in MH_DYLIB files
7662 case $cc_basename in
7663 xlc*)
7664 lt_prog_compiler_pic='-qnocommon'
7665 lt_prog_compiler_wl='-Wl,'
7666 ;;
7667 esac
7668 ;;
7669
7670 mingw* | cygwin* | pw32* | os2*)
7671 # This hack is so that the source file can tell whether it is being
7672 # built for inclusion in a dll (and should export symbols for example).
7673 lt_prog_compiler_pic='-DDLL_EXPORT'
7674 ;;
7675
7676 hpux9* | hpux10* | hpux11*)
7677 lt_prog_compiler_wl='-Wl,'
7678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7679 # not for PA HP-UX.
7680 case $host_cpu in
7681 hppa*64*|ia64*)
7682 # +Z the default
7683 ;;
7684 *)
7685 lt_prog_compiler_pic='+Z'
7686 ;;
7687 esac
7688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7689 lt_prog_compiler_static='${wl}-a ${wl}archive'
7690 ;;
7691
7692 irix5* | irix6* | nonstopux*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # PIC (with -KPIC) is the default.
7695 lt_prog_compiler_static='-non_shared'
7696 ;;
7697
7698 linux* | k*bsd*-gnu)
7699 case $cc_basename in
7700 icc* | ecc*)
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-static'
7704 ;;
7705 pgcc* | pgf77* | pgf90* | pgf95*)
7706 # Portland Group compilers (*not* the Pentium gcc compiler,
7707 # which looks to be a dead project)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-fpic'
7710 lt_prog_compiler_static='-Bstatic'
7711 ;;
7712 ccc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # All Alpha code is PIC.
7715 lt_prog_compiler_static='-non_shared'
7716 ;;
7717 *)
7718 case `$CC -V 2>&1 | sed 5q` in
7719 *Sun\ C*)
7720 # Sun C 5.9
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 lt_prog_compiler_wl='-Wl,'
7724 ;;
7725 *Sun\ F*)
7726 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 lt_prog_compiler_wl=''
7730 ;;
7731 esac
7732 ;;
7733 esac
7734 ;;
7735
7736 newsos6)
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-Bstatic'
7739 ;;
7740
7741 *nto* | *qnx*)
7742 # QNX uses GNU C++, but need to define -shared option too, otherwise
7743 # it will coredump.
7744 lt_prog_compiler_pic='-fPIC -shared'
7745 ;;
7746
7747 osf3* | osf4* | osf5*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # All OSF/1 code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7751 ;;
7752
7753 rdos*)
7754 lt_prog_compiler_static='-non_shared'
7755 ;;
7756
7757 solaris*)
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 case $cc_basename in
7761 f77* | f90* | f95*)
7762 lt_prog_compiler_wl='-Qoption ld ';;
7763 *)
7764 lt_prog_compiler_wl='-Wl,';;
7765 esac
7766 ;;
7767
7768 sunos4*)
7769 lt_prog_compiler_wl='-Qoption ld '
7770 lt_prog_compiler_pic='-PIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 ;;
7773
7774 sysv4 | sysv4.2uw2* | sysv4.3*)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 ;;
7779
7780 sysv4*MP*)
7781 if test -d /usr/nec ;then
7782 lt_prog_compiler_pic='-Kconform_pic'
7783 lt_prog_compiler_static='-Bstatic'
7784 fi
7785 ;;
7786
7787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-KPIC'
7790 lt_prog_compiler_static='-Bstatic'
7791 ;;
7792
7793 unicos*)
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_can_build_shared=no
7796 ;;
7797
7798 uts4*)
7799 lt_prog_compiler_pic='-pic'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
7802
7803 *)
7804 lt_prog_compiler_can_build_shared=no
7805 ;;
7806 esac
7807 fi
7808
7809case $host_os in
7810 # For platforms which do not support PIC, -DPIC is meaningless:
7811 *djgpp*)
7812 lt_prog_compiler_pic=
7813 ;;
7814 *)
7815 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7816 ;;
7817esac
7818echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7819echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7820
7821
7822
7823
7824
7825
7826#
7827# Check to make sure the PIC flag actually works.
7828#
7829if test -n "$lt_prog_compiler_pic"; then
7830 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7831echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7832if test "${lt_prog_compiler_pic_works+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834else
7835 lt_prog_compiler_pic_works=no
7836 ac_outfile=conftest.$ac_objext
7837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7839 # Insert the option either (1) after the last *FLAGS variable, or
7840 # (2) before a word containing "conftest.", or (3) at the end.
7841 # Note that $ac_compile itself does not contain backslashes and begins
7842 # with a dollar sign (not a hyphen), so the echo should work correctly.
7843 # The option is referenced via a variable to avoid confusing sed.
7844 lt_compile=`echo "$ac_compile" | $SED \
7845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847 -e 's:$: $lt_compiler_flag:'`
82a6cadf 7848 (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
1cf3d07d
SE
7849 (eval "$lt_compile" 2>conftest.err)
7850 ac_status=$?
7851 cat conftest.err >&5
82a6cadf 7852 echo "$as_me:7852: \$? = $ac_status" >&5
1cf3d07d
SE
7853 if (exit $ac_status) && test -s "$ac_outfile"; then
7854 # The compiler can only warn and ignore the option if not recognized
7855 # So say no if there are warnings other than the usual output.
7856 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859 lt_prog_compiler_pic_works=yes
7860 fi
7861 fi
7862 $RM conftest*
7863
7864fi
7865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7866echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7867
7868if test x"$lt_prog_compiler_pic_works" = xyes; then
7869 case $lt_prog_compiler_pic in
7870 "" | " "*) ;;
7871 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7872 esac
7873else
7874 lt_prog_compiler_pic=
7875 lt_prog_compiler_can_build_shared=no
7876fi
7877
7878fi
7879
7880
7881
7882
7883
7884
7885#
7886# Check to make sure the static flag actually works.
7887#
7888wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7889echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7890echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7891if test "${lt_prog_compiler_static_works+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893else
7894 lt_prog_compiler_static_works=no
7895 save_LDFLAGS="$LDFLAGS"
7896 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7899 # The linker can only warn and ignore the option if not recognized
7900 # So say no if there are warnings
7901 if test -s conftest.err; then
7902 # Append any errors to the config.log.
7903 cat conftest.err 1>&5
7904 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7906 if diff conftest.exp conftest.er2 >/dev/null; then
7907 lt_prog_compiler_static_works=yes
7908 fi
7909 else
7910 lt_prog_compiler_static_works=yes
7911 fi
7912 fi
7913 $RM conftest*
7914 LDFLAGS="$save_LDFLAGS"
7915
7916fi
7917echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7918echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7919
7920if test x"$lt_prog_compiler_static_works" = xyes; then
7921 :
7922else
7923 lt_prog_compiler_static=
7924fi
7925
7926
7927
7928
7929
7930
7931
7932 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7933echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7934if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937 lt_cv_prog_compiler_c_o=no
7938 $RM -r conftest 2>/dev/null
7939 mkdir conftest
7940 cd conftest
7941 mkdir out
7942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7943
7944 lt_compiler_flag="-o out/conftest2.$ac_objext"
7945 # Insert the option either (1) after the last *FLAGS variable, or
7946 # (2) before a word containing "conftest.", or (3) at the end.
7947 # Note that $ac_compile itself does not contain backslashes and begins
7948 # with a dollar sign (not a hyphen), so the echo should work correctly.
7949 lt_compile=`echo "$ac_compile" | $SED \
7950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7952 -e 's:$: $lt_compiler_flag:'`
82a6cadf 7953 (eval echo "\"\$as_me:7953: $lt_compile\"" >&5)
1cf3d07d
SE
7954 (eval "$lt_compile" 2>out/conftest.err)
7955 ac_status=$?
7956 cat out/conftest.err >&5
82a6cadf 7957 echo "$as_me:7957: \$? = $ac_status" >&5
1cf3d07d
SE
7958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7959 then
7960 # The compiler can only warn and ignore the option if not recognized
7961 # So say no if there are warnings
7962 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_c_o=yes
7966 fi
7967 fi
7968 chmod u+w . 2>&5
7969 $RM conftest*
7970 # SGI C++ compiler will create directory out/ii_files/ for
7971 # template instantiation
7972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7973 $RM out/* && rmdir out
7974 cd ..
7975 $RM -r conftest
7976 $RM conftest*
7977
7978fi
7979echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7980echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7981
7982
7983
7984
7985
7986
7987 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7988echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7989if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 lt_cv_prog_compiler_c_o=no
7993 $RM -r conftest 2>/dev/null
7994 mkdir conftest
7995 cd conftest
7996 mkdir out
7997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7998
7999 lt_compiler_flag="-o out/conftest2.$ac_objext"
8000 # Insert the option either (1) after the last *FLAGS variable, or
8001 # (2) before a word containing "conftest.", or (3) at the end.
8002 # Note that $ac_compile itself does not contain backslashes and begins
8003 # with a dollar sign (not a hyphen), so the echo should work correctly.
8004 lt_compile=`echo "$ac_compile" | $SED \
8005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007 -e 's:$: $lt_compiler_flag:'`
82a6cadf 8008 (eval echo "\"\$as_me:8008: $lt_compile\"" >&5)
1cf3d07d
SE
8009 (eval "$lt_compile" 2>out/conftest.err)
8010 ac_status=$?
8011 cat out/conftest.err >&5
82a6cadf 8012 echo "$as_me:8012: \$? = $ac_status" >&5
1cf3d07d
SE
8013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8014 then
8015 # The compiler can only warn and ignore the option if not recognized
8016 # So say no if there are warnings
8017 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8020 lt_cv_prog_compiler_c_o=yes
8021 fi
8022 fi
8023 chmod u+w . 2>&5
8024 $RM conftest*
8025 # SGI C++ compiler will create directory out/ii_files/ for
8026 # template instantiation
8027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8028 $RM out/* && rmdir out
8029 cd ..
8030 $RM -r conftest
8031 $RM conftest*
8032
8033fi
8034echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8035echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8036
8037
8038
8039
8040hard_links="nottested"
8041if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8042 # do not overwrite the value of need_locks provided by the user
8043 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8044echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8045 hard_links=yes
8046 $RM conftest*
8047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8048 touch conftest.a
8049 ln conftest.a conftest.b 2>&5 || hard_links=no
8050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8051 echo "$as_me:$LINENO: result: $hard_links" >&5
8052echo "${ECHO_T}$hard_links" >&6
8053 if test "$hard_links" = no; then
8054 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8055echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8056 need_locks=warn
8057 fi
8058else
8059 need_locks=no
8060fi
8061
8062
8063
8064
8065
8066
8067 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8068echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8069
8070 runpath_var=
8071 allow_undefined_flag=
8072 always_export_symbols=no
8073 archive_cmds=
8074 archive_expsym_cmds=
8075 compiler_needs_object=no
8076 enable_shared_with_static_runtimes=no
8077 export_dynamic_flag_spec=
8078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8079 hardcode_automatic=no
8080 hardcode_direct=no
8081 hardcode_direct_absolute=no
8082 hardcode_libdir_flag_spec=
8083 hardcode_libdir_flag_spec_ld=
8084 hardcode_libdir_separator=
8085 hardcode_minus_L=no
8086 hardcode_shlibpath_var=unsupported
8087 inherit_rpath=no
8088 link_all_deplibs=unknown
8089 module_cmds=
8090 module_expsym_cmds=
8091 old_archive_from_new_cmds=
8092 old_archive_from_expsyms_cmds=
8093 thread_safe_flag_spec=
8094 whole_archive_flag_spec=
8095 # include_expsyms should be a list of space-separated symbols to be *always*
8096 # included in the symbol list
8097 include_expsyms=
8098 # exclude_expsyms can be an extended regexp of symbols to exclude
8099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8101 # as well as any symbol that contains `d'.
8102 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8104 # platforms (ab)use it in PIC code, but their linkers get confused if
8105 # the symbol is explicitly referenced. Since portable code cannot
8106 # rely on this symbol name, it's probably fine to never include it in
8107 # preloaded symbol tables.
8108 extract_expsyms_cmds=
8109
8110 case $host_os in
8111 cygwin* | mingw* | pw32*)
8112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8113 # When not using gcc, we currently assume that we are using
8114 # Microsoft Visual C++.
8115 if test "$GCC" != yes; then
8116 with_gnu_ld=no
8117 fi
8118 ;;
8119 interix*)
8120 # we just hope/assume this is gcc and not c89 (= MSVC++)
8121 with_gnu_ld=yes
8122 ;;
8123 openbsd*)
8124 with_gnu_ld=no
8125 ;;
8126 esac
8127
8128 ld_shlibs=yes
8129 if test "$with_gnu_ld" = yes; then
8130 # If archive_cmds runs LD, not CC, wlarc should be empty
8131 wlarc='${wl}'
8132
8133 # Set some defaults for GNU ld with shared library support. These
8134 # are reset later if shared libraries are not supported. Putting them
8135 # here allows them to be overridden if necessary.
8136 runpath_var=LD_RUN_PATH
8137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8138 export_dynamic_flag_spec='${wl}--export-dynamic'
8139 # ancient GNU ld didn't support --whole-archive et. al.
8140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8142 else
8143 whole_archive_flag_spec=
8144 fi
8145 supports_anon_versioning=no
8146 case `$LD -v 2>&1` in
8147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8150 *\ 2.11.*) ;; # other 2.11 versions
8151 *) supports_anon_versioning=yes ;;
8152 esac
8153
8154 # See if GNU ld supports shared libraries.
8155 case $host_os in
8156 aix3* | aix4* | aix5*)
8157 # On AIX/PPC, the GNU linker is very broken
8158 if test "$host_cpu" != ia64; then
8159 ld_shlibs=no
8160 cat <<_LT_EOF 1>&2
8161
8162*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8163*** to be unable to reliably create shared libraries on AIX.
8164*** Therefore, libtool is disabling shared libraries support. If you
8165*** really care for shared libraries, you may want to modify your PATH
8166*** so that a non-GNU linker is found, and then restart.
8167
8168_LT_EOF
8169 fi
8170 ;;
8171
8172 amigaos*)
8173 if test "$host_cpu" = m68k; then
8174 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)'
8175 hardcode_libdir_flag_spec='-L$libdir'
8176 hardcode_minus_L=yes
8177 fi
8178
8179 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8180 # that the semantics of dynamic libraries on AmigaOS, at least up
8181 # to version 4, is to share data among multiple programs linked
8182 # with the same dynamic library. Since this doesn't match the
8183 # behavior of shared libraries on other platforms, we can't use
8184 # them.
8185 ld_shlibs=no
8186 ;;
8187
8188 beos*)
8189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8190 allow_undefined_flag=unsupported
8191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8192 # support --undefined. This deserves some investigation. FIXME
8193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 else
8195 ld_shlibs=no
8196 fi
8197 ;;
8198
8199 cygwin* | mingw* | pw32*)
8200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8201 # as there is no search path for DLLs.
8202 hardcode_libdir_flag_spec='-L$libdir'
8203 allow_undefined_flag=unsupported
8204 always_export_symbols=no
8205 enable_shared_with_static_runtimes=yes
8206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8207
8208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8210 # If the export-symbols file already is a .def file (1st line
8211 # is EXPORTS), use it as is; otherwise, prepend...
8212 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8213 cp $export_symbols $output_objdir/$soname.def;
8214 else
8215 echo EXPORTS > $output_objdir/$soname.def;
8216 cat $export_symbols >> $output_objdir/$soname.def;
8217 fi~
8218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8219 else
8220 ld_shlibs=no
8221 fi
8222 ;;
8223
8224 interix[3-9]*)
8225 hardcode_direct=no
8226 hardcode_shlibpath_var=no
8227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8228 export_dynamic_flag_spec='${wl}-E'
8229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8230 # Instead, shared libraries are loaded at an image base (0x10000000 by
8231 # default) and relocated if they conflict, which is a slow very memory
8232 # consuming and fragmenting process. To avoid this, we pick a random,
8233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8236 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'
8237 ;;
8238
8239 gnu* | linux* | tpf* | k*bsd*-gnu)
8240 tmp_diet=no
8241 if test "$host_os" = linux-dietlibc; then
8242 case $cc_basename in
8243 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8244 esac
8245 fi
8246 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8247 && test "$tmp_diet" = no
8248 then
8249 tmp_addflag=
8250 case $cc_basename,$host_cpu in
8251 pgcc*) # Portland Group C compiler
8252 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'
8253 tmp_addflag=' $pic_flag'
8254 ;;
8255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8256 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'
8257 tmp_addflag=' $pic_flag -Mnomain' ;;
8258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8259 tmp_addflag=' -i_dynamic' ;;
8260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8261 tmp_addflag=' -i_dynamic -nofor_main' ;;
8262 ifc* | ifort*) # Intel Fortran compiler
8263 tmp_addflag=' -nofor_main' ;;
8264 esac
8265 case `$CC -V 2>&1 | sed 5q` in
8266 *Sun\ C*) # Sun C 5.9
8267 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'
8268 compiler_needs_object=yes
8269 tmp_sharedflag='-G' ;;
8270 *Sun\ F*) # Sun Fortran 8.3
8271 tmp_sharedflag='-G' ;;
8272 *)
8273 tmp_sharedflag='-shared' ;;
8274 esac
8275 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276
8277 if test "x$supports_anon_versioning" = xyes; then
8278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8280 echo "local: *; };" >> $output_objdir/$libname.ver~
8281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8282 fi
8283 else
8284 ld_shlibs=no
8285 fi
8286 ;;
8287
8288 netbsd*)
8289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8291 wlarc=
8292 else
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295 fi
8296 ;;
8297
8298 solaris*)
8299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8300 ld_shlibs=no
8301 cat <<_LT_EOF 1>&2
8302
8303*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304*** create shared libraries on Solaris systems. Therefore, libtool
8305*** is disabling shared libraries support. We urge you to upgrade GNU
8306*** binutils to release 2.9.1 or newer. Another option is to modify
8307*** your PATH or compiler configuration so that the native linker is
8308*** used, and then restart.
8309
8310_LT_EOF
8311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8314 else
8315 ld_shlibs=no
8316 fi
8317 ;;
8318
8319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8320 case `$LD -v 2>&1` in
8321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8322 ld_shlibs=no
8323 cat <<_LT_EOF 1>&2
8324
8325*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8326*** reliably create shared libraries on SCO systems. Therefore, libtool
8327*** is disabling shared libraries support. We urge you to upgrade GNU
8328*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8329*** your PATH or compiler configuration so that the native linker is
8330*** used, and then restart.
8331
8332_LT_EOF
8333 ;;
8334 *)
8335 # For security reasons, it is highly recommended that you always
8336 # use absolute paths for naming shared libraries, and exclude the
8337 # DT_RUNPATH tag from executables and libraries. But doing so
8338 # requires that you compile everything twice, which is a pain.
8339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8343 else
8344 ld_shlibs=no
8345 fi
8346 ;;
8347 esac
8348 ;;
8349
8350 sunos4*)
8351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8352 wlarc=
8353 hardcode_direct=yes
8354 hardcode_shlibpath_var=no
8355 ;;
8356
8357 *)
8358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8361 else
8362 ld_shlibs=no
8363 fi
8364 ;;
8365 esac
8366
8367 if test "$ld_shlibs" = no; then
8368 runpath_var=
8369 hardcode_libdir_flag_spec=
8370 export_dynamic_flag_spec=
8371 whole_archive_flag_spec=
8372 fi
8373 else
8374 # PORTME fill in a description of your system's linker (not GNU ld)
8375 case $host_os in
8376 aix3*)
8377 allow_undefined_flag=unsupported
8378 always_export_symbols=yes
8379 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'
8380 # Note: this linker hardcodes the directories in LIBPATH if there
8381 # are no directories specified by -L.
8382 hardcode_minus_L=yes
8383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8384 # Neither direct hardcoding nor static linking is supported with a
8385 # broken collect2.
8386 hardcode_direct=unsupported
8387 fi
8388 ;;
8389
8390 aix4* | aix5*)
8391 if test "$host_cpu" = ia64; then
8392 # On IA64, the linker does run time linking by default, so we don't
8393 # have to do anything special.
8394 aix_use_runtimelinking=no
8395 exp_sym_flag='-Bexport'
8396 no_entry_flag=""
8397 else
8398 # If we're using GNU nm, then we don't want the "-C" option.
8399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8401 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'
8402 else
8403 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'
8404 fi
8405 aix_use_runtimelinking=no
8406
8407 # Test if we are trying to use run time linking or normal
8408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8409 # need to do runtime linking.
8410 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8411 for ld_flag in $LDFLAGS; do
8412 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8413 aix_use_runtimelinking=yes
8414 break
8415 fi
8416 done
8417 ;;
8418 esac
8419
8420 exp_sym_flag='-bexport'
8421 no_entry_flag='-bnoentry'
8422 fi
8423
8424 # When large executables or shared objects are built, AIX ld can
8425 # have problems creating the table of contents. If linking a library
8426 # or program results in "error TOC overflow" add -mminimal-toc to
8427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8429
8430 archive_cmds=''
8431 hardcode_direct=yes
8432 hardcode_direct_absolute=yes
8433 hardcode_libdir_separator=':'
8434 link_all_deplibs=yes
8435 file_list_spec='${wl}-f,'
8436
8437 if test "$GCC" = yes; then
8438 case $host_os in aix4.[012]|aix4.[012].*)
8439 # We only want to do this on AIX 4.2 and lower, the check
8440 # below for broken collect2 doesn't work under 4.3+
8441 collect2name=`${CC} -print-prog-name=collect2`
8442 if test -f "$collect2name" &&
8443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8444 then
8445 # We have reworked collect2
8446 :
8447 else
8448 # We have old collect2
8449 hardcode_direct=unsupported
8450 # It fails to find uninstalled libraries when the uninstalled
8451 # path is not listed in the libpath. Setting hardcode_minus_L
8452 # to unsupported forces relinking
8453 hardcode_minus_L=yes
8454 hardcode_libdir_flag_spec='-L$libdir'
8455 hardcode_libdir_separator=
8456 fi
8457 ;;
8458 esac
8459 shared_flag='-shared'
8460 if test "$aix_use_runtimelinking" = yes; then
8461 shared_flag="$shared_flag "'${wl}-G'
8462 fi
8463 else
8464 # not using gcc
8465 if test "$host_cpu" = ia64; then
8466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8467 # chokes on -Wl,-G. The following line is correct:
8468 shared_flag='-G'
8469 else
8470 if test "$aix_use_runtimelinking" = yes; then
8471 shared_flag='${wl}-G'
8472 else
8473 shared_flag='${wl}-bM:SRE'
8474 fi
8475 fi
8476 fi
8477
8478 # It seems that -bexpall does not export symbols beginning with
8479 # underscore (_), so it is better to generate a list of symbols to export.
8480 always_export_symbols=yes
8481 if test "$aix_use_runtimelinking" = yes; then
8482 # Warning - without using the other runtime loading flags (-brtl),
8483 # -berok will link without error, but may produce a broken library.
8484 allow_undefined_flag='-berok'
8485 # Determine the default libpath from the value encoded in an
8486 # empty executable.
8487 cat >conftest.$ac_ext <<_ACEOF
8488/* confdefs.h. */
8489_ACEOF
8490cat confdefs.h >>conftest.$ac_ext
8491cat >>conftest.$ac_ext <<_ACEOF
8492/* end confdefs.h. */
8493
8494int
8495main ()
8496{
8497
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext conftest$ac_exeext
8503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag"
8512 || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524
8525lt_aix_libpath_sed='
8526 /Import File Strings/,/^$/ {
8527 /^0/ {
8528 s/^0 *\(.*\)$/\1/
8529 p
8530 }
8531 }'
8532aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8533# Check for a 64-bit object if we didn't find anything.
8534if test -z "$aix_libpath"; then
8535 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8536fi
8537else
8538 echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541fi
8542rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8545
8546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 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"
8548 else
8549 if test "$host_cpu" = ia64; then
8550 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8551 allow_undefined_flag="-z nodefs"
8552 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"
8553 else
8554 # Determine the default libpath from the value encoded in an
8555 # empty executable.
8556 cat >conftest.$ac_ext <<_ACEOF
8557/* confdefs.h. */
8558_ACEOF
8559cat confdefs.h >>conftest.$ac_ext
8560cat >>conftest.$ac_ext <<_ACEOF
8561/* end confdefs.h. */
8562
8563int
8564main ()
8565{
8566
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext conftest$ac_exeext
8572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593
8594lt_aix_libpath_sed='
8595 /Import File Strings/,/^$/ {
8596 /^0/ {
8597 s/^0 *\(.*\)$/\1/
8598 p
8599 }
8600 }'
8601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8602# Check for a 64-bit object if we didn't find anything.
8603if test -z "$aix_libpath"; then
8604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8605fi
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610fi
8611rm -f conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8614
8615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616 # Warning - without using the other run time loading flags,
8617 # -berok will link without error, but may produce a broken library.
8618 no_undefined_flag=' ${wl}-bernotok'
8619 allow_undefined_flag=' ${wl}-berok'
8620 # Exported symbols can be pulled into shared objects from archives
8621 whole_archive_flag_spec='$convenience'
8622 archive_cmds_need_lc=yes
8623 # This is similar to how AIX traditionally builds its shared libraries.
8624 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'
8625 fi
8626 fi
8627 ;;
8628
8629 amigaos*)
8630 if test "$host_cpu" = m68k; then
8631 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)'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_minus_L=yes
8634 fi
8635 # see comment about different semantics on the GNU ld section
8636 ld_shlibs=no
8637 ;;
8638
8639 bsdi[45]*)
8640 export_dynamic_flag_spec=-rdynamic
8641 ;;
8642
8643 cygwin* | mingw* | pw32*)
8644 # When not using gcc, we currently assume that we are using
8645 # Microsoft Visual C++.
8646 # hardcode_libdir_flag_spec is actually meaningless, as there is
8647 # no search path for DLLs.
8648 hardcode_libdir_flag_spec=' '
8649 allow_undefined_flag=unsupported
8650 # Tell ltmain to make .lib files, not .a files.
8651 libext=lib
8652 # Tell ltmain to make .dll files, not .so files.
8653 shrext_cmds=".dll"
8654 # FIXME: Setting linknames here is a bad hack.
8655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8656 # The linker will automatically build a .lib file if we build a DLL.
8657 old_archive_from_new_cmds='true'
8658 # FIXME: Should let the user specify the lib program.
8659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8660 fix_srcfile_path='`cygpath -w "$srcfile"`'
8661 enable_shared_with_static_runtimes=yes
8662 ;;
8663
8664 darwin* | rhapsody*)
8665 case $host_os in
8666 rhapsody* | darwin1.[012])
8667 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8668 ;;
8669 *) # Darwin 1.3 on
8670 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8671 10.[012])
8672 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8673 ;;
8674 10.*)
8675 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8676 ;;
8677 esac
8678 ;;
8679 esac
8680 archive_cmds_need_lc=no
8681 hardcode_direct=no
8682 hardcode_automatic=yes
8683 hardcode_shlibpath_var=unsupported
8684 whole_archive_flag_spec=''
8685 link_all_deplibs=yes
8686 if test "$GCC" = yes ; then
8687 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 lt_cv_apple_cc_single_mod=no
8691 if test -z "${LT_MULTI_MODULE}"; then
8692 # By default we will add the -single_module flag. You can override
8693 # by either setting the environment variable LT_MULTI_MODULE
8694 # non-empty at configure time, or by adding -multi-module to the
8695 # link flags.
8696 echo "int foo(void){return 1;}" > conftest.c
8697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8698 -dynamiclib ${wl}-single_module conftest.c
8699 if test -f libconftest.dylib; then
8700 lt_cv_apple_cc_single_mod=yes
8701 rm libconftest.dylib
8702 fi
8703 rm conftest.$ac_ext
8704 fi
8705fi
8706
8707 output_verbose_link_cmd=echo
8708 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8709 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8710 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8711 else
8712 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8713 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8714 fi
8715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8716 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8717 else
8718 case $cc_basename in
8719 xlc*)
8720 output_verbose_link_cmd=echo
8721 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8722 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8724 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8725 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8726 ;;
8727 *)
8728 ld_shlibs=no
8729 ;;
8730 esac
8731 fi
8732 ;;
8733
8734 dgux*)
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_shlibpath_var=no
8738 ;;
8739
8740 freebsd1*)
8741 ld_shlibs=no
8742 ;;
8743
8744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8745 # support. Future versions do this automatically, but an explicit c++rt0.o
8746 # does not break anything, and helps significantly (at the cost of a little
8747 # extra space).
8748 freebsd2.2*)
8749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8750 hardcode_libdir_flag_spec='-R$libdir'
8751 hardcode_direct=yes
8752 hardcode_shlibpath_var=no
8753 ;;
8754
8755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8756 freebsd2*)
8757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_direct=yes
8759 hardcode_minus_L=yes
8760 hardcode_shlibpath_var=no
8761 ;;
8762
8763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8764 freebsd* | dragonfly*)
8765 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8766 hardcode_libdir_flag_spec='-R$libdir'
8767 hardcode_direct=yes
8768 hardcode_shlibpath_var=no
8769 ;;
8770
8771 hpux9*)
8772 if test "$GCC" = yes; then
8773 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'
8774 else
8775 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'
8776 fi
8777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778 hardcode_libdir_separator=:
8779 hardcode_direct=yes
8780
8781 # hardcode_minus_L: Not really in the search PATH,
8782 # but as the default location of the library.
8783 hardcode_minus_L=yes
8784 export_dynamic_flag_spec='${wl}-E'
8785 ;;
8786
8787 hpux10*)
8788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790 else
8791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8792 fi
8793 if test "$with_gnu_ld" = no; then
8794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795 hardcode_libdir_flag_spec_ld='+b $libdir'
8796 hardcode_libdir_separator=:
8797 hardcode_direct=yes
8798 hardcode_direct_absolute=yes
8799 export_dynamic_flag_spec='${wl}-E'
8800 # hardcode_minus_L: Not really in the search PATH,
8801 # but as the default location of the library.
8802 hardcode_minus_L=yes
8803 fi
8804 ;;
8805
8806 hpux11*)
8807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808 case $host_cpu in
8809 hppa*64*)
8810 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8811 ;;
8812 ia64*)
8813 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8814 ;;
8815 *)
8816 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817 ;;
8818 esac
8819 else
8820 case $host_cpu in
8821 hppa*64*)
8822 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 ;;
8824 ia64*)
8825 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826 ;;
8827 *)
8828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829 ;;
8830 esac
8831 fi
8832 if test "$with_gnu_ld" = no; then
8833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834 hardcode_libdir_separator=:
8835
8836 case $host_cpu in
8837 hppa*64*|ia64*)
8838 hardcode_direct=no
8839 hardcode_shlibpath_var=no
8840 ;;
8841 *)
8842 hardcode_direct=yes
8843 hardcode_direct_absolute=yes
8844 export_dynamic_flag_spec='${wl}-E'
8845
8846 # hardcode_minus_L: Not really in the search PATH,
8847 # but as the default location of the library.
8848 hardcode_minus_L=yes
8849 ;;
8850 esac
8851 fi
8852 ;;
8853
8854 irix5* | irix6* | nonstopux*)
8855 if test "$GCC" = yes; then
8856 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'
8857 # Try to use the -exported_symbol ld option, if it does not
8858 # work, assume that -exports_file does not work either and
8859 # implicitly export all symbols.
8860 save_LDFLAGS="$LDFLAGS"
8861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8862 cat >conftest.$ac_ext <<_ACEOF
8863int foo(void) {}
8864_ACEOF
8865rm -f conftest.$ac_objext conftest$ac_exeext
8866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -z "$ac_c_werror_flag"
8875 || test ! -s conftest.err'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 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'
8888
8889else
8890 echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
8893fi
8894rm -f conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 LDFLAGS="$save_LDFLAGS"
8897 else
8898 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'
8899 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'
8900 fi
8901 archive_cmds_need_lc='no'
8902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8903 hardcode_libdir_separator=:
8904 inherit_rpath=yes
8905 link_all_deplibs=yes
8906 ;;
8907
8908 netbsd*)
8909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8911 else
8912 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8913 fi
8914 hardcode_libdir_flag_spec='-R$libdir'
8915 hardcode_direct=yes
8916 hardcode_shlibpath_var=no
8917 ;;
8918
8919 newsos6)
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_direct=yes
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 hardcode_shlibpath_var=no
8925 ;;
8926
8927 *nto* | *qnx*)
8928 ;;
8929
8930 openbsd*)
8931 hardcode_direct=yes
8932 hardcode_shlibpath_var=no
8933 hardcode_direct_absolute=yes
8934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8936 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8938 export_dynamic_flag_spec='${wl}-E'
8939 else
8940 case $host_os in
8941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8943 hardcode_libdir_flag_spec='-R$libdir'
8944 ;;
8945 *)
8946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8948 ;;
8949 esac
8950 fi
8951 ;;
8952
8953 os2*)
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 allow_undefined_flag=unsupported
8957 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'
8958 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8959 ;;
8960
8961 osf3*)
8962 if test "$GCC" = yes; then
8963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964 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'
8965 else
8966 allow_undefined_flag=' -expect_unresolved \*'
8967 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'
8968 fi
8969 archive_cmds_need_lc='no'
8970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971 hardcode_libdir_separator=:
8972 ;;
8973
8974 osf4* | osf5*) # as osf3* with the addition of -msym flag
8975 if test "$GCC" = yes; then
8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977 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'
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 else
8980 allow_undefined_flag=' -expect_unresolved \*'
8981 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'
8982 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~
8983 $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'
8984
8985 # Both c and cxx compiler support -rpath directly
8986 hardcode_libdir_flag_spec='-rpath $libdir'
8987 fi
8988 archive_cmds_need_lc='no'
8989 hardcode_libdir_separator=:
8990 ;;
8991
8992 solaris*)
8993 no_undefined_flag=' -z defs'
8994 if test "$GCC" = yes; then
8995 wlarc='${wl}'
8996 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8999 else
9000 case `$CC -V 2>&1` in
9001 *"Compilers 5.0"*)
9002 wlarc=''
9003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9006 ;;
9007 *)
9008 wlarc='${wl}'
9009 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9012 ;;
9013 esac
9014 fi
9015 hardcode_libdir_flag_spec='-R$libdir'
9016 hardcode_shlibpath_var=no
9017 case $host_os in
9018 solaris2.[0-5] | solaris2.[0-5].*) ;;
9019 *)
9020 # The compiler driver will combine and reorder linker options,
9021 # but understands `-z linker_flag'. GCC discards it without `$wl',
9022 # but is careful enough not to reorder.
9023 # Supported since Solaris 2.6 (maybe 2.5.1?)
9024 if test "$GCC" = yes; then
9025 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9026 else
9027 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9028 fi
9029 ;;
9030 esac
9031 link_all_deplibs=yes
9032 ;;
9033
9034 sunos4*)
9035 if test "x$host_vendor" = xsequent; then
9036 # Use $CC to link under sequent, because it throws in some extra .o
9037 # files that make .init and .fini sections work.
9038 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9041 fi
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_direct=yes
9044 hardcode_minus_L=yes
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 sysv4)
9049 case $host_vendor in
9050 sni)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=yes # is this really true???
9053 ;;
9054 siemens)
9055 ## LD is ld it makes a PLAMLIB
9056 ## CC just makes a GrossModule.
9057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9058 reload_cmds='$CC -r -o $output$reload_objs'
9059 hardcode_direct=no
9060 ;;
9061 motorola)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9064 ;;
9065 esac
9066 runpath_var='LD_RUN_PATH'
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 sysv4.3*)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_shlibpath_var=no
9073 export_dynamic_flag_spec='-Bexport'
9074 ;;
9075
9076 sysv4*MP*)
9077 if test -d /usr/nec; then
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var=no
9080 runpath_var=LD_RUN_PATH
9081 hardcode_runpath_var=yes
9082 ld_shlibs=yes
9083 fi
9084 ;;
9085
9086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9087 no_undefined_flag='${wl}-z,text'
9088 archive_cmds_need_lc=no
9089 hardcode_shlibpath_var=no
9090 runpath_var='LD_RUN_PATH'
9091
9092 if test "$GCC" = yes; then
9093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 else
9096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 fi
9099 ;;
9100
9101 sysv5* | sco3.2v5* | sco5v6*)
9102 # Note: We can NOT use -z defs as we might desire, because we do not
9103 # link with -lc, and that would cause any symbols used from libc to
9104 # always be unresolved, which means just about no library would
9105 # ever link correctly. If we're not using GNU ld we use -z text
9106 # though, which does catch some bad symbols but isn't as heavy-handed
9107 # as -z defs.
9108 no_undefined_flag='${wl}-z,text'
9109 allow_undefined_flag='${wl}-z,nodefs'
9110 archive_cmds_need_lc=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 export_dynamic_flag_spec='${wl}-Bexport'
9116 runpath_var='LD_RUN_PATH'
9117
9118 if test "$GCC" = yes; then
9119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 else
9122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 fi
9125 ;;
9126
9127 uts4*)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_shlibpath_var=no
9131 ;;
9132
9133 *)
9134 ld_shlibs=no
9135 ;;
9136 esac
9137
9138 if test x$host_vendor = xsni; then
9139 case $host in
9140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9142 ;;
9143 esac
9144 fi
9145 fi
9146
9147echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9148echo "${ECHO_T}$ld_shlibs" >&6
9149test "$ld_shlibs" = no && can_build_shared=no
9150
9151with_gnu_ld=$with_gnu_ld
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167#
9168# Do we need to explicitly link libc?
9169#
9170case "x$archive_cmds_need_lc" in
9171x|xyes)
9172 # Assume -lc should be added
9173 archive_cmds_need_lc=yes
9174
9175 if test "$enable_shared" = yes && test "$GCC" = yes; then
9176 case $archive_cmds in
9177 *'~'*)
9178 # FIXME: we may have to deal with multi-command sequences.
9179 ;;
9180 '$CC '*)
9181 # Test whether the compiler implicitly links with -lc since on some
9182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9183 # to ld, don't add -lc before -lgcc.
9184 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9185echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9186 $RM conftest*
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9188
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } 2>conftest.err; then
9194 soname=conftest
9195 lib=conftest
9196 libobjs=conftest.$ac_objext
9197 deplibs=
9198 wl=$lt_prog_compiler_wl
9199 pic_flag=$lt_prog_compiler_pic
9200 compiler_flags=-v
9201 linker_flags=-v
9202 verstring=
9203 output_objdir=.
9204 libname=conftest
9205 lt_save_allow_undefined_flag=$allow_undefined_flag
9206 allow_undefined_flag=
9207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }
9212 then
9213 archive_cmds_need_lc=no
9214 else
9215 archive_cmds_need_lc=yes
9216 fi
9217 allow_undefined_flag=$lt_save_allow_undefined_flag
9218 else
9219 cat conftest.err 1>&5
9220 fi
9221 $RM conftest*
9222 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9223echo "${ECHO_T}$archive_cmds_need_lc" >&6
9224 ;;
9225 esac
9226 fi
9227 ;;
9228esac
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9387echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9388withGCC=$GCC
9389if test "$withGCC" = yes; then
9390 case $host_os in
9391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9392 *) lt_awk_arg="/^libraries:/" ;;
9393 esac
9394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9396 # if the path contains ";" then we assume it to be the separator
9397 # otherwise default to the standard path separator (i.e. ":") - it is
9398 # assumed that no part of a normal pathname contains ";" but that should
9399 # okay in the real world where ";" in dirpaths is itself problematic.
9400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9401 else
9402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9403 fi
9404 # Ok, now we have the path, separated by spaces, we can step through it
9405 # and add multilib dir if necessary.
9406 lt_tmp_lt_search_path_spec=
9407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9408 for lt_sys_path in $lt_search_path_spec; do
9409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9411 else
9412 test -d "$lt_sys_path" && \
9413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9414 fi
9415 done
9416 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9417BEGIN {RS=" "; FS="/|\n";} {
9418 lt_foo="";
9419 lt_count=0;
9420 for (lt_i = NF; lt_i > 0; lt_i--) {
9421 if ($lt_i != "" && $lt_i != ".") {
9422 if ($lt_i == "..") {
9423 lt_count++;
9424 } else {
9425 if (lt_count == 0) {
9426 lt_foo="/" $lt_i lt_foo;
9427 } else {
9428 lt_count--;
9429 }
9430 }
9431 }
9432 }
9433 if (lt_foo != "") { lt_freq[lt_foo]++; }
9434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9435}'`
9436 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9437else
9438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9439fi
9440library_names_spec=
9441libname_spec='lib$name'
9442soname_spec=
9443shrext_cmds=".so"
9444postinstall_cmds=
9445postuninstall_cmds=
9446finish_cmds=
9447finish_eval=
9448shlibpath_var=
9449shlibpath_overrides_runpath=unknown
9450version_type=none
9451dynamic_linker="$host_os ld.so"
9452sys_lib_dlsearch_path_spec="/lib /usr/lib"
9453need_lib_prefix=unknown
9454hardcode_into_libs=no
9455
9456# when you set need_version to no, make sure it does not cause -set_version
9457# flags to be left without arguments
9458need_version=unknown
9459
9460case $host_os in
9461aix3*)
9462 version_type=linux
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9464 shlibpath_var=LIBPATH
9465
9466 # AIX 3 has no versioning support, so we append a major version to the name.
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 ;;
9469
9470aix4* | aix5*)
9471 version_type=linux
9472 need_lib_prefix=no
9473 need_version=no
9474 hardcode_into_libs=yes
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 supports IA64
9477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 else
9480 # With GCC up to 2.95.x, collect2 would create an import file
9481 # for dependence libraries. The import file would start with
9482 # the line `#! .'. This would cause the generated library to
9483 # depend on `.', always an invalid library. This was fixed in
9484 # development snapshots of GCC prior to 3.0.
9485 case $host_os in
9486 aix4 | aix4.[01] | aix4.[01].*)
9487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9488 echo ' yes '
9489 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9490 :
9491 else
9492 can_build_shared=no
9493 fi
9494 ;;
9495 esac
9496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9497 # soname into executable. Probably we can add versioning support to
9498 # collect2, so additional links can be useful in future.
9499 if test "$aix_use_runtimelinking" = yes; then
9500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9501 # instead of lib<name>.a to let people know that these are not
9502 # typical AIX shared libraries.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 else
9505 # We preserve .a as extension for shared libraries through AIX4.2
9506 # and later when we are not doing run time linking.
9507 library_names_spec='${libname}${release}.a $libname.a'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 fi
9510 shlibpath_var=LIBPATH
9511 fi
9512 ;;
9513
9514amigaos*)
9515 if test "$host_cpu" = m68k; then
9516 library_names_spec='$libname.ixlibrary $libname.a'
9517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9518 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'
9519 else
9520 dynamic_linker=no
9521 fi
9522 ;;
9523
9524beos*)
9525 library_names_spec='${libname}${shared_ext}'
9526 dynamic_linker="$host_os ld.so"
9527 shlibpath_var=LIBRARY_PATH
9528 ;;
9529
9530bsdi[45]*)
9531 version_type=linux
9532 need_version=no
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9539 # the default ld.so.conf also contains /usr/contrib/lib and
9540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9541 # libtool to hard-code these into programs
9542 ;;
9543
9544cygwin* | mingw* | pw32*)
9545 version_type=windows
9546 shrext_cmds=".dll"
9547 need_version=no
9548 need_lib_prefix=no
9549
9550 case $withGCC,$host_os in
9551 yes,cygwin* | yes,mingw* | yes,pw32*)
9552 library_names_spec='$libname.dll.a'
9553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9554 postinstall_cmds='base_file=`basename \${file}`~
9555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9556 dldir=$destdir/`dirname \$dlpath`~
9557 test -d \$dldir || mkdir -p \$dldir~
9558 $install_prog $dir/$dlname \$dldir/$dlname~
9559 chmod a+x \$dldir/$dlname~
9560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9562 fi'
9563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9564 dlpath=$dir/\$dldll~
9565 $RM \$dlpath'
9566 shlibpath_overrides_runpath=yes
9567
9568 case $host_os in
9569 cygwin*)
9570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9572 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9573 ;;
9574 mingw*)
9575 # MinGW DLLs use traditional 'lib' prefix
9576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9578 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9579 # It is most probably a Windows format PATH printed by
9580 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9581 # path with ; separators, and with drive letters. We can handle the
9582 # drive letters (cygwin fileutils understands them), so leave them,
9583 # especially as we might pass files found there to a mingw objdump,
9584 # which wouldn't understand a cygwinified path. Ahh.
9585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9586 else
9587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9588 fi
9589 ;;
9590 pw32*)
9591 # pw32 DLLs use 'pw' prefix rather than 'lib'
9592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9593 ;;
9594 esac
9595 ;;
9596
9597 *)
9598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9599 ;;
9600 esac
9601 dynamic_linker='Win32 ld.exe'
9602 # FIXME: first we should search . and the directory the executable is in
9603 shlibpath_var=PATH
9604 ;;
9605
9606darwin* | rhapsody*)
9607 dynamic_linker="$host_os dyld"
9608 version_type=darwin
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9612 soname_spec='${libname}${release}${major}$shared_ext'
9613 shlibpath_overrides_runpath=yes
9614 shlibpath_var=DYLD_LIBRARY_PATH
9615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9616
9617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9619 ;;
9620
9621dgux*)
9622 version_type=linux
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 ;;
9629
9630freebsd1*)
9631 dynamic_linker=no
9632 ;;
9633
9634freebsd* | dragonfly*)
9635 # DragonFly does not have aout. When/if they implement a new
9636 # versioning mechanism, adjust this.
9637 if test -x /usr/bin/objformat; then
9638 objformat=`/usr/bin/objformat`
9639 else
9640 case $host_os in
9641 freebsd[123]*) objformat=aout ;;
9642 *) objformat=elf ;;
9643 esac
9644 fi
9645 version_type=freebsd-$objformat
9646 case $version_type in
9647 freebsd-elf*)
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9649 need_version=no
9650 need_lib_prefix=no
9651 ;;
9652 freebsd-*)
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9654 need_version=yes
9655 ;;
9656 esac
9657 shlibpath_var=LD_LIBRARY_PATH
9658 case $host_os in
9659 freebsd2*)
9660 shlibpath_overrides_runpath=yes
9661 ;;
9662 freebsd3.[01]* | freebsdelf3.[01]*)
9663 shlibpath_overrides_runpath=yes
9664 hardcode_into_libs=yes
9665 ;;
9666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9668 shlibpath_overrides_runpath=no
9669 hardcode_into_libs=yes
9670 ;;
9671 *) # from 4.6 on, and DragonFly
9672 shlibpath_overrides_runpath=yes
9673 hardcode_into_libs=yes
9674 ;;
9675 esac
9676 ;;
9677
9678gnu*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 hardcode_into_libs=yes
9686 ;;
9687
9688hpux9* | hpux10* | hpux11*)
9689 # Give a soname corresponding to the major version so that dld.sl refuses to
9690 # link against other versions.
9691 version_type=sunos
9692 need_lib_prefix=no
9693 need_version=no
9694 case $host_cpu in
9695 ia64*)
9696 shrext_cmds='.so'
9697 hardcode_into_libs=yes
9698 dynamic_linker="$host_os dld.so"
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 if test "X$HPUX_IA64_MODE" = X32; then
9704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9705 else
9706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9707 fi
9708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9709 ;;
9710 hppa*64*)
9711 shrext_cmds='.sl'
9712 hardcode_into_libs=yes
9713 dynamic_linker="$host_os dld.sl"
9714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9720 ;;
9721 *)
9722 shrext_cmds='.sl'
9723 dynamic_linker="$host_os dld.sl"
9724 shlibpath_var=SHLIB_PATH
9725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 ;;
9729 esac
9730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9731 postinstall_cmds='chmod 555 $lib'
9732 ;;
9733
9734interix[3-9]*)
9735 version_type=linux
9736 need_lib_prefix=no
9737 need_version=no
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=no
9743 hardcode_into_libs=yes
9744 ;;
9745
9746irix5* | irix6* | nonstopux*)
9747 case $host_os in
9748 nonstopux*) version_type=nonstopux ;;
9749 *)
9750 if test "$lt_cv_prog_gnu_ld" = yes; then
9751 version_type=linux
9752 else
9753 version_type=irix
9754 fi ;;
9755 esac
9756 need_lib_prefix=no
9757 need_version=no
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9760 case $host_os in
9761 irix5* | nonstopux*)
9762 libsuff= shlibsuff=
9763 ;;
9764 *)
9765 case $LD in # libtool.m4 will add one of these switches to LD
9766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9767 libsuff= shlibsuff= libmagic=32-bit;;
9768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9769 libsuff=32 shlibsuff=N32 libmagic=N32;;
9770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9772 *) libsuff= shlibsuff= libmagic=never-match;;
9773 esac
9774 ;;
9775 esac
9776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9777 shlibpath_overrides_runpath=no
9778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9780 hardcode_into_libs=yes
9781 ;;
9782
9783# No shared lib support for Linux oldld, aout, or coff.
9784linux*oldld* | linux*aout* | linux*coff*)
9785 dynamic_linker=no
9786 ;;
9787
9788# This must be Linux ELF.
9789linux* | k*bsd*-gnu)
9790 version_type=linux
9791 need_lib_prefix=no
9792 need_version=no
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=no
9798 # Some binutils ld are patched to set DT_RUNPATH
9799 save_LDFLAGS=$LDFLAGS
9800 save_libdir=$libdir
9801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9803 cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h. */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h. */
9809
9810int
9811main ()
9812{
9813
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag"
9828 || test ! -s conftest.err'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9841 shlibpath_overrides_runpath=yes
9842fi
9843
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848fi
9849rm -f conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LDFLAGS=$save_LDFLAGS
9852 libdir=$save_libdir
9853
9854 # This implies no fast_install, which is unacceptable.
9855 # Some rework will be needed to allow for fast_install
9856 # before this can be enabled.
9857 hardcode_into_libs=yes
9858
9859 # Append ld.so.conf contents to the search path
9860 if test -f /etc/ld.so.conf; then
9861 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9863 fi
9864
9865 # We used to test for /lib/ld.so.1 and disable shared libraries on
9866 # powerpc, because MkLinux only supported shared libraries with the
9867 # GNU dynamic linker. Since this was broken with cross compilers,
9868 # most powerpc-linux boxes support dynamic linking these days and
9869 # people can always --disable-shared, the test was removed, and we
9870 # assume the GNU/Linux dynamic linker is in use.
9871 dynamic_linker='GNU/Linux ld.so'
9872 ;;
9873
9874netbsd*)
9875 version_type=sunos
9876 need_lib_prefix=no
9877 need_version=no
9878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9881 dynamic_linker='NetBSD (a.out) ld.so'
9882 else
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 dynamic_linker='NetBSD ld.elf_so'
9886 fi
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9890 ;;
9891
9892newsos6)
9893 version_type=linux
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=yes
9897 ;;
9898
9899*nto* | *qnx*)
9900 version_type=qnx
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=no
9907 hardcode_into_libs=yes
9908 dynamic_linker='ldqnx.so'
9909 ;;
9910
9911openbsd*)
9912 version_type=sunos
9913 sys_lib_dlsearch_path_spec="/usr/lib"
9914 need_lib_prefix=no
9915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9916 case $host_os in
9917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9918 *) need_version=no ;;
9919 esac
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924 case $host_os in
9925 openbsd2.[89] | openbsd2.[89].*)
9926 shlibpath_overrides_runpath=no
9927 ;;
9928 *)
9929 shlibpath_overrides_runpath=yes
9930 ;;
9931 esac
9932 else
9933 shlibpath_overrides_runpath=yes
9934 fi
9935 ;;
9936
9937os2*)
9938 libname_spec='$name'
9939 shrext_cmds=".dll"
9940 need_lib_prefix=no
9941 library_names_spec='$libname${shared_ext} $libname.a'
9942 dynamic_linker='OS/2 ld.exe'
9943 shlibpath_var=LIBPATH
9944 ;;
9945
9946osf3* | osf4* | osf5*)
9947 version_type=osf
9948 need_lib_prefix=no
9949 need_version=no
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9955 ;;
9956
9957rdos*)
9958 dynamic_linker=no
9959 ;;
9960
9961solaris*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9970 # ldd complains unless libraries are executable
9971 postinstall_cmds='chmod +x $lib'
9972 ;;
9973
9974sunos4*)
9975 version_type=sunos
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes
9980 if test "$with_gnu_ld" = yes; then
9981 need_lib_prefix=no
9982 fi
9983 need_version=yes
9984 ;;
9985
9986sysv4 | sysv4.3*)
9987 version_type=linux
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 case $host_vendor in
9992 sni)
9993 shlibpath_overrides_runpath=no
9994 need_lib_prefix=no
9995 runpath_var=LD_RUN_PATH
9996 ;;
9997 siemens)
9998 need_lib_prefix=no
9999 ;;
10000 motorola)
10001 need_lib_prefix=no
10002 need_version=no
10003 shlibpath_overrides_runpath=no
10004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10005 ;;
10006 esac
10007 ;;
10008
10009sysv4*MP*)
10010 if test -d /usr/nec ;then
10011 version_type=linux
10012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013 soname_spec='$libname${shared_ext}.$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 fi
10016 ;;
10017
10018sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10019 version_type=freebsd-elf
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=yes
10026 hardcode_into_libs=yes
10027 if test "$with_gnu_ld" = yes; then
10028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10029 else
10030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10031 case $host_os in
10032 sco3.2v5*)
10033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10034 ;;
10035 esac
10036 fi
10037 sys_lib_dlsearch_path_spec='/usr/lib'
10038 ;;
10039
10040tpf*)
10041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 ;;
10050
10051uts4*)
10052 version_type=linux
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 ;;
10057
10058*)
10059 dynamic_linker=no
10060 ;;
10061esac
10062echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10063echo "${ECHO_T}$dynamic_linker" >&6
10064test "$dynamic_linker" = no && can_build_shared=no
10065
10066variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10067if test "$GCC" = yes; then
10068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10069fi
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10158echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10159hardcode_action=
10160if test -n "$hardcode_libdir_flag_spec" ||
10161 test -n "$runpath_var" ||
10162 test "X$hardcode_automatic" = "Xyes" ; then
10163
10164 # We can hardcode non-existent directories.
10165 if test "$hardcode_direct" != no &&
10166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10167 # have to relink, otherwise we might link with an installed library
10168 # when we should be linking with a yet-to-be-installed one
10169 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10170 test "$hardcode_minus_L" != no; then
10171 # Linking always hardcodes the temporary library directory.
10172 hardcode_action=relink
10173 else
10174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10175 hardcode_action=immediate
10176 fi
10177else
10178 # We cannot hardcode anything, or else we can only hardcode existing
10179 # directories.
10180 hardcode_action=unsupported
10181fi
10182echo "$as_me:$LINENO: result: $hardcode_action" >&5
10183echo "${ECHO_T}$hardcode_action" >&6
10184
10185if test "$hardcode_action" = relink ||
10186 test "$inherit_rpath" = yes; then
10187 # Fast installation is not supported
10188 enable_fast_install=no
10189elif test "$shlibpath_overrides_runpath" = yes ||
10190 test "$enable_shared" = no; then
10191 # Fast installation is not necessary
10192 enable_fast_install=needless
10193fi
10194
10195
10196
10197
10198
10199
10200 if test "x$enable_dlopen" != xyes; then
10201 enable_dlopen=unknown
10202 enable_dlopen_self=unknown
10203 enable_dlopen_self_static=unknown
10204else
10205 lt_cv_dlopen=no
10206 lt_cv_dlopen_libs=
10207
10208 case $host_os in
10209 beos*)
10210 lt_cv_dlopen="load_add_on"
10211 lt_cv_dlopen_libs=
10212 lt_cv_dlopen_self=yes
10213 ;;
10214
10215 mingw* | pw32*)
10216 lt_cv_dlopen="LoadLibrary"
10217 lt_cv_dlopen_libs=
10218 ;;
10219
10220 cygwin*)
10221 lt_cv_dlopen="dlopen"
10222 lt_cv_dlopen_libs=
10223 ;;
10224
10225 darwin*)
10226 # if libdl is installed we need to link against it
10227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231else
10232 ac_check_lib_save_LIBS=$LIBS
10233LIBS="-ldl $LIBS"
10234cat >conftest.$ac_ext <<_ACEOF
10235/* confdefs.h. */
10236_ACEOF
10237cat confdefs.h >>conftest.$ac_ext
10238cat >>conftest.$ac_ext <<_ACEOF
10239/* end confdefs.h. */
10240
10241/* Override any gcc2 internal prototype to avoid an error. */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245/* We use char because int might match the return type of a gcc2
10246 builtin and then its argument prototype would still apply. */
10247char dlopen ();
10248int
10249main ()
10250{
10251dlopen ();
10252 ;
10253 return 0;
10254}
10255_ACEOF
10256rm -f conftest.$ac_objext conftest$ac_exeext
10257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_lib_dl_dlopen=yes
10279else
10280 echo "$as_me: failed program was:" >&5
10281sed 's/^/| /' conftest.$ac_ext >&5
10282
10283ac_cv_lib_dl_dlopen=no
10284fi
10285rm -f conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287LIBS=$ac_check_lib_save_LIBS
10288fi
10289echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10290echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10291if test $ac_cv_lib_dl_dlopen = yes; then
10292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10293else
10294
10295 lt_cv_dlopen="dyld"
10296 lt_cv_dlopen_libs=
10297 lt_cv_dlopen_self=yes
10298
10299fi
10300
10301 ;;
10302
10303 *)
10304 echo "$as_me:$LINENO: checking for shl_load" >&5
10305echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10306if test "${ac_cv_func_shl_load+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 cat >conftest.$ac_ext <<_ACEOF
10310/* confdefs.h. */
10311_ACEOF
10312cat confdefs.h >>conftest.$ac_ext
10313cat >>conftest.$ac_ext <<_ACEOF
10314/* end confdefs.h. */
10315/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10317#define shl_load innocuous_shl_load
10318
10319/* System header to define __stub macros and hopefully few prototypes,
10320 which can conflict with char shl_load (); below.
10321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10322 <limits.h> exists even on freestanding compilers. */
10323
10324#ifdef __STDC__
10325# include <limits.h>
10326#else
10327# include <assert.h>
10328#endif
10329
10330#undef shl_load
10331
10332/* Override any gcc2 internal prototype to avoid an error. */
10333#ifdef __cplusplus
10334extern "C"
10335{
10336#endif
10337/* We use char because int might match the return type of a gcc2
10338 builtin and then its argument prototype would still apply. */
10339char shl_load ();
10340/* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343#if defined (__stub_shl_load) || defined (__stub___shl_load)
10344choke me
10345#else
10346char (*f) () = shl_load;
10347#endif
10348#ifdef __cplusplus
10349}
10350#endif
10351
10352int
10353main ()
10354{
10355return f != shl_load;
10356 ;
10357 return 0;
10358}
10359_ACEOF
10360rm -f conftest.$ac_objext conftest$ac_exeext
10361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_c_werror_flag"
10370 || test ! -s conftest.err'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest$ac_exeext'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_cv_func_shl_load=yes
10383else
10384 echo "$as_me: failed program was:" >&5
10385sed 's/^/| /' conftest.$ac_ext >&5
10386
10387ac_cv_func_shl_load=no
10388fi
10389rm -f conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391fi
10392echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10393echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10394if test $ac_cv_func_shl_load = yes; then
10395 lt_cv_dlopen="shl_load"
10396else
10397 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10398echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10399if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 ac_check_lib_save_LIBS=$LIBS
10403LIBS="-ldld $LIBS"
10404cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h. */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h. */
10410
10411/* Override any gcc2 internal prototype to avoid an error. */
10412#ifdef __cplusplus
10413extern "C"
10414#endif
10415/* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417char shl_load ();
10418int
10419main ()
10420{
10421shl_load ();
10422 ;
10423 return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext conftest$ac_exeext
10427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_lib_dld_shl_load=yes
10449else
10450 echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
10453ac_cv_lib_dld_shl_load=no
10454fi
10455rm -f conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457LIBS=$ac_check_lib_save_LIBS
10458fi
10459echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10460echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10461if test $ac_cv_lib_dld_shl_load = yes; then
10462 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10463else
10464 echo "$as_me:$LINENO: checking for dlopen" >&5
10465echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10466if test "${ac_cv_func_dlopen+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468else
10469 cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h. */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h. */
10475/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10477#define dlopen innocuous_dlopen
10478
10479/* System header to define __stub macros and hopefully few prototypes,
10480 which can conflict with char dlopen (); below.
10481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10482 <limits.h> exists even on freestanding compilers. */
10483
10484#ifdef __STDC__
10485# include <limits.h>
10486#else
10487# include <assert.h>
10488#endif
10489
10490#undef dlopen
10491
10492/* Override any gcc2 internal prototype to avoid an error. */
10493#ifdef __cplusplus
10494extern "C"
10495{
10496#endif
10497/* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10499char dlopen ();
10500/* The GNU C library defines this for functions which it implements
10501 to always fail with ENOSYS. Some functions are actually named
10502 something starting with __ and the normal name is an alias. */
10503#if defined (__stub_dlopen) || defined (__stub___dlopen)
10504choke me
10505#else
10506char (*f) () = dlopen;
10507#endif
10508#ifdef __cplusplus
10509}
10510#endif
10511
10512int
10513main ()
10514{
10515return f != dlopen;
10516 ;
10517 return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
10521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag"
10530 || test ! -s conftest.err'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_func_dlopen=yes
10543else
10544 echo "$as_me: failed program was:" >&5
10545sed 's/^/| /' conftest.$ac_ext >&5
10546
10547ac_cv_func_dlopen=no
10548fi
10549rm -f conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551fi
10552echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10553echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10554if test $ac_cv_func_dlopen = yes; then
10555 lt_cv_dlopen="dlopen"
10556else
10557 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10558echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10559if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561else
10562 ac_check_lib_save_LIBS=$LIBS
10563LIBS="-ldl $LIBS"
10564cat >conftest.$ac_ext <<_ACEOF
10565/* confdefs.h. */
10566_ACEOF
10567cat confdefs.h >>conftest.$ac_ext
10568cat >>conftest.$ac_ext <<_ACEOF
10569/* end confdefs.h. */
10570
10571/* Override any gcc2 internal prototype to avoid an error. */
10572#ifdef __cplusplus
10573extern "C"
10574#endif
10575/* We use char because int might match the return type of a gcc2
10576 builtin and then its argument prototype would still apply. */
10577char dlopen ();
10578int
10579main ()
10580{
10581dlopen ();
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 (eval $ac_link) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag"
10596 || test ! -s conftest.err'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_lib_dl_dlopen=yes
10609else
10610 echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
10613ac_cv_lib_dl_dlopen=no
10614fi
10615rm -f conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617LIBS=$ac_check_lib_save_LIBS
10618fi
10619echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10620echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10621if test $ac_cv_lib_dl_dlopen = yes; then
10622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10623else
10624 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10625echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10626if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628else
10629 ac_check_lib_save_LIBS=$LIBS
10630LIBS="-lsvld $LIBS"
10631cat >conftest.$ac_ext <<_ACEOF
10632/* confdefs.h. */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
10637
10638/* Override any gcc2 internal prototype to avoid an error. */
10639#ifdef __cplusplus
10640extern "C"
10641#endif
10642/* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10644char dlopen ();
10645int
10646main ()
10647{
10648dlopen ();
10649 ;
10650 return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
10654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
42fcd7bb
AJ
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_svld_dlopen=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10679
1cf3d07d
SE
10680ac_cv_lib_svld_dlopen=no
10681fi
10682rm -f conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684LIBS=$ac_check_lib_save_LIBS
10685fi
10686echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10687echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10688if test $ac_cv_lib_svld_dlopen = yes; then
10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10690else
10691 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10692echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10693if test "${ac_cv_lib_dld_dld_link+set}" = set; then
42fcd7bb 10694 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 10695else
1cf3d07d
SE
10696 ac_check_lib_save_LIBS=$LIBS
10697LIBS="-ldld $LIBS"
10698cat >conftest.$ac_ext <<_ACEOF
42fcd7bb
AJ
10699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
10704
1cf3d07d
SE
10705/* Override any gcc2 internal prototype to avoid an error. */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
10709/* We use char because int might match the return type of a gcc2
10710 builtin and then its argument prototype would still apply. */
10711char dld_link ();
42fcd7bb
AJ
10712int
10713main ()
10714{
1cf3d07d 10715dld_link ();
42fcd7bb
AJ
10716 ;
10717 return 0;
10718}
10719_ACEOF
10720rm -f conftest.$ac_objext conftest$ac_exeext
10721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 10722 (eval $ac_link) 2>conftest.er1
42fcd7bb 10723 ac_status=$?
076e5443
PB
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
42fcd7bb
AJ
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
66a5d3b1
FCE
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
076e5443
PB
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
42fcd7bb
AJ
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
1cf3d07d 10742 ac_cv_lib_dld_dld_link=yes
6de9cd9a 10743else
42fcd7bb
AJ
10744 echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
1cf3d07d 10747ac_cv_lib_dld_dld_link=no
6de9cd9a 10748fi
076e5443
PB
10749rm -f conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10751LIBS=$ac_check_lib_save_LIBS
10752fi
10753echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10754echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10755if test $ac_cv_lib_dld_dld_link = yes; then
10756 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10757fi
10758
6de9cd9a
DN
10759
10760fi
1cf3d07d
SE
10761
10762
10763fi
10764
10765
10766fi
10767
10768
10769fi
10770
10771
10772fi
10773
10774 ;;
10775 esac
10776
10777 if test "x$lt_cv_dlopen" != xno; then
10778 enable_dlopen=yes
10779 else
10780 enable_dlopen=no
6de9cd9a 10781 fi
6de9cd9a 10782
1cf3d07d
SE
10783 case $lt_cv_dlopen in
10784 dlopen)
10785 save_CPPFLAGS="$CPPFLAGS"
10786 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6de9cd9a 10787
1cf3d07d
SE
10788 save_LDFLAGS="$LDFLAGS"
10789 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6de9cd9a 10790
1cf3d07d
SE
10791 save_LIBS="$LIBS"
10792 LIBS="$lt_cv_dlopen_libs $LIBS"
6de9cd9a 10793
1cf3d07d
SE
10794 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10795echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10796if test "${lt_cv_dlopen_self+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 if test "$cross_compiling" = yes; then :
10800 lt_cv_dlopen_self=cross
10801else
10802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10803 lt_status=$lt_dlunknown
10804 cat > conftest.$ac_ext <<_LT_EOF
82a6cadf 10805#line 10805 "configure"
1cf3d07d 10806#include "confdefs.h"
42fcd7bb 10807
1cf3d07d
SE
10808#if HAVE_DLFCN_H
10809#include <dlfcn.h>
10810#endif
42fcd7bb 10811
1cf3d07d
SE
10812#include <stdio.h>
10813
10814#ifdef RTLD_GLOBAL
10815# define LT_DLGLOBAL RTLD_GLOBAL
10816#else
10817# ifdef DL_GLOBAL
10818# define LT_DLGLOBAL DL_GLOBAL
10819# else
10820# define LT_DLGLOBAL 0
10821# endif
10822#endif
10823
10824/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10825 find out it does not work in some platform. */
10826#ifndef LT_DLLAZY_OR_NOW
10827# ifdef RTLD_LAZY
10828# define LT_DLLAZY_OR_NOW RTLD_LAZY
10829# else
10830# ifdef DL_LAZY
10831# define LT_DLLAZY_OR_NOW DL_LAZY
10832# else
10833# ifdef RTLD_NOW
10834# define LT_DLLAZY_OR_NOW RTLD_NOW
10835# else
10836# ifdef DL_NOW
10837# define LT_DLLAZY_OR_NOW DL_NOW
10838# else
10839# define LT_DLLAZY_OR_NOW 0
10840# endif
10841# endif
10842# endif
10843# endif
10844#endif
10845
10846#ifdef __cplusplus
10847extern "C" void exit (int);
10848#endif
10849
10850void fnord() { int i=42;}
10851int main ()
42fcd7bb 10852{
1cf3d07d
SE
10853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10854 int status = $lt_dlunknown;
10855
10856 if (self)
10857 {
10858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10859 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10860 /* dlclose (self); */
10861 }
6de9cd9a 10862 else
1cf3d07d
SE
10863 puts (dlerror ());
10864
10865 exit (status);
10866}
10867_LT_EOF
10868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869 (eval $ac_link) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10873 (./conftest; exit; ) >&5 2>/dev/null
10874 lt_status=$?
10875 case x$lt_status in
10876 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10877 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10878 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10879 esac
10880 else :
10881 # compilation failed
10882 lt_cv_dlopen_self=no
6de9cd9a
DN
10883 fi
10884fi
1cf3d07d
SE
10885rm -fr conftest*
10886
10887
10888fi
10889echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10890echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10891
10892 if test "x$lt_cv_dlopen_self" = xyes; then
10893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10894 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10895echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10896if test "${lt_cv_dlopen_self_static+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898else
10899 if test "$cross_compiling" = yes; then :
10900 lt_cv_dlopen_self_static=cross
10901else
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<_LT_EOF
82a6cadf 10905#line 10905 "configure"
1cf3d07d
SE
10906#include "confdefs.h"
10907
10908#if HAVE_DLFCN_H
10909#include <dlfcn.h>
10910#endif
10911
10912#include <stdio.h>
10913
10914#ifdef RTLD_GLOBAL
10915# define LT_DLGLOBAL RTLD_GLOBAL
10916#else
10917# ifdef DL_GLOBAL
10918# define LT_DLGLOBAL DL_GLOBAL
10919# else
10920# define LT_DLGLOBAL 0
10921# endif
10922#endif
10923
10924/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926#ifndef LT_DLLAZY_OR_NOW
10927# ifdef RTLD_LAZY
10928# define LT_DLLAZY_OR_NOW RTLD_LAZY
10929# else
10930# ifdef DL_LAZY
10931# define LT_DLLAZY_OR_NOW DL_LAZY
10932# else
10933# ifdef RTLD_NOW
10934# define LT_DLLAZY_OR_NOW RTLD_NOW
10935# else
10936# ifdef DL_NOW
10937# define LT_DLLAZY_OR_NOW DL_NOW
10938# else
10939# define LT_DLLAZY_OR_NOW 0
10940# endif
10941# endif
10942# endif
10943# endif
10944#endif
10945
10946#ifdef __cplusplus
10947extern "C" void exit (int);
10948#endif
10949
10950void fnord() { int i=42;}
10951int main ()
10952{
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10955
10956 if (self)
10957 {
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 /* dlclose (self); */
10961 }
10962 else
10963 puts (dlerror ());
10964
10965 exit (status);
10966}
10967_LT_EOF
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973 (./conftest; exit; ) >&5 2>/dev/null
10974 lt_status=$?
10975 case x$lt_status in
10976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10978 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10979 esac
10980 else :
10981 # compilation failed
10982 lt_cv_dlopen_self_static=no
10983 fi
10984fi
10985rm -fr conftest*
10986
10987
10988fi
10989echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10990echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10991 fi
10992
10993 CPPFLAGS="$save_CPPFLAGS"
10994 LDFLAGS="$save_LDFLAGS"
10995 LIBS="$save_LIBS"
10996 ;;
10997 esac
10998
10999 case $lt_cv_dlopen_self in
11000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11001 *) enable_dlopen_self=unknown ;;
11002 esac
11003
11004 case $lt_cv_dlopen_self_static in
11005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11006 *) enable_dlopen_self_static=unknown ;;
11007 esac
11008fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026striplib=
11027old_striplib=
11028echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11029echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11030if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11032 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11033 echo "$as_me:$LINENO: result: yes" >&5
11034echo "${ECHO_T}yes" >&6
11035else
11036# FIXME - insert some real tests, host_os isn't really good enough
11037 case $host_os in
11038 darwin*)
11039 if test -n "$STRIP" ; then
11040 striplib="$STRIP -x"
11041 old_striplib="$STRIP -S"
11042 echo "$as_me:$LINENO: result: yes" >&5
11043echo "${ECHO_T}yes" >&6
11044 else
11045 echo "$as_me:$LINENO: result: no" >&5
11046echo "${ECHO_T}no" >&6
11047 fi
11048 ;;
11049 *)
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
11052 ;;
11053 esac
11054fi
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067 # Report which library types will actually be built
11068 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11069echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11070 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11071echo "${ECHO_T}$can_build_shared" >&6
11072
11073 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11074echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11075 test "$can_build_shared" = "no" && enable_shared=no
11076
11077 # On AIX, shared libraries and static libraries use the same namespace, and
11078 # are all built from PIC.
11079 case $host_os in
11080 aix3*)
11081 test "$enable_shared" = yes && enable_static=no
11082 if test -n "$RANLIB"; then
11083 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11084 postinstall_cmds='$RANLIB $lib'
11085 fi
11086 ;;
11087
11088 aix4* | aix5*)
11089 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11090 test "$enable_shared" = yes && enable_static=no
11091 fi
11092 ;;
11093 esac
11094 echo "$as_me:$LINENO: result: $enable_shared" >&5
11095echo "${ECHO_T}$enable_shared" >&6
11096
11097 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11098echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11099 # Make sure either enable_shared or enable_static is yes.
11100 test "$enable_shared" = yes || enable_static=yes
11101 echo "$as_me:$LINENO: result: $enable_static" >&5
11102echo "${ECHO_T}$enable_static" >&6
11103
11104
6de9cd9a 11105
6de9cd9a 11106
6de9cd9a 11107fi
1cf3d07d
SE
11108ac_ext=c
11109ac_cpp='$CPP $CPPFLAGS'
11110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11112ac_compiler_gnu=$ac_cv_c_compiler_gnu
11113
11114CC="$lt_save_CC"
11115
11116
11117
6de9cd9a
DN
11118
11119
6de9cd9a 11120
6de9cd9a 11121
6de9cd9a 11122
6de9cd9a 11123
6de9cd9a
DN
11124
11125
11126
42fcd7bb 11127
1cf3d07d
SE
11128 ac_config_commands="$ac_config_commands libtool"
11129
11130
11131
11132
11133# Only expand once:
11134
11135
42fcd7bb
AJ
11136
11137
11138
11139if test "${ac_cv_header_stdint_h+set}" = set; then
11140 echo "$as_me:$LINENO: checking for stdint.h" >&5
11141echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11142if test "${ac_cv_header_stdint_h+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144fi
11145echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11146echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6de9cd9a 11147else
42fcd7bb
AJ
11148 # Is the header compilable?
11149echo "$as_me:$LINENO: checking stdint.h usability" >&5
11150echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h. */
11157$ac_includes_default
6de9cd9a 11158#include <stdint.h>
42fcd7bb
AJ
11159_ACEOF
11160rm -f conftest.$ac_objext
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 11162 (eval $ac_compile) 2>conftest.er1
42fcd7bb 11163 ac_status=$?
076e5443
PB
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
42fcd7bb
AJ
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
66a5d3b1
FCE
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
076e5443
PB
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
6de9cd9a 11183else
42fcd7bb
AJ
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
11187ac_header_compiler=no
11188fi
076e5443 11189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
11190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11191echo "${ECHO_T}$ac_header_compiler" >&6
11192
11193# Is the header present?
11194echo "$as_me:$LINENO: checking stdint.h presence" >&5
11195echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11196cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202#include <stdint.h>
11203_ACEOF
11204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null; then
11212 if test -s conftest.err; then
11213 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 11214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
11215 else
11216 ac_cpp_err=
11217 fi
11218else
11219 ac_cpp_err=yes
6de9cd9a 11220fi
42fcd7bb
AJ
11221if test -z "$ac_cpp_err"; then
11222 ac_header_preproc=yes
11223else
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_header_preproc=no
11228fi
11229rm -f conftest.err conftest.$ac_ext
11230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11231echo "${ECHO_T}$ac_header_preproc" >&6
11232
11233# So? What about this header?
076e5443
PB
11234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 yes:no: )
42fcd7bb
AJ
11236 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11237echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
076e5443
PB
11238 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11239echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11240 ac_header_preproc=yes
42fcd7bb 11241 ;;
076e5443 11242 no:yes:* )
42fcd7bb
AJ
11243 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11244echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
076e5443
PB
11245 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11246echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11248echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11250echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
42fcd7bb
AJ
11251 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11252echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
076e5443
PB
11253 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11254echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
42fcd7bb
AJ
11255 (
11256 cat <<\_ASBOX
076e5443
PB
11257## ------------------------------------- ##
11258## Report this to the libmudflap lists. ##
11259## ------------------------------------- ##
42fcd7bb
AJ
11260_ASBOX
11261 ) |
11262 sed "s/^/$as_me: WARNING: /" >&2
11263 ;;
11264esac
11265echo "$as_me:$LINENO: checking for stdint.h" >&5
11266echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11267if test "${ac_cv_header_stdint_h+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 ac_cv_header_stdint_h=$ac_header_preproc
11271fi
11272echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11273echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11274
6de9cd9a 11275fi
42fcd7bb 11276if test $ac_cv_header_stdint_h = yes; then
6de9cd9a
DN
11277 MF_HAVE_STDINT_H=1
11278else
42fcd7bb 11279 MF_HAVE_STDINT_H=0
6de9cd9a
DN
11280fi
11281
11282
42fcd7bb 11283
6de9cd9a
DN
11284if test $MF_HAVE_STDINT_H = 1
11285then
11286 MF_HAVE_UINTPTR_T=1
11287else
42fcd7bb
AJ
11288 cat >conftest.$ac_ext <<_ACEOF
11289/* confdefs.h. */
11290_ACEOF
11291cat confdefs.h >>conftest.$ac_ext
11292cat >>conftest.$ac_ext <<_ACEOF
11293/* end confdefs.h. */
6de9cd9a 11294#include <sys/types.h>
42fcd7bb
AJ
11295int
11296main ()
11297{
6de9cd9a 11298uintptr_t k = 0;
42fcd7bb
AJ
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303rm -f conftest.$ac_objext
11304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 11305 (eval $ac_compile) 2>conftest.er1
42fcd7bb 11306 ac_status=$?
076e5443
PB
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
42fcd7bb
AJ
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
66a5d3b1
FCE
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
076e5443
PB
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
6de9cd9a
DN
11325 MF_HAVE_UINTPTR_T=1
11326else
42fcd7bb
AJ
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330MF_HAVE_UINTPTR_T=0
6de9cd9a 11331fi
076e5443 11332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
11333fi
11334
11335
11336if test ! -d pth
11337then
11338 # libmudflapth objects are built in this subdirectory
11339 mkdir pth
11340fi
11341
cc6ac522
JW
11342
11343for ac_header in pthread.h
11344do
11345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346if eval "test \"\${$as_ac_Header+set}\" = set"; then
11347 echo "$as_me:$LINENO: checking for $ac_header" >&5
11348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11349if eval "test \"\${$as_ac_Header+set}\" = set"; then
42fcd7bb
AJ
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351fi
cc6ac522
JW
11352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42fcd7bb
AJ
11354else
11355 # Is the header compilable?
cc6ac522
JW
11356echo "$as_me:$LINENO: checking $ac_header usability" >&5
11357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42fcd7bb
AJ
11358cat >conftest.$ac_ext <<_ACEOF
11359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
11364$ac_includes_default
cc6ac522 11365#include <$ac_header>
42fcd7bb
AJ
11366_ACEOF
11367rm -f conftest.$ac_objext
11368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 11369 (eval $ac_compile) 2>conftest.er1
42fcd7bb 11370 ac_status=$?
076e5443
PB
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
42fcd7bb
AJ
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
66a5d3b1
FCE
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
076e5443
PB
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
42fcd7bb
AJ
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_header_compiler=yes
6de9cd9a 11390else
42fcd7bb
AJ
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394ac_header_compiler=no
11395fi
076e5443 11396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42fcd7bb
AJ
11397echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398echo "${ECHO_T}$ac_header_compiler" >&6
11399
11400# Is the header present?
cc6ac522
JW
11401echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42fcd7bb
AJ
11403cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
cc6ac522 11409#include <$ac_header>
42fcd7bb
AJ
11410_ACEOF
11411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } >/dev/null; then
11419 if test -s conftest.err; then
11420 ac_cpp_err=$ac_c_preproc_warn_flag
076e5443 11421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42fcd7bb
AJ
11422 else
11423 ac_cpp_err=
11424 fi
11425else
11426 ac_cpp_err=yes
6de9cd9a 11427fi
42fcd7bb
AJ
11428if test -z "$ac_cpp_err"; then
11429 ac_header_preproc=yes
11430else
11431 echo "$as_me: failed program was:" >&5
11432sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 ac_header_preproc=no
11435fi
11436rm -f conftest.err conftest.$ac_ext
11437echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438echo "${ECHO_T}$ac_header_preproc" >&6
11439
11440# So? What about this header?
076e5443
PB
11441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 yes:no: )
cc6ac522
JW
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
076e5443 11447 ac_header_preproc=yes
42fcd7bb 11448 ;;
076e5443 11449 no:yes:* )
cc6ac522
JW
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42fcd7bb
AJ
11462 (
11463 cat <<\_ASBOX
076e5443
PB
11464## ------------------------------------- ##
11465## Report this to the libmudflap lists. ##
11466## ------------------------------------- ##
42fcd7bb
AJ
11467_ASBOX
11468 ) |
11469 sed "s/^/$as_me: WARNING: /" >&2
11470 ;;
11471esac
cc6ac522
JW
11472echo "$as_me:$LINENO: checking for $ac_header" >&5
11473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11474if eval "test \"\${$as_ac_Header+set}\" = set"; then
42fcd7bb
AJ
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476else
cc6ac522 11477 eval "$as_ac_Header=\$ac_header_preproc"
42fcd7bb 11478fi
cc6ac522
JW
11479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42fcd7bb 11481
6de9cd9a 11482fi
cc6ac522
JW
11483if test `eval echo '${'$as_ac_Header'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42fcd7bb 11486_ACEOF
6de9cd9a 11487
cc6ac522 11488fi
6de9cd9a 11489
cc6ac522 11490done
6de9cd9a 11491
6de9cd9a 11492
cc6ac522
JW
11493echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11494echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11495target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11496echo "$as_me:$LINENO: result: $target_thread_file" >&5
11497echo "${ECHO_T}$target_thread_file" >&6
6de9cd9a 11498
cc6ac522
JW
11499# We only support posix threads, or no threads at all.
11500posix_threads=
11501case ${target_thread_file} in
11502 posix)
11503 posix_threads=yes
11504 ;;
11505 single)
11506 ;;
11507 *)
11508 echo "${target_thread_file} is an unsupported thread package" 1>&2
11509 exit 1
11510 ;;
11511esac
6de9cd9a
DN
11512
11513
42fcd7bb 11514
cc6ac522 11515if test "x$posix_threads" != "x"; then
6de9cd9a
DN
11516 LIBMUDFLAPTH_TRUE=
11517 LIBMUDFLAPTH_FALSE='#'
11518else
11519 LIBMUDFLAPTH_TRUE='#'
11520 LIBMUDFLAPTH_FALSE=
11521fi
11522
cc6ac522 11523if test "x$posix_threads" != "x"
7954e85c
FCE
11524then
11525 build_libmudflapth=1
11526else
11527 build_libmudflapth=0
11528fi
11529
42fcd7bb
AJ
11530
11531
11532echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11533echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11534if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 11536else
42fcd7bb 11537 ac_check_lib_save_LIBS=$LIBS
6de9cd9a 11538LIBS="-ldl $LIBS"
42fcd7bb
AJ
11539cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545
6de9cd9a 11546/* Override any gcc2 internal prototype to avoid an error. */
42fcd7bb
AJ
11547#ifdef __cplusplus
11548extern "C"
11549#endif
6de9cd9a 11550/* We use char because int might match the return type of a gcc2
42fcd7bb
AJ
11551 builtin and then its argument prototype would still apply. */
11552char dlsym ();
11553int
11554main ()
11555{
11556dlsym ();
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561rm -f conftest.$ac_objext conftest$ac_exeext
11562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 11563 (eval $ac_link) 2>conftest.er1
42fcd7bb 11564 ac_status=$?
076e5443
PB
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
42fcd7bb
AJ
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
66a5d3b1
FCE
11570 { ac_try='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
076e5443
PB
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
42fcd7bb
AJ
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_dl_dlsym=yes
6de9cd9a 11584else
42fcd7bb
AJ
11585 echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 11587
42fcd7bb 11588ac_cv_lib_dl_dlsym=no
6de9cd9a 11589fi
076e5443
PB
11590rm -f conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
42fcd7bb
AJ
11592LIBS=$ac_check_lib_save_LIBS
11593fi
11594echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11595echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11596if test $ac_cv_lib_dl_dlsym = yes; then
11597 cat >>confdefs.h <<_ACEOF
11598#define HAVE_LIBDL 1
11599_ACEOF
6de9cd9a
DN
11600
11601 LIBS="-ldl $LIBS"
11602
6de9cd9a
DN
11603fi
11604
11605
42fcd7bb
AJ
11606# Calculate toolexeclibdir
11607# Also toolexecdir, though it's only used in toolexeclibdir
11608case ${version_specific_libs} in
11609 yes)
11610 # Need the gcc compiler version to know where to install libraries
11611 # and header files if --enable-version-specific-runtime-libs option
11612 # is selected.
11613 toolexecdir='$(libdir)/gcc/$(target_alias)'
fd0811ef 11614 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
42fcd7bb
AJ
11615 ;;
11616 no)
11617 if test -n "$with_cross_host" &&
11618 test x"$with_cross_host" != x"no"; then
11619 # Install a library built with a cross compiler in tooldir, not libdir.
11620 toolexecdir='$(exec_prefix)/$(target_alias)'
11621 toolexeclibdir='$(toolexecdir)/lib'
11622 else
11623 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11624 toolexeclibdir='$(libdir)'
11625 fi
11626 multi_os_directory=`$CC -print-multi-os-directory`
11627 case $multi_os_directory in
11628 .) ;; # Avoid trailing /.
11629 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11630 esac
11631 ;;
11632esac
11633
11634
11635
89040431
FCE
11636includedir=${toolexecdir}/include
11637
11638
cc6ac522
JW
11639pthread_create_version='""'
11640if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
6de9cd9a
DN
11641 # NB: don't check for -lpthread here, because then it would be
11642 # added to LIBS. For the thread-unaware libmudflap.la, we don't
11643 # want it there.
11644
11645 # glibc-related hacks. dlsym() may pick the wrong version of
11646 # interposed functions like pthread_create on modern glibc.
11647 # We need to find the proper symbol version string, and use
11648 # the nonstandard dlvsym().
42fcd7bb
AJ
11649
11650for ac_func in dlvsym
6de9cd9a 11651do
42fcd7bb
AJ
11652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653echo "$as_me:$LINENO: checking for $ac_func" >&5
11654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11655if eval "test \"\${$as_ac_var+set}\" = set"; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
076e5443
PB
11664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666#define $ac_func innocuous_$ac_func
11667
6de9cd9a 11668/* System header to define __stub macros and hopefully few prototypes,
42fcd7bb
AJ
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
076e5443 11672
42fcd7bb
AJ
11673#ifdef __STDC__
11674# include <limits.h>
11675#else
11676# include <assert.h>
11677#endif
076e5443
PB
11678
11679#undef $ac_func
11680
42fcd7bb
AJ
11681/* Override any gcc2 internal prototype to avoid an error. */
11682#ifdef __cplusplus
11683extern "C"
11684{
11685#endif
11686/* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688char $ac_func ();
6de9cd9a
DN
11689/* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11693choke me
11694#else
42fcd7bb
AJ
11695char (*f) () = $ac_func;
11696#endif
11697#ifdef __cplusplus
11698}
6de9cd9a
DN
11699#endif
11700
42fcd7bb
AJ
11701int
11702main ()
11703{
11704return f != $ac_func;
11705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext conftest$ac_exeext
11710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
076e5443 11711 (eval $ac_link) 2>conftest.er1
42fcd7bb 11712 ac_status=$?
076e5443
PB
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
42fcd7bb
AJ
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
66a5d3b1
FCE
11718 { ac_try='test -z "$ac_c_werror_flag"
11719 || test ! -s conftest.err'
076e5443
PB
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest$ac_exeext'
42fcd7bb
AJ
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 eval "$as_ac_var=yes"
6de9cd9a 11732else
42fcd7bb
AJ
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736eval "$as_ac_var=no"
6de9cd9a 11737fi
076e5443
PB
11738rm -f conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 11740fi
42fcd7bb
AJ
11741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11743if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746_ACEOF
6de9cd9a 11747
6de9cd9a
DN
11748fi
11749done
11750
42fcd7bb 11751 if test -n "$ac_tool_prefix"; then
6de9cd9a
DN
11752 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11753set dummy ${ac_tool_prefix}nm; ac_word=$2
42fcd7bb
AJ
11754echo "$as_me:$LINENO: checking for $ac_word" >&5
11755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11756if test "${ac_cv_prog_NM+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a
DN
11758else
11759 if test -n "$NM"; then
11760 ac_cv_prog_NM="$NM" # Let the user override the test.
11761else
42fcd7bb
AJ
11762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 ac_cv_prog_NM="${ac_tool_prefix}nm"
11770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 break 2
11772 fi
11773done
11774done
11775
11776fi
11777fi
11778NM=$ac_cv_prog_NM
11779if test -n "$NM"; then
11780 echo "$as_me:$LINENO: result: $NM" >&5
11781echo "${ECHO_T}$NM" >&6
11782else
11783 echo "$as_me:$LINENO: result: no" >&5
11784echo "${ECHO_T}no" >&6
11785fi
11786
11787fi
11788if test -z "$ac_cv_prog_NM"; then
11789 ac_ct_NM=$NM
11790 # Extract the first word of "nm", so it can be a program name with args.
11791set dummy nm; ac_word=$2
11792echo "$as_me:$LINENO: checking for $ac_word" >&5
11793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11794if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797 if test -n "$ac_ct_NM"; then
11798 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11799else
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_ac_ct_NM="nm"
11808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811done
11812done
11813
6de9cd9a
DN
11814fi
11815fi
42fcd7bb
AJ
11816ac_ct_NM=$ac_cv_prog_ac_ct_NM
11817if test -n "$ac_ct_NM"; then
11818 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11819echo "${ECHO_T}$ac_ct_NM" >&6
6de9cd9a 11820else
42fcd7bb
AJ
11821 echo "$as_me:$LINENO: result: no" >&5
11822echo "${ECHO_T}no" >&6
6de9cd9a
DN
11823fi
11824
42fcd7bb
AJ
11825 NM=$ac_ct_NM
11826else
11827 NM="$ac_cv_prog_NM"
11828fi
6de9cd9a 11829
7954e85c 11830 if test "x$ac_cv_have_dlvsym" != "x"; then
6de9cd9a
DN
11831 # Try compiling a simple pthreads program. Find the shared libraries it
11832 # ends up with. Then use "nm" on those libraries to extract the
11833 # default symbol versioning suffix ("@@"), if any. But that's tricky.
11834 # Rather, run nm on the resulting executable. Unfortunately, autoconf
11835 # doesn't appear to have a macro that builds a test executable for
42fcd7bb 11836 # subsequent analysis ... so we do it by hand here.
6de9cd9a
DN
11837 cat >> conftest.c << EOF
11838#include <pthread.h>
11839int main () { void *p = (void *) & pthread_create; return (int) p; }
11840EOF
11841 oldLIBS="$LIBS"
11842 LIBS="$LIBS -lpthread"
11843 pthread_create_version="\"\""
42fcd7bb
AJ
11844 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11845echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
6de9cd9a
DN
11846 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11847 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11848 if test "x$version" != "x"; then
11849 pthread_create_version="\"$version\""
11850 fi
11851 fi
42fcd7bb
AJ
11852 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11853echo "${ECHO_T}$pthread_create_version" >&6
6de9cd9a
DN
11854 LIBS="$oldLIBS"
11855 fi
11856fi
42fcd7bb
AJ
11857
11858cat >>confdefs.h <<_ACEOF
6de9cd9a 11859#define PTHREAD_CREATE_VERSION $pthread_create_version
42fcd7bb 11860_ACEOF
6de9cd9a
DN
11861
11862
7954e85c
FCE
11863
11864# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11865# similarly to how libstdc++ does it
11866ac_test_CFLAGS="${CFLAGS+set}"
11867ac_save_CFLAGS="$CFLAGS"
11868
11869# Check for -ffunction-sections -fdata-sections
11870echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11871echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11872CFLAGS='-Werror -ffunction-sections -fdata-sections'
11873cat >conftest.$ac_ext <<_ACEOF
7954e85c
FCE
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879
11880int
11881main ()
11882{
11883int foo;
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext
11889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
076e5443 11890 (eval $ac_compile) 2>conftest.er1
7954e85c 11891 ac_status=$?
076e5443
PB
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
7954e85c
FCE
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
66a5d3b1
FCE
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
076e5443
PB
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
7954e85c
FCE
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_fdsections=yes
11911else
11912 echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915ac_fdsections=no
11916fi
076e5443 11917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954e85c
FCE
11918if test "$ac_test_CFLAGS" = set; then
11919 CFLAGS="$ac_save_CFLAGS"
11920else
11921 # this is the suspicious part
11922 CFLAGS=""
11923fi
11924if test x"$ac_fdsections" = x"yes"; then
11925 SECTION_FLAGS='-ffunction-sections -fdata-sections'
11926fi
11927echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11928echo "${ECHO_T}$ac_fdsections" >&6
11929
11930
11931
7741b451
MR
11932# Check for the name of the symbol used for the entry point.
11933echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11934echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11935if test "${mudflap_cv_entry_point+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938
11939for name in _start __start unknown; do
11940 cat >conftest.$ac_ext <<_ACEOF
11941/* confdefs.h. */
11942_ACEOF
11943cat confdefs.h >>conftest.$ac_ext
11944cat >>conftest.$ac_ext <<_ACEOF
11945/* end confdefs.h. */
063e53d6 11946extern char $name[];
7741b451
MR
11947int
11948main ()
11949{
063e53d6 11950$name[0] = 0;
7741b451
MR
11951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext conftest$ac_exeext
11956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 break
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982fi
11983rm -f conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985done
11986mudflap_cv_entry_point="$name"
11987fi
11988echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
11989echo "${ECHO_T}$mudflap_cv_entry_point" >&6
11990if test "$mudflap_cv_entry_point" = unknown; then
11991 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
11992echo "$as_me: error: none of the known symbol names works" >&2;}
11993 { (exit 1); exit 1; }; }
11994fi
11995
11996cat >>confdefs.h <<_ACEOF
11997#define ENTRY_POINT $mudflap_cv_entry_point
11998_ACEOF
11999
12000
12001
42fcd7bb
AJ
12002if test ${multilib} = yes; then
12003 multilib_arg="--enable-multilib"
12004else
12005 multilib_arg=
12006fi
12007
7544a87f
RH
12008# See if we support thread-local storage.
12009
12010 # Check whether --enable-tls or --disable-tls was given.
12011if test "${enable_tls+set}" = set; then
12012 enableval="$enable_tls"
12013
12014 case "$enableval" in
12015 yes|no) ;;
12016 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12017echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12018 { (exit 1); exit 1; }; } ;;
12019 esac
12020
12021else
12022 enable_tls=yes
12023fi;
12024
12025 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12026echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12027if test "${have_tls+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029else
12030
12031 if test "$cross_compiling" = yes; then
1cf3d07d 12032 cat >conftest.$ac_ext <<_ACEOF
597c25e6 12033__thread int a; int b; int main() { return a = b; }
7544a87f 12034_ACEOF
597c25e6
DJ
12035rm -f conftest.$ac_objext conftest$ac_exeext
12036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>conftest.er1
7544a87f
RH
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
597c25e6 12051 { ac_try='test -s conftest$ac_exeext'
7544a87f
RH
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 have_tls=yes
12058else
12059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062have_tls=no
12063fi
597c25e6
DJ
12064rm -f conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
7544a87f 12066
1cf3d07d 12067
7544a87f
RH
12068else
12069 cat >conftest.$ac_ext <<_ACEOF
12070__thread int a; int b; int main() { return a = b; }
12071_ACEOF
12072rm -f conftest$ac_exeext
12073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
78e075d4 12083 chktls_save_LDFLAGS="$LDFLAGS"
7544a87f 12084 LDFLAGS="-static $LDFLAGS"
aad741f4
EB
12085 cat >conftest.$ac_ext <<_ACEOF
12086int main() { return 0; }
12087_ACEOF
12088rm -f conftest.$ac_objext conftest$ac_exeext
12089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 if test "$cross_compiling" = yes; then
7544a87f
RH
12111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12112See \`config.log' for more details." >&5
12113echo "$as_me: error: cannot run test program while cross compiling
12114See \`config.log' for more details." >&2;}
12115 { (exit 1); exit 1; }; }
12116else
12117 cat >conftest.$ac_ext <<_ACEOF
12118__thread int a; int b; int main() { return a = b; }
12119_ACEOF
12120rm -f conftest$ac_exeext
12121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 have_tls=yes
12132else
12133 echo "$as_me: program exited with status $ac_status" >&5
12134echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137( exit $ac_status )
12138have_tls=no
12139fi
12140rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12141fi
aad741f4
EB
12142else
12143 echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146have_tls=yes
12147fi
12148rm -f conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
78e075d4
JJ
12150 LDFLAGS="$chktls_save_LDFLAGS"
12151 if test $have_tls = yes; then
12152 chktls_save_CFLAGS="$CFLAGS"
12153 thread_CFLAGS=failed
12154 for flag in '' '-pthread' '-lpthread'; do
12155 CFLAGS="$flag $chktls_save_CFLAGS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162#include <pthread.h>
12163 void *g(void *d) { return NULL; }
12164int
12165main ()
12166{
12167pthread_t t; pthread_create(&t,NULL,g,NULL);
12168 ;
12169 return 0;
12170}
12171_ACEOF
12172rm -f conftest.$ac_objext conftest$ac_exeext
12173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_c_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 thread_CFLAGS="$flag"
12195else
12196 echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199fi
12200rm -f conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 if test "X$thread_CFLAGS" != Xfailed; then
12203 break
12204 fi
12205 done
12206 CFLAGS="$chktls_save_CFLAGS"
12207 if test "X$thread_CFLAGS" != Xfailed; then
12208 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12209 if test "$cross_compiling" = yes; then
12210 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12211See \`config.log' for more details." >&5
12212echo "$as_me: error: cannot run test program while cross compiling
12213See \`config.log' for more details." >&2;}
12214 { (exit 1); exit 1; }; }
12215else
12216 cat >conftest.$ac_ext <<_ACEOF
12217/* confdefs.h. */
12218_ACEOF
12219cat confdefs.h >>conftest.$ac_ext
12220cat >>conftest.$ac_ext <<_ACEOF
12221/* end confdefs.h. */
12222#include <pthread.h>
12223 __thread int a;
12224 static int *a_in_other_thread;
12225 static void *
12226 thread_func (void *arg)
12227 {
12228 a_in_other_thread = &a;
12229 return (void *)0;
12230 }
12231int
12232main ()
12233{
12234pthread_t thread;
12235 void *thread_retval;
12236 int *a_in_main_thread;
12237 if (pthread_create (&thread, (pthread_attr_t *)0,
12238 thread_func, (void *)0))
12239 return 0;
12240 a_in_main_thread = &a;
12241 if (pthread_join (thread, &thread_retval))
12242 return 0;
12243 return (a_in_other_thread == a_in_main_thread);
12244 ;
12245 return 0;
12246}
12247_ACEOF
12248rm -f conftest$ac_exeext
12249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 have_tls=yes
12260else
12261 echo "$as_me: program exited with status $ac_status" >&5
12262echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265( exit $ac_status )
12266have_tls=no
12267fi
12268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12269fi
12270 CFLAGS="$chktls_save_CFLAGS"
12271 fi
12272 fi
7544a87f
RH
12273else
12274 echo "$as_me: program exited with status $ac_status" >&5
12275echo "$as_me: failed program was:" >&5
12276sed 's/^/| /' conftest.$ac_ext >&5
12277
12278( exit $ac_status )
12279have_tls=no
12280fi
12281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12282fi
12283fi
12284echo "$as_me:$LINENO: result: $have_tls" >&5
12285echo "${ECHO_T}$have_tls" >&6
12286 if test "$enable_tls $have_tls" = "yes yes"; then
12287
12288cat >>confdefs.h <<\_ACEOF
12289#define HAVE_TLS 1
12290_ACEOF
12291
12292 fi
12293
fd0811ef 12294 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
076e5443 12295
42fcd7bb 12296cat >confcache <<\_ACEOF
6de9cd9a
DN
12297# This file is a shell script that caches the results of configure
12298# tests run on this system so they can be shared between configure
42fcd7bb
AJ
12299# scripts and configure runs, see configure's option --config-cache.
12300# It is not useful on other systems. If it contains results you don't
12301# want to keep, you may remove or edit it.
6de9cd9a 12302#
42fcd7bb
AJ
12303# config.status only pays attention to the cache file if you give it
12304# the --recheck option to rerun configure.
6de9cd9a 12305#
42fcd7bb
AJ
12306# `ac_cv_env_foo' variables (set or unset) will be overridden when
12307# loading this file, other *unset* `ac_cv_foo' will be assigned the
12308# following values.
12309
12310_ACEOF
12311
6de9cd9a
DN
12312# The following way of writing the cache mishandles newlines in values,
12313# but we know of no workaround that is simple, portable, and efficient.
12314# So, don't put newlines in cache variables' values.
12315# Ultrix sh set writes to stderr and can't be redirected directly,
12316# and sets the high bit in the cache file unless we assign to the vars.
42fcd7bb
AJ
12317{
12318 (set) 2>&1 |
12319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12320 *ac_space=\ *)
12321 # `set' does not quote correctly, so add quotes (double-quote
12322 # substitution turns \\\\ into \\, and sed turns \\ into \).
12323 sed -n \
076e5443
PB
12324 "s/'/'\\\\''/g;
12325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42fcd7bb
AJ
12326 ;;
12327 *)
12328 # `set' quotes correctly as required by POSIX, so do not add quotes.
12329 sed -n \
076e5443 12330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
42fcd7bb
AJ
12331 ;;
12332 esac;
12333} |
12334 sed '
12335 t clear
12336 : clear
12337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12338 t end
12339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12340 : end' >>confcache
12341if diff $cache_file confcache >/dev/null 2>&1; then :; else
6de9cd9a 12342 if test -w $cache_file; then
42fcd7bb
AJ
12343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12344 cat confcache >$cache_file
6de9cd9a
DN
12345 else
12346 echo "not updating unwritable cache $cache_file"
12347 fi
12348fi
12349rm -f confcache
12350
6de9cd9a
DN
12351test "x$prefix" = xNONE && prefix=$ac_default_prefix
12352# Let make expand exec_prefix.
12353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12354
42fcd7bb
AJ
12355# VPATH may cause trouble with some makes, so we remove $(srcdir),
12356# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12357# trailing colons and then remove the whole line if VPATH becomes empty
12358# (actually we leave an empty line to preserve line numbers).
6de9cd9a 12359if test "x$srcdir" = x.; then
076e5443 12360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42fcd7bb
AJ
12361s/:*\$(srcdir):*/:/;
12362s/:*\${srcdir}:*/:/;
12363s/:*@srcdir@:*/:/;
076e5443 12364s/^\([^=]*=[ ]*\):*/\1/;
42fcd7bb 12365s/:*$//;
076e5443 12366s/^[^=]*=[ ]*$//;
42fcd7bb 12367}'
6de9cd9a
DN
12368fi
12369
6de9cd9a
DN
12370DEFS=-DHAVE_CONFIG_H
12371
42fcd7bb
AJ
12372ac_libobjs=
12373ac_ltlibobjs=
12374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12375 # 1. Remove the extension, and $U if already installed.
12376 ac_i=`echo "$ac_i" |
076e5443 12377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42fcd7bb
AJ
12378 # 2. Add them.
12379 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12380 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12381done
12382LIBOBJS=$ac_libobjs
6de9cd9a 12383
42fcd7bb
AJ
12384LTLIBOBJS=$ac_ltlibobjs
12385
12386
12387if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12388 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12389Usually this means the macro was only invoked conditionally." >&5
12390echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12391Usually this means the macro was only invoked conditionally." >&2;}
12392 { (exit 1); exit 1; }; }
12393fi
12394if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12395 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12396Usually this means the macro was only invoked conditionally." >&5
12397echo "$as_me: error: conditional \"AMDEP\" was never defined.
12398Usually this means the macro was only invoked conditionally." >&2;}
12399 { (exit 1); exit 1; }; }
12400fi
12401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12402 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12403Usually this means the macro was only invoked conditionally." >&5
12404echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12405Usually this means the macro was only invoked conditionally." >&2;}
12406 { (exit 1); exit 1; }; }
12407fi
12408if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12409 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12410Usually this means the macro was only invoked conditionally." >&5
12411echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12412Usually this means the macro was only invoked conditionally." >&2;}
12413 { (exit 1); exit 1; }; }
12414fi
12415
12416: ${CONFIG_STATUS=./config.status}
12417ac_clean_files_save=$ac_clean_files
12418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12419{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12420echo "$as_me: creating $CONFIG_STATUS" >&6;}
12421cat >$CONFIG_STATUS <<_ACEOF
12422#! $SHELL
12423# Generated by $as_me.
6de9cd9a 12424# Run this file to recreate the current configuration.
6de9cd9a 12425# Compiler output produced by configure, useful for debugging
42fcd7bb
AJ
12426# configure, is in config.log if it exists.
12427
12428debug=false
12429ac_cs_recheck=false
12430ac_cs_silent=false
12431SHELL=\${CONFIG_SHELL-$SHELL}
12432_ACEOF
12433
12434cat >>$CONFIG_STATUS <<\_ACEOF
12435## --------------------- ##
12436## M4sh Initialization. ##
12437## --------------------- ##
12438
12439# Be Bourne compatible
12440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12441 emulate sh
12442 NULLCMD=:
12443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12444 # is contrary to our usage. Disable this feature.
12445 alias -g '${1+"$@"}'='"$@"'
12446elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12447 set -o posix
12448fi
076e5443 12449DUALCASE=1; export DUALCASE # for MKS sh
42fcd7bb
AJ
12450
12451# Support unset when possible.
076e5443 12452if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42fcd7bb
AJ
12453 as_unset=unset
12454else
12455 as_unset=false
12456fi
6de9cd9a 12457
42fcd7bb
AJ
12458
12459# Work around bugs in pre-3.0 UWIN ksh.
12460$as_unset ENV MAIL MAILPATH
12461PS1='$ '
12462PS2='> '
12463PS4='+ '
12464
12465# NLS nuisances.
12466for as_var in \
12467 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12468 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12469 LC_TELEPHONE LC_TIME
6de9cd9a 12470do
076e5443 12471 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42fcd7bb
AJ
12472 eval $as_var=C; export $as_var
12473 else
12474 $as_unset $as_var
12475 fi
6de9cd9a
DN
12476done
12477
42fcd7bb
AJ
12478# Required to use basename.
12479if expr a : '\(a\)' >/dev/null 2>&1; then
12480 as_expr=expr
12481else
12482 as_expr=false
12483fi
6de9cd9a 12484
42fcd7bb
AJ
12485if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12486 as_basename=basename
12487else
12488 as_basename=false
12489fi
12490
12491
12492# Name of the executable.
12493as_me=`$as_basename "$0" ||
12494$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12495 X"$0" : 'X\(//\)$' \| \
12496 X"$0" : 'X\(/\)$' \| \
12497 . : '\(.\)' 2>/dev/null ||
12498echo X/"$0" |
12499 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12500 /^X\/\(\/\/\)$/{ s//\1/; q; }
12501 /^X\/\(\/\).*/{ s//\1/; q; }
12502 s/.*/./; q'`
12503
12504
12505# PATH needs CR, and LINENO needs CR and PATH.
12506# Avoid depending upon Character Ranges.
12507as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12508as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12509as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12510as_cr_digits='0123456789'
12511as_cr_alnum=$as_cr_Letters$as_cr_digits
12512
12513# The user is always right.
12514if test "${PATH_SEPARATOR+set}" != set; then
12515 echo "#! /bin/sh" >conf$$.sh
12516 echo "exit 0" >>conf$$.sh
12517 chmod +x conf$$.sh
12518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12519 PATH_SEPARATOR=';'
12520 else
12521 PATH_SEPARATOR=:
12522 fi
12523 rm -f conf$$.sh
12524fi
6de9cd9a 12525
6de9cd9a 12526
42fcd7bb
AJ
12527 as_lineno_1=$LINENO
12528 as_lineno_2=$LINENO
12529 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12530 test "x$as_lineno_1" != "x$as_lineno_2" &&
12531 test "x$as_lineno_3" = "x$as_lineno_2" || {
12532 # Find who we are. Look in the path if we contain no path at all
12533 # relative or not.
12534 case $0 in
12535 *[\\/]* ) as_myself=$0 ;;
12536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537for as_dir in $PATH
12538do
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12542done
6de9cd9a 12543
42fcd7bb
AJ
12544 ;;
12545 esac
12546 # We did not find ourselves, most probably we were run as `sh COMMAND'
12547 # in which case we are not to be found in the path.
12548 if test "x$as_myself" = x; then
12549 as_myself=$0
12550 fi
12551 if test ! -f "$as_myself"; then
12552 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12553echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12554 { (exit 1); exit 1; }; }
6de9cd9a 12555 fi
42fcd7bb
AJ
12556 case $CONFIG_SHELL in
12557 '')
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for as_base in sh bash ksh sh5; do
12564 case $as_dir in
12565 /*)
12566 if ("$as_dir/$as_base" -c '
12567 as_lineno_1=$LINENO
12568 as_lineno_2=$LINENO
12569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12570 test "x$as_lineno_1" != "x$as_lineno_2" &&
12571 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12572 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12573 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12574 CONFIG_SHELL=$as_dir/$as_base
12575 export CONFIG_SHELL
12576 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12577 fi;;
12578 esac
12579 done
12580done
12581;;
12582 esac
12583
12584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12585 # uniformly replaced by the line number. The first 'sed' inserts a
12586 # line-number line before each line; the second 'sed' does the real
12587 # work. The second script uses 'N' to pair each line-number line
12588 # with the numbered line, and appends trailing '-' during
12589 # substitution so that $LINENO is not a special case at line end.
12590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12591 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12592 sed '=' <$as_myself |
12593 sed '
12594 N
12595 s,$,-,
12596 : loop
12597 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12598 t loop
12599 s,-$,,
12600 s,^['$as_cr_digits']*\n,,
12601 ' >$as_me.lineno &&
12602 chmod +x $as_me.lineno ||
12603 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12604echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12605 { (exit 1); exit 1; }; }
12606
12607 # Don't try to exec as it changes $[0], causing all sort of problems
12608 # (the dirname of $[0] is not the place where we might find the
12609 # original and so on. Autoconf is especially sensible to this).
12610 . ./$as_me.lineno
12611 # Exit status is that of the last command.
12612 exit
12613}
12614
12615
12616case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12617 *c*,-n*) ECHO_N= ECHO_C='
12618' ECHO_T=' ' ;;
12619 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12620 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12621esac
12622
12623if expr a : '\(a\)' >/dev/null 2>&1; then
12624 as_expr=expr
12625else
12626 as_expr=false
12627fi
12628
12629rm -f conf$$ conf$$.exe conf$$.file
12630echo >conf$$.file
12631if ln -s conf$$.file conf$$ 2>/dev/null; then
12632 # We could just check for DJGPP; but this test a) works b) is more generic
12633 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12634 if test -f conf$$.exe; then
12635 # Don't use ln at all; we don't have any links
12636 as_ln_s='cp -p'
6de9cd9a 12637 else
42fcd7bb 12638 as_ln_s='ln -s'
6de9cd9a 12639 fi
42fcd7bb
AJ
12640elif ln conf$$.file conf$$ 2>/dev/null; then
12641 as_ln_s=ln
12642else
12643 as_ln_s='cp -p'
12644fi
12645rm -f conf$$ conf$$.exe conf$$.file
12646
12647if mkdir -p . 2>/dev/null; then
12648 as_mkdir_p=:
12649else
076e5443 12650 test -d ./-p && rmdir ./-p
42fcd7bb
AJ
12651 as_mkdir_p=false
12652fi
12653
12654as_executable_p="test -f"
12655
12656# Sed expression to map a string onto a valid CPP name.
076e5443 12657as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42fcd7bb
AJ
12658
12659# Sed expression to map a string onto a valid variable name.
076e5443 12660as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42fcd7bb
AJ
12661
12662
12663# IFS
12664# We need space, tab and new line, in precisely that order.
12665as_nl='
12666'
12667IFS=" $as_nl"
12668
12669# CDPATH.
12670$as_unset CDPATH
12671
12672exec 6>&1
12673
12674# Open the log real soon, to keep \$[0] and so on meaningful, and to
12675# report actual input values of CONFIG_FILES etc. instead of their
12676# values after options handling. Logging --version etc. is OK.
12677exec 5>>config.log
12678{
12679 echo
12680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12681## Running $as_me. ##
12682_ASBOX
12683} >&5
12684cat >&5 <<_CSEOF
12685
076e5443
PB
12686This file was extended by libmudflap $as_me 1.0, which was
12687generated by GNU Autoconf 2.59. Invocation command line was
42fcd7bb
AJ
12688
12689 CONFIG_FILES = $CONFIG_FILES
12690 CONFIG_HEADERS = $CONFIG_HEADERS
12691 CONFIG_LINKS = $CONFIG_LINKS
12692 CONFIG_COMMANDS = $CONFIG_COMMANDS
12693 $ $0 $@
12694
12695_CSEOF
12696echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12697echo >&5
12698_ACEOF
12699
12700# Files that config.status was made for.
12701if test -n "$ac_config_files"; then
12702 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12703fi
12704
12705if test -n "$ac_config_headers"; then
12706 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12707fi
12708
12709if test -n "$ac_config_links"; then
12710 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12711fi
12712
12713if test -n "$ac_config_commands"; then
12714 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12715fi
12716
12717cat >>$CONFIG_STATUS <<\_ACEOF
12718
12719ac_cs_usage="\
12720\`$as_me' instantiates files from templates according to the
12721current configuration.
12722
12723Usage: $0 [OPTIONS] [FILE]...
12724
12725 -h, --help print this help, then exit
12726 -V, --version print version number, then exit
12727 -q, --quiet do not print progress messages
12728 -d, --debug don't remove temporary files
12729 --recheck update $as_me by reconfiguring in the same conditions
12730 --file=FILE[:TEMPLATE]
076e5443 12731 instantiate the configuration file FILE
42fcd7bb 12732 --header=FILE[:TEMPLATE]
076e5443 12733 instantiate the configuration header FILE
42fcd7bb
AJ
12734
12735Configuration files:
12736$config_files
12737
12738Configuration headers:
12739$config_headers
12740
12741Configuration commands:
12742$config_commands
12743
12744Report bugs to <bug-autoconf@gnu.org>."
12745_ACEOF
12746
12747cat >>$CONFIG_STATUS <<_ACEOF
12748ac_cs_version="\\
076e5443
PB
12749libmudflap config.status 1.0
12750configured by $0, generated by GNU Autoconf 2.59,
42fcd7bb
AJ
12751 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12752
076e5443 12753Copyright (C) 2003 Free Software Foundation, Inc.
42fcd7bb
AJ
12754This config.status script is free software; the Free Software Foundation
12755gives unlimited permission to copy, distribute and modify it."
12756srcdir=$srcdir
12757INSTALL="$INSTALL"
12758_ACEOF
12759
12760cat >>$CONFIG_STATUS <<\_ACEOF
12761# If no file are specified by the user, then we need to provide default
12762# value. By we need to know if files were specified by the user.
12763ac_need_defaults=:
12764while test $# != 0
12765do
12766 case $1 in
12767 --*=*)
12768 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12769 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12770 ac_shift=:
12771 ;;
12772 -*)
12773 ac_option=$1
12774 ac_optarg=$2
12775 ac_shift=shift
12776 ;;
12777 *) # This is not an option, so the user has probably given explicit
12778 # arguments.
12779 ac_option=$1
12780 ac_need_defaults=false;;
12781 esac
12782
12783 case $ac_option in
12784 # Handling of the options.
12785_ACEOF
12786cat >>$CONFIG_STATUS <<\_ACEOF
12787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12788 ac_cs_recheck=: ;;
12789 --version | --vers* | -V )
12790 echo "$ac_cs_version"; exit 0 ;;
12791 --he | --h)
12792 # Conflict between --help and --header
12793 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12794Try \`$0 --help' for more information." >&5
12795echo "$as_me: error: ambiguous option: $1
12796Try \`$0 --help' for more information." >&2;}
12797 { (exit 1); exit 1; }; };;
12798 --help | --hel | -h )
12799 echo "$ac_cs_usage"; exit 0 ;;
12800 --debug | --d* | -d )
12801 debug=: ;;
12802 --file | --fil | --fi | --f )
12803 $ac_shift
12804 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12805 ac_need_defaults=false;;
12806 --header | --heade | --head | --hea )
12807 $ac_shift
12808 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12809 ac_need_defaults=false;;
12810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12812 ac_cs_silent=: ;;
12813
12814 # This is an error.
12815 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12816Try \`$0 --help' for more information." >&5
12817echo "$as_me: error: unrecognized option: $1
12818Try \`$0 --help' for more information." >&2;}
12819 { (exit 1); exit 1; }; } ;;
12820
12821 *) ac_config_targets="$ac_config_targets $1" ;;
12822
12823 esac
12824 shift
6de9cd9a 12825done
42fcd7bb
AJ
12826
12827ac_configure_extra_args=
12828
12829if $ac_cs_silent; then
12830 exec 6>/dev/null
12831 ac_configure_extra_args="$ac_configure_extra_args --silent"
6de9cd9a 12832fi
6de9cd9a 12833
42fcd7bb
AJ
12834_ACEOF
12835cat >>$CONFIG_STATUS <<_ACEOF
12836if \$ac_cs_recheck; then
12837 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12838 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12839fi
6de9cd9a 12840
42fcd7bb
AJ
12841_ACEOF
12842
12843cat >>$CONFIG_STATUS <<_ACEOF
12844#
12845# INIT-COMMANDS section.
12846#
12847
12848
12849srcdir="$srcdir"
12850host="$host"
12851target="$target"
12852with_multisubdir="$with_multisubdir"
12853with_multisrctop="$with_multisrctop"
12854with_target_subdir="$with_target_subdir"
12855ac_configure_args="${multilib_arg} ${ac_configure_args}"
12856multi_basedir="$multi_basedir"
12857CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12858CC="$CC"
12859AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12860
1cf3d07d
SE
12861
12862# The HP-UX ksh and POSIX shell print the target directory to stdout
12863# if CDPATH is set.
12864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12865
12866sed_quote_subst='$sed_quote_subst'
12867double_quote_subst='$double_quote_subst'
12868delay_variable_subst='$delay_variable_subst'
12869macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12870macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12871enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12872enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12873pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12874enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12875host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12876host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12877host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12878build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12879build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12880build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12881SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12882Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12883GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12884EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12885FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12886LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12887NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12888LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12889max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12890ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12891exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12892lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12893lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12894lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12895reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12896reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12897deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12898file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12899AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12900AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12901STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12902RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12903old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12904old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12905old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12906CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12907CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12908compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12909GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12910lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12911lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12912lt_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"`'
12913objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12914SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12915ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12916MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12917lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12918lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12919lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12920lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12921lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12922need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12923libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12924shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12925extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12926archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12927enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12928export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12929whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12930compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12931old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12932old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12934archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12935module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12936module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12937with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12938allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12939no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12940hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12941hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12942hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12943hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12944hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12945hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12946hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12947hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12948inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12949link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12950fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12951always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12952export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12953exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12954include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12955prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12956file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12957variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12958need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12959need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12960version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12961runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12962shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12963shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12964libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12965library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12966soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12967postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12969finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12970finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12971hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12972sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12973sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12974hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12975enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12976enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12977enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12978old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12979striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12980
12981LTCC='$LTCC'
12982LTCFLAGS='$LTCFLAGS'
12983compiler='$compiler_DEFAULT'
12984
12985# Quote evaled strings.
12986for var in SED \
12987GREP \
12988EGREP \
12989FGREP \
12990LD \
12991NM \
12992LN_S \
12993lt_SP2NL \
12994lt_NL2SP \
12995reload_flag \
12996deplibs_check_method \
12997file_magic_cmd \
12998AR \
12999AR_FLAGS \
13000STRIP \
13001RANLIB \
13002CC \
13003CFLAGS \
13004compiler \
13005lt_cv_sys_global_symbol_pipe \
13006lt_cv_sys_global_symbol_to_cdecl \
13007lt_cv_sys_global_symbol_to_c_name_address \
13008SHELL \
13009ECHO \
13010lt_prog_compiler_no_builtin_flag \
13011lt_prog_compiler_wl \
13012lt_prog_compiler_pic \
13013lt_prog_compiler_static \
13014lt_cv_prog_compiler_c_o \
13015need_locks \
13016shrext_cmds \
13017export_dynamic_flag_spec \
13018whole_archive_flag_spec \
13019compiler_needs_object \
13020with_gnu_ld \
13021allow_undefined_flag \
13022no_undefined_flag \
13023hardcode_libdir_flag_spec \
13024hardcode_libdir_flag_spec_ld \
13025hardcode_libdir_separator \
13026fix_srcfile_path \
13027exclude_expsyms \
13028include_expsyms \
13029file_list_spec \
13030variables_saved_for_relink \
13031libname_spec \
13032library_names_spec \
13033soname_spec \
13034finish_eval \
13035old_striplib \
13036striplib; do
13037 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13038 *[\\\\\\\`\\"\\\$]*)
13039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13040 ;;
13041 *)
13042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13043 ;;
13044 esac
13045done
13046
13047# Double-quote double-evaled strings.
13048for var in reload_cmds \
13049old_postinstall_cmds \
13050old_postuninstall_cmds \
13051old_archive_cmds \
13052extract_expsyms_cmds \
13053old_archive_from_new_cmds \
13054old_archive_from_expsyms_cmds \
13055archive_cmds \
13056archive_expsym_cmds \
13057module_cmds \
13058module_expsym_cmds \
13059export_symbols_cmds \
13060prelink_cmds \
13061postinstall_cmds \
13062postuninstall_cmds \
13063finish_cmds \
13064sys_lib_search_path_spec \
13065sys_lib_dlsearch_path_spec; do
13066 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13067 *[\\\\\\\`\\"\\\$]*)
13068 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13069 ;;
13070 *)
13071 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13072 ;;
13073 esac
13074done
13075
13076# Fix-up fallback echo if it was mangled by the above quoting rules.
13077case \$lt_ECHO in
13078*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13079 ;;
13080esac
13081
13082ac_aux_dir='$ac_aux_dir'
13083xsi_shell='$xsi_shell'
13084lt_shell_append='$lt_shell_append'
13085
13086# See if we are running on zsh, and set the options which allow our
13087# commands through without removal of \ escapes INIT.
13088if test -n "\${ZSH_VERSION+set}" ; then
13089 setopt NO_GLOB_SUBST
13090fi
13091
13092
13093 PACKAGE='$PACKAGE'
13094 VERSION='$VERSION'
13095 TIMESTAMP='$TIMESTAMP'
13096 RM='$RM'
13097 ofile='$ofile'
13098
13099
13100
13101
42fcd7bb
AJ
13102_ACEOF
13103
13104
13105
13106cat >>$CONFIG_STATUS <<\_ACEOF
13107for ac_config_target in $ac_config_targets
13108do
13109 case "$ac_config_target" in
13110 # Handling of arguments.
13111 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13112 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7954e85c 13113 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
42fcd7bb
AJ
13114 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13115 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 13116 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42fcd7bb
AJ
13117 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13118 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13119echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13120 { (exit 1); exit 1; }; };;
6de9cd9a 13121 esac
42fcd7bb 13122done
6de9cd9a 13123
42fcd7bb
AJ
13124# If the user did not use the arguments to specify the items to instantiate,
13125# then the envvar interface is used. Set only those that are not.
13126# We use the long form for the default assignment because of an extremely
13127# bizarre bug on SunOS 4.1.3.
13128if $ac_need_defaults; then
13129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13132fi
13133
13134# Have a temporary directory for convenience. Make it in the build tree
13135# simply because there is no reason to put it here, and in addition,
13136# creating and moving files from /tmp can sometimes cause problems.
13137# Create a temporary directory, and hook for its removal unless debugging.
13138$debug ||
13139{
13140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13141 trap '{ (exit 1); exit 1; }' 1 2 13 15
13142}
13143
13144# Create a (secure) tmp directory for tmp files.
13145
13146{
13147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13148 test -n "$tmp" && test -d "$tmp"
13149} ||
13150{
13151 tmp=./confstat$$-$RANDOM
13152 (umask 077 && mkdir $tmp)
13153} ||
13154{
13155 echo "$me: cannot create a temporary directory in ." >&2
13156 { (exit 1); exit 1; }
13157}
13158
13159_ACEOF
13160
13161cat >>$CONFIG_STATUS <<_ACEOF
6de9cd9a 13162
42fcd7bb
AJ
13163#
13164# CONFIG_FILES section.
13165#
13166
13167# No need to generate the scripts if there are no CONFIG_FILES.
13168# This happens for instance when ./config.status config.h
13169if test -n "\$CONFIG_FILES"; then
13170 # Protect against being on the right side of a sed subst in config.status.
13171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13173s,@SHELL@,$SHELL,;t t
13174s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13175s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13176s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13177s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13178s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13179s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13180s,@exec_prefix@,$exec_prefix,;t t
13181s,@prefix@,$prefix,;t t
13182s,@program_transform_name@,$program_transform_name,;t t
13183s,@bindir@,$bindir,;t t
13184s,@sbindir@,$sbindir,;t t
13185s,@libexecdir@,$libexecdir,;t t
13186s,@datadir@,$datadir,;t t
13187s,@sysconfdir@,$sysconfdir,;t t
13188s,@sharedstatedir@,$sharedstatedir,;t t
13189s,@localstatedir@,$localstatedir,;t t
13190s,@libdir@,$libdir,;t t
13191s,@includedir@,$includedir,;t t
13192s,@oldincludedir@,$oldincludedir,;t t
13193s,@infodir@,$infodir,;t t
13194s,@mandir@,$mandir,;t t
13195s,@build_alias@,$build_alias,;t t
13196s,@host_alias@,$host_alias,;t t
13197s,@target_alias@,$target_alias,;t t
13198s,@DEFS@,$DEFS,;t t
13199s,@ECHO_C@,$ECHO_C,;t t
13200s,@ECHO_N@,$ECHO_N,;t t
13201s,@ECHO_T@,$ECHO_T,;t t
13202s,@LIBS@,$LIBS,;t t
13203s,@build@,$build,;t t
13204s,@build_cpu@,$build_cpu,;t t
13205s,@build_vendor@,$build_vendor,;t t
13206s,@build_os@,$build_os,;t t
13207s,@host@,$host,;t t
13208s,@host_cpu@,$host_cpu,;t t
13209s,@host_vendor@,$host_vendor,;t t
13210s,@host_os@,$host_os,;t t
13211s,@target@,$target,;t t
13212s,@target_cpu@,$target_cpu,;t t
13213s,@target_vendor@,$target_vendor,;t t
13214s,@target_os@,$target_os,;t t
89040431 13215s,@target_noncanonical@,$target_noncanonical,;t t
42fcd7bb
AJ
13216s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13217s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13218s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13219s,@CYGPATH_W@,$CYGPATH_W,;t t
13220s,@PACKAGE@,$PACKAGE,;t t
13221s,@VERSION@,$VERSION,;t t
13222s,@ACLOCAL@,$ACLOCAL,;t t
13223s,@AUTOCONF@,$AUTOCONF,;t t
13224s,@AUTOMAKE@,$AUTOMAKE,;t t
13225s,@AUTOHEADER@,$AUTOHEADER,;t t
13226s,@MAKEINFO@,$MAKEINFO,;t t
42fcd7bb
AJ
13227s,@install_sh@,$install_sh,;t t
13228s,@STRIP@,$STRIP,;t t
13229s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13230s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 13231s,@mkdir_p@,$mkdir_p,;t t
42fcd7bb
AJ
13232s,@AWK@,$AWK,;t t
13233s,@SET_MAKE@,$SET_MAKE,;t t
13234s,@am__leading_dot@,$am__leading_dot,;t t
4e55a162
KC
13235s,@AMTAR@,$AMTAR,;t t
13236s,@am__tar@,$am__tar,;t t
13237s,@am__untar@,$am__untar,;t t
42fcd7bb
AJ
13238s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13239s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13240s,@MAINT@,$MAINT,;t t
13241s,@multi_basedir@,$multi_basedir,;t t
13242s,@CC@,$CC,;t t
13243s,@ac_ct_CC@,$ac_ct_CC,;t t
13244s,@EXEEXT@,$EXEEXT,;t t
13245s,@OBJEXT@,$OBJEXT,;t t
13246s,@DEPDIR@,$DEPDIR,;t t
13247s,@am__include@,$am__include,;t t
13248s,@am__quote@,$am__quote,;t t
13249s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13250s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13251s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13252s,@CCDEPMODE@,$CCDEPMODE,;t t
13253s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13254s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13255s,@CFLAGS@,$CFLAGS,;t t
13256s,@CPP@,$CPP,;t t
13257s,@CPPFLAGS@,$CPPFLAGS,;t t
13258s,@EGREP@,$EGREP,;t t
1cf3d07d
SE
13259s,@LIBTOOL@,$LIBTOOL,;t t
13260s,@SED@,$SED,;t t
13261s,@FGREP@,$FGREP,;t t
13262s,@GREP@,$GREP,;t t
13263s,@LD@,$LD,;t t
13264s,@DUMPBIN@,$DUMPBIN,;t t
13265s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13266s,@NM@,$NM,;t t
42fcd7bb 13267s,@LN_S@,$LN_S,;t t
1cf3d07d
SE
13268s,@AR@,$AR,;t t
13269s,@ac_ct_AR@,$ac_ct_AR,;t t
42fcd7bb
AJ
13270s,@RANLIB@,$RANLIB,;t t
13271s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d 13272s,@lt_ECHO@,$lt_ECHO,;t t
42fcd7bb
AJ
13273s,@enable_shared@,$enable_shared,;t t
13274s,@enable_static@,$enable_static,;t t
13275s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13276s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13277s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13278s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
7954e85c 13279s,@build_libmudflapth@,$build_libmudflapth,;t t
42fcd7bb
AJ
13280s,@toolexecdir@,$toolexecdir,;t t
13281s,@toolexeclibdir@,$toolexeclibdir,;t t
42fcd7bb 13282s,@ac_ct_NM@,$ac_ct_NM,;t t
7954e85c 13283s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
42fcd7bb
AJ
13284s,@LIBOBJS@,$LIBOBJS,;t t
13285s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13286CEOF
13287
13288_ACEOF
13289
13290 cat >>$CONFIG_STATUS <<\_ACEOF
13291 # Split the substitutions into bite-sized pieces for seds with
13292 # small command number limits, like on Digital OSF/1 and HP-UX.
13293 ac_max_sed_lines=48
13294 ac_sed_frag=1 # Number of current file.
13295 ac_beg=1 # First line for current file.
13296 ac_end=$ac_max_sed_lines # Line after last line for current file.
13297 ac_more_lines=:
13298 ac_sed_cmds=
13299 while $ac_more_lines; do
13300 if test $ac_beg -gt 1; then
13301 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13302 else
13303 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13304 fi
13305 if test ! -s $tmp/subs.frag; then
13306 ac_more_lines=false
13307 else
13308 # The purpose of the label and of the branching condition is to
13309 # speed up the sed processing (if there are no `@' at all, there
13310 # is no need to browse any of the substitutions).
13311 # These are the two extra sed commands mentioned above.
13312 (echo ':t
13313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13314 if test -z "$ac_sed_cmds"; then
076e5443 13315 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42fcd7bb 13316 else
076e5443 13317 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42fcd7bb
AJ
13318 fi
13319 ac_sed_frag=`expr $ac_sed_frag + 1`
13320 ac_beg=$ac_end
13321 ac_end=`expr $ac_end + $ac_max_sed_lines`
13322 fi
13323 done
13324 if test -z "$ac_sed_cmds"; then
13325 ac_sed_cmds=cat
6de9cd9a 13326 fi
42fcd7bb 13327fi # test -n "$CONFIG_FILES"
6de9cd9a 13328
42fcd7bb
AJ
13329_ACEOF
13330cat >>$CONFIG_STATUS <<\_ACEOF
13331for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13333 case $ac_file in
13334 - | *:- | *:-:* ) # input from stdin
076e5443
PB
13335 cat >$tmp/stdin
13336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42fcd7bb 13338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
076e5443 13339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42fcd7bb 13340 * ) ac_file_in=$ac_file.in ;;
6de9cd9a
DN
13341 esac
13342
42fcd7bb
AJ
13343 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13344 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13345$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13346 X"$ac_file" : 'X\(//\)[^/]' \| \
13347 X"$ac_file" : 'X\(//\)$' \| \
13348 X"$ac_file" : 'X\(/\)' \| \
13349 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13350echo X"$ac_file" |
13351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13353 /^X\(\/\/\)$/{ s//\1/; q; }
13354 /^X\(\/\).*/{ s//\1/; q; }
13355 s/.*/./; q'`
13356 { if $as_mkdir_p; then
13357 mkdir -p "$ac_dir"
13358 else
13359 as_dir="$ac_dir"
13360 as_dirs=
13361 while test ! -d "$as_dir"; do
13362 as_dirs="$as_dir $as_dirs"
13363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13364$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13365 X"$as_dir" : 'X\(//\)[^/]' \| \
13366 X"$as_dir" : 'X\(//\)$' \| \
13367 X"$as_dir" : 'X\(/\)' \| \
13368 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13369echo X"$as_dir" |
13370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13372 /^X\(\/\/\)$/{ s//\1/; q; }
13373 /^X\(\/\).*/{ s//\1/; q; }
13374 s/.*/./; q'`
13375 done
13376 test ! -n "$as_dirs" || mkdir $as_dirs
13377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13378echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13379 { (exit 1); exit 1; }; }; }
6de9cd9a 13380
42fcd7bb
AJ
13381 ac_builddir=.
13382
13383if test "$ac_dir" != .; then
13384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13385 # A "../" for each directory in $ac_dir_suffix.
13386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13387else
13388 ac_dir_suffix= ac_top_builddir=
13389fi
13390
13391case $srcdir in
13392 .) # No --srcdir option. We are building in place.
13393 ac_srcdir=.
13394 if test -z "$ac_top_builddir"; then
13395 ac_top_srcdir=.
13396 else
13397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13398 fi ;;
13399 [\\/]* | ?:[\\/]* ) # Absolute path.
13400 ac_srcdir=$srcdir$ac_dir_suffix;
13401 ac_top_srcdir=$srcdir ;;
13402 *) # Relative path.
13403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13405esac
076e5443
PB
13406
13407# Do not use `cd foo && pwd` to compute absolute paths, because
13408# the directories may not exist.
13409case `pwd` in
13410.) ac_abs_builddir="$ac_dir";;
13411*)
13412 case "$ac_dir" in
13413 .) ac_abs_builddir=`pwd`;;
13414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13415 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13416 esac;;
13417esac
13418case $ac_abs_builddir in
13419.) ac_abs_top_builddir=${ac_top_builddir}.;;
13420*)
13421 case ${ac_top_builddir}. in
13422 .) ac_abs_top_builddir=$ac_abs_builddir;;
13423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13425 esac;;
13426esac
13427case $ac_abs_builddir in
13428.) ac_abs_srcdir=$ac_srcdir;;
13429*)
13430 case $ac_srcdir in
13431 .) ac_abs_srcdir=$ac_abs_builddir;;
13432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13434 esac;;
13435esac
13436case $ac_abs_builddir in
13437.) ac_abs_top_srcdir=$ac_top_srcdir;;
13438*)
13439 case $ac_top_srcdir in
13440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13443 esac;;
13444esac
42fcd7bb
AJ
13445
13446
13447 case $INSTALL in
13448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13449 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6de9cd9a
DN
13450 esac
13451
66a5d3b1
FCE
13452 if test x"$ac_file" != x-; then
13453 { echo "$as_me:$LINENO: creating $ac_file" >&5
13454echo "$as_me: creating $ac_file" >&6;}
13455 rm -f "$ac_file"
13456 fi
42fcd7bb
AJ
13457 # Let's still pretend it is `configure' which instantiates (i.e., don't
13458 # use $as_me), people would be surprised to read:
13459 # /* config.h. Generated by config.status. */
13460 if test x"$ac_file" = x-; then
13461 configure_input=
13462 else
13463 configure_input="$ac_file. "
13464 fi
13465 configure_input=$configure_input"Generated from `echo $ac_file_in |
076e5443 13466 sed 's,.*/,,'` by configure."
42fcd7bb
AJ
13467
13468 # First look for the input files in the build tree, otherwise in the
13469 # src tree.
13470 ac_file_inputs=`IFS=:
13471 for f in $ac_file_in; do
13472 case $f in
13473 -) echo $tmp/stdin ;;
13474 [\\/$]*)
076e5443
PB
13475 # Absolute (can't be DOS-style, as IFS=:)
13476 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42fcd7bb
AJ
13477echo "$as_me: error: cannot find input file: $f" >&2;}
13478 { (exit 1); exit 1; }; }
076e5443 13479 echo "$f";;
42fcd7bb 13480 *) # Relative
076e5443
PB
13481 if test -f "$f"; then
13482 # Build tree
13483 echo "$f"
13484 elif test -f "$srcdir/$f"; then
13485 # Source tree
13486 echo "$srcdir/$f"
13487 else
13488 # /dev/null tree
13489 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42fcd7bb
AJ
13490echo "$as_me: error: cannot find input file: $f" >&2;}
13491 { (exit 1); exit 1; }; }
076e5443 13492 fi;;
42fcd7bb
AJ
13493 esac
13494 done` || { (exit 1); exit 1; }
13495_ACEOF
13496cat >>$CONFIG_STATUS <<_ACEOF
13497 sed "$ac_vpsub
13498$extrasub
13499_ACEOF
13500cat >>$CONFIG_STATUS <<\_ACEOF
13501:t
13502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13503s,@configure_input@,$configure_input,;t t
13504s,@srcdir@,$ac_srcdir,;t t
13505s,@abs_srcdir@,$ac_abs_srcdir,;t t
13506s,@top_srcdir@,$ac_top_srcdir,;t t
13507s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13508s,@builddir@,$ac_builddir,;t t
13509s,@abs_builddir@,$ac_abs_builddir,;t t
13510s,@top_builddir@,$ac_top_builddir,;t t
13511s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13512s,@INSTALL@,$ac_INSTALL,;t t
13513" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13514 rm -f $tmp/stdin
13515 if test x"$ac_file" != x-; then
13516 mv $tmp/out $ac_file
13517 else
13518 cat $tmp/out
13519 rm -f $tmp/out
13520 fi
13521
13522done
13523_ACEOF
13524cat >>$CONFIG_STATUS <<\_ACEOF
13525
13526#
13527# CONFIG_HEADER section.
13528#
6de9cd9a
DN
13529
13530# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13531# NAME is the cpp macro being defined and VALUE is the value it is being given.
13532#
13533# ac_d sets the value in "#define NAME VALUE" lines.
076e5443
PB
13534ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13535ac_dB='[ ].*$,\1#\2'
42fcd7bb
AJ
13536ac_dC=' '
13537ac_dD=',;t'
13538# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
076e5443 13539ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42fcd7bb 13540ac_uB='$,\1#\2define\3'
6de9cd9a 13541ac_uC=' '
42fcd7bb
AJ
13542ac_uD=',;t'
13543
13544for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6de9cd9a 13545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42fcd7bb
AJ
13546 case $ac_file in
13547 - | *:- | *:-:* ) # input from stdin
076e5443
PB
13548 cat >$tmp/stdin
13549 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42fcd7bb 13551 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
076e5443 13552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42fcd7bb 13553 * ) ac_file_in=$ac_file.in ;;
6de9cd9a
DN
13554 esac
13555
42fcd7bb
AJ
13556 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13557echo "$as_me: creating $ac_file" >&6;}
13558
13559 # First look for the input files in the build tree, otherwise in the
13560 # src tree.
13561 ac_file_inputs=`IFS=:
13562 for f in $ac_file_in; do
13563 case $f in
13564 -) echo $tmp/stdin ;;
13565 [\\/$]*)
076e5443
PB
13566 # Absolute (can't be DOS-style, as IFS=:)
13567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42fcd7bb
AJ
13568echo "$as_me: error: cannot find input file: $f" >&2;}
13569 { (exit 1); exit 1; }; }
076e5443
PB
13570 # Do quote $f, to prevent DOS paths from being IFS'd.
13571 echo "$f";;
42fcd7bb 13572 *) # Relative
076e5443
PB
13573 if test -f "$f"; then
13574 # Build tree
13575 echo "$f"
13576 elif test -f "$srcdir/$f"; then
13577 # Source tree
13578 echo "$srcdir/$f"
13579 else
13580 # /dev/null tree
13581 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42fcd7bb
AJ
13582echo "$as_me: error: cannot find input file: $f" >&2;}
13583 { (exit 1); exit 1; }; }
076e5443 13584 fi;;
42fcd7bb
AJ
13585 esac
13586 done` || { (exit 1); exit 1; }
13587 # Remove the trailing spaces.
076e5443 13588 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42fcd7bb
AJ
13589
13590_ACEOF
13591
13592# Transform confdefs.h into two sed scripts, `conftest.defines' and
13593# `conftest.undefs', that substitutes the proper values into
13594# config.h.in to produce config.h. The first handles `#define'
13595# templates, and the second `#undef' templates.
13596# And first: Protect against being on the right side of a sed subst in
13597# config.status. Protect against being in an unquoted here document
13598# in config.status.
13599rm -f conftest.defines conftest.undefs
13600# Using a here document instead of a string reduces the quoting nightmare.
13601# Putting comments in sed scripts is not portable.
13602#
13603# `end' is used to avoid that the second main sed command (meant for
13604# 0-ary CPP macros) applies to n-ary macro definitions.
13605# See the Autoconf documentation for `clear'.
13606cat >confdef2sed.sed <<\_ACEOF
13607s/[\\&,]/\\&/g
13608s,[\\$`],\\&,g
13609t clear
13610: clear
076e5443 13611s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42fcd7bb 13612t end
076e5443 13613s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42fcd7bb
AJ
13614: end
13615_ACEOF
13616# If some macros were called several times there might be several times
13617# the same #defines, which is useless. Nevertheless, we may not want to
13618# sort them, since we want the *last* AC-DEFINE to be honored.
13619uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13620sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13621rm -f confdef2sed.sed
6de9cd9a
DN
13622
13623# This sed command replaces #undef with comments. This is necessary, for
13624# example, in the case of _POSIX_SOURCE, which is predefined and required
13625# on some systems where configure will not decide to define it.
42fcd7bb 13626cat >>conftest.undefs <<\_ACEOF
076e5443 13627s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42fcd7bb
AJ
13628_ACEOF
13629
13630# Break up conftest.defines because some shells have a limit on the size
13631# of here documents, and old seds have small limits too (100 cmds).
13632echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
076e5443 13633echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42fcd7bb
AJ
13634echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13635echo ' :' >>$CONFIG_STATUS
13636rm -f conftest.tail
13637while grep . conftest.defines >/dev/null
13638do
13639 # Write a limited-size here document to $tmp/defines.sed.
13640 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13641 # Speed up: don't consider the non `#define' lines.
076e5443 13642 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42fcd7bb
AJ
13643 # Work around the forget-to-reset-the-flag bug.
13644 echo 't clr' >>$CONFIG_STATUS
13645 echo ': clr' >>$CONFIG_STATUS
13646 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13647 echo 'CEOF
13648 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13649 rm -f $tmp/in
13650 mv $tmp/out $tmp/in
13651' >>$CONFIG_STATUS
13652 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13653 rm -f conftest.defines
13654 mv conftest.tail conftest.defines
13655done
13656rm -f conftest.defines
13657echo ' fi # grep' >>$CONFIG_STATUS
13658echo >>$CONFIG_STATUS
6de9cd9a 13659
42fcd7bb
AJ
13660# Break up conftest.undefs because some shells have a limit on the size
13661# of here documents, and old seds have small limits too (100 cmds).
13662echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6de9cd9a 13663rm -f conftest.tail
42fcd7bb 13664while grep . conftest.undefs >/dev/null
6de9cd9a 13665do
42fcd7bb
AJ
13666 # Write a limited-size here document to $tmp/undefs.sed.
13667 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13668 # Speed up: don't consider the non `#undef'
076e5443 13669 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42fcd7bb
AJ
13670 # Work around the forget-to-reset-the-flag bug.
13671 echo 't clr' >>$CONFIG_STATUS
13672 echo ': clr' >>$CONFIG_STATUS
13673 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6de9cd9a 13674 echo 'CEOF
42fcd7bb
AJ
13675 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13676 rm -f $tmp/in
13677 mv $tmp/out $tmp/in
13678' >>$CONFIG_STATUS
13679 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13680 rm -f conftest.undefs
13681 mv conftest.tail conftest.undefs
13682done
13683rm -f conftest.undefs
13684
13685cat >>$CONFIG_STATUS <<\_ACEOF
13686 # Let's still pretend it is `configure' which instantiates (i.e., don't
13687 # use $as_me), people would be surprised to read:
13688 # /* config.h. Generated by config.status. */
13689 if test x"$ac_file" = x-; then
13690 echo "/* Generated by configure. */" >$tmp/config.h
13691 else
13692 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13693 fi
13694 cat $tmp/in >>$tmp/config.h
13695 rm -f $tmp/in
13696 if test x"$ac_file" != x-; then
13697 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13699echo "$as_me: $ac_file is unchanged" >&6;}
13700 else
13701 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13703 X"$ac_file" : 'X\(//\)[^/]' \| \
13704 X"$ac_file" : 'X\(//\)$' \| \
13705 X"$ac_file" : 'X\(/\)' \| \
13706 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13707echo X"$ac_file" |
13708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13710 /^X\(\/\/\)$/{ s//\1/; q; }
13711 /^X\(\/\).*/{ s//\1/; q; }
13712 s/.*/./; q'`
13713 { if $as_mkdir_p; then
13714 mkdir -p "$ac_dir"
6de9cd9a 13715 else
42fcd7bb
AJ
13716 as_dir="$ac_dir"
13717 as_dirs=
13718 while test ! -d "$as_dir"; do
13719 as_dirs="$as_dir $as_dirs"
13720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13722 X"$as_dir" : 'X\(//\)[^/]' \| \
13723 X"$as_dir" : 'X\(//\)$' \| \
13724 X"$as_dir" : 'X\(/\)' \| \
13725 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13726echo X"$as_dir" |
13727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13729 /^X\(\/\/\)$/{ s//\1/; q; }
13730 /^X\(\/\).*/{ s//\1/; q; }
13731 s/.*/./; q'`
13732 done
13733 test ! -n "$as_dirs" || mkdir $as_dirs
13734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13735echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13736 { (exit 1); exit 1; }; }; }
13737
13738 rm -f $ac_file
13739 mv $tmp/config.h $ac_file
6de9cd9a 13740 fi
42fcd7bb
AJ
13741 else
13742 cat $tmp/config.h
13743 rm -f $tmp/config.h
6de9cd9a 13744 fi
42fcd7bb
AJ
13745# Compute $ac_file's index in $config_headers.
13746_am_stamp_count=1
13747for _am_header in $config_headers :; do
13748 case $_am_header in
13749 $ac_file | $ac_file:* )
13750 break ;;
13751 * )
13752 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13753 esac
13754done
13755echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13756$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13757 X$ac_file : 'X\(//\)[^/]' \| \
13758 X$ac_file : 'X\(//\)$' \| \
13759 X$ac_file : 'X\(/\)' \| \
13760 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13761echo X$ac_file |
13762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13764 /^X\(\/\/\)$/{ s//\1/; q; }
13765 /^X\(\/\).*/{ s//\1/; q; }
13766 s/.*/./; q'`/stamp-h$_am_stamp_count
13767done
13768_ACEOF
13769cat >>$CONFIG_STATUS <<\_ACEOF
6de9cd9a 13770
42fcd7bb
AJ
13771#
13772# CONFIG_COMMANDS section.
13773#
13774for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13775 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13776 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13777 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13778$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13779 X"$ac_dest" : 'X\(//\)[^/]' \| \
13780 X"$ac_dest" : 'X\(//\)$' \| \
13781 X"$ac_dest" : 'X\(/\)' \| \
13782 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13783echo X"$ac_dest" |
13784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13786 /^X\(\/\/\)$/{ s//\1/; q; }
13787 /^X\(\/\).*/{ s//\1/; q; }
13788 s/.*/./; q'`
076e5443
PB
13789 { if $as_mkdir_p; then
13790 mkdir -p "$ac_dir"
13791 else
13792 as_dir="$ac_dir"
13793 as_dirs=
13794 while test ! -d "$as_dir"; do
13795 as_dirs="$as_dir $as_dirs"
13796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13798 X"$as_dir" : 'X\(//\)[^/]' \| \
13799 X"$as_dir" : 'X\(//\)$' \| \
13800 X"$as_dir" : 'X\(/\)' \| \
13801 . : '\(.\)' 2>/dev/null ||
13802echo X"$as_dir" |
13803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13805 /^X\(\/\/\)$/{ s//\1/; q; }
13806 /^X\(\/\).*/{ s//\1/; q; }
13807 s/.*/./; q'`
13808 done
13809 test ! -n "$as_dirs" || mkdir $as_dirs
13810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13811echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13812 { (exit 1); exit 1; }; }; }
13813
42fcd7bb 13814 ac_builddir=.
6de9cd9a 13815
42fcd7bb
AJ
13816if test "$ac_dir" != .; then
13817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13818 # A "../" for each directory in $ac_dir_suffix.
13819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13820else
13821 ac_dir_suffix= ac_top_builddir=
13822fi
6de9cd9a 13823
42fcd7bb
AJ
13824case $srcdir in
13825 .) # No --srcdir option. We are building in place.
13826 ac_srcdir=.
13827 if test -z "$ac_top_builddir"; then
13828 ac_top_srcdir=.
13829 else
13830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13831 fi ;;
13832 [\\/]* | ?:[\\/]* ) # Absolute path.
13833 ac_srcdir=$srcdir$ac_dir_suffix;
13834 ac_top_srcdir=$srcdir ;;
13835 *) # Relative path.
13836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13838esac
076e5443
PB
13839
13840# Do not use `cd foo && pwd` to compute absolute paths, because
13841# the directories may not exist.
13842case `pwd` in
13843.) ac_abs_builddir="$ac_dir";;
13844*)
13845 case "$ac_dir" in
13846 .) ac_abs_builddir=`pwd`;;
13847 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13848 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13849 esac;;
13850esac
13851case $ac_abs_builddir in
13852.) ac_abs_top_builddir=${ac_top_builddir}.;;
13853*)
13854 case ${ac_top_builddir}. in
13855 .) ac_abs_top_builddir=$ac_abs_builddir;;
13856 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13857 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13858 esac;;
13859esac
13860case $ac_abs_builddir in
13861.) ac_abs_srcdir=$ac_srcdir;;
13862*)
13863 case $ac_srcdir in
13864 .) ac_abs_srcdir=$ac_abs_builddir;;
13865 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13866 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13867 esac;;
13868esac
13869case $ac_abs_builddir in
13870.) ac_abs_top_srcdir=$ac_top_srcdir;;
13871*)
13872 case $ac_top_srcdir in
13873 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13874 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13875 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13876 esac;;
13877esac
42fcd7bb
AJ
13878
13879
13880 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13881echo "$as_me: executing $ac_dest commands" >&6;}
13882 case $ac_dest in
13883 default-1 )
13884# Only add multilib support code if we just rebuilt the top-level
13885# Makefile.
13886case " $CONFIG_FILES " in
13887 *" Makefile "*)
13888 ac_file=Makefile . ${multi_basedir}/config-ml.in
13889 ;;
13890esac ;;
13891 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13892 # Strip MF so we end up with the name of the file.
13893 mf=`echo "$mf" | sed -e 's/:.*$//'`
13894 # Check whether this is an Automake generated Makefile or not.
13895 # We used to match only the files named `Makefile.in', but
13896 # some people rename them; so instead we look at the file content.
13897 # Grep'ing the first line is not enough: some people post-process
13898 # each Makefile.in and add a new line on top of each file to say so.
13899 # So let's grep whole file.
13900 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13901 dirpart=`(dirname "$mf") 2>/dev/null ||
13902$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13903 X"$mf" : 'X\(//\)[^/]' \| \
13904 X"$mf" : 'X\(//\)$' \| \
13905 X"$mf" : 'X\(/\)' \| \
13906 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13907echo X"$mf" |
13908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13910 /^X\(\/\/\)$/{ s//\1/; q; }
13911 /^X\(\/\).*/{ s//\1/; q; }
13912 s/.*/./; q'`
13913 else
13914 continue
13915 fi
4e55a162
KC
13916 # Extract the definition of DEPDIR, am__include, and am__quote
13917 # from the Makefile without running `make'.
076e5443 13918 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42fcd7bb 13919 test -z "$DEPDIR" && continue
4e55a162
KC
13920 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13921 test -z "am__include" && continue
13922 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42fcd7bb 13923 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 13924 U=`sed -n 's/^U = //p' < "$mf"`
4e55a162
KC
13925 # Find all dependency output files, they are included files with
13926 # $(DEPDIR) in their names. We invoke sed twice because it is the
13927 # simplest approach to changing $(DEPDIR) to its actual value in the
13928 # expansion.
13929 for file in `sed -n "
13930 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42fcd7bb
AJ
13931 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13932 # Make sure the directory exists.
13933 test -f "$dirpart/$file" && continue
13934 fdir=`(dirname "$file") 2>/dev/null ||
13935$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13936 X"$file" : 'X\(//\)[^/]' \| \
13937 X"$file" : 'X\(//\)$' \| \
13938 X"$file" : 'X\(/\)' \| \
13939 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13940echo X"$file" |
13941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13943 /^X\(\/\/\)$/{ s//\1/; q; }
13944 /^X\(\/\).*/{ s//\1/; q; }
13945 s/.*/./; q'`
13946 { if $as_mkdir_p; then
13947 mkdir -p $dirpart/$fdir
13948 else
13949 as_dir=$dirpart/$fdir
13950 as_dirs=
13951 while test ! -d "$as_dir"; do
13952 as_dirs="$as_dir $as_dirs"
13953 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
076e5443
PB
13955 X"$as_dir" : 'X\(//\)[^/]' \| \
13956 X"$as_dir" : 'X\(//\)$' \| \
13957 X"$as_dir" : 'X\(/\)' \| \
13958 . : '\(.\)' 2>/dev/null ||
42fcd7bb
AJ
13959echo X"$as_dir" |
13960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13962 /^X\(\/\/\)$/{ s//\1/; q; }
13963 /^X\(\/\).*/{ s//\1/; q; }
13964 s/.*/./; q'`
13965 done
13966 test ! -n "$as_dirs" || mkdir $as_dirs
13967 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13968echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13969 { (exit 1); exit 1; }; }; }
13970
13971 # echo "creating $dirpart/$file"
13972 echo '# dummy' > "$dirpart/$file"
13973 done
13974done
1cf3d07d
SE
13975 ;;
13976 libtool )
13977
13978 # See if we are running on zsh, and set the options which allow our
13979 # commands through without removal of \ escapes.
13980 if test -n "${ZSH_VERSION+set}" ; then
13981 setopt NO_GLOB_SUBST
13982 fi
13983
13984 cfgfile="${ofile}T"
13985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13986 $RM "$cfgfile"
13987
13988 cat <<_LT_EOF >> "$cfgfile"
13989#! $SHELL
13990
13991# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13992# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13994# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13995#
13996# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13997# 2006, 2007 Free Software Foundation, Inc.
13998#
13999# This file is part of GNU Libtool:
14000# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14001#
14002# This program is free software; you can redistribute it and/or modify
14003# it under the terms of the GNU General Public License as published by
14004# the Free Software Foundation; either version 2 of the License, or
14005# (at your option) any later version.
14006#
14007# This program is distributed in the hope that it will be useful, but
14008# WITHOUT ANY WARRANTY; without even the implied warranty of
14009# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14010# General Public License for more details.
14011#
14012# You should have received a copy of the GNU General Public License
14013# along with this program; if not, a copy can be downloaded from
14014# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14015# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14016# MA 02110-1301, USA.
14017#
14018# As a special exception to the GNU General Public License, if you
14019# distribute this file as part of a program that contains a
14020# configuration script generated by Autoconf, you may include it under
14021# the same distribution terms that you use for the rest of that program.
14022
14023
14024# The names of the tagged configurations supported by this script.
14025available_tags=""
14026
14027# ### BEGIN LIBTOOL CONFIG
14028
14029# Which release of libtool.m4 was used?
14030macro_version=$macro_version
14031macro_revision=$macro_revision
14032
14033# Whether or not to build shared libraries.
14034build_libtool_libs=$enable_shared
14035
14036# Whether or not to build static libraries.
14037build_old_libs=$enable_static
14038
14039# What type of objects to build.
14040pic_mode=$pic_mode
14041
14042# Whether or not to optimize for fast installation.
14043fast_install=$enable_fast_install
14044
14045# The host system.
14046host_alias=$host_alias
14047host=$host
14048host_os=$host_os
14049
14050# The build system.
14051build_alias=$build_alias
14052build=$build
14053build_os=$build_os
14054
14055# A sed program that does not truncate output.
14056SED=$lt_SED
14057
14058# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14059Xsed="\$SED -e 1s/^X//"
14060
14061# A grep program that handles long lines.
14062GREP=$lt_GREP
14063
14064# An ERE matcher.
14065EGREP=$lt_EGREP
14066
14067# A literal string matcher.
14068FGREP=$lt_FGREP
14069
14070# A BSD- or MS-compatible name lister.
14071NM=$lt_NM
14072
14073# Whether we need soft or hard links.
14074LN_S=$lt_LN_S
14075
14076# What is the maximum length of a command?
14077max_cmd_len=$max_cmd_len
14078
14079# Object file suffix (normally "o").
14080objext=$ac_objext
14081
14082# Executable file suffix (normally "").
14083exeext=$exeext
14084
14085# whether the shell understands "unset".
14086lt_unset=$lt_unset
14087
14088# turn spaces into newlines.
14089SP2NL=$lt_lt_SP2NL
14090
14091# turn newlines into spaces.
14092NL2SP=$lt_lt_NL2SP
14093
14094# How to create reloadable object files.
14095reload_flag=$lt_reload_flag
14096reload_cmds=$lt_reload_cmds
14097
14098# Method to check whether dependent libraries are shared objects.
14099deplibs_check_method=$lt_deplibs_check_method
14100
14101# Command to use when deplibs_check_method == "file_magic".
14102file_magic_cmd=$lt_file_magic_cmd
14103
14104# The archiver.
14105AR=$lt_AR
14106AR_FLAGS=$lt_AR_FLAGS
14107
14108# A symbol stripping program.
14109STRIP=$lt_STRIP
14110
14111# Commands used to install an old-style archive.
14112RANLIB=$lt_RANLIB
14113old_postinstall_cmds=$lt_old_postinstall_cmds
14114old_postuninstall_cmds=$lt_old_postuninstall_cmds
14115
14116# A C compiler.
14117LTCC=$lt_CC
14118
14119# LTCC compiler flags.
14120LTCFLAGS=$lt_CFLAGS
14121
14122# Take the output of nm and produce a listing of raw symbols and C names.
14123global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14124
14125# Transform the output of nm in a proper C declaration.
14126global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14127
14128# Transform the output of nm in a C name address pair.
14129global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14130
14131# The name of the directory that contains temporary libtool files.
14132objdir=$objdir
14133
14134# Shell to use when invoking shell scripts.
14135SHELL=$lt_SHELL
14136
14137# An echo program that does not interpret backslashes.
14138ECHO=$lt_ECHO
14139
14140# Used to examine libraries when file_magic_cmd begins with "file".
14141MAGIC_CMD=$MAGIC_CMD
14142
14143# Must we lock files when doing compilation?
14144need_locks=$lt_need_locks
14145
14146# Old archive suffix (normally "a").
14147libext=$libext
14148
14149# Shared library suffix (normally ".so").
14150shrext_cmds=$lt_shrext_cmds
14151
14152# The commands to extract the exported symbol list from a shared archive.
14153extract_expsyms_cmds=$lt_extract_expsyms_cmds
14154
14155# Variables whose values should be saved in libtool wrapper scripts and
14156# restored at link time.
14157variables_saved_for_relink=$lt_variables_saved_for_relink
14158
14159# Do we need the "lib" prefix for modules?
14160need_lib_prefix=$need_lib_prefix
14161
14162# Do we need a version for libraries?
14163need_version=$need_version
14164
14165# Library versioning type.
14166version_type=$version_type
14167
14168# Shared library runtime path variable.
14169runpath_var=$runpath_var
14170
14171# Shared library path variable.
14172shlibpath_var=$shlibpath_var
14173
14174# Is shlibpath searched before the hard-coded library search path?
14175shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14176
14177# Format of library name prefix.
14178libname_spec=$lt_libname_spec
14179
14180# List of archive names. First name is the real one, the rest are links.
14181# The last name is the one that the linker finds with -lNAME
14182library_names_spec=$lt_library_names_spec
14183
14184# The coded name of the library, if different from the real name.
14185soname_spec=$lt_soname_spec
14186
14187# Command to use after installation of a shared archive.
14188postinstall_cmds=$lt_postinstall_cmds
14189
14190# Command to use after uninstallation of a shared archive.
14191postuninstall_cmds=$lt_postuninstall_cmds
14192
14193# Commands used to finish a libtool library installation in a directory.
14194finish_cmds=$lt_finish_cmds
14195
14196# As "finish_cmds", except a single script fragment to be evaled but
14197# not shown.
14198finish_eval=$lt_finish_eval
14199
14200# Whether we should hardcode library paths into libraries.
14201hardcode_into_libs=$hardcode_into_libs
14202
14203# Compile-time system search path for libraries.
14204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14205
14206# Run-time system search path for libraries.
14207sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14208
14209# Whether dlopen is supported.
14210dlopen_support=$enable_dlopen
14211
14212# Whether dlopen of programs is supported.
14213dlopen_self=$enable_dlopen_self
14214
14215# Whether dlopen of statically linked programs is supported.
14216dlopen_self_static=$enable_dlopen_self_static
14217
14218# Commands to strip libraries.
14219old_striplib=$lt_old_striplib
14220striplib=$lt_striplib
14221
14222
14223# The linker used to build libraries.
14224LD=$lt_LD
14225
14226# Commands used to build an old-style archive.
14227old_archive_cmds=$lt_old_archive_cmds
14228
14229# A language specific compiler.
14230CC=$lt_compiler
14231
14232# Is the compiler the GNU compiler?
14233with_gcc=$GCC
14234
14235# Compiler flag to turn off builtin functions.
14236no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14237
14238# How to pass a linker flag through the compiler.
14239wl=$lt_lt_prog_compiler_wl
14240
14241# Additional compiler flags for building library objects.
14242pic_flag=$lt_lt_prog_compiler_pic
14243
14244# Compiler flag to prevent dynamic linking.
14245link_static_flag=$lt_lt_prog_compiler_static
14246
14247# Does compiler simultaneously support -c and -o options?
14248compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14249
14250# Whether or not to add -lc for building shared libraries.
14251build_libtool_need_lc=$archive_cmds_need_lc
14252
14253# Whether or not to disallow shared libs when runtime libs are static.
14254allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14255
14256# Compiler flag to allow reflexive dlopens.
14257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14258
14259# Compiler flag to generate shared objects directly from archives.
14260whole_archive_flag_spec=$lt_whole_archive_flag_spec
14261
14262# Whether the compiler copes with passing no objects directly.
14263compiler_needs_object=$lt_compiler_needs_object
14264
14265# Create an old-style archive from a shared archive.
14266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14267
14268# Create a temporary old-style archive to link instead of a shared archive.
14269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14270
14271# Commands used to build a shared archive.
14272archive_cmds=$lt_archive_cmds
14273archive_expsym_cmds=$lt_archive_expsym_cmds
14274
14275# Commands used to build a loadable module if different from building
14276# a shared archive.
14277module_cmds=$lt_module_cmds
14278module_expsym_cmds=$lt_module_expsym_cmds
14279
14280# Whether we are building with GNU ld or not.
14281with_gnu_ld=$lt_with_gnu_ld
14282
14283# Flag that allows shared libraries with undefined symbols to be built.
14284allow_undefined_flag=$lt_allow_undefined_flag
14285
14286# Flag that enforces no undefined symbols.
14287no_undefined_flag=$lt_no_undefined_flag
14288
14289# Flag to hardcode \$libdir into a binary during linking.
14290# This must work even if \$libdir does not exist
14291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14292
14293# If ld is used when linking, flag to hardcode \$libdir into a binary
14294# during linking. This must work even if \$libdir does not exist.
14295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14296
14297# Whether we need a single "-rpath" flag with a separated argument.
14298hardcode_libdir_separator=$lt_hardcode_libdir_separator
14299
14300# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14301# DIR into the resulting binary.
14302hardcode_direct=$hardcode_direct
14303
14304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14305# DIR into the resulting binary and the resulting library dependency is
14306# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14307# library is relocated.
14308hardcode_direct_absolute=$hardcode_direct_absolute
14309
14310# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14311# into the resulting binary.
14312hardcode_minus_L=$hardcode_minus_L
14313
14314# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14315# into the resulting binary.
14316hardcode_shlibpath_var=$hardcode_shlibpath_var
14317
14318# Set to "yes" if building a shared library automatically hardcodes DIR
14319# into the library and all subsequent libraries and executables linked
14320# against it.
14321hardcode_automatic=$hardcode_automatic
14322
14323# Set to yes if linker adds runtime paths of dependent libraries
14324# to runtime path list.
14325inherit_rpath=$inherit_rpath
14326
14327# Whether libtool must link a program against all its dependency libraries.
14328link_all_deplibs=$link_all_deplibs
14329
14330# Fix the shell variable \$srcfile for the compiler.
14331fix_srcfile_path=$lt_fix_srcfile_path
14332
14333# Set to "yes" if exported symbols are required.
14334always_export_symbols=$always_export_symbols
14335
14336# The commands to list exported symbols.
14337export_symbols_cmds=$lt_export_symbols_cmds
14338
14339# Symbols that should not be listed in the preloaded symbols.
14340exclude_expsyms=$lt_exclude_expsyms
14341
14342# Symbols that must always be exported.
14343include_expsyms=$lt_include_expsyms
14344
14345# Commands necessary for linking programs (against libraries) with templates.
14346prelink_cmds=$lt_prelink_cmds
14347
14348# Specify filename containing input files.
14349file_list_spec=$lt_file_list_spec
14350
14351# How to hardcode a shared library path into an executable.
14352hardcode_action=$hardcode_action
14353
14354# ### END LIBTOOL CONFIG
14355
14356_LT_EOF
14357
14358 case $host_os in
14359 aix3*)
14360 cat <<\_LT_EOF >> "$cfgfile"
14361# AIX sometimes has problems with the GCC collect2 program. For some
14362# reason, if we set the COLLECT_NAMES environment variable, the problems
14363# vanish in a puff of smoke.
14364if test "X${COLLECT_NAMES+set}" != Xset; then
14365 COLLECT_NAMES=
14366 export COLLECT_NAMES
14367fi
14368_LT_EOF
14369 ;;
14370 esac
14371
14372
14373ltmain="$ac_aux_dir/ltmain.sh"
14374
14375
14376 # We use sed instead of cat because bash on DJGPP gets confused if
14377 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14378 # text mode, it properly converts lines to CR/LF. This bash problem
14379 # is reportedly fixed, but why not run on old versions too?
14380 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14381 || (rm -f "$cfgfile"; exit 1)
14382
14383 case $xsi_shell in
14384 yes)
14385 cat << \_LT_EOF >> "$cfgfile"
14386# func_dirname file append nondir_replacement
14387# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14388# otherwise set result to NONDIR_REPLACEMENT.
14389func_dirname ()
14390{
14391 case ${1} in
14392 */*) func_dirname_result="${1%/*}${2}" ;;
14393 * ) func_dirname_result="${3}" ;;
14394 esac
14395}
14396
14397# func_basename file
14398func_basename ()
14399{
14400 func_basename_result="${1##*/}"
14401}
14402
14403# func_stripname prefix suffix name
14404# strip PREFIX and SUFFIX off of NAME.
14405# PREFIX and SUFFIX must not contain globbing or regex special
14406# characters, hashes, percent signs, but SUFFIX may contain a leading
14407# dot (in which case that matches only a dot).
14408func_stripname ()
14409{
14410 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14411 # positional parameters, so assign one to ordinary parameter first.
14412 func_stripname_result=${3}
14413 func_stripname_result=${func_stripname_result#"${1}"}
14414 func_stripname_result=${func_stripname_result%"${2}"}
14415}
14416
14417# func_opt_split
14418func_opt_split ()
14419{
14420 func_opt_split_opt=${1%%=*}
14421 func_opt_split_arg=${1#*=}
14422}
14423
14424# func_lo2o object
14425func_lo2o ()
14426{
14427 case ${1} in
14428 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14429 *) func_lo2o_result=${1} ;;
14430 esac
14431}
14432_LT_EOF
14433 ;;
14434 *) # Bourne compatible functions.
14435 cat << \_LT_EOF >> "$cfgfile"
14436# func_dirname file append nondir_replacement
14437# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14438# otherwise set result to NONDIR_REPLACEMENT.
14439func_dirname ()
14440{
14441 # Extract subdirectory from the argument.
14442 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14443 if test "X$func_dirname_result" = "X${1}"; then
14444 func_dirname_result="${3}"
14445 else
14446 func_dirname_result="$func_dirname_result${2}"
14447 fi
14448}
14449
14450# func_basename file
14451func_basename ()
14452{
14453 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14454}
14455
14456# func_stripname prefix suffix name
14457# strip PREFIX and SUFFIX off of NAME.
14458# PREFIX and SUFFIX must not contain globbing or regex special
14459# characters, hashes, percent signs, but SUFFIX may contain a leading
14460# dot (in which case that matches only a dot).
14461# func_strip_suffix prefix name
14462func_stripname ()
14463{
14464 case ${2} in
14465 .*) func_stripname_result=`$ECHO "X${3}" \
14466 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14467 *) func_stripname_result=`$ECHO "X${3}" \
14468 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14469 esac
14470}
14471
14472# sed scripts:
14473my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14474my_sed_long_arg='1s/^-[^=]*=//'
14475
14476# func_opt_split
14477func_opt_split ()
14478{
14479 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14480 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14481}
14482
14483# func_lo2o object
14484func_lo2o ()
14485{
14486 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14487}
14488_LT_EOF
14489esac
14490
14491case $lt_shell_append in
14492 yes)
14493 cat << \_LT_EOF >> "$cfgfile"
14494
14495# func_append var value
14496# Append VALUE to the end of shell variable VAR.
14497func_append ()
14498{
14499 eval "$1+=\$2"
14500}
14501_LT_EOF
14502 ;;
14503 *)
14504 cat << \_LT_EOF >> "$cfgfile"
14505
14506# func_append var value
14507# Append VALUE to the end of shell variable VAR.
14508func_append ()
14509{
14510 eval "$1=\$$1\$2"
14511}
14512_LT_EOF
14513 ;;
14514 esac
14515
14516
14517 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14518 || (rm -f "$cfgfile"; exit 1)
14519
14520 mv -f "$cfgfile" "$ofile" ||
14521 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14522 chmod +x "$ofile"
14523
42fcd7bb
AJ
14524 ;;
14525 esac
14526done
14527_ACEOF
14528
14529cat >>$CONFIG_STATUS <<\_ACEOF
14530
14531{ (exit 0); exit 0; }
14532_ACEOF
6de9cd9a 14533chmod +x $CONFIG_STATUS
42fcd7bb
AJ
14534ac_clean_files=$ac_clean_files_save
14535
14536
14537# configure is writing to config.log, and then calls config.status.
14538# config.status does its own redirection, appending to config.log.
14539# Unfortunately, on DOS this fails, as config.log is still kept open
14540# by configure, so config.status won't be able to write to it; its
14541# output is simply discarded. So we exec the FD to /dev/null,
14542# effectively closing config.log, so it can be properly (re)opened and
14543# appended to by config.status. When coming back to configure, we
14544# need to make the FD available again.
14545if test "$no_create" != yes; then
14546 ac_cs_success=:
14547 ac_config_status_args=
14548 test "$silent" = yes &&
14549 ac_config_status_args="$ac_config_status_args --quiet"
14550 exec 5>/dev/null
14551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14552 exec 5>>config.log
14553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14554 # would make configure fail if this is the last instruction.
14555 $ac_cs_success || { (exit 1); exit 1; }
14556fi
6de9cd9a 14557