]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
re PR c++/38485 (GCC can't parse a parenthesized comma in a template-id within a...
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13 1#! /bin/sh
dfac8a13 2# Guess values for system-dependent variables and create Makefiles.
a8aea176 3# Generated by GNU Autoconf 2.59.
c45f211e 4#
a8aea176 5# Copyright (C) 2003 Free Software Foundation, Inc.
dfac8a13
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a8aea176
NN
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
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
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}
dfac8a13 185
a8aea176
NN
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
193
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
221 test -d ./-p && rmdir ./-p
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.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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
a8aea176
NN
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#
dfac8a13 403ac_default_prefix=/usr/local
a8aea176
NN
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.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="zlib.h"
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
18d98188 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs 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 COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
a8aea176 462ac_subst_files=''
18c04407 463ac_pwd=`pwd`
dfac8a13
TT
464
465# Initialize some variables set by options.
a8aea176
NN
466ac_init_help=
467ac_init_version=false
dfac8a13
TT
468# The variables have the same names as the options, with
469# dashes changed to underlines.
a8aea176 470cache_file=/dev/null
dfac8a13 471exec_prefix=NONE
dfac8a13 472no_create=
dfac8a13
TT
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
dfac8a13
TT
481verbose=
482x_includes=NONE
483x_libraries=NONE
a8aea176
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
dfac8a13
TT
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
dfac8a13
TT
503ac_prev=
504for ac_option
505do
dfac8a13
TT
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
a8aea176 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
dfac8a13
TT
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
a8aea176 517 case $ac_option in
dfac8a13
TT
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 522 bindir=$ac_optarg ;;
dfac8a13
TT
523
524 -build | --build | --buil | --bui | --bu)
a8aea176 525 ac_prev=build_alias ;;
dfac8a13 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 527 build_alias=$ac_optarg ;;
dfac8a13
TT
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
dfac8a13
TT
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
a8aea176 543 datadir=$ac_optarg ;;
dfac8a13
TT
544
545 -disable-* | --disable-*)
a8aea176 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 547 # Reject names that are not valid shell variable names.
a8aea176
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
dfac8a13
TT
553
554 -enable-* | --enable-*)
a8aea176 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 556 # Reject names that are not valid shell variable names.
a8aea176
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
563 *) ac_optarg=yes ;;
564 esac
a8aea176 565 eval "enable_$ac_feature='$ac_optarg'" ;;
dfac8a13
TT
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
a8aea176 574 exec_prefix=$ac_optarg ;;
dfac8a13
TT
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
a8aea176
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
dfac8a13
TT
586
587 -host | --host | --hos | --ho)
a8aea176 588 ac_prev=host_alias ;;
dfac8a13 589 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 590 host_alias=$ac_optarg ;;
dfac8a13
TT
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 597 includedir=$ac_optarg ;;
dfac8a13
TT
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 602 infodir=$ac_optarg ;;
dfac8a13
TT
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 607 libdir=$ac_optarg ;;
dfac8a13
TT
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
a8aea176 614 libexecdir=$ac_optarg ;;
dfac8a13
TT
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a8aea176 623 localstatedir=$ac_optarg ;;
dfac8a13
TT
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 628 mandir=$ac_optarg ;;
dfac8a13
TT
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 635 | --no-cr | --no-c | -n)
dfac8a13
TT
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 649 oldincludedir=$ac_optarg ;;
dfac8a13
TT
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 654 prefix=$ac_optarg ;;
dfac8a13
TT
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 661 program_prefix=$ac_optarg ;;
dfac8a13
TT
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 668 program_suffix=$ac_optarg ;;
dfac8a13
TT
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 685 program_transform_name=$ac_optarg ;;
dfac8a13
TT
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
a8aea176 695 sbindir=$ac_optarg ;;
dfac8a13
TT
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
a8aea176 706 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
a8aea176 711 site=$ac_optarg ;;
dfac8a13
TT
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 716 srcdir=$ac_optarg ;;
dfac8a13
TT
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 723 sysconfdir=$ac_optarg ;;
dfac8a13
TT
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 726 ac_prev=target_alias ;;
dfac8a13 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 728 target_alias=$ac_optarg ;;
dfac8a13
TT
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
a8aea176
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
dfac8a13
TT
735
736 -with-* | --with-*)
a8aea176 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 738 # Reject names that are not valid shell variable names.
a8aea176
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
dfac8a13 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
a8aea176
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
745 *) ac_optarg=yes ;;
746 esac
a8aea176 747 eval "with_$ac_package='$ac_optarg'" ;;
dfac8a13
TT
748
749 -without-* | --without-*)
a8aea176 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 751 # Reject names that are not valid shell variable names.
a8aea176
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
dfac8a13
TT
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 767 x_includes=$ac_optarg ;;
dfac8a13
TT
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 774 x_libraries=$ac_optarg ;;
dfac8a13 775
a8aea176
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
dfac8a13
TT
779 ;;
780
a8aea176
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
dfac8a13 791 *)
a8aea176
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
dfac8a13
TT
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
a8aea176
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
dfac8a13 806fi
dfac8a13 807
a8aea176
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
dfac8a13 818
a8aea176
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
c45f211e 822do
a8aea176
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
dfac8a13
TT
828 esac
829done
830
a8aea176
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
dfac8a13 848
a8aea176
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
dfac8a13 853
dfac8a13
TT
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
a8aea176
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
dfac8a13
TT
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
a8aea176
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
dfac8a13 882 else
a8aea176
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
dfac8a13
TT
885 fi
886fi
a8aea176
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
a8aea176
NN
903ac_env_CPP_set=${CPP+set}
904ac_env_CPP_value=$CPP
905ac_cv_env_CPP_set=${CPP+set}
906ac_cv_env_CPP_value=$CPP
076e5443
PB
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
a8aea176
NN
911
912#
913# Report the --help message.
914#
915if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919\`configure' configures this package to adapt to many kinds of systems.
920
921Usage: $0 [OPTION]... [VAR=VALUE]...
922
923To assign environment variables (e.g., CC, CFLAGS...), specify them as
924VAR=VALUE. See below for descriptions of some of the useful variables.
925
926Defaults for the options are specified in brackets.
927
928Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938
939_ACEOF
940
941 cat <<_ACEOF
942Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
947
948By default, \`make install' will install all the files in
949\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951for instance \`--prefix=\$HOME'.
952
953For better control, use the options below.
954
955Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968_ACEOF
969
970 cat <<\_ACEOF
971
972Program names:
973 --program-prefix=PREFIX prepend PREFIX to installed program names
974 --program-suffix=SUFFIX append SUFFIX to installed program names
975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976
977System types:
978 --build=BUILD configure for building on BUILD [guessed]
979 --host=HOST cross-compile to build programs to run on HOST [BUILD]
980 --target=TARGET configure for building compilers for TARGET [HOST]
981_ACEOF
982fi
983
984if test -n "$ac_init_help"; then
985
986 cat <<\_ACEOF
987
988Optional Features:
989 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
990 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a8aea176 991 --enable-multilib build many library versions (default)
076e5443
PB
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
994 --disable-dependency-tracking speeds up one-time build
995 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
996 --enable-shared[=PKGS]
997 build shared libraries [default=yes]
998 --enable-static[=PKGS]
999 build static libraries [default=yes]
1000 --enable-fast-install[=PKGS]
1001 optimize for fast installation [default=yes]
a8aea176
NN
1002 --disable-libtool-lock avoid locking (might break parallel builds)
1003
1004Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-target-subdir=SUBDIR
1008 configuring in a subdirectory
1009 --with-cross-host=HOST configuring with a cross compiler
1010 --with-system-zlib use installed libz
1cf3d07d
SE
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
a8aea176
NN
1014
1015Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1023
1024Use these variables to override the choices made by `configure' or to help
1025it to find libraries and programs with nonstandard names/locations.
1026
1027_ACEOF
1028fi
1029
1030if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1036
1037if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041else
1042 ac_dir_suffix= ac_top_builddir=
1043fi
1044
1045case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059esac
1060
1061# Do not use `cd foo && pwd` to compute absolute paths, because
1062# the directories may not exist.
1063case `pwd` in
1064.) ac_abs_builddir="$ac_dir";;
1065*)
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071esac
1072case $ac_abs_builddir in
1073.) ac_abs_top_builddir=${ac_top_builddir}.;;
1074*)
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_srcdir=$ac_srcdir;;
1083*)
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_top_srcdir=$ac_top_srcdir;;
1092*)
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098esac
1099
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 fi
17210dff 1115 cd $ac_popdir
a8aea176
NN
1116 done
1117fi
1118
1119test -n "$ac_init_help" && exit 0
1120if $ac_init_version; then
1121 cat <<\_ACEOF
1122
1123Copyright (C) 2003 Free Software Foundation, Inc.
1124This configure script is free software; the Free Software Foundation
1125gives unlimited permission to copy, distribute and modify it.
1126_ACEOF
1127 exit 0
1128fi
1129exec 5>config.log
1130cat >&5 <<_ACEOF
1131This file contains any messages produced by compilers while
1132running configure, to aid debugging if configure makes a mistake.
1133
1134It was created by $as_me, which was
1135generated by GNU Autoconf 2.59. Invocation command line was
1136
1137 $ $0 $@
1138
1139_ACEOF
1140{
1141cat <<_ASUNAME
1142## --------- ##
1143## Platform. ##
1144## --------- ##
1145
1146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154
1155/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1156/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1159/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1160/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1161/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1162
1163_ASUNAME
1164
1165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166for as_dir in $PATH
1167do
1168 IFS=$as_save_IFS
1169 test -z "$as_dir" && as_dir=.
1170 echo "PATH: $as_dir"
1171done
1172
1173} >&5
1174
1175cat >&5 <<_ACEOF
1176
1177
1178## ----------- ##
1179## Core tests. ##
1180## ----------- ##
1181
1182_ACEOF
1183
1184
1185# Keep a trace of the command line.
1186# Strip out --no-create and --no-recursion so they do not pile up.
1187# Strip out --silent because we don't want to record it for future runs.
1188# Also quote any args containing shell meta-characters.
1189# Make two passes to allow for proper duplicate-argument suppression.
1190ac_configure_args=
1191ac_configure_args0=
1192ac_configure_args1=
1193ac_sep=
1194ac_must_keep_next=false
1195for ac_pass in 1 2
1196do
1197 for ac_arg
1198 do
1199 case $ac_arg in
1200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 continue ;;
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 esac
1207 case $ac_pass in
1208 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209 2)
1210 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211 if test $ac_must_keep_next = true; then
1212 ac_must_keep_next=false # Got value, back to normal.
1213 else
1214 case $ac_arg in
1215 *=* | --config-cache | -C | -disable-* | --disable-* \
1216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218 | -with-* | --with-* | -without-* | --without-* | --x)
1219 case "$ac_configure_args0 " in
1220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221 esac
1222 ;;
1223 -* ) ac_must_keep_next=true ;;
1224 esac
1225 fi
1226 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227 # Get rid of the leading space.
1228 ac_sep=" "
1229 ;;
1230 esac
1231 done
1232done
1233$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236# When interrupted or exit'd, cleanup temporary files, and complete
1237# config.log. We remove comments because anyway the quotes in there
1238# would cause problems or look ugly.
1239# WARNING: Be sure not to use single quotes in there, as some shells,
1240# such as our DU 5.0 friend, will then `close' the trap.
1241trap 'exit_status=$?
1242 # Save into config.log some information that might help in debugging.
1243 {
1244 echo
1245
1246 cat <<\_ASBOX
1247## ---------------- ##
1248## Cache variables. ##
1249## ---------------- ##
1250_ASBOX
1251 echo
1252 # The following way of writing the cache mishandles newlines in values,
1253{
1254 (set) 2>&1 |
1255 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256 *ac_space=\ *)
1257 sed -n \
1258 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260 ;;
1261 *)
1262 sed -n \
1263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264 ;;
1265 esac;
1266}
1267 echo
1268
1269 cat <<\_ASBOX
1270## ----------------- ##
1271## Output variables. ##
1272## ----------------- ##
1273_ASBOX
1274 echo
1275 for ac_var in $ac_subst_vars
1276 do
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1279 done | sort
1280 echo
1281
1282 if test -n "$ac_subst_files"; then
1283 cat <<\_ASBOX
1284## ------------- ##
1285## Output files. ##
1286## ------------- ##
1287_ASBOX
1288 echo
1289 for ac_var in $ac_subst_files
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295 fi
1296
1297 if test -s confdefs.h; then
1298 cat <<\_ASBOX
1299## ----------- ##
1300## confdefs.h. ##
1301## ----------- ##
1302_ASBOX
1303 echo
1304 sed "/^$/d" confdefs.h | sort
1305 echo
1306 fi
1307 test "$ac_signal" != 0 &&
1308 echo "$as_me: caught signal $ac_signal"
1309 echo "$as_me: exit $exit_status"
1310 } >&5
1311 rm -f core *.core &&
1312 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313 exit $exit_status
1314 ' 0
1315for ac_signal in 1 2 13 15; do
1316 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317done
1318ac_signal=0
dfac8a13 1319
a8aea176
NN
1320# confdefs.h avoids OS command line length limits that DEFS can exceed.
1321rm -rf conftest* confdefs.h
1322# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323echo >confdefs.h
1324
1325# Predefined preprocessor variables.
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_NAME "$PACKAGE_NAME"
1329_ACEOF
1330
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_VERSION "$PACKAGE_VERSION"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_STRING "$PACKAGE_STRING"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349_ACEOF
1350
1351
1352# Let the site file select an alternate cache file if it wants to.
dfac8a13 1353# Prefer explicitly selected file to automatically selected ones.
0ccf2c33
AO
1354if test -z "$CONFIG_SITE"; then
1355 if test "x$prefix" != xNONE; then
1356 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357 else
1358 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
dfac8a13
TT
1359 fi
1360fi
1361for ac_site_file in $CONFIG_SITE; do
1362 if test -r "$ac_site_file"; then
a8aea176
NN
1363 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364echo "$as_me: loading site script $ac_site_file" >&6;}
1365 sed 's/^/| /' "$ac_site_file" >&5
dfac8a13
TT
1366 . "$ac_site_file"
1367 fi
1368done
1369
1370if test -r "$cache_file"; then
a8aea176
NN
1371 # Some versions of bash will fail to source /dev/null (special
1372 # files actually), so we avoid doing that.
1373 if test -f "$cache_file"; then
1374 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375echo "$as_me: loading cache $cache_file" >&6;}
1376 case $cache_file in
1377 [\\/]* | ?:[\\/]* ) . $cache_file;;
1378 *) . ./$cache_file;;
1379 esac
1380 fi
dfac8a13 1381else
a8aea176
NN
1382 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383echo "$as_me: creating cache $cache_file" >&6;}
1384 >$cache_file
1385fi
1386
1387# Check that the precious variables saved in the cache have kept the same
1388# value.
1389ac_cache_corrupted=false
1390for ac_var in `(set) 2>&1 |
1391 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393 eval ac_new_set=\$ac_env_${ac_var}_set
1394 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395 eval ac_new_val="\$ac_env_${ac_var}_value"
1396 case $ac_old_set,$ac_new_set in
1397 set,)
1398 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400 ac_cache_corrupted=: ;;
1401 ,set)
1402 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404 ac_cache_corrupted=: ;;
1405 ,);;
1406 *)
1407 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1408 # differences in whitespace do not lead to failure.
1409 ac_old_val_w=`echo x $ac_old_val`
1410 ac_new_val_w=`echo x $ac_new_val`
1411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1412 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a8aea176 1413echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1414 ac_cache_corrupted=:
1415 else
1416 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1417echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1418 eval $ac_var=\$ac_old_val
1419 fi
1420 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1421echo "$as_me: former value: \`$ac_old_val'" >&2;}
1422 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1423echo "$as_me: current value: \`$ac_new_val'" >&2;}
a8aea176
NN
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
18c04407
RW
1440 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1441echo "$as_me: error: in \`$ac_pwd':" >&2;}
a8aea176
NN
1442 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1443echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1444 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1445echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1446 { (exit 1); exit 1; }; }
dfac8a13
TT
1447fi
1448
1449ac_ext=c
dfac8a13 1450ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
1451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1453ac_compiler_gnu=$ac_cv_c_compiler_gnu
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
18c04407
RW
1471
1472
1473
a8aea176 1474
dfac8a13
TT
1475
1476
0fd91e0a 1477
076e5443
PB
1478# Default to --enable-multilib
1479# Check whether --enable-multilib or --disable-multilib was given.
1480if test "${enable_multilib+set}" = set; then
1481 enableval="$enable_multilib"
1482 case "$enableval" in
1483 yes) multilib=yes ;;
1484 no) multilib=no ;;
1485 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1486echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1487 { (exit 1); exit 1; }; } ;;
1488 esac
1489else
1490 multilib=yes
1491fi;
6706f116 1492
076e5443
PB
1493# We may get other options which we leave undocumented:
1494# --with-target-subdir, --with-multisrctop, --with-multisubdir
1495# See config-ml.in if you want the gory details.
0fd91e0a 1496
076e5443
PB
1497if test "$srcdir" = "."; then
1498 if test "$with_target_subdir" != "."; then
1499 multi_basedir="$srcdir/$with_multisrctop../.."
0fd91e0a 1500 else
076e5443 1501 multi_basedir="$srcdir/$with_multisrctop.."
0fd91e0a
AO
1502 fi
1503else
076e5443 1504 multi_basedir="$srcdir/.."
0fd91e0a
AO
1505fi
1506
dfac8a13 1507
8a489465
JH
1508# Even if the default multilib is not a cross compilation,
1509# it may be that some of the other multilibs are.
1510if test $cross_compiling = no && test $multilib = yes \
1511 && test "x${with_multisubdir}" != x ; then
1512 cross_compiling=maybe
1513fi
1514
076e5443
PB
1515 ac_config_commands="$ac_config_commands default-1"
1516
1517
1518ac_aux_dir=
1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
0fd91e0a
AO
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
a8aea176
NN
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
0fd91e0a
AO
1533done
1534if test -z "$ac_aux_dir"; then
076e5443
PB
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
a8aea176 1537 { (exit 1); exit 1; }; }
0fd91e0a 1538fi
a8aea176
NN
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
0fd91e0a 1542
dfac8a13 1543# Make sure we can run config.sub.
a8aea176
NN
1544$ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549echo "$as_me:$LINENO: checking build system type" >&5
1550echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_build_alias=$build_alias
1555test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568echo "${ECHO_T}$ac_cv_build" >&6
1569build=$ac_cv_build
1570build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575echo "$as_me:$LINENO: checking host system type" >&5
1576echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577if test "${ac_cv_host+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_host_alias=$host_alias
1581test -z "$ac_cv_host_alias" &&
1582 ac_cv_host_alias=$ac_cv_build_alias
1583ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590echo "${ECHO_T}$ac_cv_host" >&6
1591host=$ac_cv_host
1592host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking target system type" >&5
1598echo $ECHO_N "checking target system type... $ECHO_C" >&6
1599if test "${ac_cv_target+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_target_alias=$target_alias
1603test "x$ac_cv_target_alias" = "x" &&
1604 ac_cv_target_alias=$ac_cv_host_alias
1605ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
dfac8a13 1609
a8aea176
NN
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1612echo "${ECHO_T}$ac_cv_target" >&6
1613target=$ac_cv_target
1614target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
dfac8a13 1617
dfac8a13 1618
a8aea176
NN
1619# The aliases save the names the user supplied, while $host etc.
1620# will get canonicalized.
1621test -n "$target_alias" &&
dfac8a13
TT
1622 test "$program_prefix$program_suffix$program_transform_name" = \
1623 NONENONEs,x,x, &&
1624 program_prefix=${target_alias}-
1625
8b55628e 1626# This works around an automake problem.
1e6347d8 1627mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
1628
1629
17210dff 1630am__api_version="1.9"
dfac8a13
TT
1631# Find a good install program. We prefer a C program (faster),
1632# so one script is as good as another. But avoid the broken or
1633# incompatible versions:
1634# SysV /etc/install, /usr/sbin/install
1635# SunOS /usr/etc/install
1636# IRIX /sbin/install
1637# AIX /bin/install
a8aea176 1638# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
1639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1640# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 1642# OS/2's system install, which has a completely different semantic
dfac8a13 1643# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1644# Reject install programs that cannot install multiple files.
a8aea176
NN
1645echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1646echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
dfac8a13 1647if test -z "$INSTALL"; then
a8aea176
NN
1648if test "${ac_cv_path_install+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1650else
a8aea176
NN
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 # Account for people who put trailing slashes in PATH elements.
1657case $as_dir/ in
1658 ./ | .// | /cC/* | \
1659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1661 /usr/ucb/* ) ;;
1662 *)
1663 # OSF1 and SCO ODT 3.0 have their own names for install.
1664 # Don't use installbsd from OSF since it installs stuff as root
1665 # by default.
1666 for ac_prog in ginstall scoinst install; do
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 1669 if test $ac_prog = install &&
a8aea176 1670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
1671 # AIX install. It has an incompatible calling convention.
1672 :
a8aea176
NN
1673 elif test $ac_prog = install &&
1674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675 # program-specific install script used by HP pwplus--don't use.
1676 :
dfac8a13 1677 else
38d24731
RW
1678 rm -rf conftest.one conftest.two conftest.dir
1679 echo one > conftest.one
1680 echo two > conftest.two
1681 mkdir conftest.dir
1682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1683 test -s conftest.one && test -s conftest.two &&
1684 test -s conftest.dir/conftest.one &&
1685 test -s conftest.dir/conftest.two
1686 then
1687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688 break 3
1689 fi
dfac8a13
TT
1690 fi
1691 fi
1692 done
a8aea176
NN
1693 done
1694 ;;
1695esac
1696done
1697
38d24731 1698rm -rf conftest.one conftest.two conftest.dir
dfac8a13
TT
1699
1700fi
1701 if test "${ac_cv_path_install+set}" = set; then
a8aea176 1702 INSTALL=$ac_cv_path_install
dfac8a13 1703 else
38d24731
RW
1704 # As a last resort, use the slow shell script. Don't cache a
1705 # value for INSTALL within a source directory, because that will
dfac8a13 1706 # break other packages using the cache if that directory is
38d24731 1707 # removed, or if the value is a relative name.
a8aea176 1708 INSTALL=$ac_install_sh
dfac8a13
TT
1709 fi
1710fi
a8aea176
NN
1711echo "$as_me:$LINENO: result: $INSTALL" >&5
1712echo "${ECHO_T}$INSTALL" >&6
dfac8a13
TT
1713
1714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715# It thinks the first close brace ends the variable substitution.
1716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
a8aea176 1718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
1719
1720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
a8aea176
NN
1722echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1723echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
dfac8a13
TT
1724# Just in case
1725sleep 1
9fabf579 1726echo timestamp > conftest.file
dfac8a13
TT
1727# Do `set' in a subshell so we don't clobber the current shell's
1728# arguments. Must try -L first in case configure is actually a
1729# symlink; some systems play weird games with the mod time of symlinks
1730# (eg FreeBSD returns the mod time of the symlink's containing
1731# directory).
1732if (
9fabf579 1733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
dfac8a13
TT
1734 if test "$*" = "X"; then
1735 # -L didn't work.
9fabf579 1736 set X `ls -t $srcdir/configure conftest.file`
dfac8a13 1737 fi
9fabf579
KC
1738 rm -f conftest.file
1739 if test "$*" != "X $srcdir/configure conftest.file" \
1740 && test "$*" != "X conftest.file $srcdir/configure"; then
dfac8a13
TT
1741
1742 # If neither matched, then we have a broken ls. This can happen
1743 # if, for instance, CONFIG_SHELL is bash and it inherits a
1744 # broken ls alias from the environment. This has actually
1745 # happened. Such a system could not be considered "sane".
a8aea176
NN
1746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1747alias in your environment" >&5
1748echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1749alias in your environment" >&2;}
1750 { (exit 1); exit 1; }; }
dfac8a13
TT
1751 fi
1752
9fabf579 1753 test "$2" = conftest.file
dfac8a13
TT
1754 )
1755then
1756 # Ok.
1757 :
1758else
a8aea176
NN
1759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1760Check your system clock" >&5
1761echo "$as_me: error: newly created file is older than distributed files!
1762Check your system clock" >&2;}
1763 { (exit 1); exit 1; }; }
dfac8a13 1764fi
a8aea176
NN
1765echo "$as_me:$LINENO: result: yes" >&5
1766echo "${ECHO_T}yes" >&6
dfac8a13 1767test "$program_prefix" != NONE &&
a8aea176 1768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
dfac8a13
TT
1769# Use a double $ so make ignores it.
1770test "$program_suffix" != NONE &&
a8aea176
NN
1771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1772# Double any \ or $. echo might interpret backslashes.
1773# By default was `s,x,x', remove it if useless.
1774cat <<\_ACEOF >conftest.sed
1775s/[\\$]/&&/g;s/;s,x,x,$//
1776_ACEOF
1777program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778rm conftest.sed
1779
9fabf579
KC
1780# expand $ac_aux_dir to an absolute path
1781am_aux_dir=`cd $ac_aux_dir && pwd`
1782
1783test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1784# Use eval to expand $SHELL
1785if eval "$MISSING --run true"; then
1786 am_missing_run="$MISSING --run "
1787else
1788 am_missing_run=
1789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1790echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1791fi
1792
076e5443 1793if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
17210dff
TT
1794 # We used to keeping the `.' as first argument, in order to
1795 # allow $(mkdir_p) to be used without argument. As in
076e5443 1796 # $(mkdir_p) $(somedir)
17210dff
TT
1797 # where $(somedir) is conditionally defined. However this is wrong
1798 # for two reasons:
1799 # 1. if the package is installed by a user who cannot write `.'
1800 # make install will fail,
1801 # 2. the above comment should most certainly read
1802 # $(mkdir_p) $(DESTDIR)$(somedir)
1803 # so it does not work when $(somedir) is undefined and
1804 # $(DESTDIR) is not.
1805 # To support the latter case, we have to write
1806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1807 # so the `.' trick is pointless.
1808 mkdir_p='mkdir -p --'
076e5443
PB
1809else
1810 # On NextStep and OpenStep, the `mkdir' command does not
1811 # recognize any option. It will interpret all options as
1812 # directories to create, and then abort because `.' already
1813 # exists.
1814 for d in ./-p ./--version;
1815 do
1816 test -d $d && rmdir $d
1817 done
1818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819 if test -f "$ac_aux_dir/mkinstalldirs"; then
1820 mkdir_p='$(mkinstalldirs)'
1821 else
1822 mkdir_p='$(install_sh) -d'
1823 fi
1824fi
1825
9fabf579
KC
1826for ac_prog in gawk mawk nawk awk
1827do
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829set dummy $ac_prog; ac_word=$2
1830echo "$as_me:$LINENO: checking for $ac_word" >&5
1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832if test "${ac_cv_prog_AWK+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834else
1835 if test -n "$AWK"; then
1836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837else
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_AWK="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849done
1850done
1851
1852fi
1853fi
1854AWK=$ac_cv_prog_AWK
1855if test -n "$AWK"; then
1856 echo "$as_me:$LINENO: result: $AWK" >&5
1857echo "${ECHO_T}$AWK" >&6
1858else
1859 echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6
1861fi
1862
1863 test -n "$AWK" && break
1864done
1865
a8aea176
NN
1866echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1871else
a8aea176 1872 cat >conftest.make <<\_ACEOF
dfac8a13 1873all:
a8aea176
NN
1874 @echo 'ac_maketemp="$(MAKE)"'
1875_ACEOF
dfac8a13 1876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8aea176 1877eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
dfac8a13
TT
1878if test -n "$ac_maketemp"; then
1879 eval ac_cv_prog_make_${ac_make}_set=yes
1880else
1881 eval ac_cv_prog_make_${ac_make}_set=no
1882fi
a8aea176 1883rm -f conftest.make
dfac8a13
TT
1884fi
1885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a8aea176
NN
1886 echo "$as_me:$LINENO: result: yes" >&5
1887echo "${ECHO_T}yes" >&6
dfac8a13
TT
1888 SET_MAKE=
1889else
a8aea176
NN
1890 echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
dfac8a13
TT
1892 SET_MAKE="MAKE=${MAKE-make}"
1893fi
1894
9fabf579
KC
1895rm -rf .tst 2>/dev/null
1896mkdir .tst 2>/dev/null
1897if test -d .tst; then
1898 am__leading_dot=.
1899else
1900 am__leading_dot=_
1901fi
1902rmdir .tst 2>/dev/null
dfac8a13 1903
076e5443 1904# test to see if srcdir already configured
9fabf579
KC
1905if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906 test -f $srcdir/config.status; then
a8aea176
NN
1907 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909 { (exit 1); exit 1; }; }
dfac8a13 1910fi
a8aea176 1911
9fabf579
KC
1912# test whether we have cygpath
1913if test -z "$CYGPATH_W"; then
1914 if (cygpath --version) >/dev/null 2>/dev/null; then
1915 CYGPATH_W='cygpath -w'
1916 else
1917 CYGPATH_W=echo
1918 fi
1919fi
1920
1921
1922# Define the identity of the package.
1923 PACKAGE=zlib
1924 VERSION=1.1.4
1925
1926
a8aea176 1927cat >>confdefs.h <<_ACEOF
dfac8a13 1928#define PACKAGE "$PACKAGE"
a8aea176 1929_ACEOF
dfac8a13 1930
a8aea176
NN
1931
1932cat >>confdefs.h <<_ACEOF
dfac8a13 1933#define VERSION "$VERSION"
a8aea176 1934_ACEOF
dfac8a13 1935
9fabf579
KC
1936# Some tools Automake needs.
1937
1938ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939
1940
1941AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942
1943
1944AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
dfac8a13
TT
1945
1946
9fabf579
KC
1947AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948
1949
1950MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951
9fabf579
KC
1952install_sh=${install_sh-"$am_aux_dir/install-sh"}
1953
1954# Installed binaries are usually stripped using `strip' when the user
1955# run `make install-strip'. However `strip' might not be the right
1956# tool to use in cross-compilation environments, therefore Automake
1957# will honor the `STRIP' environment variable to overrule this program.
1958if test "$cross_compiling" != no; then
1959 if test -n "$ac_tool_prefix"; then
1960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961set dummy ${ac_tool_prefix}strip; ac_word=$2
1962echo "$as_me:$LINENO: checking for $ac_word" >&5
1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964if test "${ac_cv_prog_STRIP+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1966else
9fabf579
KC
1967 if test -n "$STRIP"; then
1968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1969else
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1980 fi
1981done
1982done
dfac8a13 1983
9fabf579
KC
1984fi
1985fi
1986STRIP=$ac_cv_prog_STRIP
1987if test -n "$STRIP"; then
1988 echo "$as_me:$LINENO: result: $STRIP" >&5
1989echo "${ECHO_T}$STRIP" >&6
dfac8a13 1990else
9fabf579
KC
1991 echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
dfac8a13
TT
1993fi
1994
dfac8a13 1995fi
9fabf579
KC
1996if test -z "$ac_cv_prog_STRIP"; then
1997 ac_ct_STRIP=$STRIP
1998 # Extract the first word of "strip", so it can be a program name with args.
1999set dummy strip; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 if test -n "$ac_ct_STRIP"; then
2006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_ac_ct_STRIP="strip"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019done
2020done
dfac8a13 2021
9fabf579
KC
2022 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2023fi
2024fi
2025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2026if test -n "$ac_ct_STRIP"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2028echo "${ECHO_T}$ac_ct_STRIP" >&6
dfac8a13 2029else
9fabf579
KC
2030 echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
dfac8a13
TT
2032fi
2033
9fabf579 2034 STRIP=$ac_ct_STRIP
dfac8a13 2035else
9fabf579
KC
2036 STRIP="$ac_cv_prog_STRIP"
2037fi
2038
dfac8a13 2039fi
9fabf579
KC
2040INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2041
2042# We need awk for the "check" target. The system "awk" is bad on
2043# some platforms.
17210dff
TT
2044# Always define AMTAR for backward compatibility.
2045
2046AMTAR=${AMTAR-"${am_missing_run}tar"}
2047
2048am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2049
2050
9fabf579 2051
dfac8a13
TT
2052
2053
2054
a8aea176
NN
2055echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
e093c992
AG
2057 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058if test "${enable_maintainer_mode+set}" = set; then
2059 enableval="$enable_maintainer_mode"
2060 USE_MAINTAINER_MODE=$enableval
2061else
2062 USE_MAINTAINER_MODE=no
a8aea176
NN
2063fi;
2064 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e093c992 2066
e093c992
AG
2067
2068if test $USE_MAINTAINER_MODE = yes; then
2069 MAINTAINER_MODE_TRUE=
2070 MAINTAINER_MODE_FALSE='#'
2071else
2072 MAINTAINER_MODE_TRUE='#'
2073 MAINTAINER_MODE_FALSE=
2074fi
9fabf579 2075
e093c992 2076 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
2077
2078
e093c992
AG
2079
2080
dfac8a13
TT
2081# Check whether --with-target-subdir or --without-target-subdir was given.
2082if test "${with_target_subdir+set}" = set; then
2083 withval="$with_target_subdir"
a8aea176
NN
2084
2085fi;
2086
2087if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2088 COMPPATH=.
2089else
2090 COMPPATH=..
dfac8a13
TT
2091fi
2092
a8aea176
NN
2093
2094
dfac8a13
TT
2095# Check whether --with-cross-host or --without-cross-host was given.
2096if test "${with_cross_host+set}" = set; then
2097 withval="$with_cross_host"
dfac8a13 2098
a8aea176 2099fi;
dfac8a13
TT
2100
2101# Check whether --enable-multilib or --disable-multilib was given.
2102if test "${enable_multilib+set}" = set; then
2103 enableval="$enable_multilib"
2104 case "${enableval}" in
2105 yes) multilib=yes ;;
2106 no) multilib=no ;;
a8aea176
NN
2107 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2108echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2109 { (exit 1); exit 1; }; } ;;
dfac8a13
TT
2110 esac
2111else
67d08194 2112 test -z "$with_target_subdir" && multilib=no || multilib=yes
a8aea176 2113fi;
dfac8a13 2114
79a9a529
TT
2115# Check whether --with-system-zlib or --without-system-zlib was given.
2116if test "${with_system_zlib+set}" = set; then
2117 withval="$with_system_zlib"
79a9a529 2118
a8aea176
NN
2119fi;
2120
2121# Make sure we don't test executables when making cross-tools.
2122
2123
076e5443
PB
2124# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2125# We must force CC to /not/ be precious variables; otherwise
2126# the wrong, non-multilib-adjusted value will be used in multilibs.
2127# As a side effect, we have to subst CFLAGS ourselves.
2128
2129
2130
a8aea176
NN
2131ac_ext=c
2132ac_cpp='$CPP $CPPFLAGS'
2133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2138set dummy ${ac_tool_prefix}gcc; ac_word=$2
2139echo "$as_me:$LINENO: checking for $ac_word" >&5
2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146else
2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2157 fi
2158done
2159done
79a9a529 2160
a8aea176
NN
2161fi
2162fi
2163CC=$ac_cv_prog_CC
2164if test -n "$CC"; then
2165 echo "$as_me:$LINENO: result: $CC" >&5
2166echo "${ECHO_T}$CC" >&6
2167else
2168 echo "$as_me:$LINENO: result: no" >&5
2169echo "${ECHO_T}no" >&6
2170fi
025fd00e 2171
a8aea176
NN
2172fi
2173if test -z "$ac_cv_prog_CC"; then
2174 ac_ct_CC=$CC
2175 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 2176set dummy gcc; ac_word=$2
a8aea176
NN
2177echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_ac_ct_CC="gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
2197done
2198
2199fi
2200fi
2201ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202if test -n "$ac_ct_CC"; then
2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204echo "${ECHO_T}$ac_ct_CC" >&6
2205else
2206 echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210 CC=$ac_ct_CC
2211else
2212 CC="$ac_cv_prog_CC"
2213fi
2214
2215if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218set dummy ${ac_tool_prefix}cc; ac_word=$2
2219echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2223else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226else
a8aea176
NN
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238done
2239done
2240
dfac8a13
TT
2241fi
2242fi
a8aea176 2243CC=$ac_cv_prog_CC
dfac8a13 2244if test -n "$CC"; then
a8aea176
NN
2245 echo "$as_me:$LINENO: result: $CC" >&5
2246echo "${ECHO_T}$CC" >&6
2247else
2248 echo "$as_me:$LINENO: result: no" >&5
2249echo "${ECHO_T}no" >&6
2250fi
2251
2252fi
2253if test -z "$ac_cv_prog_CC"; then
2254 ac_ct_CC=$CC
2255 # Extract the first word of "cc", so it can be a program name with args.
2256set dummy cc; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264else
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="cc"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276done
2277done
2278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2285else
a8aea176
NN
2286 echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
dfac8a13
TT
2288fi
2289
a8aea176
NN
2290 CC=$ac_ct_CC
2291else
2292 CC="$ac_cv_prog_CC"
2293fi
2294
2295fi
dfac8a13
TT
2296if test -z "$CC"; then
2297 # Extract the first word of "cc", so it can be a program name with args.
2298set dummy cc; ac_word=$2
a8aea176
NN
2299echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301if test "${ac_cv_prog_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2303else
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2306else
dfac8a13 2307 ac_prog_rejected=no
a8aea176
NN
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2316 ac_prog_rejected=yes
2317 continue
2318 fi
2319 ac_cv_prog_CC="cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
2325
dfac8a13
TT
2326if test $ac_prog_rejected = yes; then
2327 # We found a bogon in the path, so make sure we never use it.
2328 set dummy $ac_cv_prog_CC
2329 shift
a8aea176 2330 if test $# != 0; then
dfac8a13
TT
2331 # We chose a different compiler from the bogus one.
2332 # However, it has the same basename, so the bogon will be chosen
2333 # first if we set CC to just the basename; use the full file name.
2334 shift
a8aea176 2335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
2336 fi
2337fi
2338fi
2339fi
a8aea176 2340CC=$ac_cv_prog_CC
dfac8a13 2341if test -n "$CC"; then
a8aea176
NN
2342 echo "$as_me:$LINENO: result: $CC" >&5
2343echo "${ECHO_T}$CC" >&6
dfac8a13 2344else
a8aea176
NN
2345 echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6
dfac8a13
TT
2347fi
2348
dfac8a13 2349fi
a8aea176
NN
2350if test -z "$CC"; then
2351 if test -n "$ac_tool_prefix"; then
2352 for ac_prog in cl
2353 do
2354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356echo "$as_me:$LINENO: checking for $ac_word" >&5
2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2360else
a8aea176
NN
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 2363else
a8aea176
NN
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375done
2376done
2377
dfac8a13 2378fi
a8aea176
NN
2379fi
2380CC=$ac_cv_prog_CC
2381if test -n "$CC"; then
2382 echo "$as_me:$LINENO: result: $CC" >&5
2383echo "${ECHO_T}$CC" >&6
2384else
2385 echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6
dfac8a13
TT
2387fi
2388
a8aea176
NN
2389 test -n "$CC" && break
2390 done
2391fi
2392if test -z "$CC"; then
2393 ac_ct_CC=$CC
2394 for ac_prog in cl
2395do
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397set dummy $ac_prog; ac_word=$2
2398echo "$as_me:$LINENO: checking for $ac_word" >&5
2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2402else
a8aea176
NN
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_ac_ct_CC="$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417done
2418done
2419
2420fi
2421fi
2422ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423if test -n "$ac_ct_CC"; then
2424 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2426else
a8aea176
NN
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
dfac8a13 2429fi
dfac8a13 2430
a8aea176
NN
2431 test -n "$ac_ct_CC" && break
2432done
2433
2434 CC=$ac_ct_CC
2435fi
2436
2437fi
2438
2439
18c04407
RW
2440test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a8aea176
NN
2443See \`config.log' for more details." >&5
2444echo "$as_me: error: no acceptable C compiler found in \$PATH
2445See \`config.log' for more details." >&2;}
18c04407 2446 { (exit 1); exit 1; }; }; }
a8aea176
NN
2447
2448# Provide some information about the compiler.
2449echo "$as_me:$LINENO:" \
2450 "checking for C compiler version" >&5
2451ac_compiler=`set X $ac_compile; echo $2`
2452{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2453 (eval $ac_compiler --version </dev/null >&5) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2458 (eval $ac_compiler -v </dev/null >&5) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2463 (eval $ac_compiler -V </dev/null >&5) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2467
2468cat >conftest.$ac_ext <<_ACEOF
2469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
2474
2475int
2476main ()
2477{
2478
2479 ;
2480 return 0;
2481}
2482_ACEOF
2483# FIXME: Cleanup?
2484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485 (eval $ac_link) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 gcc_no_link=no
2490else
2491 gcc_no_link=yes
dfac8a13
TT
2492fi
2493
a8aea176
NN
2494if test x$gcc_no_link = xyes; then
2495 # Setting cross_compile will disable run tests; it will
2496 # also disable AC_CHECK_FILE but that's generally
2497 # correct if we can't link.
2498 cross_compiling=yes
2499 EXEEXT=
2500else
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516ac_clean_files_save=$ac_clean_files
2517ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518# Try to create an executable without -o first, disregard a.out.
2519# It will help us diagnose broken compilers, and finding out an intuition
2520# of exeext.
2521echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2522echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2523ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2525 (eval $ac_link_default) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # Find the output, starting from the most likely. This scheme is
2530# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2531# resort.
2532
2533# Be careful to initialize this variable, since it used to be cached.
2534# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2535ac_cv_exeext=
2536# b.out is created by i960 compilers.
2537for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2538do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2542 ;;
2543 conftest.$ac_ext )
2544 # This is the source file.
2545 ;;
2546 [ab].out )
2547 # We found the default executable, but exeext='' is most
2548 # certainly right.
2549 break;;
2550 *.* )
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # FIXME: I believe we export ac_cv_exeext for Libtool,
2553 # but it would be cool to find out if it's true. Does anybody
2554 # maintain Libtool? --akim.
2555 export ac_cv_exeext
2556 break;;
2557 * )
2558 break;;
2559 esac
2560done
2561else
2562 echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
18c04407
RW
2565{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566echo "$as_me: error: in \`$ac_pwd':" >&2;}
a8aea176
NN
2567{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: C compiler cannot create executables
2570See \`config.log' for more details." >&2;}
18c04407 2571 { (exit 77); exit 77; }; }; }
a8aea176
NN
2572fi
2573
2574ac_exeext=$ac_cv_exeext
2575echo "$as_me:$LINENO: result: $ac_file" >&5
2576echo "${ECHO_T}$ac_file" >&6
2577
2578# Check the compiler produces executables we can run. If not, either
2579# the compiler is broken, or we cross compile.
2580echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2582# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583# If not cross compiling, check that we can run a simple program.
2584if test "$cross_compiling" != yes; then
2585 if { ac_try='./$ac_file'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 cross_compiling=no
dfac8a13 2592 else
a8aea176
NN
2593 if test "$cross_compiling" = maybe; then
2594 cross_compiling=yes
2595 else
18c04407
RW
2596 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
a8aea176
NN
2599If you meant to cross compile, use \`--host'.
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot run C compiled programs.
2602If you meant to cross compile, use \`--host'.
2603See \`config.log' for more details." >&2;}
18c04407 2604 { (exit 1); exit 1; }; }; }
a8aea176 2605 fi
dfac8a13 2606 fi
a8aea176
NN
2607fi
2608echo "$as_me:$LINENO: result: yes" >&5
2609echo "${ECHO_T}yes" >&6
2610
2611rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612ac_clean_files=$ac_clean_files_save
2613# Check the compiler produces executables we can run. If not, either
2614# the compiler is broken, or we cross compile.
2615echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618echo "${ECHO_T}$cross_compiling" >&6
2619
2620echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2628# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2629# work properly (i.e., refer to `conftest.exe'), while it won't with
2630# `rm'.
2631for ac_file in conftest.exe conftest conftest.*; do
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 export ac_cv_exeext
2637 break;;
2638 * ) break;;
2639 esac
2640done
dfac8a13 2641else
18c04407
RW
2642 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2643echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a8aea176
NN
2645See \`config.log' for more details." >&5
2646echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2647See \`config.log' for more details." >&2;}
18c04407 2648 { (exit 1); exit 1; }; }; }
a8aea176
NN
2649fi
2650
2651rm -f conftest$ac_cv_exeext
2652echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2653echo "${ECHO_T}$ac_cv_exeext" >&6
2654
2655rm -f conftest.$ac_ext
2656EXEEXT=$ac_cv_exeext
2657ac_exeext=$EXEEXT
2658fi
2659echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661if test "${ac_cv_objext+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2663else
a8aea176
NN
2664 cat >conftest.$ac_ext <<_ACEOF
2665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h. */
5d836b57 2670
a8aea176
NN
2671int
2672main ()
2673{
5d836b57 2674
a8aea176
NN
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679rm -f conftest.o conftest.obj
2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691done
5d836b57 2692else
a8aea176
NN
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
18c04407
RW
2696{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2697echo "$as_me: error: in \`$ac_pwd':" >&2;}
a8aea176
NN
2698{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701See \`config.log' for more details." >&2;}
18c04407 2702 { (exit 1); exit 1; }; }; }
5d836b57
TT
2703fi
2704
a8aea176
NN
2705rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708echo "${ECHO_T}$ac_cv_objext" >&6
2709OBJEXT=$ac_cv_objext
2710ac_objext=$OBJEXT
2711echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2715else
a8aea176
NN
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. */
5d836b57 2722
a8aea176
NN
2723int
2724main ()
2725{
2726#ifndef __GNUC__
2727 choke me
2728#endif
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
17210dff
TT
2743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
a8aea176
NN
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_compiler_gnu=yes
5d836b57 2757else
a8aea176
NN
2758 echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761ac_compiler_gnu=no
5d836b57 2762fi
a8aea176
NN
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 2765
a8aea176
NN
2766fi
2767echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769GCC=`test $ac_compiler_gnu = yes && echo yes`
2770ac_test_CFLAGS=${CFLAGS+set}
2771ac_save_CFLAGS=$CFLAGS
2772CFLAGS="-g"
2773echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778 cat >conftest.$ac_ext <<_ACEOF
2779/* confdefs.h. */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
2783/* end confdefs.h. */
5d836b57 2784
a8aea176
NN
2785int
2786main ()
2787{
5d836b57 2788
a8aea176
NN
2789 ;
2790 return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
17210dff
TT
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
a8aea176
NN
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_g=yes
5d836b57 2816else
a8aea176
NN
2817 echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820ac_cv_prog_cc_g=no
2821fi
2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823fi
2824echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826if test "$ac_test_CFLAGS" = set; then
2827 CFLAGS=$ac_save_CFLAGS
2828elif test $ac_cv_prog_cc_g = yes; then
2829 if test "$GCC" = yes; then
2830 CFLAGS="-g -O2"
2831 else
2832 CFLAGS="-g"
2833 fi
5d836b57 2834else
a8aea176
NN
2835 if test "$GCC" = yes; then
2836 CFLAGS="-O2"
5d836b57 2837 else
a8aea176 2838 CFLAGS=
5d836b57 2839 fi
5d836b57 2840fi
a8aea176
NN
2841echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 ac_cv_prog_cc_stdc=no
2847ac_save_CC=$CC
2848cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h. */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h. */
2854#include <stdarg.h>
2855#include <stdio.h>
2856#include <sys/types.h>
2857#include <sys/stat.h>
2858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2859struct buf { int x; };
2860FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861static char *e (p, i)
2862 char **p;
2863 int i;
2864{
2865 return p[i];
2866}
2867static char *f (char * (*g) (char **, int), char **p, ...)
2868{
2869 char *s;
2870 va_list v;
2871 va_start (v,p);
2872 s = g (p, va_arg (v,int));
2873 va_end (v);
2874 return s;
2875}
5d836b57 2876
a8aea176
NN
2877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2878 function prototypes and stuff, but not '\xHH' hex character constants.
2879 These don't provoke an error unfortunately, instead are silently treated
2880 as 'x'. The following induces an error, until -std1 is added to get
2881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2882 array size at least. It's necessary to write '\x00'==0 to get something
2883 that's true only with -std1. */
2884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2885
2886int test (int i, double x);
2887struct s1 {int (*f) (int a);};
2888struct s2 {int (*f) (double a);};
2889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890int argc;
2891char **argv;
2892int
2893main ()
2894{
2895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900# Don't try gcc -ansi; that turns off useful extensions and
2901# breaks some systems' header files.
2902# AIX -qlanglvl=ansi
2903# Ultrix and OSF/1 -std1
2904# HP-UX 10.20 and later -Ae
2905# HP-UX older versions -Aa -D_HPUX_SOURCE
2906# SVR4 -Xc -D__EXTENSIONS__
2907for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908do
2909 CC="$ac_save_CC $ac_arg"
2910 rm -f conftest.$ac_objext
2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
17210dff
TT
2919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
a8aea176
NN
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_prog_cc_stdc=$ac_arg
2933break
2934else
2935 echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
2939rm -f conftest.err conftest.$ac_objext
2940done
2941rm -f conftest.$ac_ext conftest.$ac_objext
2942CC=$ac_save_CC
2943
2944fi
2945
2946case "x$ac_cv_prog_cc_stdc" in
2947 x|xno)
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949echo "${ECHO_T}none needed" >&6 ;;
2950 *)
2951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953 CC="$CC $ac_cv_prog_cc_stdc" ;;
2954esac
2955
2956# Some people use a C++ compiler to compile C. Since we use `exit',
2957# in C++ we need to declare it. In case someone uses the same compiler
2958# for both compiling C and C++ we need to have the C++ compiler decide
2959# the declaration of exit, since it's the most demanding environment.
2960cat >conftest.$ac_ext <<_ACEOF
2961#ifndef __cplusplus
2962 choke me
2963#endif
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
17210dff
TT
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
a8aea176
NN
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 for ac_declaration in \
2988 '' \
2989 'extern "C" void std::exit (int) throw (); using std::exit;' \
2990 'extern "C" void std::exit (int); using std::exit;' \
2991 'extern "C" void exit (int) throw ();' \
2992 'extern "C" void exit (int);' \
2993 'void exit (int);'
2994do
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001$ac_declaration
3002#include <stdlib.h>
3003int
3004main ()
3005{
3006exit (42);
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
17210dff
TT
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
a8aea176
NN
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 :
3034else
3035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047$ac_declaration
3048int
3049main ()
3050{
3051exit (42);
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
17210dff
TT
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
a8aea176
NN
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 break
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083fi
3084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085done
3086rm -f conftest*
3087if test -n "$ac_declaration"; then
3088 echo '#ifdef __cplusplus' >>confdefs.h
3089 echo $ac_declaration >>confdefs.h
3090 echo '#endif' >>confdefs.h
3091fi
3092
3093else
3094 echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
5d836b57 3096
5d836b57 3097fi
a8aea176
NN
3098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
9fabf579
KC
3104DEPDIR="${am__leading_dot}deps"
3105
3106 ac_config_commands="$ac_config_commands depfiles"
3107
3108
3109am_make=${MAKE-make}
3110cat > confinc << 'END'
3111am__doit:
3112 @echo done
3113.PHONY: am__doit
3114END
3115# If we don't find an include directive, just comment out the code.
3116echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3117echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3118am__include="#"
3119am__quote=
3120_am_result=none
3121# First try GNU make style include.
3122echo "include confinc" > confmf
3123# We grep out `Entering directory' and `Leaving directory'
3124# messages which can occur if `w' ends up in MAKEFLAGS.
3125# In particular we don't look at `^make:' because GNU make might
3126# be invoked under some other name (usually "gmake"), in which
3127# case it prints its new name instead of `make'.
3128if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3129 am__include=include
3130 am__quote=
3131 _am_result=GNU
3132fi
3133# Now try BSD make style include.
3134if test "$am__include" = "#"; then
3135 echo '.include "confinc"' > confmf
3136 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3137 am__include=.include
3138 am__quote="\""
3139 _am_result=BSD
3140 fi
3141fi
3142
3143
3144echo "$as_me:$LINENO: result: $_am_result" >&5
3145echo "${ECHO_T}$_am_result" >&6
3146rm -f confinc confmf
3147
3148# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3149if test "${enable_dependency_tracking+set}" = set; then
3150 enableval="$enable_dependency_tracking"
3151
3152fi;
3153if test "x$enable_dependency_tracking" != xno; then
3154 am_depcomp="$ac_aux_dir/depcomp"
3155 AMDEPBACKSLASH='\'
3156fi
3157
3158
3159if test "x$enable_dependency_tracking" != xno; then
3160 AMDEP_TRUE=
3161 AMDEP_FALSE='#'
3162else
3163 AMDEP_TRUE='#'
3164 AMDEP_FALSE=
3165fi
3166
3167
3168
3169
3170depcc="$CC" am_compiler_list=
3171
3172echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3174if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178 # We make a subdir and do the tests there. Otherwise we can end up
3179 # making bogus files that we don't know about and never remove. For
3180 # instance it was reported that on HP-UX the gcc test will end up
3181 # making a dummy file named `D' -- because `-MD' means `put the output
3182 # in D'.
3183 mkdir conftest.dir
3184 # Copy depcomp to subdir because otherwise we won't find it if we're
3185 # using a relative directory.
3186 cp "$am_depcomp" conftest.dir
3187 cd conftest.dir
3188 # We will build objects and dependencies in a subdirectory because
3189 # it helps to detect inapplicable dependency modes. For instance
3190 # both Tru64's cc and ICC support -MD to output dependencies as a
3191 # side effect of compilation, but ICC will put the dependencies in
3192 # the current directory while Tru64 will put them in the object
3193 # directory.
3194 mkdir sub
3195
3196 am_cv_CC_dependencies_compiler_type=none
3197 if test "$am_compiler_list" = ""; then
3198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3199 fi
3200 for depmode in $am_compiler_list; do
3201 # Setup a source with many dependencies, because some compilers
3202 # like to wrap large dependency lists on column 80 (with \), and
3203 # we should not choose a depcomp mode which is confused by this.
3204 #
3205 # We need to recreate these files for each test, as the compiler may
3206 # overwrite some of them when testing with obscure command lines.
3207 # This happens at least with the AIX C compiler.
3208 : > sub/conftest.c
3209 for i in 1 2 3 4 5 6; do
3210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212 # Solaris 8's {/usr,}/bin/sh.
3213 touch sub/conftst$i.h
9fabf579
KC
3214 done
3215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3216
3217 case $depmode in
3218 nosideeffect)
3219 # after this tag, mechanisms are not by side-effect, so they'll
3220 # only be used when explicitly requested
3221 if test "x$enable_dependency_tracking" = xyes; then
3222 continue
3223 else
3224 break
3225 fi
3226 ;;
3227 none) break ;;
3228 esac
3229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230 # mode. It turns out that the SunPro C++ compiler does not properly
3231 # handle `-M -o', and we need to detect this.
3232 if depmode=$depmode \
3233 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236 >/dev/null 2>conftest.err &&
3237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240 # icc doesn't choke on unknown options, it will just issue warnings
076e5443
PB
3241 # or remarks (even with -Werror). So we grep stderr for any message
3242 # that says an option was ignored or not supported.
3243 # When given -MP, icc 7.0 and 7.1 complain thusly:
3244 # icc: Command line warning: ignoring option '-M'; no argument required
3245 # The diagnosis changed in icc 8.0:
3246 # icc: Command line remark: option '-MP' not supported
3247 if (grep 'ignoring option' conftest.err ||
3248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9fabf579
KC
3249 am_cv_CC_dependencies_compiler_type=$depmode
3250 break
3251 fi
3252 fi
3253 done
3254
3255 cd ..
3256 rm -rf conftest.dir
3257else
3258 am_cv_CC_dependencies_compiler_type=none
3259fi
3260
3261fi
3262echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3265
3266
3267
3268if
3269 test "x$enable_dependency_tracking" != xno \
3270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271 am__fastdepCC_TRUE=
3272 am__fastdepCC_FALSE='#'
3273else
3274 am__fastdepCC_TRUE='#'
3275 am__fastdepCC_FALSE=
3276fi
3277
a8aea176
NN
3278
3279
076e5443
PB
3280
3281
3282
18d98188
PG
3283case `pwd` in
3284 *\ * | *\ *)
3285 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3286echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3287esac
1cf3d07d
SE
3288
3289
1cf3d07d 3290
18d98188
PG
3291macro_version='2.2.6'
3292macro_revision='1.3012'
1cf3d07d
SE
3293
3294
3295
3296
3297
3298
dfac8a13 3299
1cf3d07d
SE
3300
3301
3302
3303
3304
3305
18d98188 3306ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
3307
3308echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3309echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3310if test "${lt_cv_path_SED+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313 # Loop through the user's path and test for sed and gsed.
3314# Then use that list of sed's as ones to test for truncation.
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for lt_ac_prog in sed gsed; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3323 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3324 fi
3325 done
3326 done
3327done
3328IFS=$as_save_IFS
3329lt_ac_max=0
3330lt_ac_count=0
3331# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3332# along with /bin/sed that truncates output.
3333for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3334 test ! -f $lt_ac_sed && continue
3335 cat /dev/null > conftest.in
3336 lt_ac_count=0
3337 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3338 # Check for GNU sed and select it if it is found.
3339 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3340 lt_cv_path_SED=$lt_ac_sed
3341 break
3342 fi
3343 while true; do
3344 cat conftest.in conftest.in >conftest.tmp
3345 mv conftest.tmp conftest.in
3346 cp conftest.in conftest.nl
3347 echo >>conftest.nl
3348 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3349 cmp -s conftest.out conftest.nl || break
3350 # 10000 chars as input seems more than enough
3351 test $lt_ac_count -gt 10 && break
3352 lt_ac_count=`expr $lt_ac_count + 1`
3353 if test $lt_ac_count -gt $lt_ac_max; then
3354 lt_ac_max=$lt_ac_count
3355 lt_cv_path_SED=$lt_ac_sed
3356 fi
3357 done
3358done
3359
3360fi
3361
3362SED=$lt_cv_path_SED
3363
3364echo "$as_me:$LINENO: result: $SED" >&5
3365echo "${ECHO_T}$SED" >&6
3366
3367test -z "$SED" && SED=sed
3368Xsed="$SED -e 1s/^X//"
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380echo "$as_me:$LINENO: checking for egrep" >&5
3381echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3382if test "${ac_cv_prog_egrep+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3386 then ac_cv_prog_egrep='grep -E'
3387 else ac_cv_prog_egrep='egrep'
3388 fi
3389fi
3390echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3391echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3392 EGREP=$ac_cv_prog_egrep
3393
3394
3395echo "$as_me:$LINENO: checking for fgrep" >&5
3396echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3397if test "${ac_cv_prog_fgrep+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3401 then ac_cv_prog_fgrep='grep -F'
3402 else ac_cv_prog_fgrep='fgrep'
3403 fi
3404fi
3405echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3406echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3407 FGREP=$ac_cv_prog_fgrep
3408
3409
3410test -z "$GREP" && GREP=grep
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
dfac8a13
TT
3430# Check whether --with-gnu-ld or --without-gnu-ld was given.
3431if test "${with_gnu_ld+set}" = set; then
3432 withval="$with_gnu_ld"
3433 test "$withval" = no || with_gnu_ld=yes
3434else
3435 with_gnu_ld=no
a8aea176 3436fi;
dfac8a13 3437ac_prog=ld
0fd91e0a 3438if test "$GCC" = yes; then
dfac8a13 3439 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3440 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3441echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
0fd91e0a
AO
3442 case $host in
3443 *-*-mingw*)
3444 # gcc leaves a trailing carriage return which upsets mingw
3445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3446 *)
3447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3448 esac
3449 case $ac_prog in
dfac8a13 3450 # Accept absolute paths.
1cf3d07d 3451 [\\/]* | ?:[\\/]*)
dfac8a13 3452 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3453 # Canonicalize the pathname of ld
3454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
dfac8a13
TT
3457 done
3458 test -z "$LD" && LD="$ac_prog"
3459 ;;
3460 "")
3461 # If it fails, then pretend we aren't using GCC.
3462 ac_prog=ld
3463 ;;
3464 *)
3465 # If it is relative, then search for the first ld in PATH.
3466 with_gnu_ld=unknown
3467 ;;
3468 esac
3469elif test "$with_gnu_ld" = yes; then
a8aea176
NN
3470 echo "$as_me:$LINENO: checking for GNU ld" >&5
3471echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
dfac8a13 3472else
a8aea176
NN
3473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3474echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
dfac8a13 3475fi
a8aea176
NN
3476if test "${lt_cv_path_LD+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3478else
3479 if test -z "$LD"; then
1cf3d07d 3480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
dfac8a13 3481 for ac_dir in $PATH; do
1cf3d07d 3482 IFS="$lt_save_ifs"
dfac8a13 3483 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
3484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13 3486 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3487 # but apparently some variants of GNU ld only accept -v.
dfac8a13 3488 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3490 *GNU* | *'with BFD'*)
dfac8a13 3491 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3492 ;;
3493 *)
dfac8a13 3494 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3495 ;;
3496 esac
dfac8a13
TT
3497 fi
3498 done
1cf3d07d 3499 IFS="$lt_save_ifs"
dfac8a13 3500else
0fd91e0a 3501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
3502fi
3503fi
3504
0fd91e0a 3505LD="$lt_cv_path_LD"
dfac8a13 3506if test -n "$LD"; then
a8aea176
NN
3507 echo "$as_me:$LINENO: result: $LD" >&5
3508echo "${ECHO_T}$LD" >&6
dfac8a13 3509else
a8aea176
NN
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512fi
3513test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3514echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3515 { (exit 1); exit 1; }; }
3516echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3517echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3518if test "${lt_cv_prog_gnu_ld+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3520else
1cf3d07d
SE
3521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3522case `$LD -v 2>&1 </dev/null` in
3523*GNU* | *'with BFD'*)
0fd91e0a 3524 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3525 ;;
3526*)
0fd91e0a 3527 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3528 ;;
3529esac
dfac8a13 3530fi
a8aea176
NN
3531echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
0fd91e0a 3533with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
3534
3535
0fd91e0a 3536
1cf3d07d
SE
3537
3538
3539
3540
3541
3542
1cf3d07d
SE
3543echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3544echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
a8aea176
NN
3545if test "${lt_cv_path_NM+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3547else
3548 if test -n "$NM"; then
3549 # Let the user override the test.
0fd91e0a 3550 lt_cv_path_NM="$NM"
dfac8a13 3551else
1cf3d07d
SE
3552 lt_nm_to_check="${ac_tool_prefix}nm"
3553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3554 lt_nm_to_check="$lt_nm_to_check nm"
3555 fi
3556 for lt_tmp_nm in $lt_nm_to_check; do
3557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3559 IFS="$lt_save_ifs"
3560 test -z "$ac_dir" && ac_dir=.
3561 tmp_nm="$ac_dir/$lt_tmp_nm"
3562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3563 # Check to see if the nm accepts a BSD-compat flag.
3564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3565 # nm: unknown option "B" ignored
3566 # Tru64's nm complains that /dev/null is an invalid object file
3567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3568 */dev/null* | *'Invalid file or object type'*)
3569 lt_cv_path_NM="$tmp_nm -B"
3570 break
3571 ;;
3572 *)
3573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3574 */dev/null*)
3575 lt_cv_path_NM="$tmp_nm -p"
3576 break
3577 ;;
3578 *)
3579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3580 continue # so that we can try to find one that supports BSD flags
3581 ;;
3582 esac
3583 ;;
3584 esac
dfac8a13 3585 fi
1cf3d07d
SE
3586 done
3587 IFS="$lt_save_ifs"
dfac8a13 3588 done
1cf3d07d 3589 : ${lt_cv_path_NM=no}
dfac8a13
TT
3590fi
3591fi
1cf3d07d
SE
3592echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3593echo "${ECHO_T}$lt_cv_path_NM" >&6
3594if test "$lt_cv_path_NM" != "no"; then
3595 NM="$lt_cv_path_NM"
0fd91e0a 3596else
1cf3d07d
SE
3597 # Didn't find any BSD compatible name lister, look for dumpbin.
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3600 do
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603echo "$as_me:$LINENO: checking for $ac_word" >&5
3604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608 if test -n "$DUMPBIN"; then
3609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622done
3623done
025fd00e 3624
1cf3d07d
SE
3625fi
3626fi
3627DUMPBIN=$ac_cv_prog_DUMPBIN
3628if test -n "$DUMPBIN"; then
3629 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3630echo "${ECHO_T}$DUMPBIN" >&6
3631else
3632 echo "$as_me:$LINENO: result: no" >&5
3633echo "${ECHO_T}no" >&6
3634fi
025fd00e 3635
1cf3d07d
SE
3636 test -n "$DUMPBIN" && break
3637 done
3638fi
3639if test -z "$DUMPBIN"; then
3640 ac_ct_DUMPBIN=$DUMPBIN
3641 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3642do
3643 # Extract the first word of "$ac_prog", so it can be a program name with args.
3644set dummy $ac_prog; ac_word=$2
3645echo "$as_me:$LINENO: checking for $ac_word" >&5
3646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649else
3650 if test -n "$ac_ct_DUMPBIN"; then
3651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3652else
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
0fd91e0a 3663 fi
1cf3d07d
SE
3664done
3665done
025fd00e 3666
1cf3d07d
SE
3667fi
3668fi
3669ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3670if test -n "$ac_ct_DUMPBIN"; then
3671 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3672echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3673else
3674 echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
3676fi
025fd00e 3677
1cf3d07d
SE
3678 test -n "$ac_ct_DUMPBIN" && break
3679done
3680test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
025fd00e 3681
1cf3d07d
SE
3682 DUMPBIN=$ac_ct_DUMPBIN
3683fi
025fd00e 3684
025fd00e 3685
1cf3d07d
SE
3686 if test "$DUMPBIN" != ":"; then
3687 NM="$DUMPBIN"
025fd00e 3688 fi
1cf3d07d
SE
3689fi
3690test -z "$NM" && NM=nm
025fd00e 3691
025fd00e
TT
3692
3693
025fd00e 3694
33456445 3695
025fd00e 3696
1cf3d07d
SE
3697echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3698echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3699if test "${lt_cv_nm_interface+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 lt_cv_nm_interface="BSD nm"
3703 echo "int some_variable = 0;" > conftest.$ac_ext
18d98188 3704 (eval echo "\"\$as_me:3704: $ac_compile\"" >&5)
1cf3d07d
SE
3705 (eval "$ac_compile" 2>conftest.err)
3706 cat conftest.err >&5
18d98188 3707 (eval echo "\"\$as_me:3707: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
3708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3709 cat conftest.err >&5
18d98188 3710 (eval echo "\"\$as_me:3710: output\"" >&5)
1cf3d07d
SE
3711 cat conftest.out >&5
3712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3713 lt_cv_nm_interface="MS dumpbin"
3714 fi
3715 rm -f conftest*
025fd00e 3716fi
1cf3d07d
SE
3717echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3718echo "${ECHO_T}$lt_cv_nm_interface" >&6
a8aea176 3719
1cf3d07d
SE
3720echo "$as_me:$LINENO: checking whether ln -s works" >&5
3721echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3722LN_S=$as_ln_s
3723if test "$LN_S" = "ln -s"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
3726else
3727 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3728echo "${ECHO_T}no, using $LN_S" >&6
3729fi
dfac8a13 3730
6dab073b
MS
3731# find the maximum length of command line arguments
3732echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3733echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3734if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737 i=0
3738 teststring="ABCD"
3739
3740 case $build_os in
3741 msdosdjgpp*)
3742 # On DJGPP, this test can blow up pretty badly due to problems in libc
3743 # (any single argument exceeding 2000 bytes causes a buffer overrun
3744 # during glob expansion). Even if it were fixed, the result of this
3745 # check would be larger than it should be.
3746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3747 ;;
3748
1cf3d07d
SE
3749 gnu*)
3750 # Under GNU Hurd, this test is not required because there is
3751 # no limit to the length of command line arguments.
3752 # Libtool will interpret -1 as no limit whatsoever
3753 lt_cv_sys_max_cmd_len=-1;
3754 ;;
3755
18d98188 3756 cygwin* | mingw* | cegcc*)
6dab073b
MS
3757 # On Win9x/ME, this test blows up -- it succeeds, but takes
3758 # about 5 minutes as the teststring grows exponentially.
3759 # Worse, since 9x/ME are not pre-emptively multitasking,
3760 # you end up with a "frozen" computer, even though with patience
3761 # the test eventually succeeds (with a max line length of 256k).
3762 # Instead, let's just punt: use the minimum linelength reported by
3763 # all of the supported platforms: 8192 (on NT/2K/XP).
3764 lt_cv_sys_max_cmd_len=8192;
3765 ;;
3766
3767 amigaos*)
3768 # On AmigaOS with pdksh, this test takes hours, literally.
3769 # So we just punt and use a minimum line length of 8192.
3770 lt_cv_sys_max_cmd_len=8192;
3771 ;;
3772
3773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3774 # This has been around since 386BSD, at least. Likely further.
3775 if test -x /sbin/sysctl; then
3776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3777 elif test -x /usr/sbin/sysctl; then
3778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3779 else
1cf3d07d 3780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
3781 fi
3782 # And add a safety zone
3783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3785 ;;
1cf3d07d
SE
3786
3787 interix*)
3788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3789 lt_cv_sys_max_cmd_len=196608
3790 ;;
3791
3792 osf*)
3793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3795 # nice to cause kernel panics so lets avoid the loop below.
3796 # First set a reasonable default.
3797 lt_cv_sys_max_cmd_len=16384
3798 #
3799 if test -x /sbin/sysconfig; then
3800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3802 esac
3803 fi
3804 ;;
3805 sco3.2v5*)
3806 lt_cv_sys_max_cmd_len=102400
3807 ;;
3808 sysv5* | sco5v6* | sysv4.2uw2*)
3809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3810 if test -n "$kargmax"; then
3811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3812 else
3813 lt_cv_sys_max_cmd_len=32768
3814 fi
3815 ;;
3816 *)
18d98188
PG
3817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3818 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
3819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3821 else
3822 # Make teststring a little bigger before we do anything with it.
3823 # a 1K string should be a reasonable start.
3824 for i in 1 2 3 4 5 6 7 8 ; do
3825 teststring=$teststring$teststring
3826 done
3827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3828 # If test is not a shell built-in, we'll probably end up computing a
3829 # maximum length that is only half of the actual maximum length, but
3830 # we can't tell.
3831 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3832 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3833 test $i != 17 # 1/2 MB should be enough
3834 do
3835 i=`expr $i + 1`
3836 teststring=$teststring$teststring
3837 done
3838 # Only check the string length outside the loop.
3839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3840 teststring=
3841 # Add a significant safety factor because C++ compilers can tack on
3842 # massive amounts of additional arguments before passing them to the
3843 # linker. It appears as though 1/2 is a usable value.
3844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3845 fi
1cf3d07d 3846 ;;
6dab073b
MS
3847 esac
3848
3849fi
3850
1cf3d07d 3851if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
3852 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3853echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3854else
3855 echo "$as_me:$LINENO: result: none" >&5
3856echo "${ECHO_T}none" >&6
3857fi
1cf3d07d 3858max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
3859
3860
dfac8a13 3861
0fd91e0a 3862
dfac8a13 3863
1cf3d07d 3864
1cf3d07d
SE
3865: ${CP="cp -f"}
3866: ${MV="mv -f"}
3867: ${RM="rm -f"}
3868
3869echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3870echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3871# Try some XSI features
3872xsi_shell=no
3873( _lt_dummy="a/b/c"
3874 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
18d98188
PG
3875 = c,a/b,, \
3876 && eval 'test $(( 1 + 1 )) -eq 2 \
3877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
3878 && xsi_shell=yes
3879echo "$as_me:$LINENO: result: $xsi_shell" >&5
3880echo "${ECHO_T}$xsi_shell" >&6
3881
3882
3883echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3884echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3885lt_shell_append=no
3886( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3887 >/dev/null 2>&1 \
3888 && lt_shell_append=yes
3889echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3890echo "${ECHO_T}$lt_shell_append" >&6
3891
3892
3893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3894 lt_unset=unset
0fd91e0a 3895else
1cf3d07d 3896 lt_unset=false
0fd91e0a
AO
3897fi
3898
1cf3d07d
SE
3899
3900
3901
3902
3903# test EBCDIC or ASCII
3904case `echo X|tr X '\101'` in
3905 A) # ASCII based system
3906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3907 lt_SP2NL='tr \040 \012'
3908 lt_NL2SP='tr \015\012 \040\040'
3909 ;;
3910 *) # EBCDIC based system
3911 lt_SP2NL='tr \100 \n'
3912 lt_NL2SP='tr \r\n \100\100'
3913 ;;
3914esac
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3925echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3926if test "${lt_cv_ld_reload_flag+set}" = set; then
a8aea176 3927 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3928else
1cf3d07d
SE
3929 lt_cv_ld_reload_flag='-r'
3930fi
3931echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3932echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3933reload_flag=$lt_cv_ld_reload_flag
3934case $reload_flag in
3935"" | " "*) ;;
3936*) reload_flag=" $reload_flag" ;;
3937esac
3938reload_cmds='$LD$reload_flag -o $output$reload_objs'
3939case $host_os in
3940 darwin*)
3941 if test "$GCC" = yes; then
3942 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3943 else
3944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3945 fi
3946 ;;
3947esac
3948
3949
3950
3951
3952
3953
3954
3955
3956
18d98188
PG
3957if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3959set dummy ${ac_tool_prefix}objdump; ac_word=$2
3960echo "$as_me:$LINENO: checking for $ac_word" >&5
3961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 if test -n "$OBJDUMP"; then
3966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980done
3981
3982fi
3983fi
3984OBJDUMP=$ac_cv_prog_OBJDUMP
3985if test -n "$OBJDUMP"; then
3986 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3987echo "${ECHO_T}$OBJDUMP" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993fi
3994if test -z "$ac_cv_prog_OBJDUMP"; then
3995 ac_ct_OBJDUMP=$OBJDUMP
3996 # Extract the first word of "objdump", so it can be a program name with args.
3997set dummy objdump; ac_word=$2
3998echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 if test -n "$ac_ct_OBJDUMP"; then
4004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017done
4018done
4019
4020 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4021fi
4022fi
4023ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4024if test -n "$ac_ct_OBJDUMP"; then
4025 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4026echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4027else
4028 echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6
4030fi
4031
4032 OBJDUMP=$ac_ct_OBJDUMP
4033else
4034 OBJDUMP="$ac_cv_prog_OBJDUMP"
4035fi
4036
4037test -z "$OBJDUMP" && OBJDUMP=objdump
4038
4039
4040
4041
4042
4043
4044
4045
1cf3d07d
SE
4046
4047echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4048echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4049if test "${lt_cv_deplibs_check_method+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 lt_cv_file_magic_cmd='$MAGIC_CMD'
4053lt_cv_file_magic_test_file=
4054lt_cv_deplibs_check_method='unknown'
4055# Need to set the preceding variable on all platforms that support
4056# interlibrary dependencies.
4057# 'none' -- dependencies not supported.
4058# `unknown' -- same as none, but documents that we really don't know.
4059# 'pass_all' -- all dependencies passed with no checks.
4060# 'test_compile' -- check by making test program.
4061# 'file_magic [[regex]]' -- check by looking for files in library path
4062# which responds to the $file_magic_cmd with a given extended regex.
4063# If you have `file' or equivalent on your system and you're not sure
4064# whether `pass_all' will *always* work, you probably want this one.
4065
4066case $host_os in
3e7b7e2b 4067aix[4-9]*)
1cf3d07d
SE
4068 lt_cv_deplibs_check_method=pass_all
4069 ;;
4070
4071beos*)
4072 lt_cv_deplibs_check_method=pass_all
4073 ;;
4074
4075bsdi[45]*)
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4077 lt_cv_file_magic_cmd='/usr/bin/file -L'
4078 lt_cv_file_magic_test_file=/shlib/libc.so
4079 ;;
4080
4081cygwin*)
4082 # func_win32_libid is a shell function defined in ltmain.sh
4083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4084 lt_cv_file_magic_cmd='func_win32_libid'
4085 ;;
4086
4087mingw* | pw32*)
4088 # Base MSYS/MinGW do not provide the 'file' command needed by
4089 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4090 # unless we find 'file', for example because we are cross-compiling.
4091 if ( file / ) >/dev/null 2>&1; then
4092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4093 lt_cv_file_magic_cmd='func_win32_libid'
4094 else
4095 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4096 lt_cv_file_magic_cmd='$OBJDUMP -f'
4097 fi
4098 ;;
4099
18d98188
PG
4100cegcc)
4101 # use the weaker test based on 'objdump'. See mingw*.
4102 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4103 lt_cv_file_magic_cmd='$OBJDUMP -f'
4104 ;;
4105
1cf3d07d
SE
4106darwin* | rhapsody*)
4107 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4108 ;;
1cf3d07d
SE
4109
4110freebsd* | dragonfly*)
4111 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4112 case $host_cpu in
4113 i*86 )
4114 # Not sure whether the presence of OpenBSD here was a mistake.
4115 # Let's accept both of them until this is cleared up.
4116 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4117 lt_cv_file_magic_cmd=/usr/bin/file
4118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4119 ;;
4120 esac
4121 else
4122 lt_cv_deplibs_check_method=pass_all
4123 fi
4124 ;;
4125
4126gnu*)
4127 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4128 ;;
1cf3d07d
SE
4129
4130hpux10.20* | hpux11*)
4131 lt_cv_file_magic_cmd=/usr/bin/file
4132 case $host_cpu in
4133 ia64*)
4134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4136 ;;
4137 hppa*64*)
4138 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]'
4139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4140 ;;
0fd91e0a 4141 *)
1cf3d07d
SE
4142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4144 ;;
4145 esac
4146 ;;
c45f211e 4147
1cf3d07d
SE
4148interix[3-9]*)
4149 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4151 ;;
dfac8a13 4152
1cf3d07d
SE
4153irix5* | irix6* | nonstopux*)
4154 case $LD in
4155 *-32|*"-32 ") libmagic=32-bit;;
4156 *-n32|*"-n32 ") libmagic=N32;;
4157 *-64|*"-64 ") libmagic=64-bit;;
4158 *) libmagic=never-match;;
4159 esac
4160 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4161 ;;
0fd91e0a 4162
1cf3d07d
SE
4163# This must be Linux ELF.
4164linux* | k*bsd*-gnu)
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
0fd91e0a 4167
1cf3d07d
SE
4168netbsd*)
4169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0fd91e0a 4171 else
1cf3d07d 4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0fd91e0a 4173 fi
1cf3d07d
SE
4174 ;;
4175
4176newos6*)
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4178 lt_cv_file_magic_cmd=/usr/bin/file
4179 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4180 ;;
4181
4182*nto* | *qnx*)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
dfac8a13 4185
1cf3d07d
SE
4186openbsd*)
4187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4189 else
4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
dfac8a13
TT
4191 fi
4192 ;;
1cf3d07d
SE
4193
4194osf3* | osf4* | osf5*)
4195 lt_cv_deplibs_check_method=pass_all
4196 ;;
4197
4198rdos*)
4199 lt_cv_deplibs_check_method=pass_all
4200 ;;
4201
4202solaris*)
4203 lt_cv_deplibs_check_method=pass_all
4204 ;;
4205
4206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210sysv4 | sysv4.3*)
4211 case $host_vendor in
4212 motorola)
4213 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]'
4214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4215 ;;
4216 ncr)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219 sequent)
4220 lt_cv_file_magic_cmd='/bin/file'
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4222 ;;
4223 sni)
4224 lt_cv_file_magic_cmd='/bin/file'
4225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4226 lt_cv_file_magic_test_file=/lib/libc.so
4227 ;;
4228 siemens)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231 pc)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234 esac
4235 ;;
4236
4237tpf*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
0fd91e0a 4240esac
dfac8a13 4241
1cf3d07d
SE
4242fi
4243echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4244echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4245file_magic_cmd=$lt_cv_file_magic_cmd
4246deplibs_check_method=$lt_cv_deplibs_check_method
4247test -z "$deplibs_check_method" && deplibs_check_method=unknown
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
a8aea176 4260if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4261 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4262set dummy ${ac_tool_prefix}ar; ac_word=$2
a8aea176
NN
4263echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4265if test "${ac_cv_prog_AR+set}" = set; then
a8aea176 4266 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4267else
1cf3d07d
SE
4268 if test -n "$AR"; then
4269 ac_cv_prog_AR="$AR" # Let the user override the test.
025fd00e 4270else
a8aea176
NN
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4278 ac_cv_prog_AR="${ac_tool_prefix}ar"
a8aea176
NN
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283done
4284
025fd00e
TT
4285fi
4286fi
1cf3d07d
SE
4287AR=$ac_cv_prog_AR
4288if test -n "$AR"; then
4289 echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6
025fd00e 4291else
a8aea176
NN
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
025fd00e
TT
4294fi
4295
a8aea176 4296fi
1cf3d07d
SE
4297if test -z "$ac_cv_prog_AR"; then
4298 ac_ct_AR=$AR
4299 # Extract the first word of "ar", so it can be a program name with args.
4300set dummy ar; ac_word=$2
a8aea176
NN
4301echo "$as_me:$LINENO: checking for $ac_word" >&5
4302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4303if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
a8aea176 4304 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4305else
1cf3d07d
SE
4306 if test -n "$ac_ct_AR"; then
4307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
025fd00e 4308else
a8aea176
NN
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4316 ac_cv_prog_ac_ct_AR="ar"
a8aea176
NN
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320done
4321done
4322
1cf3d07d 4323 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
025fd00e
TT
4324fi
4325fi
1cf3d07d
SE
4326ac_ct_AR=$ac_cv_prog_ac_ct_AR
4327if test -n "$ac_ct_AR"; then
4328 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4329echo "${ECHO_T}$ac_ct_AR" >&6
025fd00e 4330else
a8aea176
NN
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
025fd00e
TT
4333fi
4334
1cf3d07d 4335 AR=$ac_ct_AR
025fd00e 4336else
1cf3d07d 4337 AR="$ac_cv_prog_AR"
025fd00e
TT
4338fi
4339
1cf3d07d
SE
4340test -z "$AR" && AR=ar
4341test -z "$AR_FLAGS" && AR_FLAGS=cru
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
a8aea176
NN
4353if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 4355set dummy ${ac_tool_prefix}strip; ac_word=$2
a8aea176
NN
4356echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358if test "${ac_cv_prog_STRIP+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4360else
0fd91e0a
AO
4361 if test -n "$STRIP"; then
4362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 4363else
a8aea176
NN
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375done
4376done
4377
025fd00e
TT
4378fi
4379fi
a8aea176 4380STRIP=$ac_cv_prog_STRIP
0fd91e0a 4381if test -n "$STRIP"; then
a8aea176
NN
4382 echo "$as_me:$LINENO: result: $STRIP" >&5
4383echo "${ECHO_T}$STRIP" >&6
025fd00e 4384else
a8aea176
NN
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
025fd00e
TT
4387fi
4388
a8aea176 4389fi
0fd91e0a 4390if test -z "$ac_cv_prog_STRIP"; then
a8aea176 4391 ac_ct_STRIP=$STRIP
0fd91e0a
AO
4392 # Extract the first word of "strip", so it can be a program name with args.
4393set dummy strip; ac_word=$2
a8aea176
NN
4394echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4398else
a8aea176
NN
4399 if test -n "$ac_ct_STRIP"; then
4400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 4401else
a8aea176
NN
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_STRIP="strip"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414done
4415
4416 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
025fd00e
TT
4417fi
4418fi
a8aea176
NN
4419ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4420if test -n "$ac_ct_STRIP"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4422echo "${ECHO_T}$ac_ct_STRIP" >&6
025fd00e 4423else
a8aea176
NN
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
025fd00e
TT
4426fi
4427
a8aea176 4428 STRIP=$ac_ct_STRIP
025fd00e 4429else
a8aea176 4430 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
4431fi
4432
1cf3d07d 4433test -z "$STRIP" && STRIP=:
025fd00e 4434
c45f211e 4435
025fd00e 4436
0fd91e0a 4437
0fd91e0a 4438
a8aea176 4439
1cf3d07d
SE
4440if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4443echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445if test "${ac_cv_prog_RANLIB+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4447else
1cf3d07d
SE
4448 if test -n "$RANLIB"; then
4449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462done
4463done
0fd91e0a 4464
1cf3d07d
SE
4465fi
4466fi
4467RANLIB=$ac_cv_prog_RANLIB
4468if test -n "$RANLIB"; then
4469 echo "$as_me:$LINENO: result: $RANLIB" >&5
4470echo "${ECHO_T}$RANLIB" >&6
4471else
4472 echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474fi
4475
4476fi
4477if test -z "$ac_cv_prog_RANLIB"; then
4478 ac_ct_RANLIB=$RANLIB
4479 # Extract the first word of "ranlib", so it can be a program name with args.
4480set dummy ranlib; ac_word=$2
4481echo "$as_me:$LINENO: checking for $ac_word" >&5
4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 if test -n "$ac_ct_RANLIB"; then
4487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4488else
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_ac_ct_RANLIB="ranlib"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
0fd91e0a 4499 fi
1cf3d07d
SE
4500done
4501done
025fd00e 4502
1cf3d07d
SE
4503 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4504fi
4505fi
4506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4507if test -n "$ac_ct_RANLIB"; then
4508 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4509echo "${ECHO_T}$ac_ct_RANLIB" >&6
4510else
4511 echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6
4513fi
4514
4515 RANLIB=$ac_ct_RANLIB
4516else
4517 RANLIB="$ac_cv_prog_RANLIB"
4518fi
4519
4520test -z "$RANLIB" && RANLIB=:
4521
4522
4523
4524
4525
4526
4527# Determine commands to create old-style static archives.
18d98188 4528old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
4529old_postinstall_cmds='chmod 644 $oldlib'
4530old_postuninstall_cmds=
4531
4532if test -n "$RANLIB"; then
4533 case $host_os in
4534 openbsd*)
4535 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4536 ;;
4537 *)
4538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4539 ;;
4540 esac
4541 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4542fi
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577# If no C compiler was specified, use CC.
4578LTCC=${LTCC-"$CC"}
4579
4580# If no C compiler flags were specified, use CFLAGS.
4581LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4582
4583# Allow CC to be a program name with arguments.
4584compiler=$CC
4585
4586
4587# Check for command to grab the raw symbol name followed by C symbol from nm.
4588echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593
4594# These are sane defaults that work on at least a few old systems.
4595# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4596
4597# Character class describing NM global symbol codes.
4598symcode='[BCDEGRST]'
4599
4600# Regexp to match symbols that can be accessed directly from C.
4601sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4602
4603# Define system-specific variables.
4604case $host_os in
4605aix*)
4606 symcode='[BCDT]'
4607 ;;
18d98188 4608cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
4609 symcode='[ABCDGISTW]'
4610 ;;
4611hpux*)
4612 if test "$host_cpu" = ia64; then
4613 symcode='[ABCDEGRST]'
f5cc59a7 4614 fi
f5cc59a7 4615 ;;
1cf3d07d
SE
4616irix* | nonstopux*)
4617 symcode='[BCDEGRST]'
4618 ;;
4619osf*)
4620 symcode='[BCDEGQRST]'
4621 ;;
4622solaris*)
4623 symcode='[BDRT]'
4624 ;;
4625sco3.2v5*)
4626 symcode='[DT]'
4627 ;;
4628sysv4.2uw2*)
4629 symcode='[DT]'
4630 ;;
4631sysv5* | sco5v6* | unixware* | OpenUNIX*)
4632 symcode='[ABDT]'
4633 ;;
4634sysv4)
4635 symcode='[DFNSTU]'
4636 ;;
4637esac
4638
4639# If we're using GNU nm, then use its standard symbol codes.
4640case `$NM -V 2>&1` in
4641*GNU* | *'with BFD'*)
4642 symcode='[ABCDGIRSTW]' ;;
4643esac
4644
4645# Transform an extracted symbol line into a proper C declaration.
4646# Some systems (esp. on ia64) link data and code symbols differently,
4647# so use this general approach.
4648lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4649
4650# Transform an extracted symbol line into symbol name and symbol address
4651lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18d98188 4652lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
4653
4654# Handle CRLF in mingw tool chain
4655opt_cr=
4656case $build_os in
4657mingw*)
4658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4659 ;;
4660esac
4661
4662# Try without a prefix underscore, then with it.
4663for ac_symprfx in "" "_"; do
4664
4665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4666 symxfrm="\\1 $ac_symprfx\\2 \\2"
4667
4668 # Write the raw and C identifiers.
4669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4670 # Fake it for dumpbin and say T for any non-static function
4671 # and D for any global variable.
4672 # Also find C++ and __fastcall symbols from MSVC++,
4673 # which start with @ or ?.
4674 lt_cv_sys_global_symbol_pipe="$AWK '"\
4675" {last_section=section; section=\$ 3};"\
4676" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4677" \$ 0!~/External *\|/{next};"\
4678" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4679" {if(hide[section]) next};"\
4680" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4681" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4682" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4683" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4684" ' prfx=^$ac_symprfx"
4685 else
4686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4687 fi
4688
4689 # Check to see that the pipe works correctly.
4690 pipe_works=no
4691
4692 rm -f conftest*
4693 cat > conftest.$ac_ext <<_LT_EOF
4694#ifdef __cplusplus
4695extern "C" {
4696#endif
4697char nm_test_var;
4698void nm_test_func(void);
4699void nm_test_func(void){}
4700#ifdef __cplusplus
4701}
4702#endif
4703int main(){nm_test_var='a';nm_test_func();return(0);}
4704_LT_EOF
f5cc59a7 4705
a8aea176
NN
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; then
1cf3d07d
SE
4711 # Now try to grab the symbols.
4712 nlist=conftest.nm
4713 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4714 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && test -s "$nlist"; then
4718 # Try sorting and uniquifying the output.
4719 if sort "$nlist" | uniq > "$nlist"T; then
4720 mv -f "$nlist"T "$nlist"
4721 else
4722 rm -f "$nlist"T
4723 fi
0ccf2c33 4724
1cf3d07d
SE
4725 # Make sure that we snagged all the symbols we need.
4726 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4727 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4728 cat <<_LT_EOF > conftest.$ac_ext
4729#ifdef __cplusplus
4730extern "C" {
4731#endif
a8aea176 4732
1cf3d07d
SE
4733_LT_EOF
4734 # Now generate the symbol file.
4735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a8aea176 4736
1cf3d07d 4737 cat <<_LT_EOF >> conftest.$ac_ext
a8aea176 4738
1cf3d07d
SE
4739/* The mapping between symbol names and symbols. */
4740const struct {
4741 const char *name;
4742 void *address;
4743}
4744lt__PROGRAM__LTX_preloaded_symbols[] =
4745{
4746 { "@PROGRAM@", (void *) 0 },
4747_LT_EOF
4748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4749 cat <<\_LT_EOF >> conftest.$ac_ext
4750 {0, (void *) 0}
4751};
4752
4753/* This works around a problem in FreeBSD linker */
4754#ifdef FREEBSD_WORKAROUND
4755static const void *lt_preloaded_setup() {
4756 return lt__PROGRAM__LTX_preloaded_symbols;
4757}
4758#endif
4759
4760#ifdef __cplusplus
4761}
4762#endif
4763_LT_EOF
4764 # Now try linking the two files.
4765 mv conftest.$ac_objext conftstm.$ac_objext
4766 lt_save_LIBS="$LIBS"
4767 lt_save_CFLAGS="$CFLAGS"
4768 LIBS="conftstm.$ac_objext"
4769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4775 pipe_works=yes
4776 fi
4777 LIBS="$lt_save_LIBS"
4778 CFLAGS="$lt_save_CFLAGS"
4779 else
4780 echo "cannot find nm_test_func in $nlist" >&5
4781 fi
4782 else
4783 echo "cannot find nm_test_var in $nlist" >&5
4784 fi
4785 else
4786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4787 fi
4788 else
4789 echo "$progname: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 fi
18d98188 4792 rm -rf conftest* conftst*
1cf3d07d
SE
4793
4794 # Do not use the global_symbol_pipe unless it works.
4795 if test "$pipe_works" = yes; then
4796 break
4797 else
4798 lt_cv_sys_global_symbol_pipe=
4799 fi
4800done
4801
4802fi
4803
4804if test -z "$lt_cv_sys_global_symbol_pipe"; then
4805 lt_cv_sys_global_symbol_to_cdecl=
4806fi
4807if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4808 echo "$as_me:$LINENO: result: failed" >&5
4809echo "${ECHO_T}failed" >&6
4810else
4811 echo "$as_me:$LINENO: result: ok" >&5
4812echo "${ECHO_T}ok" >&6
4813fi
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
18d98188
PG
4829
4830
4831
4832
4833
1cf3d07d
SE
4834
4835
4836
4837# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4838if test "${enable_libtool_lock+set}" = set; then
4839 enableval="$enable_libtool_lock"
4840
4841fi;
4842test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4843
4844# Some flags need to be propagated to the compiler or linker for good
4845# libtool support.
4846case $host in
4847ia64-*-hpux*)
4848 # Find out which ABI we are using.
4849 echo 'int i;' > conftest.$ac_ext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; then
4855 case `/usr/bin/file conftest.$ac_objext` in
4856 *ELF-32*)
4857 HPUX_IA64_MODE="32"
4858 ;;
4859 *ELF-64*)
4860 HPUX_IA64_MODE="64"
4861 ;;
4862 esac
4863 fi
4864 rm -rf conftest*
4865 ;;
4866*-*-irix6*)
4867 # Find out which ABI we are using.
18d98188 4868 echo '#line 4868 "configure"' > conftest.$ac_ext
1cf3d07d
SE
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; then
4874 if test "$lt_cv_prog_gnu_ld" = yes; then
4875 case `/usr/bin/file conftest.$ac_objext` in
4876 *32-bit*)
4877 LD="${LD-ld} -melf32bsmip"
4878 ;;
4879 *N32*)
4880 LD="${LD-ld} -melf32bmipn32"
4881 ;;
4882 *64-bit*)
4883 LD="${LD-ld} -melf64bmip"
4884 ;;
4885 esac
4886 else
4887 case `/usr/bin/file conftest.$ac_objext` in
4888 *32-bit*)
4889 LD="${LD-ld} -32"
4890 ;;
4891 *N32*)
4892 LD="${LD-ld} -n32"
4893 ;;
4894 *64-bit*)
4895 LD="${LD-ld} -64"
4896 ;;
4897 esac
4898 fi
4899 fi
4900 rm -rf conftest*
4901 ;;
4902
4903x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4904s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4905 # Find out which ABI we are using.
4906 echo 'int i;' > conftest.$ac_ext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; then
4912 case `/usr/bin/file conftest.o` in
4913 *32-bit*)
4914 case $host in
4915 x86_64-*kfreebsd*-gnu)
4916 LD="${LD-ld} -m elf_i386_fbsd"
4917 ;;
4918 x86_64-*linux*)
4919 LD="${LD-ld} -m elf_i386"
4920 ;;
4921 ppc64-*linux*|powerpc64-*linux*)
4922 LD="${LD-ld} -m elf32ppclinux"
4923 ;;
4924 s390x-*linux*)
4925 LD="${LD-ld} -m elf_s390"
4926 ;;
4927 sparc64-*linux*)
4928 LD="${LD-ld} -m elf32_sparc"
4929 ;;
4930 esac
4931 ;;
4932 *64-bit*)
4933 case $host in
4934 x86_64-*kfreebsd*-gnu)
4935 LD="${LD-ld} -m elf_x86_64_fbsd"
4936 ;;
4937 x86_64-*linux*)
4938 LD="${LD-ld} -m elf_x86_64"
4939 ;;
4940 ppc*-*linux*|powerpc*-*linux*)
4941 LD="${LD-ld} -m elf64ppc"
4942 ;;
4943 s390*-*linux*|s390*-*tpf*)
4944 LD="${LD-ld} -m elf64_s390"
4945 ;;
4946 sparc*-*linux*)
4947 LD="${LD-ld} -m elf64_sparc"
4948 ;;
4949 esac
4950 ;;
4951 esac
4952 fi
4953 rm -rf conftest*
4954 ;;
4955
4956*-*-sco3.2v5*)
4957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4958 SAVE_CFLAGS="$CFLAGS"
4959 CFLAGS="$CFLAGS -belf"
4960 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4961echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4962if test "${lt_cv_cc_needs_belf+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971 if test x$gcc_no_link = xyes; then
4972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4973echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4974 { (exit 1); exit 1; }; }
4975fi
4976cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext conftest$ac_exeext
4992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 lt_cv_cc_needs_belf=yes
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018lt_cv_cc_needs_belf=no
5019fi
5020rm -f conftest.err conftest.$ac_objext \
5021 conftest$ac_exeext conftest.$ac_ext
5022 ac_ext=c
5023ac_cpp='$CPP $CPPFLAGS'
5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028fi
5029echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5030echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5033 CFLAGS="$SAVE_CFLAGS"
5034 fi
5035 ;;
5036sparc*-*solaris*)
5037 # Find out which ABI we are using.
5038 echo 'int i;' > conftest.$ac_ext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; then
5044 case `/usr/bin/file conftest.o` in
5045 *64-bit*)
5046 case $lt_cv_prog_gnu_ld in
5047 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18d98188
PG
5048 *)
5049 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5050 LD="${LD-ld} -64"
5051 fi
5052 ;;
1cf3d07d
SE
5053 esac
5054 ;;
5055 esac
5056 fi
5057 rm -rf conftest*
5058 ;;
5059esac
5060
5061need_locks="$enable_libtool_lock"
5062
18d98188
PG
5063
5064 case $host_os in
5065 rhapsody* | darwin*)
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5068set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5069echo "$as_me:$LINENO: checking for $ac_word" >&5
5070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
1cf3d07d
SE
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
18d98188
PG
5074 if test -n "$DSYMUTIL"; then
5075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
1cf3d07d 5079do
18d98188
PG
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
1cf3d07d 5087 fi
18d98188
PG
5088done
5089done
5090
5091fi
5092fi
5093DSYMUTIL=$ac_cv_prog_DSYMUTIL
5094if test -n "$DSYMUTIL"; then
5095 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5096echo "${ECHO_T}$DSYMUTIL" >&6
5097else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100fi
5101
5102fi
5103if test -z "$ac_cv_prog_DSYMUTIL"; then
5104 ac_ct_DSYMUTIL=$DSYMUTIL
5105 # Extract the first word of "dsymutil", so it can be a program name with args.
5106set dummy dsymutil; ac_word=$2
5107echo "$as_me:$LINENO: checking for $ac_word" >&5
5108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112 if test -n "$ac_ct_DSYMUTIL"; then
5113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127done
5128
5129 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5130fi
5131fi
5132ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5133if test -n "$ac_ct_DSYMUTIL"; then
5134 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5135echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5136else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139fi
5140
5141 DSYMUTIL=$ac_ct_DSYMUTIL
5142else
5143 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5144fi
5145
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5149echo "$as_me:$LINENO: checking for $ac_word" >&5
5150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151if test "${ac_cv_prog_NMEDIT+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 if test -n "$NMEDIT"; then
5155 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168done
5169done
5170
5171fi
5172fi
5173NMEDIT=$ac_cv_prog_NMEDIT
5174if test -n "$NMEDIT"; then
5175 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5176echo "${ECHO_T}$NMEDIT" >&6
5177else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180fi
5181
5182fi
5183if test -z "$ac_cv_prog_NMEDIT"; then
5184 ac_ct_NMEDIT=$NMEDIT
5185 # Extract the first word of "nmedit", so it can be a program name with args.
5186set dummy nmedit; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 if test -n "$ac_ct_NMEDIT"; then
5193 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207done
5208
5209 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5210fi
5211fi
5212ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5213if test -n "$ac_ct_NMEDIT"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5215echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5216else
5217 echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219fi
5220
5221 NMEDIT=$ac_ct_NMEDIT
5222else
5223 NMEDIT="$ac_cv_prog_NMEDIT"
5224fi
5225
5226 if test -n "$ac_tool_prefix"; then
5227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}lipo; ac_word=$2
5229echo "$as_me:$LINENO: checking for $ac_word" >&5
5230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231if test "${ac_cv_prog_LIPO+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234 if test -n "$LIPO"; then
5235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248done
5249done
5250
5251fi
5252fi
5253LIPO=$ac_cv_prog_LIPO
5254if test -n "$LIPO"; then
5255 echo "$as_me:$LINENO: result: $LIPO" >&5
5256echo "${ECHO_T}$LIPO" >&6
5257else
5258 echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260fi
5261
5262fi
5263if test -z "$ac_cv_prog_LIPO"; then
5264 ac_ct_LIPO=$LIPO
5265 # Extract the first word of "lipo", so it can be a program name with args.
5266set dummy lipo; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 if test -n "$ac_ct_LIPO"; then
5273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_ac_ct_LIPO="lipo"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286done
5287done
5288
5289 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5290fi
5291fi
5292ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5293if test -n "$ac_ct_LIPO"; then
5294 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5295echo "${ECHO_T}$ac_ct_LIPO" >&6
5296else
5297 echo "$as_me:$LINENO: result: no" >&5
5298echo "${ECHO_T}no" >&6
5299fi
5300
5301 LIPO=$ac_ct_LIPO
5302else
5303 LIPO="$ac_cv_prog_LIPO"
5304fi
5305
5306 if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5308set dummy ${ac_tool_prefix}otool; ac_word=$2
5309echo "$as_me:$LINENO: checking for $ac_word" >&5
5310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311if test "${ac_cv_prog_OTOOL+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314 if test -n "$OTOOL"; then
5315 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5316else
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328done
5329done
5330
5331fi
5332fi
5333OTOOL=$ac_cv_prog_OTOOL
5334if test -n "$OTOOL"; then
5335 echo "$as_me:$LINENO: result: $OTOOL" >&5
5336echo "${ECHO_T}$OTOOL" >&6
5337else
5338 echo "$as_me:$LINENO: result: no" >&5
5339echo "${ECHO_T}no" >&6
5340fi
5341
5342fi
5343if test -z "$ac_cv_prog_OTOOL"; then
5344 ac_ct_OTOOL=$OTOOL
5345 # Extract the first word of "otool", so it can be a program name with args.
5346set dummy otool; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 if test -n "$ac_ct_OTOOL"; then
5353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_OTOOL="otool"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366done
5367done
5368
5369 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5370fi
5371fi
5372ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5373if test -n "$ac_ct_OTOOL"; then
5374 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5375echo "${ECHO_T}$ac_ct_OTOOL" >&6
5376else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379fi
5380
5381 OTOOL=$ac_ct_OTOOL
5382else
5383 OTOOL="$ac_cv_prog_OTOOL"
5384fi
5385
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5388set dummy ${ac_tool_prefix}otool64; ac_word=$2
5389echo "$as_me:$LINENO: checking for $ac_word" >&5
5390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391if test "${ac_cv_prog_OTOOL64+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394 if test -n "$OTOOL64"; then
5395 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408done
5409done
5410
5411fi
5412fi
5413OTOOL64=$ac_cv_prog_OTOOL64
5414if test -n "$OTOOL64"; then
5415 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5416echo "${ECHO_T}$OTOOL64" >&6
5417else
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
5420fi
5421
5422fi
5423if test -z "$ac_cv_prog_OTOOL64"; then
5424 ac_ct_OTOOL64=$OTOOL64
5425 # Extract the first word of "otool64", so it can be a program name with args.
5426set dummy otool64; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 if test -n "$ac_ct_OTOOL64"; then
5433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_ac_ct_OTOOL64="otool64"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447done
5448
5449 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5450fi
5451fi
5452ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5453if test -n "$ac_ct_OTOOL64"; then
5454 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5455echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5456else
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
5459fi
5460
5461 OTOOL64=$ac_ct_OTOOL64
5462else
5463 OTOOL64="$ac_cv_prog_OTOOL64"
5464fi
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5493echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5494if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497 lt_cv_apple_cc_single_mod=no
5498 if test -z "${LT_MULTI_MODULE}"; then
5499 # By default we will add the -single_module flag. You can override
5500 # by either setting the environment variable LT_MULTI_MODULE
5501 # non-empty at configure time, or by adding -multi_module to the
5502 # link flags.
5503 rm -rf libconftest.dylib*
5504 echo "int foo(void){return 1;}" > conftest.c
5505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5506-dynamiclib -Wl,-single_module conftest.c" >&5
5507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5509 _lt_result=$?
5510 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5511 lt_cv_apple_cc_single_mod=yes
5512 else
5513 cat conftest.err >&5
5514 fi
5515 rm -rf libconftest.dylib*
5516 rm -f conftest.*
5517 fi
5518fi
5519echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5520echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5521 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5522echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5523if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526 lt_cv_ld_exported_symbols_list=no
5527 save_LDFLAGS=$LDFLAGS
5528 echo "_main" > conftest.sym
5529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5530 if test x$gcc_no_link = xyes; then
5531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5532echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5533 { (exit 1); exit 1; }; }
5534fi
5535cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541
5542int
5543main ()
5544{
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext conftest$ac_exeext
5551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 lt_cv_ld_exported_symbols_list=yes
5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577lt_cv_ld_exported_symbols_list=no
5578fi
5579rm -f conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 LDFLAGS="$save_LDFLAGS"
5582
5583fi
5584echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5585echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5586 case $host_os in
5587 rhapsody* | darwin1.[012])
5588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5589 darwin1.*)
5590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5591 darwin*) # darwin 5.x on
5592 # if running on 10.5 or later, the deployment target defaults
5593 # to the OS version, if on x86, and 10.4, the deployment
5594 # target defaults to 10.4. Don't you love it?
5595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5598 10.[012]*)
5599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5600 10.*)
5601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5602 esac
5603 ;;
5604 esac
5605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5606 _lt_dar_single_mod='$single_module'
5607 fi
5608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5610 else
5611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5612 fi
5613 if test "$DSYMUTIL" != ":"; then
5614 _lt_dsymutil='~$DSYMUTIL $lib || :'
5615 else
5616 _lt_dsymutil=
5617 fi
5618 ;;
5619 esac
5620
5621ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5627echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5628# On Suns, sometimes $CPP names a directory.
5629if test -n "$CPP" && test -d "$CPP"; then
5630 CPP=
5631fi
5632if test -z "$CPP"; then
5633 if test "${ac_cv_prog_CPP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 # Double quotes because CPP needs to be expanded
5637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5638 do
5639 ac_preproc_ok=false
5640for ac_c_preproc_warn_flag in '' yes
5641do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h. */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h. */
5654#ifdef __STDC__
5655# include <limits.h>
5656#else
5657# include <assert.h>
5658#endif
5659 Syntax error
5660_ACEOF
5661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null; then
5669 if test -s conftest.err; then
5670 ac_cpp_err=$ac_c_preproc_warn_flag
5671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672 else
5673 ac_cpp_err=
5674 fi
5675else
5676 ac_cpp_err=yes
1cf3d07d
SE
5677fi
5678if test -z "$ac_cpp_err"; then
5679 :
5680else
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 # Broken: fails on valid input.
5685continue
5686fi
5687rm -f conftest.err conftest.$ac_ext
5688
5689 # OK, works on sane cases. Now check whether non-existent headers
5690 # can be detected and how.
5691 cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h. */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h. */
5697#include <ac_nonexistent.h>
5698_ACEOF
5699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev/null; then
5707 if test -s conftest.err; then
5708 ac_cpp_err=$ac_c_preproc_warn_flag
5709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5710 else
5711 ac_cpp_err=
5712 fi
5713else
5714 ac_cpp_err=yes
5715fi
5716if test -z "$ac_cpp_err"; then
5717 # Broken: success on invalid input.
5718continue
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 # Passes both tests.
5724ac_preproc_ok=:
5725break
5726fi
5727rm -f conftest.err conftest.$ac_ext
5728
5729done
5730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731rm -f conftest.err conftest.$ac_ext
5732if $ac_preproc_ok; then
5733 break
5734fi
5735
5736 done
5737 ac_cv_prog_CPP=$CPP
5738
5739fi
5740 CPP=$ac_cv_prog_CPP
5741else
5742 ac_cv_prog_CPP=$CPP
5743fi
5744echo "$as_me:$LINENO: result: $CPP" >&5
5745echo "${ECHO_T}$CPP" >&6
5746ac_preproc_ok=false
5747for ac_c_preproc_warn_flag in '' yes
5748do
5749 # Use a header file that comes with gcc, so configuring glibc
5750 # with a fresh cross-compiler works.
5751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 # <limits.h> exists even on freestanding compilers.
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp. "Syntax error" is here to catch this case.
5755 cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
5761#ifdef __STDC__
5762# include <limits.h>
5763#else
5764# include <assert.h>
5765#endif
5766 Syntax error
5767_ACEOF
5768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779 else
5780 ac_cpp_err=
5781 fi
5782else
5783 ac_cpp_err=yes
5784fi
5785if test -z "$ac_cpp_err"; then
5786 :
5787else
5788 echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 # Broken: fails on valid input.
5792continue
5793fi
5794rm -f conftest.err conftest.$ac_ext
5795
5796 # OK, works on sane cases. Now check whether non-existent headers
5797 # can be detected and how.
5798 cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
5804#include <ac_nonexistent.h>
5805_ACEOF
5806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev/null; then
5814 if test -s conftest.err; then
5815 ac_cpp_err=$ac_c_preproc_warn_flag
5816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5817 else
5818 ac_cpp_err=
5819 fi
5820else
5821 ac_cpp_err=yes
5822fi
5823if test -z "$ac_cpp_err"; then
5824 # Broken: success on invalid input.
5825continue
5826else
5827 echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 # Passes both tests.
5831ac_preproc_ok=:
5832break
5833fi
5834rm -f conftest.err conftest.$ac_ext
5835
5836done
5837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838rm -f conftest.err conftest.$ac_ext
5839if $ac_preproc_ok; then
5840 :
5841else
18c04407
RW
5842 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5843echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
5845See \`config.log' for more details." >&5
5846echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5847See \`config.log' for more details." >&2;}
18c04407 5848 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
5849fi
5850
5851ac_ext=c
5852ac_cpp='$CPP $CPPFLAGS'
5853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857
5858echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5859echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5860if test "${ac_cv_header_stdc+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869#include <stdlib.h>
5870#include <stdarg.h>
5871#include <string.h>
5872#include <float.h>
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
5882rm -f conftest.$ac_objext
5883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_header_stdc=yes
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909ac_cv_header_stdc=no
5910fi
5911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912
5913if test $ac_cv_header_stdc = yes; then
5914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5915 cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h. */
5921#include <string.h>
5922
5923_ACEOF
5924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "memchr" >/dev/null 2>&1; then
5926 :
5927else
5928 ac_cv_header_stdc=no
5929fi
5930rm -f conftest*
5931
5932fi
5933
5934if test $ac_cv_header_stdc = yes; then
5935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5942#include <stdlib.h>
5943
5944_ACEOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "free" >/dev/null 2>&1; then
5947 :
5948else
5949 ac_cv_header_stdc=no
5950fi
5951rm -f conftest*
5952
5953fi
5954
5955if test $ac_cv_header_stdc = yes; then
5956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5957 if test "$cross_compiling" = yes; then
5958 :
5959else
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966#include <ctype.h>
5967#if ((' ' & 0x0FF) == 0x020)
5968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970#else
5971# define ISLOWER(c) \
5972 (('a' <= (c) && (c) <= 'i') \
5973 || ('j' <= (c) && (c) <= 'r') \
5974 || ('s' <= (c) && (c) <= 'z'))
5975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976#endif
5977
5978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5979int
5980main ()
5981{
5982 int i;
5983 for (i = 0; i < 256; i++)
5984 if (XOR (islower (i), ISLOWER (i))
5985 || toupper (i) != TOUPPER (i))
5986 exit(2);
5987 exit (0);
5988}
5989_ACEOF
5990rm -f conftest$ac_exeext
5991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 :
6002else
6003 echo "$as_me: program exited with status $ac_status" >&5
6004echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007( exit $ac_status )
6008ac_cv_header_stdc=no
6009fi
6010rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011fi
6012fi
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6015echo "${ECHO_T}$ac_cv_header_stdc" >&6
6016if test $ac_cv_header_stdc = yes; then
6017
6018cat >>confdefs.h <<\_ACEOF
6019#define STDC_HEADERS 1
6020_ACEOF
6021
6022fi
6023
6024# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6035 inttypes.h stdint.h unistd.h
6036do
6037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6038echo "$as_me:$LINENO: checking for $ac_header" >&5
6039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049$ac_includes_default
6050
6051#include <$ac_header>
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 eval "$as_ac_Header=yes"
6076else
18d98188
PG
6077 echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080eval "$as_ac_Header=no"
6081fi
6082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6083fi
6084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086if test `eval echo '${'$as_ac_Header'}'` = yes; then
6087 cat >>confdefs.h <<_ACEOF
6088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089_ACEOF
6090
6091fi
6092
6093done
6094
6095
6096
6097for ac_header in dlfcn.h
6098do
6099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100echo "$as_me:$LINENO: checking for $ac_header" >&5
6101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h. */
6111$ac_includes_default
6112
6113#include <$ac_header>
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 eval "$as_ac_Header=yes"
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142eval "$as_ac_Header=no"
6143fi
6144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6148if test `eval echo '${'$as_ac_Header'}'` = yes; then
6149 cat >>confdefs.h <<_ACEOF
6150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6151_ACEOF
6152
6153fi
6154
6155done
6156
6157
6158
6159# Set options
6160
6161
6162
6163 enable_dlopen=no
6164
6165
6166 enable_win32_dll=no
6167
6168
6169 # Check whether --enable-shared or --disable-shared was given.
6170if test "${enable_shared+set}" = set; then
6171 enableval="$enable_shared"
6172 p=${PACKAGE-default}
6173 case $enableval in
6174 yes) enable_shared=yes ;;
6175 no) enable_shared=no ;;
6176 *)
6177 enable_shared=no
6178 # Look at the argument we got. We use all the common list separators.
6179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6180 for pkg in $enableval; do
6181 IFS="$lt_save_ifs"
6182 if test "X$pkg" = "X$p"; then
6183 enable_shared=yes
6184 fi
6185 done
6186 IFS="$lt_save_ifs"
6187 ;;
6188 esac
6189else
6190 enable_shared=yes
6191fi;
6192
6193
6194
6195
6196
6197
6198
6199
6200 # Check whether --enable-static or --disable-static was given.
6201if test "${enable_static+set}" = set; then
6202 enableval="$enable_static"
6203 p=${PACKAGE-default}
6204 case $enableval in
6205 yes) enable_static=yes ;;
6206 no) enable_static=no ;;
6207 *)
6208 enable_static=no
6209 # Look at the argument we got. We use all the common list separators.
6210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6211 for pkg in $enableval; do
6212 IFS="$lt_save_ifs"
6213 if test "X$pkg" = "X$p"; then
6214 enable_static=yes
6215 fi
6216 done
6217 IFS="$lt_save_ifs"
6218 ;;
6219 esac
6220else
6221 enable_static=yes
6222fi;
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232# Check whether --with-pic or --without-pic was given.
6233if test "${with_pic+set}" = set; then
6234 withval="$with_pic"
6235 pic_mode="$withval"
6236else
6237 pic_mode=default
6238fi;
1cf3d07d 6239
18d98188 6240test -z "$pic_mode" && pic_mode=default
1cf3d07d 6241
1cf3d07d 6242
1cf3d07d
SE
6243
6244
6245
1cf3d07d 6246
18d98188
PG
6247
6248 # Check whether --enable-fast-install or --disable-fast-install was given.
6249if test "${enable_fast_install+set}" = set; then
6250 enableval="$enable_fast_install"
6251 p=${PACKAGE-default}
6252 case $enableval in
6253 yes) enable_fast_install=yes ;;
6254 no) enable_fast_install=no ;;
6255 *)
6256 enable_fast_install=no
6257 # Look at the argument we got. We use all the common list separators.
6258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6259 for pkg in $enableval; do
6260 IFS="$lt_save_ifs"
6261 if test "X$pkg" = "X$p"; then
6262 enable_fast_install=yes
6263 fi
6264 done
6265 IFS="$lt_save_ifs"
6266 ;;
6267 esac
1cf3d07d 6268else
18d98188
PG
6269 enable_fast_install=yes
6270fi;
6271
6272
6273
6274
1cf3d07d 6275
1cf3d07d 6276
1cf3d07d 6277
1cf3d07d
SE
6278
6279
6280
6281# This can be used to rebuild libtool when needed
6282LIBTOOL_DEPS="$ltmain"
6283
6284# Always use our own libtool.
6285LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311test -z "$LN_S" && LN_S="ln -s"
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326if test -n "${ZSH_VERSION+set}" ; then
6327 setopt NO_GLOB_SUBST
6328fi
6329
6330echo "$as_me:$LINENO: checking for objdir" >&5
6331echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6332if test "${lt_cv_objdir+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 rm -f .libs 2>/dev/null
6336mkdir .libs 2>/dev/null
6337if test -d .libs; then
6338 lt_cv_objdir=.libs
6339else
6340 # MS-DOS does not allow filenames that begin with a dot.
6341 lt_cv_objdir=_libs
6342fi
6343rmdir .libs 2>/dev/null
6344fi
6345echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6346echo "${ECHO_T}$lt_cv_objdir" >&6
6347objdir=$lt_cv_objdir
6348
6349
6350
6351
6352
6353cat >>confdefs.h <<_ACEOF
6354#define LT_OBJDIR "$lt_cv_objdir/"
6355_ACEOF
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373case $host_os in
6374aix3*)
6375 # AIX sometimes has problems with the GCC collect2 program. For some
6376 # reason, if we set the COLLECT_NAMES environment variable, the problems
6377 # vanish in a puff of smoke.
6378 if test "X${COLLECT_NAMES+set}" != Xset; then
6379 COLLECT_NAMES=
6380 export COLLECT_NAMES
6381 fi
6382 ;;
6383esac
6384
6385# Sed substitution that helps us do robust quoting. It backslashifies
6386# metacharacters that are still active within double-quoted strings.
6387sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6388
6389# Same as above, but do not quote variable references.
6390double_quote_subst='s/\(["`\\]\)/\\\1/g'
6391
6392# Sed substitution to delay expansion of an escaped shell variable in a
6393# double_quote_subst'ed string.
6394delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6395
6396# Sed substitution to delay expansion of an escaped single quote.
6397delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6398
6399# Sed substitution to avoid accidental globbing in evaled expressions
6400no_glob_subst='s/\*/\\\*/g'
6401
6402# Global variables:
6403ofile=libtool
6404can_build_shared=yes
6405
6406# All known linkers require a `.a' archive for static linking (except MSVC,
6407# which needs '.lib').
6408libext=a
6409
6410with_gnu_ld="$lt_cv_prog_gnu_ld"
6411
6412old_CC="$CC"
6413old_CFLAGS="$CFLAGS"
6414
6415# Set sane defaults for various variables
6416test -z "$CC" && CC=cc
6417test -z "$LTCC" && LTCC=$CC
6418test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6419test -z "$LD" && LD=ld
6420test -z "$ac_objext" && ac_objext=o
6421
6422for cc_temp in $compiler""; do
6423 case $cc_temp in
6424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6426 \-*) ;;
6427 *) break;;
6428 esac
6429done
6430cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6431
6432
6433# Only perform the check for file, if the check method requires it
6434test -z "$MAGIC_CMD" && MAGIC_CMD=file
6435case $deplibs_check_method in
6436file_magic*)
6437 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6438 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6439echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6440if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 case $MAGIC_CMD in
6444[\\/*] | ?:[\\/]*)
6445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6446 ;;
6447*)
6448 lt_save_MAGIC_CMD="$MAGIC_CMD"
6449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6451 for ac_dir in $ac_dummy; do
6452 IFS="$lt_save_ifs"
6453 test -z "$ac_dir" && ac_dir=.
6454 if test -f $ac_dir/${ac_tool_prefix}file; then
6455 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6456 if test -n "$file_magic_test_file"; then
6457 case $deplibs_check_method in
6458 "file_magic "*)
6459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6462 $EGREP "$file_magic_regex" > /dev/null; then
6463 :
6464 else
6465 cat <<_LT_EOF 1>&2
6466
6467*** Warning: the command libtool uses to detect shared libraries,
6468*** $file_magic_cmd, produces output that libtool cannot recognize.
6469*** The result is that libtool may fail to recognize shared libraries
6470*** as such. This will affect the creation of libtool libraries that
6471*** depend on shared libraries, but programs linked with such libtool
6472*** libraries will work regardless of this problem. Nevertheless, you
6473*** may want to report the problem to your system manager and/or to
6474*** bug-libtool@gnu.org
6475
6476_LT_EOF
6477 fi ;;
6478 esac
6479 fi
6480 break
6481 fi
6482 done
6483 IFS="$lt_save_ifs"
6484 MAGIC_CMD="$lt_save_MAGIC_CMD"
6485 ;;
6486esac
6487fi
6488
6489MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6490if test -n "$MAGIC_CMD"; then
6491 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6492echo "${ECHO_T}$MAGIC_CMD" >&6
6493else
6494 echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6
6496fi
6497
6498
6499
6500
6501
6502if test -z "$lt_cv_path_MAGIC_CMD"; then
6503 if test -n "$ac_tool_prefix"; then
6504 echo "$as_me:$LINENO: checking for file" >&5
6505echo $ECHO_N "checking for file... $ECHO_C" >&6
6506if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 case $MAGIC_CMD in
6510[\\/*] | ?:[\\/]*)
6511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6512 ;;
6513*)
6514 lt_save_MAGIC_CMD="$MAGIC_CMD"
6515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6517 for ac_dir in $ac_dummy; do
6518 IFS="$lt_save_ifs"
6519 test -z "$ac_dir" && ac_dir=.
6520 if test -f $ac_dir/file; then
6521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6522 if test -n "$file_magic_test_file"; then
6523 case $deplibs_check_method in
6524 "file_magic "*)
6525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6528 $EGREP "$file_magic_regex" > /dev/null; then
6529 :
6530 else
6531 cat <<_LT_EOF 1>&2
6532
6533*** Warning: the command libtool uses to detect shared libraries,
6534*** $file_magic_cmd, produces output that libtool cannot recognize.
6535*** The result is that libtool may fail to recognize shared libraries
6536*** as such. This will affect the creation of libtool libraries that
6537*** depend on shared libraries, but programs linked with such libtool
6538*** libraries will work regardless of this problem. Nevertheless, you
6539*** may want to report the problem to your system manager and/or to
6540*** bug-libtool@gnu.org
6541
6542_LT_EOF
6543 fi ;;
6544 esac
6545 fi
6546 break
6547 fi
6548 done
6549 IFS="$lt_save_ifs"
6550 MAGIC_CMD="$lt_save_MAGIC_CMD"
6551 ;;
6552esac
6553fi
6554
6555MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6556if test -n "$MAGIC_CMD"; then
6557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6558echo "${ECHO_T}$MAGIC_CMD" >&6
6559else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562fi
6563
6564
6565 else
6566 MAGIC_CMD=:
6567 fi
6568fi
6569
6570 fi
6571 ;;
6572esac
6573
6574# Use C for the default configuration in the libtool script
6575
6576lt_save_CC="$CC"
6577ac_ext=c
6578ac_cpp='$CPP $CPPFLAGS'
6579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582
6583
6584# Source file extension for C test sources.
6585ac_ext=c
6586
6587# Object file extension for compiled C test sources.
6588objext=o
6589objext=$objext
6590
6591# Code to be used in simple compile tests
6592lt_simple_compile_test_code="int some_variable = 0;"
6593
6594# Code to be used in simple link tests
6595lt_simple_link_test_code='int main(){return(0);}'
6596
6597
6598
6599
6600
6601
6602
6603# If no C compiler was specified, use CC.
6604LTCC=${LTCC-"$CC"}
6605
6606# If no C compiler flags were specified, use CFLAGS.
6607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608
6609# Allow CC to be a program name with arguments.
6610compiler=$CC
6611
6612# Save the default compiler, since it gets overwritten when the other
6613# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6614compiler_DEFAULT=$CC
6615
6616# save warnings/boilerplate of simple test code
6617ac_outfile=conftest.$ac_objext
6618echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6620_lt_compiler_boilerplate=`cat conftest.err`
6621$RM conftest*
6622
6623ac_outfile=conftest.$ac_objext
6624echo "$lt_simple_link_test_code" >conftest.$ac_ext
6625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6626_lt_linker_boilerplate=`cat conftest.err`
18d98188 6627$RM -r conftest*
1cf3d07d
SE
6628
6629
6630## CAVEAT EMPTOR:
6631## There is no encapsulation within the following macros, do not change
6632## the running order or otherwise move them around unless you know exactly
6633## what you are doing...
6634if test -n "$compiler"; then
6635
6636lt_prog_compiler_no_builtin_flag=
6637
6638if test "$GCC" = yes; then
6639 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6640
6641 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6642echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6643if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 lt_cv_prog_compiler_rtti_exceptions=no
6647 ac_outfile=conftest.$ac_objext
6648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6649 lt_compiler_flag="-fno-rtti -fno-exceptions"
6650 # Insert the option either (1) after the last *FLAGS variable, or
6651 # (2) before a word containing "conftest.", or (3) at the end.
6652 # Note that $ac_compile itself does not contain backslashes and begins
6653 # with a dollar sign (not a hyphen), so the echo should work correctly.
6654 # The option is referenced via a variable to avoid confusing sed.
6655 lt_compile=`echo "$ac_compile" | $SED \
6656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6658 -e 's:$: $lt_compiler_flag:'`
18d98188 6659 (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
1cf3d07d
SE
6660 (eval "$lt_compile" 2>conftest.err)
6661 ac_status=$?
6662 cat conftest.err >&5
18d98188 6663 echo "$as_me:6663: \$? = $ac_status" >&5
1cf3d07d
SE
6664 if (exit $ac_status) && test -s "$ac_outfile"; then
6665 # The compiler can only warn and ignore the option if not recognized
6666 # So say no if there are warnings other than the usual output.
6667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6670 lt_cv_prog_compiler_rtti_exceptions=yes
6671 fi
6672 fi
6673 $RM conftest*
6674
6675fi
6676echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6677echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6678
6679if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6680 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6681else
6682 :
6683fi
6684
6685fi
6686
6687
6688
6689
6690
6691
6692 lt_prog_compiler_wl=
6693lt_prog_compiler_pic=
6694lt_prog_compiler_static=
6695
6696echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6697echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6698
6699 if test "$GCC" = yes; then
6700 lt_prog_compiler_wl='-Wl,'
6701 lt_prog_compiler_static='-static'
6702
6703 case $host_os in
6704 aix*)
6705 # All AIX code is PIC.
6706 if test "$host_cpu" = ia64; then
6707 # AIX 5 now supports IA64 processor
6708 lt_prog_compiler_static='-Bstatic'
6709 fi
6710 ;;
6711
6712 amigaos*)
18d98188
PG
6713 case $host_cpu in
6714 powerpc)
6715 # see comment about AmigaOS4 .so support
6716 lt_prog_compiler_pic='-fPIC'
6717 ;;
6718 m68k)
6719 # FIXME: we need at least 68020 code to build shared libraries, but
6720 # adding the `-m68020' flag to GCC prevents building anything better,
6721 # like `-m68040'.
6722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6723 ;;
6724 esac
1cf3d07d
SE
6725 ;;
6726
6727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6728 # PIC is the default for these OSes.
6729 ;;
6730
18d98188 6731 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6732 # This hack is so that the source file can tell whether it is being
6733 # built for inclusion in a dll (and should export symbols for example).
6734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6735 # (--disable-auto-import) libraries
6736 lt_prog_compiler_pic='-DDLL_EXPORT'
6737 ;;
6738
6739 darwin* | rhapsody*)
6740 # PIC is the default on this platform
6741 # Common symbols not allowed in MH_DYLIB files
6742 lt_prog_compiler_pic='-fno-common'
6743 ;;
6744
6745 hpux*)
18d98188
PG
6746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6748 # sets the default TLS model and affects inlining.
1cf3d07d 6749 case $host_cpu in
18d98188 6750 hppa*64*)
1cf3d07d
SE
6751 # +Z the default
6752 ;;
6753 *)
6754 lt_prog_compiler_pic='-fPIC'
6755 ;;
6756 esac
6757 ;;
6758
6759 interix[3-9]*)
6760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6761 # Instead, we relocate shared libraries at runtime.
6762 ;;
6763
6764 msdosdjgpp*)
6765 # Just because we use GCC doesn't mean we suddenly get shared libraries
6766 # on systems that don't support them.
6767 lt_prog_compiler_can_build_shared=no
6768 enable_shared=no
6769 ;;
6770
6771 *nto* | *qnx*)
6772 # QNX uses GNU C++, but need to define -shared option too, otherwise
6773 # it will coredump.
6774 lt_prog_compiler_pic='-fPIC -shared'
6775 ;;
6776
6777 sysv4*MP*)
6778 if test -d /usr/nec; then
6779 lt_prog_compiler_pic=-Kconform_pic
6780 fi
6781 ;;
6782
6783 *)
6784 lt_prog_compiler_pic='-fPIC'
6785 ;;
6786 esac
6787 else
6788 # PORTME Check for flag to pass linker flags through the system compiler.
6789 case $host_os in
6790 aix*)
6791 lt_prog_compiler_wl='-Wl,'
6792 if test "$host_cpu" = ia64; then
6793 # AIX 5 now supports IA64 processor
6794 lt_prog_compiler_static='-Bstatic'
6795 else
6796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6797 fi
6798 ;;
1cf3d07d 6799
18d98188 6800 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6801 # This hack is so that the source file can tell whether it is being
6802 # built for inclusion in a dll (and should export symbols for example).
6803 lt_prog_compiler_pic='-DDLL_EXPORT'
6804 ;;
6805
6806 hpux9* | hpux10* | hpux11*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6809 # not for PA HP-UX.
6810 case $host_cpu in
6811 hppa*64*|ia64*)
6812 # +Z the default
6813 ;;
6814 *)
6815 lt_prog_compiler_pic='+Z'
6816 ;;
6817 esac
6818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6819 lt_prog_compiler_static='${wl}-a ${wl}archive'
6820 ;;
6821
6822 irix5* | irix6* | nonstopux*)
6823 lt_prog_compiler_wl='-Wl,'
6824 # PIC (with -KPIC) is the default.
6825 lt_prog_compiler_static='-non_shared'
6826 ;;
6827
6828 linux* | k*bsd*-gnu)
6829 case $cc_basename in
18d98188
PG
6830 # old Intel for x86_64 which still supported -KPIC.
6831 ecc*)
1cf3d07d
SE
6832 lt_prog_compiler_wl='-Wl,'
6833 lt_prog_compiler_pic='-KPIC'
6834 lt_prog_compiler_static='-static'
6835 ;;
18d98188
PG
6836 # icc used to be incompatible with GCC.
6837 # ICC 10 doesn't accept -KPIC any more.
6838 icc* | ifort*)
6839 lt_prog_compiler_wl='-Wl,'
6840 lt_prog_compiler_pic='-fPIC'
6841 lt_prog_compiler_static='-static'
6842 ;;
6843 # Lahey Fortran 8.1.
6844 lf95*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='--shared'
6847 lt_prog_compiler_static='--static'
6848 ;;
1cf3d07d
SE
6849 pgcc* | pgf77* | pgf90* | pgf95*)
6850 # Portland Group compilers (*not* the Pentium gcc compiler,
6851 # which looks to be a dead project)
6852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-fpic'
6854 lt_prog_compiler_static='-Bstatic'
6855 ;;
6856 ccc*)
6857 lt_prog_compiler_wl='-Wl,'
6858 # All Alpha code is PIC.
6859 lt_prog_compiler_static='-non_shared'
6860 ;;
18d98188
PG
6861 xl*)
6862 # IBM XL C 8.0/Fortran 10.1 on PPC
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='-qpic'
6865 lt_prog_compiler_static='-qstaticlink'
6866 ;;
1cf3d07d
SE
6867 *)
6868 case `$CC -V 2>&1 | sed 5q` in
6869 *Sun\ C*)
6870 # Sun C 5.9
6871 lt_prog_compiler_pic='-KPIC'
6872 lt_prog_compiler_static='-Bstatic'
6873 lt_prog_compiler_wl='-Wl,'
6874 ;;
6875 *Sun\ F*)
6876 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-Bstatic'
6879 lt_prog_compiler_wl=''
6880 ;;
6881 esac
6882 ;;
6883 esac
6884 ;;
6885
6886 newsos6)
6887 lt_prog_compiler_pic='-KPIC'
6888 lt_prog_compiler_static='-Bstatic'
6889 ;;
6890
6891 *nto* | *qnx*)
6892 # QNX uses GNU C++, but need to define -shared option too, otherwise
6893 # it will coredump.
6894 lt_prog_compiler_pic='-fPIC -shared'
6895 ;;
6896
6897 osf3* | osf4* | osf5*)
6898 lt_prog_compiler_wl='-Wl,'
6899 # All OSF/1 code is PIC.
6900 lt_prog_compiler_static='-non_shared'
6901 ;;
6902
6903 rdos*)
6904 lt_prog_compiler_static='-non_shared'
6905 ;;
6906
6907 solaris*)
6908 lt_prog_compiler_pic='-KPIC'
6909 lt_prog_compiler_static='-Bstatic'
6910 case $cc_basename in
6911 f77* | f90* | f95*)
6912 lt_prog_compiler_wl='-Qoption ld ';;
6913 *)
6914 lt_prog_compiler_wl='-Wl,';;
6915 esac
6916 ;;
6917
6918 sunos4*)
6919 lt_prog_compiler_wl='-Qoption ld '
6920 lt_prog_compiler_pic='-PIC'
6921 lt_prog_compiler_static='-Bstatic'
6922 ;;
6923
6924 sysv4 | sysv4.2uw2* | sysv4.3*)
6925 lt_prog_compiler_wl='-Wl,'
6926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
6928 ;;
6929
6930 sysv4*MP*)
6931 if test -d /usr/nec ;then
6932 lt_prog_compiler_pic='-Kconform_pic'
6933 lt_prog_compiler_static='-Bstatic'
6934 fi
6935 ;;
6936
6937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6938 lt_prog_compiler_wl='-Wl,'
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
6941 ;;
6942
6943 unicos*)
6944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_can_build_shared=no
6946 ;;
6947
6948 uts4*)
6949 lt_prog_compiler_pic='-pic'
6950 lt_prog_compiler_static='-Bstatic'
6951 ;;
6952
6953 *)
6954 lt_prog_compiler_can_build_shared=no
6955 ;;
6956 esac
6957 fi
6958
6959case $host_os in
6960 # For platforms which do not support PIC, -DPIC is meaningless:
6961 *djgpp*)
6962 lt_prog_compiler_pic=
6963 ;;
6964 *)
6965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6966 ;;
6967esac
6968echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6969echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6970
6971
6972
6973
6974
6975
6976#
6977# Check to make sure the PIC flag actually works.
6978#
6979if test -n "$lt_prog_compiler_pic"; then
6980 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6981echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
18d98188 6982if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
18d98188 6985 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
6986 ac_outfile=conftest.$ac_objext
6987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6989 # Insert the option either (1) after the last *FLAGS variable, or
6990 # (2) before a word containing "conftest.", or (3) at the end.
6991 # Note that $ac_compile itself does not contain backslashes and begins
6992 # with a dollar sign (not a hyphen), so the echo should work correctly.
6993 # The option is referenced via a variable to avoid confusing sed.
6994 lt_compile=`echo "$ac_compile" | $SED \
6995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6997 -e 's:$: $lt_compiler_flag:'`
18d98188 6998 (eval echo "\"\$as_me:6998: $lt_compile\"" >&5)
1cf3d07d
SE
6999 (eval "$lt_compile" 2>conftest.err)
7000 ac_status=$?
7001 cat conftest.err >&5
18d98188 7002 echo "$as_me:7002: \$? = $ac_status" >&5
1cf3d07d
SE
7003 if (exit $ac_status) && test -s "$ac_outfile"; then
7004 # The compiler can only warn and ignore the option if not recognized
7005 # So say no if there are warnings other than the usual output.
7006 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18d98188 7009 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7010 fi
7011 fi
7012 $RM conftest*
7013
7014fi
18d98188
PG
7015echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7016echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 7017
18d98188 7018if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7019 case $lt_prog_compiler_pic in
7020 "" | " "*) ;;
7021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7022 esac
7023else
7024 lt_prog_compiler_pic=
7025 lt_prog_compiler_can_build_shared=no
7026fi
7027
7028fi
7029
7030
7031
7032
7033
7034
7035#
7036# Check to make sure the static flag actually works.
7037#
7038wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7039echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7040echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18d98188 7041if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
18d98188 7044 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
7045 save_LDFLAGS="$LDFLAGS"
7046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7049 # The linker can only warn and ignore the option if not recognized
7050 # So say no if there are warnings
7051 if test -s conftest.err; then
7052 # Append any errors to the config.log.
7053 cat conftest.err 1>&5
7054 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7056 if diff conftest.exp conftest.er2 >/dev/null; then
18d98188 7057 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7058 fi
7059 else
18d98188 7060 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7061 fi
7062 fi
18d98188 7063 $RM -r conftest*
1cf3d07d
SE
7064 LDFLAGS="$save_LDFLAGS"
7065
7066fi
18d98188
PG
7067echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7068echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 7069
18d98188 7070if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
7071 :
7072else
7073 lt_prog_compiler_static=
7074fi
7075
7076
7077
7078
7079
7080
7081
7082 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7083echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7084if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 lt_cv_prog_compiler_c_o=no
7088 $RM -r conftest 2>/dev/null
7089 mkdir conftest
7090 cd conftest
7091 mkdir out
7092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7093
7094 lt_compiler_flag="-o out/conftest2.$ac_objext"
7095 # Insert the option either (1) after the last *FLAGS variable, or
7096 # (2) before a word containing "conftest.", or (3) at the end.
7097 # Note that $ac_compile itself does not contain backslashes and begins
7098 # with a dollar sign (not a hyphen), so the echo should work correctly.
7099 lt_compile=`echo "$ac_compile" | $SED \
7100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7102 -e 's:$: $lt_compiler_flag:'`
18d98188 7103 (eval echo "\"\$as_me:7103: $lt_compile\"" >&5)
1cf3d07d
SE
7104 (eval "$lt_compile" 2>out/conftest.err)
7105 ac_status=$?
7106 cat out/conftest.err >&5
18d98188 7107 echo "$as_me:7107: \$? = $ac_status" >&5
1cf3d07d
SE
7108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7109 then
7110 # The compiler can only warn and ignore the option if not recognized
7111 # So say no if there are warnings
7112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7115 lt_cv_prog_compiler_c_o=yes
7116 fi
7117 fi
7118 chmod u+w . 2>&5
7119 $RM conftest*
7120 # SGI C++ compiler will create directory out/ii_files/ for
7121 # template instantiation
7122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7123 $RM out/* && rmdir out
7124 cd ..
7125 $RM -r conftest
7126 $RM conftest*
7127
7128fi
7129echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7130echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7131
7132
7133
7134
7135
7136
7137 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7138echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7139if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 lt_cv_prog_compiler_c_o=no
7143 $RM -r conftest 2>/dev/null
7144 mkdir conftest
7145 cd conftest
7146 mkdir out
7147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7148
7149 lt_compiler_flag="-o out/conftest2.$ac_objext"
7150 # Insert the option either (1) after the last *FLAGS variable, or
7151 # (2) before a word containing "conftest.", or (3) at the end.
7152 # Note that $ac_compile itself does not contain backslashes and begins
7153 # with a dollar sign (not a hyphen), so the echo should work correctly.
7154 lt_compile=`echo "$ac_compile" | $SED \
7155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7157 -e 's:$: $lt_compiler_flag:'`
18d98188 7158 (eval echo "\"\$as_me:7158: $lt_compile\"" >&5)
1cf3d07d
SE
7159 (eval "$lt_compile" 2>out/conftest.err)
7160 ac_status=$?
7161 cat out/conftest.err >&5
18d98188 7162 echo "$as_me:7162: \$? = $ac_status" >&5
1cf3d07d
SE
7163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7164 then
7165 # The compiler can only warn and ignore the option if not recognized
7166 # So say no if there are warnings
7167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7170 lt_cv_prog_compiler_c_o=yes
7171 fi
7172 fi
7173 chmod u+w . 2>&5
7174 $RM conftest*
7175 # SGI C++ compiler will create directory out/ii_files/ for
7176 # template instantiation
7177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7178 $RM out/* && rmdir out
7179 cd ..
7180 $RM -r conftest
7181 $RM conftest*
7182
7183fi
7184echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7185echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7186
7187
7188
7189
7190hard_links="nottested"
7191if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7192 # do not overwrite the value of need_locks provided by the user
7193 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7194echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7195 hard_links=yes
7196 $RM conftest*
7197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7198 touch conftest.a
7199 ln conftest.a conftest.b 2>&5 || hard_links=no
7200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7201 echo "$as_me:$LINENO: result: $hard_links" >&5
7202echo "${ECHO_T}$hard_links" >&6
7203 if test "$hard_links" = no; then
7204 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7205echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7206 need_locks=warn
7207 fi
7208else
7209 need_locks=no
7210fi
7211
7212
7213
7214
7215
7216
7217 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7218echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7219
7220 runpath_var=
7221 allow_undefined_flag=
7222 always_export_symbols=no
7223 archive_cmds=
7224 archive_expsym_cmds=
7225 compiler_needs_object=no
7226 enable_shared_with_static_runtimes=no
7227 export_dynamic_flag_spec=
7228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7229 hardcode_automatic=no
7230 hardcode_direct=no
7231 hardcode_direct_absolute=no
7232 hardcode_libdir_flag_spec=
7233 hardcode_libdir_flag_spec_ld=
7234 hardcode_libdir_separator=
7235 hardcode_minus_L=no
7236 hardcode_shlibpath_var=unsupported
7237 inherit_rpath=no
7238 link_all_deplibs=unknown
7239 module_cmds=
7240 module_expsym_cmds=
7241 old_archive_from_new_cmds=
7242 old_archive_from_expsyms_cmds=
7243 thread_safe_flag_spec=
7244 whole_archive_flag_spec=
7245 # include_expsyms should be a list of space-separated symbols to be *always*
7246 # included in the symbol list
7247 include_expsyms=
7248 # exclude_expsyms can be an extended regexp of symbols to exclude
7249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7251 # as well as any symbol that contains `d'.
18d98188 7252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
7253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7254 # platforms (ab)use it in PIC code, but their linkers get confused if
7255 # the symbol is explicitly referenced. Since portable code cannot
7256 # rely on this symbol name, it's probably fine to never include it in
7257 # preloaded symbol tables.
18d98188 7258 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
7259 extract_expsyms_cmds=
7260
7261 case $host_os in
18d98188 7262 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7264 # When not using gcc, we currently assume that we are using
7265 # Microsoft Visual C++.
7266 if test "$GCC" != yes; then
7267 with_gnu_ld=no
7268 fi
7269 ;;
7270 interix*)
7271 # we just hope/assume this is gcc and not c89 (= MSVC++)
7272 with_gnu_ld=yes
7273 ;;
7274 openbsd*)
7275 with_gnu_ld=no
7276 ;;
7277 esac
7278
7279 ld_shlibs=yes
7280 if test "$with_gnu_ld" = yes; then
7281 # If archive_cmds runs LD, not CC, wlarc should be empty
7282 wlarc='${wl}'
7283
7284 # Set some defaults for GNU ld with shared library support. These
7285 # are reset later if shared libraries are not supported. Putting them
7286 # here allows them to be overridden if necessary.
7287 runpath_var=LD_RUN_PATH
7288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7289 export_dynamic_flag_spec='${wl}--export-dynamic'
7290 # ancient GNU ld didn't support --whole-archive et. al.
7291 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7292 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7293 else
7294 whole_archive_flag_spec=
7295 fi
7296 supports_anon_versioning=no
7297 case `$LD -v 2>&1` in
7298 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7299 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7300 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7301 *\ 2.11.*) ;; # other 2.11 versions
7302 *) supports_anon_versioning=yes ;;
7303 esac
7304
7305 # See if GNU ld supports shared libraries.
7306 case $host_os in
3e7b7e2b 7307 aix[3-9]*)
1cf3d07d
SE
7308 # On AIX/PPC, the GNU linker is very broken
7309 if test "$host_cpu" != ia64; then
7310 ld_shlibs=no
7311 cat <<_LT_EOF 1>&2
7312
7313*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7314*** to be unable to reliably create shared libraries on AIX.
7315*** Therefore, libtool is disabling shared libraries support. If you
7316*** really care for shared libraries, you may want to modify your PATH
7317*** so that a non-GNU linker is found, and then restart.
7318
7319_LT_EOF
7320 fi
7321 ;;
7322
7323 amigaos*)
18d98188
PG
7324 case $host_cpu in
7325 powerpc)
7326 # see comment about AmigaOS4 .so support
7327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328 archive_expsym_cmds=''
7329 ;;
7330 m68k)
7331 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)'
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes
7334 ;;
7335 esac
1cf3d07d
SE
7336 ;;
7337
7338 beos*)
7339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7340 allow_undefined_flag=unsupported
7341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7342 # support --undefined. This deserves some investigation. FIXME
7343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7344 else
7345 ld_shlibs=no
7346 fi
7347 ;;
7348
18d98188 7349 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7351 # as there is no search path for DLLs.
7352 hardcode_libdir_flag_spec='-L$libdir'
7353 allow_undefined_flag=unsupported
7354 always_export_symbols=no
7355 enable_shared_with_static_runtimes=yes
7356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7357
7358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7360 # If the export-symbols file already is a .def file (1st line
7361 # is EXPORTS), use it as is; otherwise, prepend...
7362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7363 cp $export_symbols $output_objdir/$soname.def;
7364 else
7365 echo EXPORTS > $output_objdir/$soname.def;
7366 cat $export_symbols >> $output_objdir/$soname.def;
7367 fi~
7368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7369 else
7370 ld_shlibs=no
7371 fi
7372 ;;
7373
7374 interix[3-9]*)
7375 hardcode_direct=no
7376 hardcode_shlibpath_var=no
7377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7378 export_dynamic_flag_spec='${wl}-E'
7379 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7380 # Instead, shared libraries are loaded at an image base (0x10000000 by
7381 # default) and relocated if they conflict, which is a slow very memory
7382 # consuming and fragmenting process. To avoid this, we pick a random,
7383 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7384 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7386 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'
7387 ;;
7388
7389 gnu* | linux* | tpf* | k*bsd*-gnu)
7390 tmp_diet=no
7391 if test "$host_os" = linux-dietlibc; then
7392 case $cc_basename in
7393 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7394 esac
7395 fi
7396 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7397 && test "$tmp_diet" = no
7398 then
7399 tmp_addflag=
18d98188 7400 tmp_sharedflag='-shared'
1cf3d07d
SE
7401 case $cc_basename,$host_cpu in
7402 pgcc*) # Portland Group C compiler
7403 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'
7404 tmp_addflag=' $pic_flag'
7405 ;;
7406 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7407 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'
7408 tmp_addflag=' $pic_flag -Mnomain' ;;
7409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7410 tmp_addflag=' -i_dynamic' ;;
7411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7412 tmp_addflag=' -i_dynamic -nofor_main' ;;
7413 ifc* | ifort*) # Intel Fortran compiler
7414 tmp_addflag=' -nofor_main' ;;
18d98188
PG
7415 lf95*) # Lahey Fortran 8.1
7416 whole_archive_flag_spec=
7417 tmp_sharedflag='--shared' ;;
7418 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7419 tmp_sharedflag='-qmkshrobj'
7420 tmp_addflag= ;;
1cf3d07d
SE
7421 esac
7422 case `$CC -V 2>&1 | sed 5q` in
7423 *Sun\ C*) # Sun C 5.9
7424 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'
7425 compiler_needs_object=yes
7426 tmp_sharedflag='-G' ;;
7427 *Sun\ F*) # Sun Fortran 8.3
7428 tmp_sharedflag='-G' ;;
1cf3d07d
SE
7429 esac
7430 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7431
7432 if test "x$supports_anon_versioning" = xyes; then
7433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435 echo "local: *; };" >> $output_objdir/$libname.ver~
7436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7437 fi
18d98188
PG
7438
7439 case $cc_basename in
7440 xlf*)
7441 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7442 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7443 hardcode_libdir_flag_spec=
7444 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7445 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7446 if test "x$supports_anon_versioning" = xyes; then
7447 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7449 echo "local: *; };" >> $output_objdir/$libname.ver~
7450 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7451 fi
7452 ;;
7453 esac
1cf3d07d
SE
7454 else
7455 ld_shlibs=no
7456 fi
7457 ;;
7458
7459 netbsd*)
7460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7461 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7462 wlarc=
7463 else
7464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7466 fi
7467 ;;
7468
7469 solaris*)
7470 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7471 ld_shlibs=no
7472 cat <<_LT_EOF 1>&2
7473
7474*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7475*** create shared libraries on Solaris systems. Therefore, libtool
7476*** is disabling shared libraries support. We urge you to upgrade GNU
7477*** binutils to release 2.9.1 or newer. Another option is to modify
7478*** your PATH or compiler configuration so that the native linker is
7479*** used, and then restart.
7480
7481_LT_EOF
7482 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7485 else
7486 ld_shlibs=no
7487 fi
7488 ;;
7489
7490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7491 case `$LD -v 2>&1` in
7492 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7493 ld_shlibs=no
7494 cat <<_LT_EOF 1>&2
7495
7496*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7497*** reliably create shared libraries on SCO systems. Therefore, libtool
7498*** is disabling shared libraries support. We urge you to upgrade GNU
7499*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7500*** your PATH or compiler configuration so that the native linker is
7501*** used, and then restart.
7502
7503_LT_EOF
7504 ;;
7505 *)
7506 # For security reasons, it is highly recommended that you always
7507 # use absolute paths for naming shared libraries, and exclude the
7508 # DT_RUNPATH tag from executables and libraries. But doing so
7509 # requires that you compile everything twice, which is a pain.
7510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7514 else
7515 ld_shlibs=no
7516 fi
7517 ;;
7518 esac
7519 ;;
7520
7521 sunos4*)
7522 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7523 wlarc=
7524 hardcode_direct=yes
7525 hardcode_shlibpath_var=no
7526 ;;
7527
7528 *)
7529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7532 else
7533 ld_shlibs=no
7534 fi
7535 ;;
7536 esac
7537
7538 if test "$ld_shlibs" = no; then
7539 runpath_var=
7540 hardcode_libdir_flag_spec=
7541 export_dynamic_flag_spec=
7542 whole_archive_flag_spec=
7543 fi
7544 else
7545 # PORTME fill in a description of your system's linker (not GNU ld)
7546 case $host_os in
7547 aix3*)
7548 allow_undefined_flag=unsupported
7549 always_export_symbols=yes
7550 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'
7551 # Note: this linker hardcodes the directories in LIBPATH if there
7552 # are no directories specified by -L.
7553 hardcode_minus_L=yes
7554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7555 # Neither direct hardcoding nor static linking is supported with a
7556 # broken collect2.
7557 hardcode_direct=unsupported
7558 fi
7559 ;;
7560
3e7b7e2b 7561 aix[4-9]*)
1cf3d07d
SE
7562 if test "$host_cpu" = ia64; then
7563 # On IA64, the linker does run time linking by default, so we don't
7564 # have to do anything special.
7565 aix_use_runtimelinking=no
7566 exp_sym_flag='-Bexport'
7567 no_entry_flag=""
7568 else
7569 # If we're using GNU nm, then we don't want the "-C" option.
7570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7572 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'
7573 else
7574 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'
7575 fi
7576 aix_use_runtimelinking=no
7577
7578 # Test if we are trying to use run time linking or normal
7579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7580 # need to do runtime linking.
3e7b7e2b 7581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
7582 for ld_flag in $LDFLAGS; do
7583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7584 aix_use_runtimelinking=yes
7585 break
7586 fi
7587 done
7588 ;;
7589 esac
7590
7591 exp_sym_flag='-bexport'
7592 no_entry_flag='-bnoentry'
7593 fi
7594
7595 # When large executables or shared objects are built, AIX ld can
7596 # have problems creating the table of contents. If linking a library
7597 # or program results in "error TOC overflow" add -mminimal-toc to
7598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7600
7601 archive_cmds=''
7602 hardcode_direct=yes
7603 hardcode_direct_absolute=yes
7604 hardcode_libdir_separator=':'
7605 link_all_deplibs=yes
7606 file_list_spec='${wl}-f,'
7607
7608 if test "$GCC" = yes; then
7609 case $host_os in aix4.[012]|aix4.[012].*)
7610 # We only want to do this on AIX 4.2 and lower, the check
7611 # below for broken collect2 doesn't work under 4.3+
7612 collect2name=`${CC} -print-prog-name=collect2`
7613 if test -f "$collect2name" &&
7614 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7615 then
7616 # We have reworked collect2
7617 :
7618 else
7619 # We have old collect2
7620 hardcode_direct=unsupported
7621 # It fails to find uninstalled libraries when the uninstalled
7622 # path is not listed in the libpath. Setting hardcode_minus_L
7623 # to unsupported forces relinking
7624 hardcode_minus_L=yes
7625 hardcode_libdir_flag_spec='-L$libdir'
7626 hardcode_libdir_separator=
7627 fi
7628 ;;
7629 esac
7630 shared_flag='-shared'
7631 if test "$aix_use_runtimelinking" = yes; then
7632 shared_flag="$shared_flag "'${wl}-G'
7633 fi
7634 else
7635 # not using gcc
7636 if test "$host_cpu" = ia64; then
7637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7638 # chokes on -Wl,-G. The following line is correct:
7639 shared_flag='-G'
7640 else
7641 if test "$aix_use_runtimelinking" = yes; then
7642 shared_flag='${wl}-G'
7643 else
7644 shared_flag='${wl}-bM:SRE'
7645 fi
7646 fi
7647 fi
7648
18d98188 7649 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
7650 # It seems that -bexpall does not export symbols beginning with
7651 # underscore (_), so it is better to generate a list of symbols to export.
7652 always_export_symbols=yes
7653 if test "$aix_use_runtimelinking" = yes; then
7654 # Warning - without using the other runtime loading flags (-brtl),
7655 # -berok will link without error, but may produce a broken library.
7656 allow_undefined_flag='-berok'
7657 # Determine the default libpath from the value encoded in an
7658 # empty executable.
7659 if test x$gcc_no_link = xyes; then
7660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7661echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7662 { (exit 1); exit 1; }; }
7663fi
7664cat >conftest.$ac_ext <<_ACEOF
7665/* confdefs.h. */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
7669/* end confdefs.h. */
7670
7671int
7672main ()
7673{
7674
7675 ;
7676 return 0;
7677}
7678_ACEOF
7679rm -f conftest.$ac_objext conftest$ac_exeext
7680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701
7702lt_aix_libpath_sed='
7703 /Import File Strings/,/^$/ {
7704 /^0/ {
7705 s/^0 *\(.*\)$/\1/
7706 p
7707 }
7708 }'
7709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7710# Check for a 64-bit object if we didn't find anything.
7711if test -z "$aix_libpath"; then
7712 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7713fi
7714else
7715 echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718fi
7719rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7722
7723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7724 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"
7725 else
7726 if test "$host_cpu" = ia64; then
7727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7728 allow_undefined_flag="-z nodefs"
7729 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"
7730 else
7731 # Determine the default libpath from the value encoded in an
7732 # empty executable.
7733 if test x$gcc_no_link = xyes; then
7734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7735echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7736 { (exit 1); exit 1; }; }
7737fi
7738cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744
7745int
7746main ()
7747{
7748
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext conftest$ac_exeext
7754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775
7776lt_aix_libpath_sed='
7777 /Import File Strings/,/^$/ {
7778 /^0/ {
7779 s/^0 *\(.*\)$/\1/
7780 p
7781 }
7782 }'
7783aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7784# Check for a 64-bit object if we didn't find anything.
7785if test -z "$aix_libpath"; then
7786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7787fi
7788else
7789 echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
7792fi
7793rm -f conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7796
7797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7798 # Warning - without using the other run time loading flags,
7799 # -berok will link without error, but may produce a broken library.
7800 no_undefined_flag=' ${wl}-bernotok'
7801 allow_undefined_flag=' ${wl}-berok'
7802 # Exported symbols can be pulled into shared objects from archives
7803 whole_archive_flag_spec='$convenience'
7804 archive_cmds_need_lc=yes
7805 # This is similar to how AIX traditionally builds its shared libraries.
7806 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'
7807 fi
7808 fi
7809 ;;
7810
7811 amigaos*)
18d98188
PG
7812 case $host_cpu in
7813 powerpc)
7814 # see comment about AmigaOS4 .so support
7815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 archive_expsym_cmds=''
7817 ;;
7818 m68k)
7819 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)'
7820 hardcode_libdir_flag_spec='-L$libdir'
7821 hardcode_minus_L=yes
7822 ;;
7823 esac
1cf3d07d
SE
7824 ;;
7825
7826 bsdi[45]*)
7827 export_dynamic_flag_spec=-rdynamic
7828 ;;
7829
18d98188 7830 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7831 # When not using gcc, we currently assume that we are using
7832 # Microsoft Visual C++.
7833 # hardcode_libdir_flag_spec is actually meaningless, as there is
7834 # no search path for DLLs.
7835 hardcode_libdir_flag_spec=' '
7836 allow_undefined_flag=unsupported
7837 # Tell ltmain to make .lib files, not .a files.
7838 libext=lib
7839 # Tell ltmain to make .dll files, not .so files.
7840 shrext_cmds=".dll"
7841 # FIXME: Setting linknames here is a bad hack.
7842 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7843 # The linker will automatically build a .lib file if we build a DLL.
7844 old_archive_from_new_cmds='true'
7845 # FIXME: Should let the user specify the lib program.
7846 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7847 fix_srcfile_path='`cygpath -w "$srcfile"`'
7848 enable_shared_with_static_runtimes=yes
7849 ;;
7850
7851 darwin* | rhapsody*)
1cf3d07d 7852
18d98188
PG
7853
7854 archive_cmds_need_lc=no
7855 hardcode_direct=no
7856 hardcode_automatic=yes
7857 hardcode_shlibpath_var=unsupported
7858 whole_archive_flag_spec=''
7859 link_all_deplibs=yes
7860 allow_undefined_flag="$_lt_dar_allow_undefined"
7861 case $cc_basename in
7862 ifort*) _lt_dar_can_shared=yes ;;
7863 *) _lt_dar_can_shared=$GCC ;;
7864 esac
7865 if test "$_lt_dar_can_shared" = "yes"; then
7866 output_verbose_link_cmd=echo
7867 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7868 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7869 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7870 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7871
7872 else
7873 ld_shlibs=no
7874 fi
7875
1cf3d07d
SE
7876 ;;
7877
7878 dgux*)
7879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 hardcode_libdir_flag_spec='-L$libdir'
7881 hardcode_shlibpath_var=no
7882 ;;
7883
7884 freebsd1*)
7885 ld_shlibs=no
7886 ;;
7887
7888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7889 # support. Future versions do this automatically, but an explicit c++rt0.o
7890 # does not break anything, and helps significantly (at the cost of a little
7891 # extra space).
7892 freebsd2.2*)
7893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_direct=yes
7896 hardcode_shlibpath_var=no
7897 ;;
7898
7899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7900 freebsd2*)
7901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7902 hardcode_direct=yes
7903 hardcode_minus_L=yes
7904 hardcode_shlibpath_var=no
7905 ;;
7906
7907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7908 freebsd* | dragonfly*)
7909 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_direct=yes
7912 hardcode_shlibpath_var=no
7913 ;;
7914
7915 hpux9*)
7916 if test "$GCC" = yes; then
7917 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'
7918 else
7919 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'
7920 fi
7921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7922 hardcode_libdir_separator=:
7923 hardcode_direct=yes
7924
7925 # hardcode_minus_L: Not really in the search PATH,
7926 # but as the default location of the library.
7927 hardcode_minus_L=yes
7928 export_dynamic_flag_spec='${wl}-E'
7929 ;;
7930
7931 hpux10*)
7932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7934 else
7935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7936 fi
7937 if test "$with_gnu_ld" = no; then
7938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7939 hardcode_libdir_flag_spec_ld='+b $libdir'
7940 hardcode_libdir_separator=:
7941 hardcode_direct=yes
7942 hardcode_direct_absolute=yes
7943 export_dynamic_flag_spec='${wl}-E'
7944 # hardcode_minus_L: Not really in the search PATH,
7945 # but as the default location of the library.
7946 hardcode_minus_L=yes
7947 fi
7948 ;;
7949
7950 hpux11*)
7951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7952 case $host_cpu in
7953 hppa*64*)
7954 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 ;;
7956 ia64*)
18d98188 7957 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
7958 ;;
7959 *)
7960 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7961 ;;
7962 esac
7963 else
7964 case $host_cpu in
7965 hppa*64*)
7966 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7967 ;;
7968 ia64*)
7969 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7970 ;;
7971 *)
7972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7973 ;;
7974 esac
7975 fi
7976 if test "$with_gnu_ld" = no; then
7977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7978 hardcode_libdir_separator=:
7979
7980 case $host_cpu in
7981 hppa*64*|ia64*)
7982 hardcode_direct=no
7983 hardcode_shlibpath_var=no
7984 ;;
7985 *)
7986 hardcode_direct=yes
7987 hardcode_direct_absolute=yes
7988 export_dynamic_flag_spec='${wl}-E'
7989
7990 # hardcode_minus_L: Not really in the search PATH,
7991 # but as the default location of the library.
7992 hardcode_minus_L=yes
7993 ;;
7994 esac
7995 fi
7996 ;;
7997
7998 irix5* | irix6* | nonstopux*)
7999 if test "$GCC" = yes; then
8000 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'
8001 # Try to use the -exported_symbol ld option, if it does not
8002 # work, assume that -exports_file does not work either and
8003 # implicitly export all symbols.
8004 save_LDFLAGS="$LDFLAGS"
8005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8006 if test x$gcc_no_link = xyes; then
8007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8008echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8009 { (exit 1); exit 1; }; }
8010fi
8011cat >conftest.$ac_ext <<_ACEOF
8012int foo(void) {}
8013_ACEOF
8014rm -f conftest.$ac_objext conftest$ac_exeext
8015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 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'
8037
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042fi
8043rm -f conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
8045 LDFLAGS="$save_LDFLAGS"
8046 else
8047 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'
8048 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'
8049 fi
8050 archive_cmds_need_lc='no'
8051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8052 hardcode_libdir_separator=:
8053 inherit_rpath=yes
8054 link_all_deplibs=yes
8055 ;;
8056
8057 netbsd*)
8058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8060 else
8061 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8062 fi
8063 hardcode_libdir_flag_spec='-R$libdir'
8064 hardcode_direct=yes
8065 hardcode_shlibpath_var=no
8066 ;;
8067
8068 newsos6)
8069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070 hardcode_direct=yes
8071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8072 hardcode_libdir_separator=:
8073 hardcode_shlibpath_var=no
8074 ;;
8075
8076 *nto* | *qnx*)
8077 ;;
8078
8079 openbsd*)
18d98188
PG
8080 if test -f /usr/libexec/ld.so; then
8081 hardcode_direct=yes
8082 hardcode_shlibpath_var=no
8083 hardcode_direct_absolute=yes
8084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 8085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18d98188 8086 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18d98188
PG
8088 export_dynamic_flag_spec='${wl}-E'
8089 else
8090 case $host_os in
8091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_libdir_flag_spec='-R$libdir'
8094 ;;
8095 *)
8096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8098 ;;
8099 esac
8100 fi
8101 else
8102 ld_shlibs=no
1cf3d07d
SE
8103 fi
8104 ;;
8105
8106 os2*)
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 allow_undefined_flag=unsupported
8110 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'
8111 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8112 ;;
8113
8114 osf3*)
8115 if test "$GCC" = yes; then
8116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8117 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'
8118 else
8119 allow_undefined_flag=' -expect_unresolved \*'
8120 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'
8121 fi
8122 archive_cmds_need_lc='no'
8123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124 hardcode_libdir_separator=:
8125 ;;
8126
8127 osf4* | osf5*) # as osf3* with the addition of -msym flag
8128 if test "$GCC" = yes; then
8129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8130 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'
8131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8132 else
8133 allow_undefined_flag=' -expect_unresolved \*'
8134 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'
8135 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~
8136 $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'
8137
8138 # Both c and cxx compiler support -rpath directly
8139 hardcode_libdir_flag_spec='-rpath $libdir'
8140 fi
8141 archive_cmds_need_lc='no'
8142 hardcode_libdir_separator=:
8143 ;;
8144
8145 solaris*)
8146 no_undefined_flag=' -z defs'
8147 if test "$GCC" = yes; then
8148 wlarc='${wl}'
8149 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8151 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8152 else
8153 case `$CC -V 2>&1` in
8154 *"Compilers 5.0"*)
8155 wlarc=''
8156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8159 ;;
8160 *)
8161 wlarc='${wl}'
8162 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8164 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8165 ;;
8166 esac
8167 fi
8168 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_shlibpath_var=no
8170 case $host_os in
8171 solaris2.[0-5] | solaris2.[0-5].*) ;;
8172 *)
8173 # The compiler driver will combine and reorder linker options,
8174 # but understands `-z linker_flag'. GCC discards it without `$wl',
8175 # but is careful enough not to reorder.
8176 # Supported since Solaris 2.6 (maybe 2.5.1?)
8177 if test "$GCC" = yes; then
8178 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8179 else
8180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8181 fi
8182 ;;
8183 esac
8184 link_all_deplibs=yes
8185 ;;
8186
8187 sunos4*)
8188 if test "x$host_vendor" = xsequent; then
8189 # Use $CC to link under sequent, because it throws in some extra .o
8190 # files that make .init and .fini sections work.
8191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8192 else
8193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8194 fi
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_direct=yes
8197 hardcode_minus_L=yes
8198 hardcode_shlibpath_var=no
8199 ;;
8200
8201 sysv4)
8202 case $host_vendor in
8203 sni)
8204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8205 hardcode_direct=yes # is this really true???
8206 ;;
8207 siemens)
8208 ## LD is ld it makes a PLAMLIB
8209 ## CC just makes a GrossModule.
8210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8211 reload_cmds='$CC -r -o $output$reload_objs'
8212 hardcode_direct=no
8213 ;;
8214 motorola)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8217 ;;
8218 esac
8219 runpath_var='LD_RUN_PATH'
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 sysv4.3*)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_shlibpath_var=no
8226 export_dynamic_flag_spec='-Bexport'
8227 ;;
8228
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_shlibpath_var=no
8233 runpath_var=LD_RUN_PATH
8234 hardcode_runpath_var=yes
8235 ld_shlibs=yes
8236 fi
8237 ;;
8238
8239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8240 no_undefined_flag='${wl}-z,text'
8241 archive_cmds_need_lc=no
8242 hardcode_shlibpath_var=no
8243 runpath_var='LD_RUN_PATH'
8244
8245 if test "$GCC" = yes; then
8246 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8247 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 else
8249 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 fi
8252 ;;
8253
8254 sysv5* | sco3.2v5* | sco5v6*)
8255 # Note: We can NOT use -z defs as we might desire, because we do not
8256 # link with -lc, and that would cause any symbols used from libc to
8257 # always be unresolved, which means just about no library would
8258 # ever link correctly. If we're not using GNU ld we use -z text
8259 # though, which does catch some bad symbols but isn't as heavy-handed
8260 # as -z defs.
8261 no_undefined_flag='${wl}-z,text'
8262 allow_undefined_flag='${wl}-z,nodefs'
8263 archive_cmds_need_lc=no
8264 hardcode_shlibpath_var=no
8265 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8266 hardcode_libdir_separator=':'
8267 link_all_deplibs=yes
8268 export_dynamic_flag_spec='${wl}-Bexport'
8269 runpath_var='LD_RUN_PATH'
8270
8271 if test "$GCC" = yes; then
8272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 else
8275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 fi
8278 ;;
8279
8280 uts4*)
8281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec='-L$libdir'
8283 hardcode_shlibpath_var=no
8284 ;;
8285
8286 *)
8287 ld_shlibs=no
8288 ;;
8289 esac
8290
8291 if test x$host_vendor = xsni; then
8292 case $host in
8293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8294 export_dynamic_flag_spec='${wl}-Blargedynsym'
8295 ;;
8296 esac
8297 fi
8298 fi
8299
8300echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8301echo "${ECHO_T}$ld_shlibs" >&6
8302test "$ld_shlibs" = no && can_build_shared=no
8303
8304with_gnu_ld=$with_gnu_ld
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320#
8321# Do we need to explicitly link libc?
8322#
8323case "x$archive_cmds_need_lc" in
8324x|xyes)
8325 # Assume -lc should be added
8326 archive_cmds_need_lc=yes
8327
8328 if test "$enable_shared" = yes && test "$GCC" = yes; then
8329 case $archive_cmds in
8330 *'~'*)
8331 # FIXME: we may have to deal with multi-command sequences.
8332 ;;
8333 '$CC '*)
8334 # Test whether the compiler implicitly links with -lc since on some
8335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8336 # to ld, don't add -lc before -lgcc.
8337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8339 $RM conftest*
8340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } 2>conftest.err; then
8347 soname=conftest
8348 lib=conftest
8349 libobjs=conftest.$ac_objext
8350 deplibs=
8351 wl=$lt_prog_compiler_wl
8352 pic_flag=$lt_prog_compiler_pic
8353 compiler_flags=-v
8354 linker_flags=-v
8355 verstring=
8356 output_objdir=.
8357 libname=conftest
8358 lt_save_allow_undefined_flag=$allow_undefined_flag
8359 allow_undefined_flag=
8360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }
8365 then
8366 archive_cmds_need_lc=no
8367 else
8368 archive_cmds_need_lc=yes
8369 fi
8370 allow_undefined_flag=$lt_save_allow_undefined_flag
8371 else
8372 cat conftest.err 1>&5
8373 fi
8374 $RM conftest*
8375 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8376echo "${ECHO_T}$archive_cmds_need_lc" >&6
8377 ;;
8378 esac
8379 fi
8380 ;;
8381esac
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8540echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18d98188
PG
8541
8542if test "$GCC" = yes; then
1cf3d07d
SE
8543 case $host_os in
8544 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8545 *) lt_awk_arg="/^libraries:/" ;;
8546 esac
8547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8548 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8549 # if the path contains ";" then we assume it to be the separator
8550 # otherwise default to the standard path separator (i.e. ":") - it is
8551 # assumed that no part of a normal pathname contains ";" but that should
8552 # okay in the real world where ";" in dirpaths is itself problematic.
8553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8554 else
8555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8556 fi
8557 # Ok, now we have the path, separated by spaces, we can step through it
8558 # and add multilib dir if necessary.
8559 lt_tmp_lt_search_path_spec=
8560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8561 for lt_sys_path in $lt_search_path_spec; do
8562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8564 else
8565 test -d "$lt_sys_path" && \
8566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8567 fi
8568 done
8569 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8570BEGIN {RS=" "; FS="/|\n";} {
8571 lt_foo="";
8572 lt_count=0;
8573 for (lt_i = NF; lt_i > 0; lt_i--) {
8574 if ($lt_i != "" && $lt_i != ".") {
8575 if ($lt_i == "..") {
8576 lt_count++;
8577 } else {
8578 if (lt_count == 0) {
8579 lt_foo="/" $lt_i lt_foo;
8580 } else {
8581 lt_count--;
8582 }
8583 }
8584 }
8585 }
8586 if (lt_foo != "") { lt_freq[lt_foo]++; }
8587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8588}'`
8589 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8590else
8591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8592fi
8593library_names_spec=
8594libname_spec='lib$name'
8595soname_spec=
8596shrext_cmds=".so"
8597postinstall_cmds=
8598postuninstall_cmds=
8599finish_cmds=
8600finish_eval=
8601shlibpath_var=
8602shlibpath_overrides_runpath=unknown
8603version_type=none
8604dynamic_linker="$host_os ld.so"
8605sys_lib_dlsearch_path_spec="/lib /usr/lib"
8606need_lib_prefix=unknown
8607hardcode_into_libs=no
8608
8609# when you set need_version to no, make sure it does not cause -set_version
8610# flags to be left without arguments
8611need_version=unknown
8612
8613case $host_os in
8614aix3*)
8615 version_type=linux
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8617 shlibpath_var=LIBPATH
8618
8619 # AIX 3 has no versioning support, so we append a major version to the name.
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 ;;
8622
3e7b7e2b 8623aix[4-9]*)
1cf3d07d
SE
8624 version_type=linux
8625 need_lib_prefix=no
8626 need_version=no
8627 hardcode_into_libs=yes
8628 if test "$host_cpu" = ia64; then
8629 # AIX 5 supports IA64
8630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8631 shlibpath_var=LD_LIBRARY_PATH
8632 else
8633 # With GCC up to 2.95.x, collect2 would create an import file
8634 # for dependence libraries. The import file would start with
8635 # the line `#! .'. This would cause the generated library to
8636 # depend on `.', always an invalid library. This was fixed in
8637 # development snapshots of GCC prior to 3.0.
8638 case $host_os in
8639 aix4 | aix4.[01] | aix4.[01].*)
8640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8641 echo ' yes '
8642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8643 :
8644 else
8645 can_build_shared=no
8646 fi
8647 ;;
8648 esac
8649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8650 # soname into executable. Probably we can add versioning support to
8651 # collect2, so additional links can be useful in future.
8652 if test "$aix_use_runtimelinking" = yes; then
8653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8654 # instead of lib<name>.a to let people know that these are not
8655 # typical AIX shared libraries.
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8657 else
8658 # We preserve .a as extension for shared libraries through AIX4.2
8659 # and later when we are not doing run time linking.
8660 library_names_spec='${libname}${release}.a $libname.a'
8661 soname_spec='${libname}${release}${shared_ext}$major'
8662 fi
8663 shlibpath_var=LIBPATH
8664 fi
8665 ;;
8666
8667amigaos*)
18d98188
PG
8668 case $host_cpu in
8669 powerpc)
8670 # Since July 2007 AmigaOS4 officially supports .so libraries.
8671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673 ;;
8674 m68k)
1cf3d07d
SE
8675 library_names_spec='$libname.ixlibrary $libname.a'
8676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8677 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'
18d98188
PG
8678 ;;
8679 esac
1cf3d07d
SE
8680 ;;
8681
8682beos*)
8683 library_names_spec='${libname}${shared_ext}'
8684 dynamic_linker="$host_os ld.so"
8685 shlibpath_var=LIBRARY_PATH
8686 ;;
8687
8688bsdi[45]*)
8689 version_type=linux
8690 need_version=no
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8694 shlibpath_var=LD_LIBRARY_PATH
8695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8697 # the default ld.so.conf also contains /usr/contrib/lib and
8698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8699 # libtool to hard-code these into programs
8700 ;;
8701
18d98188 8702cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8703 version_type=windows
8704 shrext_cmds=".dll"
8705 need_version=no
8706 need_lib_prefix=no
8707
18d98188
PG
8708 case $GCC,$host_os in
8709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
8710 library_names_spec='$libname.dll.a'
8711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8712 postinstall_cmds='base_file=`basename \${file}`~
8713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8714 dldir=$destdir/`dirname \$dlpath`~
8715 test -d \$dldir || mkdir -p \$dldir~
8716 $install_prog $dir/$dlname \$dldir/$dlname~
8717 chmod a+x \$dldir/$dlname~
8718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8720 fi'
8721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8722 dlpath=$dir/\$dldll~
8723 $RM \$dlpath'
8724 shlibpath_overrides_runpath=yes
8725
8726 case $host_os in
8727 cygwin*)
8728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8731 ;;
18d98188 8732 mingw* | cegcc*)
1cf3d07d
SE
8733 # MinGW DLLs use traditional 'lib' prefix
8734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8736 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8737 # It is most probably a Windows format PATH printed by
8738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8739 # path with ; separators, and with drive letters. We can handle the
8740 # drive letters (cygwin fileutils understands them), so leave them,
8741 # especially as we might pass files found there to a mingw objdump,
8742 # which wouldn't understand a cygwinified path. Ahh.
8743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8744 else
8745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8746 fi
8747 ;;
8748 pw32*)
8749 # pw32 DLLs use 'pw' prefix rather than 'lib'
8750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8751 ;;
8752 esac
8753 ;;
8754
8755 *)
8756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8757 ;;
8758 esac
8759 dynamic_linker='Win32 ld.exe'
8760 # FIXME: first we should search . and the directory the executable is in
8761 shlibpath_var=PATH
8762 ;;
8763
8764darwin* | rhapsody*)
8765 dynamic_linker="$host_os dyld"
8766 version_type=darwin
8767 need_lib_prefix=no
8768 need_version=no
8769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8770 soname_spec='${libname}${release}${major}$shared_ext'
8771 shlibpath_overrides_runpath=yes
8772 shlibpath_var=DYLD_LIBRARY_PATH
8773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8774
8775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8777 ;;
8778
8779dgux*)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 ;;
8787
8788freebsd1*)
8789 dynamic_linker=no
8790 ;;
8791
8792freebsd* | dragonfly*)
8793 # DragonFly does not have aout. When/if they implement a new
8794 # versioning mechanism, adjust this.
8795 if test -x /usr/bin/objformat; then
8796 objformat=`/usr/bin/objformat`
8797 else
8798 case $host_os in
8799 freebsd[123]*) objformat=aout ;;
8800 *) objformat=elf ;;
8801 esac
8802 fi
8803 version_type=freebsd-$objformat
8804 case $version_type in
8805 freebsd-elf*)
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8807 need_version=no
8808 need_lib_prefix=no
8809 ;;
8810 freebsd-*)
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8812 need_version=yes
8813 ;;
8814 esac
8815 shlibpath_var=LD_LIBRARY_PATH
8816 case $host_os in
8817 freebsd2*)
8818 shlibpath_overrides_runpath=yes
8819 ;;
8820 freebsd3.[01]* | freebsdelf3.[01]*)
8821 shlibpath_overrides_runpath=yes
8822 hardcode_into_libs=yes
8823 ;;
8824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8826 shlibpath_overrides_runpath=no
8827 hardcode_into_libs=yes
8828 ;;
8829 *) # from 4.6 on, and DragonFly
8830 shlibpath_overrides_runpath=yes
8831 hardcode_into_libs=yes
8832 ;;
8833 esac
8834 ;;
8835
8836gnu*)
8837 version_type=linux
8838 need_lib_prefix=no
8839 need_version=no
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 hardcode_into_libs=yes
8844 ;;
8845
8846hpux9* | hpux10* | hpux11*)
8847 # Give a soname corresponding to the major version so that dld.sl refuses to
8848 # link against other versions.
8849 version_type=sunos
8850 need_lib_prefix=no
8851 need_version=no
8852 case $host_cpu in
8853 ia64*)
8854 shrext_cmds='.so'
8855 hardcode_into_libs=yes
8856 dynamic_linker="$host_os dld.so"
8857 shlibpath_var=LD_LIBRARY_PATH
8858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 if test "X$HPUX_IA64_MODE" = X32; then
8862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8863 else
8864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8865 fi
8866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8867 ;;
8868 hppa*64*)
8869 shrext_cmds='.sl'
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.sl"
8872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8878 ;;
8879 *)
8880 shrext_cmds='.sl'
8881 dynamic_linker="$host_os dld.sl"
8882 shlibpath_var=SHLIB_PATH
8883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 ;;
8887 esac
8888 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8889 postinstall_cmds='chmod 555 $lib'
8890 ;;
8891
8892interix[3-9]*)
8893 version_type=linux
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8899 shlibpath_var=LD_LIBRARY_PATH
8900 shlibpath_overrides_runpath=no
8901 hardcode_into_libs=yes
8902 ;;
8903
8904irix5* | irix6* | nonstopux*)
8905 case $host_os in
8906 nonstopux*) version_type=nonstopux ;;
8907 *)
8908 if test "$lt_cv_prog_gnu_ld" = yes; then
8909 version_type=linux
8910 else
8911 version_type=irix
8912 fi ;;
8913 esac
8914 need_lib_prefix=no
8915 need_version=no
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8918 case $host_os in
8919 irix5* | nonstopux*)
8920 libsuff= shlibsuff=
8921 ;;
8922 *)
8923 case $LD in # libtool.m4 will add one of these switches to LD
8924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8925 libsuff= shlibsuff= libmagic=32-bit;;
8926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8927 libsuff=32 shlibsuff=N32 libmagic=N32;;
8928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8930 *) libsuff= shlibsuff= libmagic=never-match;;
8931 esac
8932 ;;
8933 esac
8934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8935 shlibpath_overrides_runpath=no
8936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8938 hardcode_into_libs=yes
8939 ;;
8940
8941# No shared lib support for Linux oldld, aout, or coff.
8942linux*oldld* | linux*aout* | linux*coff*)
8943 dynamic_linker=no
8944 ;;
8945
8946# This must be Linux ELF.
8947linux* | k*bsd*-gnu)
8948 version_type=linux
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=no
8956 # Some binutils ld are patched to set DT_RUNPATH
8957 save_LDFLAGS=$LDFLAGS
8958 save_libdir=$libdir
8959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8961 if test x$gcc_no_link = xyes; then
8962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8963echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8964 { (exit 1); exit 1; }; }
8965fi
8966cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */
8972
8973int
8974main ()
8975{
8976
8977 ;
8978 return 0;
8979}
8980_ACEOF
8981rm -f conftest.$ac_objext conftest$ac_exeext
8982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
18d98188 9003 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1cf3d07d
SE
9004 shlibpath_overrides_runpath=yes
9005fi
9006
9007else
9008 echo "$as_me: failed program was:" >&5
9009sed 's/^/| /' conftest.$ac_ext >&5
9010
9011fi
9012rm -f conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LDFLAGS=$save_LDFLAGS
9015 libdir=$save_libdir
9016
9017 # This implies no fast_install, which is unacceptable.
9018 # Some rework will be needed to allow for fast_install
9019 # before this can be enabled.
9020 hardcode_into_libs=yes
9021
9022 # Append ld.so.conf contents to the search path
9023 if test -f /etc/ld.so.conf; then
18d98188 9024 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
9025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9026 fi
9027
9028 # We used to test for /lib/ld.so.1 and disable shared libraries on
9029 # powerpc, because MkLinux only supported shared libraries with the
9030 # GNU dynamic linker. Since this was broken with cross compilers,
9031 # most powerpc-linux boxes support dynamic linking these days and
9032 # people can always --disable-shared, the test was removed, and we
9033 # assume the GNU/Linux dynamic linker is in use.
9034 dynamic_linker='GNU/Linux ld.so'
9035 ;;
9036
9037netbsd*)
9038 version_type=sunos
9039 need_lib_prefix=no
9040 need_version=no
9041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9044 dynamic_linker='NetBSD (a.out) ld.so'
9045 else
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 dynamic_linker='NetBSD ld.elf_so'
9049 fi
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 hardcode_into_libs=yes
9053 ;;
9054
9055newsos6)
9056 version_type=linux
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9060 ;;
9061
9062*nto* | *qnx*)
9063 version_type=qnx
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9071 dynamic_linker='ldqnx.so'
9072 ;;
9073
9074openbsd*)
9075 version_type=sunos
9076 sys_lib_dlsearch_path_spec="/usr/lib"
9077 need_lib_prefix=no
9078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9079 case $host_os in
9080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9081 *) need_version=no ;;
9082 esac
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9087 case $host_os in
9088 openbsd2.[89] | openbsd2.[89].*)
9089 shlibpath_overrides_runpath=no
9090 ;;
9091 *)
9092 shlibpath_overrides_runpath=yes
9093 ;;
9094 esac
9095 else
9096 shlibpath_overrides_runpath=yes
9097 fi
9098 ;;
9099
9100os2*)
9101 libname_spec='$name'
9102 shrext_cmds=".dll"
9103 need_lib_prefix=no
9104 library_names_spec='$libname${shared_ext} $libname.a'
9105 dynamic_linker='OS/2 ld.exe'
9106 shlibpath_var=LIBPATH
9107 ;;
9108
9109osf3* | osf4* | osf5*)
9110 version_type=osf
9111 need_lib_prefix=no
9112 need_version=no
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9118 ;;
9119
9120rdos*)
9121 dynamic_linker=no
9122 ;;
9123
9124solaris*)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 shlibpath_overrides_runpath=yes
9132 hardcode_into_libs=yes
9133 # ldd complains unless libraries are executable
9134 postinstall_cmds='chmod +x $lib'
9135 ;;
9136
9137sunos4*)
9138 version_type=sunos
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9140 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9143 if test "$with_gnu_ld" = yes; then
9144 need_lib_prefix=no
9145 fi
9146 need_version=yes
9147 ;;
9148
9149sysv4 | sysv4.3*)
9150 version_type=linux
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 case $host_vendor in
9155 sni)
9156 shlibpath_overrides_runpath=no
9157 need_lib_prefix=no
9158 runpath_var=LD_RUN_PATH
9159 ;;
9160 siemens)
9161 need_lib_prefix=no
9162 ;;
9163 motorola)
9164 need_lib_prefix=no
9165 need_version=no
9166 shlibpath_overrides_runpath=no
9167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9168 ;;
9169 esac
9170 ;;
9171
9172sysv4*MP*)
9173 if test -d /usr/nec ;then
9174 version_type=linux
9175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9176 soname_spec='$libname${shared_ext}.$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 fi
9179 ;;
9180
9181sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9182 version_type=freebsd-elf
9183 need_lib_prefix=no
9184 need_version=no
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=yes
9189 hardcode_into_libs=yes
9190 if test "$with_gnu_ld" = yes; then
9191 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9192 else
9193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9194 case $host_os in
9195 sco3.2v5*)
9196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9197 ;;
9198 esac
9199 fi
9200 sys_lib_dlsearch_path_spec='/usr/lib'
9201 ;;
9202
9203tpf*)
9204 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
18d98188 9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=no
9211 hardcode_into_libs=yes
9212 ;;
9213
9214uts4*)
9215 version_type=linux
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 ;;
9220
9221*)
9222 dynamic_linker=no
9223 ;;
9224esac
9225echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9226echo "${ECHO_T}$dynamic_linker" >&6
9227test "$dynamic_linker" = no && can_build_shared=no
9228
9229variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9230if test "$GCC" = yes; then
9231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9232fi
9233
18d98188
PG
9234if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9235 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9236fi
9237if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9238 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9239fi
9240
1cf3d07d
SE
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9328echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9329hardcode_action=
9330if test -n "$hardcode_libdir_flag_spec" ||
9331 test -n "$runpath_var" ||
9332 test "X$hardcode_automatic" = "Xyes" ; then
9333
9334 # We can hardcode non-existent directories.
9335 if test "$hardcode_direct" != no &&
9336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9337 # have to relink, otherwise we might link with an installed library
9338 # when we should be linking with a yet-to-be-installed one
9339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9340 test "$hardcode_minus_L" != no; then
9341 # Linking always hardcodes the temporary library directory.
9342 hardcode_action=relink
9343 else
9344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9345 hardcode_action=immediate
9346 fi
9347else
9348 # We cannot hardcode anything, or else we can only hardcode existing
9349 # directories.
9350 hardcode_action=unsupported
9351fi
9352echo "$as_me:$LINENO: result: $hardcode_action" >&5
9353echo "${ECHO_T}$hardcode_action" >&6
9354
9355if test "$hardcode_action" = relink ||
9356 test "$inherit_rpath" = yes; then
9357 # Fast installation is not supported
9358 enable_fast_install=no
9359elif test "$shlibpath_overrides_runpath" = yes ||
9360 test "$enable_shared" = no; then
9361 # Fast installation is not necessary
9362 enable_fast_install=needless
9363fi
9364
9365
9366
9367
9368
9369
9370 if test "x$enable_dlopen" != xyes; then
9371 enable_dlopen=unknown
9372 enable_dlopen_self=unknown
9373 enable_dlopen_self_static=unknown
9374else
9375 lt_cv_dlopen=no
9376 lt_cv_dlopen_libs=
9377
9378 case $host_os in
9379 beos*)
9380 lt_cv_dlopen="load_add_on"
9381 lt_cv_dlopen_libs=
9382 lt_cv_dlopen_self=yes
9383 ;;
9384
18d98188 9385 mingw* | pw32* | cegcc*)
1cf3d07d
SE
9386 lt_cv_dlopen="LoadLibrary"
9387 lt_cv_dlopen_libs=
9388 ;;
9389
9390 cygwin*)
9391 lt_cv_dlopen="dlopen"
9392 lt_cv_dlopen_libs=
9393 ;;
9394
9395 darwin*)
9396 # if libdl is installed we need to link against it
9397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9398echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9399if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 ac_check_lib_save_LIBS=$LIBS
9403LIBS="-ldl $LIBS"
9404if test x$gcc_no_link = xyes; then
9405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9406echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9407 { (exit 1); exit 1; }; }
9408fi
9409cat >conftest.$ac_ext <<_ACEOF
9410/* confdefs.h. */
9411_ACEOF
9412cat confdefs.h >>conftest.$ac_ext
9413cat >>conftest.$ac_ext <<_ACEOF
9414/* end confdefs.h. */
9415
9416/* Override any gcc2 internal prototype to avoid an error. */
9417#ifdef __cplusplus
9418extern "C"
9419#endif
9420/* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422char dlopen ();
9423int
9424main ()
9425{
9426dlopen ();
9427 ;
9428 return 0;
9429}
9430_ACEOF
9431rm -f conftest.$ac_objext conftest$ac_exeext
9432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_dl_dlopen=yes
9454else
9455 echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458ac_cv_lib_dl_dlopen=no
9459fi
9460rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462LIBS=$ac_check_lib_save_LIBS
9463fi
9464echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9465echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9466if test $ac_cv_lib_dl_dlopen = yes; then
9467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9468else
9469
9470 lt_cv_dlopen="dyld"
9471 lt_cv_dlopen_libs=
9472 lt_cv_dlopen_self=yes
9473
9474fi
9475
9476 ;;
9477
9478 *)
9479 echo "$as_me:$LINENO: checking for shl_load" >&5
9480echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9481if test "${ac_cv_func_shl_load+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484 if test x$gcc_no_link = xyes; then
9485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9486echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9487 { (exit 1); exit 1; }; }
9488fi
9489cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497#define shl_load innocuous_shl_load
9498
9499/* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char shl_load (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9503
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
9509
9510#undef shl_load
9511
9512/* Override any gcc2 internal prototype to avoid an error. */
9513#ifdef __cplusplus
9514extern "C"
9515{
9516#endif
9517/* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9519char shl_load ();
9520/* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523#if defined (__stub_shl_load) || defined (__stub___shl_load)
9524choke me
9525#else
9526char (*f) () = shl_load;
9527#endif
9528#ifdef __cplusplus
9529}
9530#endif
9531
9532int
9533main ()
9534{
9535return f != shl_load;
9536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
9541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_func_shl_load=yes
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567ac_cv_func_shl_load=no
9568fi
9569rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571fi
9572echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9573echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9574if test $ac_cv_func_shl_load = yes; then
9575 lt_cv_dlopen="shl_load"
9576else
9577 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9578echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9579if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581else
9582 ac_check_lib_save_LIBS=$LIBS
9583LIBS="-ldld $LIBS"
9584if test x$gcc_no_link = xyes; then
9585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9586echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9587 { (exit 1); exit 1; }; }
9588fi
9589cat >conftest.$ac_ext <<_ACEOF
9590/* confdefs.h. */
9591_ACEOF
9592cat confdefs.h >>conftest.$ac_ext
9593cat >>conftest.$ac_ext <<_ACEOF
9594/* end confdefs.h. */
9595
9596/* Override any gcc2 internal prototype to avoid an error. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600/* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602char shl_load ();
9603int
9604main ()
9605{
9606shl_load ();
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611rm -f conftest.$ac_objext conftest$ac_exeext
9612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_shl_load=yes
9634else
9635 echo "$as_me: failed program was:" >&5
9636sed 's/^/| /' conftest.$ac_ext >&5
9637
9638ac_cv_lib_dld_shl_load=no
9639fi
9640rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642LIBS=$ac_check_lib_save_LIBS
9643fi
9644echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9645echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9646if test $ac_cv_lib_dld_shl_load = yes; then
18d98188 9647 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
9648else
9649 echo "$as_me:$LINENO: checking for dlopen" >&5
9650echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9651if test "${ac_cv_func_dlopen+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 if test x$gcc_no_link = xyes; then
9655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9656echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9657 { (exit 1); exit 1; }; }
9658fi
9659cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h. */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h. */
9665/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9667#define dlopen innocuous_dlopen
9668
9669/* System header to define __stub macros and hopefully few prototypes,
9670 which can conflict with char dlopen (); below.
9671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9672 <limits.h> exists even on freestanding compilers. */
9673
9674#ifdef __STDC__
9675# include <limits.h>
9676#else
9677# include <assert.h>
9678#endif
9679
9680#undef dlopen
9681
9682/* Override any gcc2 internal prototype to avoid an error. */
9683#ifdef __cplusplus
9684extern "C"
9685{
9686#endif
9687/* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689char dlopen ();
9690/* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693#if defined (__stub_dlopen) || defined (__stub___dlopen)
9694choke me
9695#else
9696char (*f) () = dlopen;
9697#endif
9698#ifdef __cplusplus
9699}
9700#endif
9701
9702int
9703main ()
9704{
9705return f != dlopen;
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
9711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_func_dlopen=yes
9733else
9734 echo "$as_me: failed program was:" >&5
9735sed 's/^/| /' conftest.$ac_ext >&5
9736
9737ac_cv_func_dlopen=no
9738fi
9739rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741fi
9742echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9743echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9744if test $ac_cv_func_dlopen = yes; then
9745 lt_cv_dlopen="dlopen"
9746else
9747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9748echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9749if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751else
9752 ac_check_lib_save_LIBS=$LIBS
9753LIBS="-ldl $LIBS"
9754if test x$gcc_no_link = xyes; then
9755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9756echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9757 { (exit 1); exit 1; }; }
9758fi
9759cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765
9766/* Override any gcc2 internal prototype to avoid an error. */
9767#ifdef __cplusplus
9768extern "C"
9769#endif
9770/* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */
9772char dlopen ();
9773int
9774main ()
9775{
9776dlopen ();
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781rm -f conftest.$ac_objext conftest$ac_exeext
9782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dl_dlopen=yes
9804else
9805 echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
9808ac_cv_lib_dl_dlopen=no
9809fi
9810rm -f conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812LIBS=$ac_check_lib_save_LIBS
9813fi
9814echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9815echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9816if test $ac_cv_lib_dl_dlopen = yes; then
9817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9818else
9819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9820echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9821if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823else
9824 ac_check_lib_save_LIBS=$LIBS
9825LIBS="-lsvld $LIBS"
9826if test x$gcc_no_link = xyes; then
9827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9828echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9829 { (exit 1); exit 1; }; }
9830fi
9831cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h. */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837
9838/* Override any gcc2 internal prototype to avoid an error. */
9839#ifdef __cplusplus
9840extern "C"
9841#endif
9842/* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844char dlopen ();
9845int
9846main ()
9847{
9848dlopen ();
9849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext conftest$ac_exeext
9854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_lib_svld_dlopen=yes
9876else
9877 echo "$as_me: failed program was:" >&5
9878sed 's/^/| /' conftest.$ac_ext >&5
9879
9880ac_cv_lib_svld_dlopen=no
9881fi
9882rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884LIBS=$ac_check_lib_save_LIBS
9885fi
9886echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9887echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9888if test $ac_cv_lib_svld_dlopen = yes; then
9889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9890else
9891 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9892echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9893if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895else
9896 ac_check_lib_save_LIBS=$LIBS
9897LIBS="-ldld $LIBS"
9898if test x$gcc_no_link = xyes; then
a8aea176
NN
9899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9900echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9901 { (exit 1); exit 1; }; }
9902fi
9903cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h. */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h. */
0fd91e0a 9909
1cf3d07d
SE
9910/* Override any gcc2 internal prototype to avoid an error. */
9911#ifdef __cplusplus
9912extern "C"
9913#endif
9914/* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9916char dld_link ();
a8aea176
NN
9917int
9918main ()
9919{
1cf3d07d 9920dld_link ();
a8aea176
NN
9921 ;
9922 return 0;
9923}
9924_ACEOF
9925rm -f conftest.$ac_objext conftest$ac_exeext
9926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
17210dff
TT
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
a8aea176
NN
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
1cf3d07d 9947 ac_cv_lib_dld_dld_link=yes
0fd91e0a 9948else
a8aea176
NN
9949 echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
1cf3d07d 9952ac_cv_lib_dld_dld_link=no
025fd00e 9953fi
a8aea176
NN
9954rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9956LIBS=$ac_check_lib_save_LIBS
9957fi
9958echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9959echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9960if test $ac_cv_lib_dld_dld_link = yes; then
18d98188 9961 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
0fd91e0a 9962fi
025fd00e 9963
dfac8a13 9964
1cf3d07d 9965fi
a8aea176 9966
a8aea176 9967
c45f211e 9968fi
dfac8a13 9969
dfac8a13 9970
dfac8a13
TT
9971fi
9972
9973
1cf3d07d 9974fi
dfac8a13 9975
dfac8a13 9976
1cf3d07d 9977fi
0fd91e0a 9978
1cf3d07d
SE
9979 ;;
9980 esac
dfac8a13 9981
1cf3d07d
SE
9982 if test "x$lt_cv_dlopen" != xno; then
9983 enable_dlopen=yes
9984 else
9985 enable_dlopen=no
9986 fi
a8aea176 9987
1cf3d07d
SE
9988 case $lt_cv_dlopen in
9989 dlopen)
9990 save_CPPFLAGS="$CPPFLAGS"
9991 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
a8aea176 9992
1cf3d07d
SE
9993 save_LDFLAGS="$LDFLAGS"
9994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
dfac8a13 9995
1cf3d07d
SE
9996 save_LIBS="$LIBS"
9997 LIBS="$lt_cv_dlopen_libs $LIBS"
dfac8a13 9998
1cf3d07d
SE
9999 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10000echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10001if test "${lt_cv_dlopen_self+set}" = set; then
a8aea176 10002 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 10003else
1cf3d07d
SE
10004 if test "$cross_compiling" = yes; then :
10005 lt_cv_dlopen_self=cross
a8aea176 10006else
1cf3d07d
SE
10007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10008 lt_status=$lt_dlunknown
10009 cat > conftest.$ac_ext <<_LT_EOF
18d98188 10010#line 10010 "configure"
1cf3d07d 10011#include "confdefs.h"
a8aea176 10012
1cf3d07d
SE
10013#if HAVE_DLFCN_H
10014#include <dlfcn.h>
10015#endif
a8aea176 10016
1cf3d07d 10017#include <stdio.h>
a8aea176 10018
1cf3d07d
SE
10019#ifdef RTLD_GLOBAL
10020# define LT_DLGLOBAL RTLD_GLOBAL
a8aea176 10021#else
1cf3d07d
SE
10022# ifdef DL_GLOBAL
10023# define LT_DLGLOBAL DL_GLOBAL
10024# else
10025# define LT_DLGLOBAL 0
10026# endif
10027#endif
10028
10029/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10030 find out it does not work in some platform. */
10031#ifndef LT_DLLAZY_OR_NOW
10032# ifdef RTLD_LAZY
10033# define LT_DLLAZY_OR_NOW RTLD_LAZY
10034# else
10035# ifdef DL_LAZY
10036# define LT_DLLAZY_OR_NOW DL_LAZY
10037# else
10038# ifdef RTLD_NOW
10039# define LT_DLLAZY_OR_NOW RTLD_NOW
10040# else
10041# ifdef DL_NOW
10042# define LT_DLLAZY_OR_NOW DL_NOW
10043# else
10044# define LT_DLLAZY_OR_NOW 0
10045# endif
10046# endif
10047# endif
10048# endif
10049#endif
10050
1cf3d07d
SE
10051void fnord() { int i=42;}
10052int main ()
10053{
10054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10055 int status = $lt_dlunknown;
10056
10057 if (self)
10058 {
10059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10061 /* dlclose (self); */
10062 }
10063 else
10064 puts (dlerror ());
10065
18d98188 10066 return status;
1cf3d07d
SE
10067}
10068_LT_EOF
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
a8aea176 10071 ac_status=$?
a8aea176 10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10073 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10074 (./conftest; exit; ) >&5 2>/dev/null
10075 lt_status=$?
10076 case x$lt_status in
10077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10079 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10080 esac
10081 else :
10082 # compilation failed
10083 lt_cv_dlopen_self=no
a8aea176 10084 fi
a8aea176 10085fi
1cf3d07d
SE
10086rm -fr conftest*
10087
a8aea176 10088
a8aea176 10089fi
1cf3d07d
SE
10090echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10091echo "${ECHO_T}$lt_cv_dlopen_self" >&6
a8aea176 10092
1cf3d07d
SE
10093 if test "x$lt_cv_dlopen_self" = xyes; then
10094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10095 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10096echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10097if test "${lt_cv_dlopen_self_static+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 if test "$cross_compiling" = yes; then :
10101 lt_cv_dlopen_self_static=cross
10102else
10103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10104 lt_status=$lt_dlunknown
10105 cat > conftest.$ac_ext <<_LT_EOF
18d98188 10106#line 10106 "configure"
1cf3d07d
SE
10107#include "confdefs.h"
10108
10109#if HAVE_DLFCN_H
10110#include <dlfcn.h>
10111#endif
10112
10113#include <stdio.h>
10114
10115#ifdef RTLD_GLOBAL
10116# define LT_DLGLOBAL RTLD_GLOBAL
10117#else
10118# ifdef DL_GLOBAL
10119# define LT_DLGLOBAL DL_GLOBAL
10120# else
10121# define LT_DLGLOBAL 0
10122# endif
10123#endif
10124
10125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10126 find out it does not work in some platform. */
10127#ifndef LT_DLLAZY_OR_NOW
10128# ifdef RTLD_LAZY
10129# define LT_DLLAZY_OR_NOW RTLD_LAZY
10130# else
10131# ifdef DL_LAZY
10132# define LT_DLLAZY_OR_NOW DL_LAZY
10133# else
10134# ifdef RTLD_NOW
10135# define LT_DLLAZY_OR_NOW RTLD_NOW
10136# else
10137# ifdef DL_NOW
10138# define LT_DLLAZY_OR_NOW DL_NOW
10139# else
10140# define LT_DLLAZY_OR_NOW 0
10141# endif
10142# endif
10143# endif
10144# endif
10145#endif
10146
1cf3d07d
SE
10147void fnord() { int i=42;}
10148int main ()
10149{
10150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10151 int status = $lt_dlunknown;
10152
10153 if (self)
10154 {
10155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10156 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10157 /* dlclose (self); */
10158 }
10159 else
10160 puts (dlerror ());
10161
18d98188 10162 return status;
1cf3d07d
SE
10163}
10164_LT_EOF
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>&5
a8aea176 10167 ac_status=$?
a8aea176 10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10169 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10170 (./conftest; exit; ) >&5 2>/dev/null
10171 lt_status=$?
10172 case x$lt_status in
10173 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10174 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10175 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10176 esac
10177 else :
10178 # compilation failed
10179 lt_cv_dlopen_self_static=no
a8aea176 10180 fi
a8aea176 10181fi
1cf3d07d
SE
10182rm -fr conftest*
10183
a8aea176 10184
dfac8a13 10185fi
1cf3d07d
SE
10186echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10187echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10188 fi
a8aea176 10189
1cf3d07d
SE
10190 CPPFLAGS="$save_CPPFLAGS"
10191 LDFLAGS="$save_LDFLAGS"
10192 LIBS="$save_LIBS"
10193 ;;
10194 esac
10195
10196 case $lt_cv_dlopen_self in
10197 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10198 *) enable_dlopen_self=unknown ;;
10199 esac
10200
10201 case $lt_cv_dlopen_self_static in
10202 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10203 *) enable_dlopen_self_static=unknown ;;
10204 esac
10205fi
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223striplib=
10224old_striplib=
10225echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10226echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10227if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10228 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10229 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10230 echo "$as_me:$LINENO: result: yes" >&5
10231echo "${ECHO_T}yes" >&6
dfac8a13 10232else
1cf3d07d
SE
10233# FIXME - insert some real tests, host_os isn't really good enough
10234 case $host_os in
10235 darwin*)
10236 if test -n "$STRIP" ; then
10237 striplib="$STRIP -x"
10238 old_striplib="$STRIP -S"
10239 echo "$as_me:$LINENO: result: yes" >&5
10240echo "${ECHO_T}yes" >&6
10241 else
10242 echo "$as_me:$LINENO: result: no" >&5
10243echo "${ECHO_T}no" >&6
10244 fi
10245 ;;
10246 *)
10247 echo "$as_me:$LINENO: result: no" >&5
10248echo "${ECHO_T}no" >&6
10249 ;;
10250 esac
dfac8a13 10251fi
a8aea176 10252
1cf3d07d
SE
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 # Report which library types will actually be built
10265 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10266echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10267 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10268echo "${ECHO_T}$can_build_shared" >&6
10269
10270 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10271echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10272 test "$can_build_shared" = "no" && enable_shared=no
10273
10274 # On AIX, shared libraries and static libraries use the same namespace, and
10275 # are all built from PIC.
10276 case $host_os in
10277 aix3*)
10278 test "$enable_shared" = yes && enable_static=no
10279 if test -n "$RANLIB"; then
10280 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10281 postinstall_cmds='$RANLIB $lib'
10282 fi
10283 ;;
10284
3e7b7e2b 10285 aix[4-9]*)
1cf3d07d
SE
10286 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10287 test "$enable_shared" = yes && enable_static=no
10288 fi
10289 ;;
10290 esac
10291 echo "$as_me:$LINENO: result: $enable_shared" >&5
10292echo "${ECHO_T}$enable_shared" >&6
10293
10294 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10295echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10296 # Make sure either enable_shared or enable_static is yes.
10297 test "$enable_shared" = yes || enable_static=yes
10298 echo "$as_me:$LINENO: result: $enable_static" >&5
10299echo "${ECHO_T}$enable_static" >&6
10300
10301
10302
10303
10304fi
a8aea176
NN
10305ac_ext=c
10306ac_cpp='$CPP $CPPFLAGS'
10307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10309ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 10310
1cf3d07d 10311CC="$lt_save_CC"
35241f18 10312
35241f18 10313
35241f18 10314
35241f18
CD
10315
10316
a8aea176 10317
dfac8a13 10318
dfac8a13 10319
1cf3d07d
SE
10320
10321
10322
10323
10324
10325 ac_config_commands="$ac_config_commands libtool"
10326
10327
10328
10329
10330# Only expand once:
10331
10332
10333
10334# Find CPP now so that any conditional tests below won't do it and
10335# thereby make the resulting definitions conditional.
10336ac_ext=c
10337ac_cpp='$CPP $CPPFLAGS'
10338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10340ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10342echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10343# On Suns, sometimes $CPP names a directory.
10344if test -n "$CPP" && test -d "$CPP"; then
10345 CPP=
10346fi
10347if test -z "$CPP"; then
10348 if test "${ac_cv_prog_CPP+set}" = set; then
a8aea176
NN
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
1cf3d07d
SE
10351 # Double quotes because CPP needs to be expanded
10352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10353 do
10354 ac_preproc_ok=false
10355for ac_c_preproc_warn_flag in '' yes
10356do
10357 # Use a header file that comes with gcc, so configuring glibc
10358 # with a fresh cross-compiler works.
10359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360 # <limits.h> exists even on freestanding compilers.
10361 # On the NeXT, cc -E runs the code through the compiler's parser,
10362 # not just through cpp. "Syntax error" is here to catch this case.
a8aea176
NN
10363 cat >conftest.$ac_ext <<_ACEOF
10364/* confdefs.h. */
10365_ACEOF
10366cat confdefs.h >>conftest.$ac_ext
10367cat >>conftest.$ac_ext <<_ACEOF
10368/* end confdefs.h. */
1cf3d07d
SE
10369#ifdef __STDC__
10370# include <limits.h>
10371#else
10372# include <assert.h>
10373#endif
10374 Syntax error
a8aea176 10375_ACEOF
1cf3d07d
SE
10376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176
NN
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10383 (exit $ac_status); } >/dev/null; then
10384 if test -s conftest.err; then
10385 ac_cpp_err=$ac_c_preproc_warn_flag
10386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10387 else
10388 ac_cpp_err=
10389 fi
10390else
10391 ac_cpp_err=yes
10392fi
10393if test -z "$ac_cpp_err"; then
10394 :
c45f211e 10395else
a8aea176
NN
10396 echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
10398
1cf3d07d
SE
10399 # Broken: fails on valid input.
10400continue
a8aea176 10401fi
1cf3d07d 10402rm -f conftest.err conftest.$ac_ext
a8aea176 10403
1cf3d07d
SE
10404 # OK, works on sane cases. Now check whether non-existent headers
10405 # can be detected and how.
a8aea176
NN
10406 cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
1cf3d07d 10412#include <ac_nonexistent.h>
a8aea176 10413_ACEOF
1cf3d07d
SE
10414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null; then
10422 if test -s conftest.err; then
10423 ac_cpp_err=$ac_c_preproc_warn_flag
10424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10425 else
10426 ac_cpp_err=
10427 fi
a8aea176 10428else
1cf3d07d 10429 ac_cpp_err=yes
dfac8a13 10430fi
1cf3d07d
SE
10431if test -z "$ac_cpp_err"; then
10432 # Broken: success on invalid input.
10433continue
10434else
10435 echo "$as_me: failed program was:" >&5
10436sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 10437
1cf3d07d
SE
10438 # Passes both tests.
10439ac_preproc_ok=:
10440break
c45f211e 10441fi
1cf3d07d 10442rm -f conftest.err conftest.$ac_ext
c45f211e 10443
1cf3d07d
SE
10444done
10445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446rm -f conftest.err conftest.$ac_ext
10447if $ac_preproc_ok; then
10448 break
c45f211e 10449fi
a8aea176 10450
1cf3d07d
SE
10451 done
10452 ac_cv_prog_CPP=$CPP
a8aea176 10453
1cf3d07d
SE
10454fi
10455 CPP=$ac_cv_prog_CPP
a8aea176 10456else
1cf3d07d
SE
10457 ac_cv_prog_CPP=$CPP
10458fi
10459echo "$as_me:$LINENO: result: $CPP" >&5
10460echo "${ECHO_T}$CPP" >&6
10461ac_preproc_ok=false
10462for ac_c_preproc_warn_flag in '' yes
10463do
10464 # Use a header file that comes with gcc, so configuring glibc
10465 # with a fresh cross-compiler works.
10466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467 # <limits.h> exists even on freestanding compilers.
10468 # On the NeXT, cc -E runs the code through the compiler's parser,
10469 # not just through cpp. "Syntax error" is here to catch this case.
a8aea176
NN
10470 cat >conftest.$ac_ext <<_ACEOF
10471/* confdefs.h. */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h. */
1cf3d07d
SE
10476#ifdef __STDC__
10477# include <limits.h>
a8aea176 10478#else
1cf3d07d 10479# include <assert.h>
a8aea176 10480#endif
1cf3d07d 10481 Syntax error
a8aea176 10482_ACEOF
1cf3d07d
SE
10483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176 10485 ac_status=$?
1cf3d07d
SE
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
a8aea176 10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10490 (exit $ac_status); } >/dev/null; then
10491 if test -s conftest.err; then
10492 ac_cpp_err=$ac_c_preproc_warn_flag
10493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10494 else
10495 ac_cpp_err=
10496 fi
10497else
10498 ac_cpp_err=yes
10499fi
10500if test -z "$ac_cpp_err"; then
a8aea176
NN
10501 :
10502else
1cf3d07d 10503 echo "$as_me: failed program was:" >&5
a8aea176
NN
10504sed 's/^/| /' conftest.$ac_ext >&5
10505
1cf3d07d
SE
10506 # Broken: fails on valid input.
10507continue
a8aea176 10508fi
1cf3d07d 10509rm -f conftest.err conftest.$ac_ext
a8aea176 10510
1cf3d07d
SE
10511 # OK, works on sane cases. Now check whether non-existent headers
10512 # can be detected and how.
a8aea176
NN
10513 cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
1cf3d07d 10519#include <ac_nonexistent.h>
a8aea176 10520_ACEOF
1cf3d07d
SE
10521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176
NN
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
1cf3d07d
SE
10528 (exit $ac_status); } >/dev/null; then
10529 if test -s conftest.err; then
10530 ac_cpp_err=$ac_c_preproc_warn_flag
10531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10532 else
10533 ac_cpp_err=
10534 fi
a8aea176 10535else
1cf3d07d 10536 ac_cpp_err=yes
a8aea176 10537fi
1cf3d07d
SE
10538if test -z "$ac_cpp_err"; then
10539 # Broken: success on invalid input.
10540continue
10541else
10542 echo "$as_me: failed program was:" >&5
10543sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 10544
1cf3d07d
SE
10545 # Passes both tests.
10546ac_preproc_ok=:
10547break
a8aea176 10548fi
1cf3d07d 10549rm -f conftest.err conftest.$ac_ext
a8aea176
NN
10550
10551done
1cf3d07d
SE
10552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10553rm -f conftest.err conftest.$ac_ext
10554if $ac_preproc_ok; then
10555 :
10556else
18c04407
RW
10557 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10558echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
10560See \`config.log' for more details." >&5
10561echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10562See \`config.log' for more details." >&2;}
18c04407 10563 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
10564fi
10565
10566ac_ext=c
10567ac_cpp='$CPP $CPPFLAGS'
10568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10570ac_compiler_gnu=$ac_cv_c_compiler_gnu
10571
10572
10573if test -n "$with_cross_host"; then
10574 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10575 # may not work correctly, because the compiler may not be able to
10576 # link executables.
10577
10578 # We assume newlib. This lets us hard-code the functions we know
10579 # we'll have.
10580 cat >>confdefs.h <<\_ACEOF
10581#define HAVE_MEMCPY 1
10582_ACEOF
10583
10584 cat >>confdefs.h <<\_ACEOF
10585#define HAVE_STRERROR 1
10586_ACEOF
a8aea176
NN
10587
10588
1cf3d07d
SE
10589 # We ignore --with-system-zlib in this case.
10590 target_all=libzgcj.la
10591else
10592 if test x$gcc_no_link = xyes; then
10593 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10594 ac_cv_func_mmap_fixed_mapped=no
10595 fi
10596fi
10597if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
a8aea176
NN
10598
10599
10600for ac_header in stdlib.h unistd.h
10601do
10602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603if eval "test \"\${$as_ac_Header+set}\" = set"; then
10604 echo "$as_me:$LINENO: checking for $ac_header" >&5
10605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10606if eval "test \"\${$as_ac_Header+set}\" = set"; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608fi
10609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611else
10612 # Is the header compilable?
10613echo "$as_me:$LINENO: checking $ac_header usability" >&5
10614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10615cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h. */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h. */
10621$ac_includes_default
10622#include <$ac_header>
10623_ACEOF
10624rm -f conftest.$ac_objext
10625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
17210dff
TT
10633 { ac_try='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
a8aea176
NN
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_header_compiler=yes
10647else
10648 echo "$as_me: failed program was:" >&5
10649sed 's/^/| /' conftest.$ac_ext >&5
10650
10651ac_header_compiler=no
10652fi
10653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10655echo "${ECHO_T}$ac_header_compiler" >&6
10656
10657# Is the header present?
10658echo "$as_me:$LINENO: checking $ac_header presence" >&5
10659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10660cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
10666#include <$ac_header>
10667_ACEOF
10668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } >/dev/null; then
10676 if test -s conftest.err; then
10677 ac_cpp_err=$ac_c_preproc_warn_flag
10678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10679 else
10680 ac_cpp_err=
10681 fi
10682else
10683 ac_cpp_err=yes
10684fi
10685if test -z "$ac_cpp_err"; then
10686 ac_header_preproc=yes
10687else
10688 echo "$as_me: failed program was:" >&5
10689sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_header_preproc=no
10692fi
10693rm -f conftest.err conftest.$ac_ext
10694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695echo "${ECHO_T}$ac_header_preproc" >&6
10696
10697# So? What about this header?
10698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10699 yes:no: )
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10704 ac_header_preproc=yes
10705 ;;
10706 no:yes:* )
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10719 (
10720 cat <<\_ASBOX
10721## ------------------------------------------ ##
10722## Report this to the AC_PACKAGE_NAME lists. ##
10723## ------------------------------------------ ##
10724_ASBOX
10725 ) |
10726 sed "s/^/$as_me: WARNING: /" >&2
10727 ;;
10728esac
10729echo "$as_me:$LINENO: checking for $ac_header" >&5
10730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10731if eval "test \"\${$as_ac_Header+set}\" = set"; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734 eval "$as_ac_Header=\$ac_header_preproc"
10735fi
10736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10738
10739fi
10740if test `eval echo '${'$as_ac_Header'}'` = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10743_ACEOF
10744
10745fi
10746
10747done
10748
10749
10750for ac_func in getpagesize
10751do
10752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753echo "$as_me:$LINENO: checking for $ac_func" >&5
10754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755if eval "test \"\${$as_ac_var+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 if test x$gcc_no_link = xyes; then
10759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10760echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10761 { (exit 1); exit 1; }; }
10762fi
10763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h. */
10769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771#define $ac_func innocuous_$ac_func
10772
10773/* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10777
10778#ifdef __STDC__
10779# include <limits.h>
10780#else
10781# include <assert.h>
10782#endif
10783
10784#undef $ac_func
10785
10786/* Override any gcc2 internal prototype to avoid an error. */
10787#ifdef __cplusplus
10788extern "C"
10789{
10790#endif
10791/* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10793char $ac_func ();
10794/* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10798choke me
10799#else
10800char (*f) () = $ac_func;
10801#endif
10802#ifdef __cplusplus
10803}
10804#endif
10805
10806int
10807main ()
10808{
10809return f != $ac_func;
10810 ;
10811 return 0;
10812}
10813_ACEOF
10814rm -f conftest.$ac_objext conftest$ac_exeext
10815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
17210dff
TT
10823 { ac_try='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
a8aea176
NN
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 eval "$as_ac_var=yes"
10837else
10838 echo "$as_me: failed program was:" >&5
10839sed 's/^/| /' conftest.$ac_ext >&5
10840
10841eval "$as_ac_var=no"
10842fi
10843rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845fi
10846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10848if test `eval echo '${'$as_ac_var'}'` = yes; then
10849 cat >>confdefs.h <<_ACEOF
10850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10851_ACEOF
10852
10853fi
10854done
10855
10856echo "$as_me:$LINENO: checking for working mmap" >&5
10857echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10858if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
10860else
10861 if test "$cross_compiling" = yes; then
10862 ac_cv_func_mmap_fixed_mapped=no
10863else
a8aea176
NN
10864 cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870$ac_includes_default
10871/* malloc might have been renamed as rpl_malloc. */
10872#undef malloc
dfac8a13
TT
10873
10874/* Thanks to Mike Haertel and Jim Avera for this test.
10875 Here is a matrix of mmap possibilities:
10876 mmap private not fixed
10877 mmap private fixed at somewhere currently unmapped
10878 mmap private fixed at somewhere already mapped
10879 mmap shared not fixed
10880 mmap shared fixed at somewhere currently unmapped
10881 mmap shared fixed at somewhere already mapped
10882 For private mappings, we should verify that changes cannot be read()
10883 back from the file, nor mmap's back from the file at a different
10884 address. (There have been systems where private was not correctly
10885 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 10886 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
10887 like early versions of FreeBSD and possibly contemporary NetBSD.)
10888 For shared mappings, we should conversely verify that changes get
a8aea176 10889 propagated back to all the places they're supposed to be.
c45f211e 10890
dfac8a13
TT
10891 Grep wants private fixed already mapped.
10892 The main things grep needs to know about mmap are:
10893 * does it exist and is it safe to write into the mmap'd area
10894 * how to use it (BSD variants) */
a8aea176 10895
dfac8a13 10896#include <fcntl.h>
c45f211e 10897#include <sys/mman.h>
dfac8a13 10898
a8aea176
NN
10899#if !STDC_HEADERS && !HAVE_STDLIB_H
10900char *malloc ();
10901#endif
dfac8a13 10902
a8aea176
NN
10903/* This mess was copied from the GNU getpagesize.h. */
10904#if !HAVE_GETPAGESIZE
dfac8a13 10905/* Assume that all systems that can run configure have sys/param.h. */
a8aea176 10906# if !HAVE_SYS_PARAM_H
dfac8a13
TT
10907# define HAVE_SYS_PARAM_H 1
10908# endif
10909
10910# ifdef _SC_PAGESIZE
10911# define getpagesize() sysconf(_SC_PAGESIZE)
10912# else /* no _SC_PAGESIZE */
a8aea176 10913# if HAVE_SYS_PARAM_H
dfac8a13
TT
10914# include <sys/param.h>
10915# ifdef EXEC_PAGESIZE
10916# define getpagesize() EXEC_PAGESIZE
10917# else /* no EXEC_PAGESIZE */
10918# ifdef NBPG
10919# define getpagesize() NBPG * CLSIZE
10920# ifndef CLSIZE
10921# define CLSIZE 1
10922# endif /* no CLSIZE */
10923# else /* no NBPG */
10924# ifdef NBPC
10925# define getpagesize() NBPC
10926# else /* no NBPC */
10927# ifdef PAGESIZE
10928# define getpagesize() PAGESIZE
10929# endif /* PAGESIZE */
10930# endif /* no NBPC */
10931# endif /* no NBPG */
10932# endif /* no EXEC_PAGESIZE */
10933# else /* no HAVE_SYS_PARAM_H */
10934# define getpagesize() 8192 /* punt totally */
10935# endif /* no HAVE_SYS_PARAM_H */
10936# endif /* no _SC_PAGESIZE */
10937
10938#endif /* no HAVE_GETPAGESIZE */
10939
dfac8a13 10940int
a8aea176 10941main ()
dfac8a13 10942{
a8aea176
NN
10943 char *data, *data2, *data3;
10944 int i, pagesize;
10945 int fd;
10946
10947 pagesize = getpagesize ();
10948
10949 /* First, make a file with some known garbage in it. */
10950 data = (char *) malloc (pagesize);
10951 if (!data)
10952 exit (1);
10953 for (i = 0; i < pagesize; ++i)
10954 *(data + i) = rand ();
10955 umask (0);
10956 fd = creat ("conftest.mmap", 0600);
10957 if (fd < 0)
10958 exit (1);
10959 if (write (fd, data, pagesize) != pagesize)
10960 exit (1);
10961 close (fd);
10962
10963 /* Next, try to mmap the file at a fixed address which already has
10964 something else allocated at it. If we can, also make sure that
10965 we see the same garbage. */
10966 fd = open ("conftest.mmap", O_RDWR);
10967 if (fd < 0)
10968 exit (1);
10969 data2 = (char *) malloc (2 * pagesize);
10970 if (!data2)
10971 exit (1);
10972 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10973 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10974 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10975 exit (1);
10976 for (i = 0; i < pagesize; ++i)
10977 if (*(data + i) != *(data2 + i))
10978 exit (1);
10979
10980 /* Finally, make sure that changes to the mapped area do not
10981 percolate back to the file as seen by read(). (This is a bug on
10982 some variants of i386 svr4.0.) */
10983 for (i = 0; i < pagesize; ++i)
10984 *(data2 + i) = *(data2 + i) + 1;
10985 data3 = (char *) malloc (pagesize);
10986 if (!data3)
10987 exit (1);
10988 if (read (fd, data3, pagesize) != pagesize)
10989 exit (1);
10990 for (i = 0; i < pagesize; ++i)
10991 if (*(data + i) != *(data3 + i))
10992 exit (1);
10993 close (fd);
10994 exit (0);
c45f211e 10995}
a8aea176
NN
10996_ACEOF
10997rm -f conftest$ac_exeext
10998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
dfac8a13
TT
11008 ac_cv_func_mmap_fixed_mapped=yes
11009else
a8aea176
NN
11010 echo "$as_me: program exited with status $ac_status" >&5
11011echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
11014( exit $ac_status )
11015ac_cv_func_mmap_fixed_mapped=no
dfac8a13 11016fi
a8aea176 11017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
dfac8a13 11018fi
dfac8a13 11019fi
a8aea176
NN
11020echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11021echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
dfac8a13 11022if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176
NN
11023
11024cat >>confdefs.h <<\_ACEOF
dfac8a13 11025#define HAVE_MMAP 1
a8aea176 11026_ACEOF
dfac8a13
TT
11027
11028fi
a8aea176 11029rm -f conftest.mmap
dfac8a13 11030
a8aea176
NN
11031fi
11032
11033
11034for ac_func in memcpy strerror
dfac8a13 11035do
a8aea176
NN
11036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037echo "$as_me:$LINENO: checking for $ac_func" >&5
11038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11039if eval "test \"\${$as_ac_var+set}\" = set"; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041else
11042 if test x$gcc_no_link = xyes; then
11043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11044echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11045 { (exit 1); exit 1; }; }
11046fi
11047cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
11053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055#define $ac_func innocuous_$ac_func
11056
dfac8a13 11057/* System header to define __stub macros and hopefully few prototypes,
a8aea176
NN
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11061
11062#ifdef __STDC__
11063# include <limits.h>
11064#else
11065# include <assert.h>
11066#endif
dfac8a13 11067
a8aea176 11068#undef $ac_func
dfac8a13 11069
a8aea176
NN
11070/* Override any gcc2 internal prototype to avoid an error. */
11071#ifdef __cplusplus
11072extern "C"
11073{
11074#endif
11075/* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077char $ac_func ();
dfac8a13
TT
11078/* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082choke me
11083#else
a8aea176
NN
11084char (*f) () = $ac_func;
11085#endif
11086#ifdef __cplusplus
11087}
dfac8a13
TT
11088#endif
11089
a8aea176
NN
11090int
11091main ()
11092{
11093return f != $ac_func;
11094 ;
11095 return 0;
11096}
11097_ACEOF
11098rm -f conftest.$ac_objext conftest$ac_exeext
11099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
17210dff
TT
11107 { ac_try='test -z "$ac_c_werror_flag"
11108 || test ! -s conftest.err'
a8aea176
NN
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest$ac_exeext'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 eval "$as_ac_var=yes"
dfac8a13 11121else
a8aea176
NN
11122 echo "$as_me: failed program was:" >&5
11123sed 's/^/| /' conftest.$ac_ext >&5
11124
11125eval "$as_ac_var=no"
dfac8a13 11126fi
a8aea176
NN
11127rm -f conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
dfac8a13 11129fi
a8aea176
NN
11130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11132if test `eval echo '${'$as_ac_var'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135_ACEOF
dfac8a13 11136
dfac8a13
TT
11137fi
11138done
11139
79a9a529
TT
11140
11141 if test "$with_system_zlib" = yes; then
a8aea176
NN
11142 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11143echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
11144if test "${ac_cv_lib_z_deflate+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
79a9a529 11146else
a8aea176 11147 ac_check_lib_save_LIBS=$LIBS
79a9a529 11148LIBS="-lz $LIBS"
a8aea176
NN
11149if test x$gcc_no_link = xyes; then
11150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11151echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11152 { (exit 1); exit 1; }; }
11153fi
11154cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160
79a9a529 11161/* Override any gcc2 internal prototype to avoid an error. */
a8aea176
NN
11162#ifdef __cplusplus
11163extern "C"
11164#endif
79a9a529 11165/* We use char because int might match the return type of a gcc2
a8aea176
NN
11166 builtin and then its argument prototype would still apply. */
11167char deflate ();
11168int
11169main ()
11170{
11171deflate ();
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext conftest$ac_exeext
11177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
17210dff
TT
11185 { ac_try='test -z "$ac_c_werror_flag"
11186 || test ! -s conftest.err'
a8aea176
NN
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; } &&
11192 { ac_try='test -s conftest$ac_exeext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_cv_lib_z_deflate=yes
79a9a529 11199else
a8aea176
NN
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
79a9a529 11202
a8aea176
NN
11203ac_cv_lib_z_deflate=no
11204fi
11205rm -f conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207LIBS=$ac_check_lib_save_LIBS
79a9a529 11208fi
a8aea176
NN
11209echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11210echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
11211if test $ac_cv_lib_z_deflate = yes; then
79a9a529
TT
11212 target_all=
11213else
a8aea176 11214 target_all=libzgcj.la
79a9a529
TT
11215fi
11216
11217 else
11218 target_all=libzgcj.la
11219 fi
11220fi
11221
11222
dfac8a13 11223
a8aea176
NN
11224
11225for ac_header in unistd.h
dfac8a13 11226do
a8aea176
NN
11227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228if eval "test \"\${$as_ac_Header+set}\" = set"; then
11229 echo "$as_me:$LINENO: checking for $ac_header" >&5
11230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11231if eval "test \"\${$as_ac_Header+set}\" = set"; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233fi
11234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dfac8a13 11236else
a8aea176
NN
11237 # Is the header compilable?
11238echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11240cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246$ac_includes_default
11247#include <$ac_header>
11248_ACEOF
11249rm -f conftest.$ac_objext
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
17210dff
TT
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
a8aea176
NN
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_header_compiler=yes
11272else
11273 echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
11276ac_header_compiler=no
11277fi
11278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11280echo "${ECHO_T}$ac_header_compiler" >&6
11281
11282# Is the header present?
11283echo "$as_me:$LINENO: checking $ac_header presence" >&5
11284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11285cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291#include <$ac_header>
11292_ACEOF
11293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } >/dev/null; then
11301 if test -s conftest.err; then
11302 ac_cpp_err=$ac_c_preproc_warn_flag
11303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11304 else
11305 ac_cpp_err=
11306 fi
11307else
11308 ac_cpp_err=yes
dfac8a13 11309fi
a8aea176
NN
11310if test -z "$ac_cpp_err"; then
11311 ac_header_preproc=yes
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 ac_header_preproc=no
11317fi
11318rm -f conftest.err conftest.$ac_ext
11319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320echo "${ECHO_T}$ac_header_preproc" >&6
11321
11322# So? What about this header?
11323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 yes:no: )
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11330 ;;
11331 no:yes:* )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 (
11345 cat <<\_ASBOX
11346## ------------------------------------------ ##
11347## Report this to the AC_PACKAGE_NAME lists. ##
11348## ------------------------------------------ ##
11349_ASBOX
11350 ) |
11351 sed "s/^/$as_me: WARNING: /" >&2
11352 ;;
11353esac
11354echo "$as_me:$LINENO: checking for $ac_header" >&5
11355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11356if eval "test \"\${$as_ac_Header+set}\" = set"; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 11358else
a8aea176 11359 eval "$as_ac_Header=\$ac_header_preproc"
dfac8a13 11360fi
a8aea176
NN
11361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11363
11364fi
11365if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368_ACEOF
11369
11370fi
11371
dfac8a13
TT
11372done
11373
11374
0ccf2c33
AO
11375if test -n "$with_cross_host" &&
11376 test x"$with_cross_host" != x"no"; then
11377 toolexecdir='$(exec_prefix)/$(target_alias)'
11378 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 11379else
0ccf2c33
AO
11380 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11381 toolexeclibdir='$(libdir)'
b48ed568 11382fi
905280ac
AO
11383if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11384 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
11385 case $multiosdir in
11386 /.) multiosdir= ;; # Avoid trailing /.
11387 esac
905280ac
AO
11388else
11389 multiosdir=
11390fi
11391toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
11392
11393
11394
b48ed568 11395
e093c992
AG
11396
11397if test -n "$with_target_subdir"; then
11398 TARGET_LIBRARY_TRUE=
11399 TARGET_LIBRARY_FALSE='#'
11400else
11401 TARGET_LIBRARY_TRUE='#'
11402 TARGET_LIBRARY_FALSE=
11403fi
11404
9fabf579 11405
dfac8a13
TT
11406if test "${multilib}" = "yes"; then
11407 multilib_arg="--enable-multilib"
11408else
11409 multilib_arg=
11410fi
11411
a8aea176
NN
11412 ac_config_files="$ac_config_files Makefile"
11413
a8aea176 11414cat >confcache <<\_ACEOF
dfac8a13
TT
11415# This file is a shell script that caches the results of configure
11416# tests run on this system so they can be shared between configure
a8aea176
NN
11417# scripts and configure runs, see configure's option --config-cache.
11418# It is not useful on other systems. If it contains results you don't
11419# want to keep, you may remove or edit it.
dfac8a13 11420#
a8aea176
NN
11421# config.status only pays attention to the cache file if you give it
11422# the --recheck option to rerun configure.
dfac8a13 11423#
a8aea176
NN
11424# `ac_cv_env_foo' variables (set or unset) will be overridden when
11425# loading this file, other *unset* `ac_cv_foo' will be assigned the
11426# following values.
11427
11428_ACEOF
11429
dfac8a13
TT
11430# The following way of writing the cache mishandles newlines in values,
11431# but we know of no workaround that is simple, portable, and efficient.
11432# So, don't put newlines in cache variables' values.
11433# Ultrix sh set writes to stderr and can't be redirected directly,
11434# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
11435{
11436 (set) 2>&1 |
11437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11438 *ac_space=\ *)
11439 # `set' does not quote correctly, so add quotes (double-quote
11440 # substitution turns \\\\ into \\, and sed turns \\ into \).
11441 sed -n \
11442 "s/'/'\\\\''/g;
11443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11444 ;;
11445 *)
11446 # `set' quotes correctly as required by POSIX, so do not add quotes.
11447 sed -n \
11448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11449 ;;
11450 esac;
11451} |
11452 sed '
11453 t clear
11454 : clear
11455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11456 t end
11457 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11458 : end' >>confcache
11459if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 11460 if test -w $cache_file; then
a8aea176
NN
11461 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11462 cat confcache >$cache_file
dfac8a13
TT
11463 else
11464 echo "not updating unwritable cache $cache_file"
11465 fi
11466fi
11467rm -f confcache
11468
dfac8a13
TT
11469test "x$prefix" = xNONE && prefix=$ac_default_prefix
11470# Let make expand exec_prefix.
11471test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11472
a8aea176
NN
11473# VPATH may cause trouble with some makes, so we remove $(srcdir),
11474# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11475# trailing colons and then remove the whole line if VPATH becomes empty
11476# (actually we leave an empty line to preserve line numbers).
dfac8a13 11477if test "x$srcdir" = x.; then
a8aea176
NN
11478 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11479s/:*\$(srcdir):*/:/;
11480s/:*\${srcdir}:*/:/;
11481s/:*@srcdir@:*/:/;
11482s/^\([^=]*=[ ]*\):*/\1/;
11483s/:*$//;
11484s/^[^=]*=[ ]*$//;
11485}'
c45f211e
TT
11486fi
11487
dfac8a13
TT
11488# Transform confdefs.h into DEFS.
11489# Protect against shell expansion while executing Makefile rules.
11490# Protect against Makefile macro expansion.
a8aea176
NN
11491#
11492# If the first sed substitution is executed (which looks for macros that
11493# take arguments), then we branch to the quote section. Otherwise,
11494# look for a macro that doesn't take arguments.
11495cat >confdef2opt.sed <<\_ACEOF
11496t clear
11497: clear
11498s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11499t quote
11500s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11501t quote
11502d
11503: quote
11504s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11505s,\[,\\&,g
11506s,\],\\&,g
11507s,\$,$$,g
11508p
11509_ACEOF
11510# We use echo to avoid assuming a particular line-breaking character.
11511# The extra dot is to prevent the shell from consuming trailing
11512# line-breaks from the sub-command output. A line-break within
11513# single-quotes doesn't work because, if this script is created in a
11514# platform that uses two characters for line-breaks (e.g., DOS), tr
11515# would break.
11516ac_LF_and_DOT=`echo; echo .`
11517DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11518rm -f confdef2opt.sed
11519
11520
11521ac_libobjs=
11522ac_ltlibobjs=
11523for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11524 # 1. Remove the extension, and $U if already installed.
11525 ac_i=`echo "$ac_i" |
11526 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11527 # 2. Add them.
11528 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11529 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11530done
11531LIBOBJS=$ac_libobjs
dfac8a13 11532
a8aea176 11533LTLIBOBJS=$ac_ltlibobjs
dfac8a13 11534
dfac8a13 11535
9fabf579
KC
11536if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11537 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11538Usually this means the macro was only invoked conditionally." >&5
11539echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11540Usually this means the macro was only invoked conditionally." >&2;}
11541 { (exit 1); exit 1; }; }
11542fi
11543if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11544 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11545Usually this means the macro was only invoked conditionally." >&5
11546echo "$as_me: error: conditional \"AMDEP\" was never defined.
11547Usually this means the macro was only invoked conditionally." >&2;}
11548 { (exit 1); exit 1; }; }
11549fi
11550if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11551 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11552Usually this means the macro was only invoked conditionally." >&5
11553echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11554Usually this means the macro was only invoked conditionally." >&2;}
11555 { (exit 1); exit 1; }; }
11556fi
11557if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11558 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
11559Usually this means the macro was only invoked conditionally." >&5
11560echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
11561Usually this means the macro was only invoked conditionally." >&2;}
11562 { (exit 1); exit 1; }; }
11563fi
a8aea176
NN
11564
11565: ${CONFIG_STATUS=./config.status}
11566ac_clean_files_save=$ac_clean_files
11567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11568{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11569echo "$as_me: creating $CONFIG_STATUS" >&6;}
11570cat >$CONFIG_STATUS <<_ACEOF
11571#! $SHELL
11572# Generated by $as_me.
dfac8a13 11573# Run this file to recreate the current configuration.
dfac8a13 11574# Compiler output produced by configure, useful for debugging
a8aea176
NN
11575# configure, is in config.log if it exists.
11576
11577debug=false
11578ac_cs_recheck=false
11579ac_cs_silent=false
11580SHELL=\${CONFIG_SHELL-$SHELL}
11581_ACEOF
11582
11583cat >>$CONFIG_STATUS <<\_ACEOF
11584## --------------------- ##
11585## M4sh Initialization. ##
11586## --------------------- ##
11587
11588# Be Bourne compatible
11589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11590 emulate sh
11591 NULLCMD=:
11592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11593 # is contrary to our usage. Disable this feature.
11594 alias -g '${1+"$@"}'='"$@"'
11595elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11596 set -o posix
11597fi
11598DUALCASE=1; export DUALCASE # for MKS sh
11599
11600# Support unset when possible.
11601if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11602 as_unset=unset
11603else
11604 as_unset=false
11605fi
dfac8a13 11606
a8aea176
NN
11607
11608# Work around bugs in pre-3.0 UWIN ksh.
11609$as_unset ENV MAIL MAILPATH
11610PS1='$ '
11611PS2='> '
11612PS4='+ '
11613
11614# NLS nuisances.
11615for as_var in \
11616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11618 LC_TELEPHONE LC_TIME
dfac8a13 11619do
a8aea176
NN
11620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11621 eval $as_var=C; export $as_var
11622 else
11623 $as_unset $as_var
11624 fi
dfac8a13
TT
11625done
11626
a8aea176
NN
11627# Required to use basename.
11628if expr a : '\(a\)' >/dev/null 2>&1; then
11629 as_expr=expr
11630else
11631 as_expr=false
11632fi
dfac8a13 11633
a8aea176
NN
11634if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11635 as_basename=basename
11636else
11637 as_basename=false
11638fi
11639
11640
11641# Name of the executable.
11642as_me=`$as_basename "$0" ||
11643$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11644 X"$0" : 'X\(//\)$' \| \
11645 X"$0" : 'X\(/\)$' \| \
11646 . : '\(.\)' 2>/dev/null ||
11647echo X/"$0" |
11648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11649 /^X\/\(\/\/\)$/{ s//\1/; q; }
11650 /^X\/\(\/\).*/{ s//\1/; q; }
11651 s/.*/./; q'`
11652
11653
11654# PATH needs CR, and LINENO needs CR and PATH.
11655# Avoid depending upon Character Ranges.
11656as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11657as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11658as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11659as_cr_digits='0123456789'
11660as_cr_alnum=$as_cr_Letters$as_cr_digits
11661
11662# The user is always right.
11663if test "${PATH_SEPARATOR+set}" != set; then
11664 echo "#! /bin/sh" >conf$$.sh
11665 echo "exit 0" >>conf$$.sh
11666 chmod +x conf$$.sh
11667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11668 PATH_SEPARATOR=';'
11669 else
11670 PATH_SEPARATOR=:
11671 fi
11672 rm -f conf$$.sh
11673fi
dfac8a13 11674
dfac8a13 11675
a8aea176
NN
11676 as_lineno_1=$LINENO
11677 as_lineno_2=$LINENO
11678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11679 test "x$as_lineno_1" != "x$as_lineno_2" &&
11680 test "x$as_lineno_3" = "x$as_lineno_2" || {
11681 # Find who we are. Look in the path if we contain no path at all
11682 # relative or not.
11683 case $0 in
11684 *[\\/]* ) as_myself=$0 ;;
11685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11691done
dfac8a13 11692
a8aea176
NN
11693 ;;
11694 esac
11695 # We did not find ourselves, most probably we were run as `sh COMMAND'
11696 # in which case we are not to be found in the path.
11697 if test "x$as_myself" = x; then
11698 as_myself=$0
dfac8a13 11699 fi
a8aea176
NN
11700 if test ! -f "$as_myself"; then
11701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11702echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11703 { (exit 1); exit 1; }; }
dfac8a13 11704 fi
a8aea176
NN
11705 case $CONFIG_SHELL in
11706 '')
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11709do
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for as_base in sh bash ksh sh5; do
11713 case $as_dir in
11714 /*)
11715 if ("$as_dir/$as_base" -c '
11716 as_lineno_1=$LINENO
11717 as_lineno_2=$LINENO
11718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11719 test "x$as_lineno_1" != "x$as_lineno_2" &&
11720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11723 CONFIG_SHELL=$as_dir/$as_base
11724 export CONFIG_SHELL
11725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11726 fi;;
11727 esac
11728 done
dfac8a13 11729done
a8aea176
NN
11730;;
11731 esac
dfac8a13 11732
a8aea176
NN
11733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11734 # uniformly replaced by the line number. The first 'sed' inserts a
11735 # line-number line before each line; the second 'sed' does the real
11736 # work. The second script uses 'N' to pair each line-number line
11737 # with the numbered line, and appends trailing '-' during
11738 # substitution so that $LINENO is not a special case at line end.
11739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11741 sed '=' <$as_myself |
11742 sed '
11743 N
11744 s,$,-,
11745 : loop
11746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11747 t loop
11748 s,-$,,
11749 s,^['$as_cr_digits']*\n,,
11750 ' >$as_me.lineno &&
11751 chmod +x $as_me.lineno ||
11752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11753echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11754 { (exit 1); exit 1; }; }
11755
11756 # Don't try to exec as it changes $[0], causing all sort of problems
11757 # (the dirname of $[0] is not the place where we might find the
11758 # original and so on. Autoconf is especially sensible to this).
11759 . ./$as_me.lineno
11760 # Exit status is that of the last command.
11761 exit
11762}
dfac8a13 11763
dfac8a13 11764
a8aea176
NN
11765case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11766 *c*,-n*) ECHO_N= ECHO_C='
11767' ECHO_T=' ' ;;
11768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11770esac
dfac8a13 11771
a8aea176
NN
11772if expr a : '\(a\)' >/dev/null 2>&1; then
11773 as_expr=expr
11774else
11775 as_expr=false
11776fi
11777
11778rm -f conf$$ conf$$.exe conf$$.file
11779echo >conf$$.file
11780if ln -s conf$$.file conf$$ 2>/dev/null; then
11781 # We could just check for DJGPP; but this test a) works b) is more generic
11782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11783 if test -f conf$$.exe; then
11784 # Don't use ln at all; we don't have any links
11785 as_ln_s='cp -p'
dfac8a13 11786 else
a8aea176 11787 as_ln_s='ln -s'
dfac8a13 11788 fi
a8aea176
NN
11789elif ln conf$$.file conf$$ 2>/dev/null; then
11790 as_ln_s=ln
11791else
11792 as_ln_s='cp -p'
11793fi
11794rm -f conf$$ conf$$.exe conf$$.file
dfac8a13 11795
a8aea176
NN
11796if mkdir -p . 2>/dev/null; then
11797 as_mkdir_p=:
11798else
11799 test -d ./-p && rmdir ./-p
11800 as_mkdir_p=false
11801fi
11802
11803as_executable_p="test -f"
dfac8a13 11804
a8aea176
NN
11805# Sed expression to map a string onto a valid CPP name.
11806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11807
11808# Sed expression to map a string onto a valid variable name.
11809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11810
11811
11812# IFS
11813# We need space, tab and new line, in precisely that order.
11814as_nl='
11815'
11816IFS=" $as_nl"
11817
11818# CDPATH.
11819$as_unset CDPATH
11820
11821exec 6>&1
11822
11823# Open the log real soon, to keep \$[0] and so on meaningful, and to
11824# report actual input values of CONFIG_FILES etc. instead of their
11825# values after options handling. Logging --version etc. is OK.
11826exec 5>>config.log
11827{
11828 echo
11829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11830## Running $as_me. ##
11831_ASBOX
11832} >&5
11833cat >&5 <<_CSEOF
11834
11835This file was extended by $as_me, which was
11836generated by GNU Autoconf 2.59. Invocation command line was
11837
11838 CONFIG_FILES = $CONFIG_FILES
11839 CONFIG_HEADERS = $CONFIG_HEADERS
11840 CONFIG_LINKS = $CONFIG_LINKS
11841 CONFIG_COMMANDS = $CONFIG_COMMANDS
11842 $ $0 $@
11843
11844_CSEOF
11845echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11846echo >&5
11847_ACEOF
11848
11849# Files that config.status was made for.
11850if test -n "$ac_config_files"; then
11851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11852fi
11853
11854if test -n "$ac_config_headers"; then
11855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11856fi
11857
11858if test -n "$ac_config_links"; then
11859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11860fi
11861
11862if test -n "$ac_config_commands"; then
11863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11864fi
11865
11866cat >>$CONFIG_STATUS <<\_ACEOF
11867
11868ac_cs_usage="\
11869\`$as_me' instantiates files from templates according to the
11870current configuration.
11871
11872Usage: $0 [OPTIONS] [FILE]...
11873
11874 -h, --help print this help, then exit
11875 -V, --version print version number, then exit
11876 -q, --quiet do not print progress messages
11877 -d, --debug don't remove temporary files
11878 --recheck update $as_me by reconfiguring in the same conditions
11879 --file=FILE[:TEMPLATE]
11880 instantiate the configuration file FILE
11881
11882Configuration files:
11883$config_files
11884
11885Configuration commands:
11886$config_commands
11887
11888Report bugs to <bug-autoconf@gnu.org>."
11889_ACEOF
11890
11891cat >>$CONFIG_STATUS <<_ACEOF
11892ac_cs_version="\\
11893config.status
11894configured by $0, generated by GNU Autoconf 2.59,
11895 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11896
11897Copyright (C) 2003 Free Software Foundation, Inc.
11898This config.status script is free software; the Free Software Foundation
11899gives unlimited permission to copy, distribute and modify it."
11900srcdir=$srcdir
11901INSTALL="$INSTALL"
11902_ACEOF
11903
11904cat >>$CONFIG_STATUS <<\_ACEOF
11905# If no file are specified by the user, then we need to provide default
11906# value. By we need to know if files were specified by the user.
11907ac_need_defaults=:
11908while test $# != 0
11909do
11910 case $1 in
11911 --*=*)
11912 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11913 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11914 ac_shift=:
11915 ;;
11916 -*)
11917 ac_option=$1
11918 ac_optarg=$2
11919 ac_shift=shift
11920 ;;
11921 *) # This is not an option, so the user has probably given explicit
11922 # arguments.
11923 ac_option=$1
11924 ac_need_defaults=false;;
dfac8a13
TT
11925 esac
11926
a8aea176
NN
11927 case $ac_option in
11928 # Handling of the options.
11929_ACEOF
11930cat >>$CONFIG_STATUS <<\_ACEOF
11931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11932 ac_cs_recheck=: ;;
11933 --version | --vers* | -V )
11934 echo "$ac_cs_version"; exit 0 ;;
11935 --he | --h)
11936 # Conflict between --help and --header
11937 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11938Try \`$0 --help' for more information." >&5
11939echo "$as_me: error: ambiguous option: $1
11940Try \`$0 --help' for more information." >&2;}
11941 { (exit 1); exit 1; }; };;
11942 --help | --hel | -h )
11943 echo "$ac_cs_usage"; exit 0 ;;
11944 --debug | --d* | -d )
11945 debug=: ;;
11946 --file | --fil | --fi | --f )
11947 $ac_shift
11948 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11949 ac_need_defaults=false;;
11950 --header | --heade | --head | --hea )
11951 $ac_shift
11952 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11953 ac_need_defaults=false;;
11954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11956 ac_cs_silent=: ;;
11957
11958 # This is an error.
11959 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11960Try \`$0 --help' for more information." >&5
11961echo "$as_me: error: unrecognized option: $1
11962Try \`$0 --help' for more information." >&2;}
11963 { (exit 1); exit 1; }; } ;;
11964
11965 *) ac_config_targets="$ac_config_targets $1" ;;
11966
dfac8a13 11967 esac
a8aea176
NN
11968 shift
11969done
dfac8a13 11970
a8aea176
NN
11971ac_configure_extra_args=
11972
11973if $ac_cs_silent; then
11974 exec 6>/dev/null
11975 ac_configure_extra_args="$ac_configure_extra_args --silent"
11976fi
11977
11978_ACEOF
11979cat >>$CONFIG_STATUS <<_ACEOF
11980if \$ac_cs_recheck; then
11981 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11982 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11983fi
11984
11985_ACEOF
11986
11987cat >>$CONFIG_STATUS <<_ACEOF
11988#
11989# INIT-COMMANDS section.
11990#
dfac8a13 11991
076e5443
PB
11992
11993srcdir="$srcdir"
11994host="$host"
11995target="$target"
11996with_multisubdir="$with_multisubdir"
11997with_multisrctop="$with_multisrctop"
11998with_target_subdir="$with_target_subdir"
dfac8a13 11999ac_configure_args="${multilib_arg} ${ac_configure_args}"
076e5443 12000multi_basedir="$multi_basedir"
dfac8a13 12001CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
076e5443
PB
12002CC="$CC"
12003AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a8aea176 12004
1cf3d07d
SE
12005
12006# The HP-UX ksh and POSIX shell print the target directory to stdout
12007# if CDPATH is set.
12008(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12009
12010sed_quote_subst='$sed_quote_subst'
12011double_quote_subst='$double_quote_subst'
12012delay_variable_subst='$delay_variable_subst'
12013macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12014macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12015enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12016enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12017pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12018enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12019host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12020host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12021host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12022build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12023build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12024build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12025SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12026Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12027GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12028EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12029FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12030LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12031NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12032LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12033max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12034ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12035exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12036lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12037lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12038lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12039reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12040reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18d98188 12041OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
12042deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12043file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12044AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12045AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12046STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12047RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12048old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12049old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12050old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12052CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12053compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12054GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12055lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12056lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12057lt_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"`'
18d98188 12058lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
12059objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12060SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12061ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12062MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12063lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12064lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12065lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12066lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12067lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12068need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18d98188
PG
12069DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12070NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12071LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12072OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12073OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
12074libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12075shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12076extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12077archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12078enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12079export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12080whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12081compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12082old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12083old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12084archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12086module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12087module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12088with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12089allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12090no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12091hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12092hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12093hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12094hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12095hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12096hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12097hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12098hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12099inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12100link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12101fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12102always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12103export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12104exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12105include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12106prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12108variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12109need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12110need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12111version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12112runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12113shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12114shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12115libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12116library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12117soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12118postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12119postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12120finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12121finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12122hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12123sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12124sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12125hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12126enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12127enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12128enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12129old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12130striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12131
12132LTCC='$LTCC'
12133LTCFLAGS='$LTCFLAGS'
12134compiler='$compiler_DEFAULT'
12135
12136# Quote evaled strings.
12137for var in SED \
12138GREP \
12139EGREP \
12140FGREP \
12141LD \
12142NM \
12143LN_S \
12144lt_SP2NL \
12145lt_NL2SP \
12146reload_flag \
18d98188 12147OBJDUMP \
1cf3d07d
SE
12148deplibs_check_method \
12149file_magic_cmd \
12150AR \
12151AR_FLAGS \
12152STRIP \
12153RANLIB \
12154CC \
12155CFLAGS \
12156compiler \
12157lt_cv_sys_global_symbol_pipe \
12158lt_cv_sys_global_symbol_to_cdecl \
12159lt_cv_sys_global_symbol_to_c_name_address \
18d98188 12160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
12161SHELL \
12162ECHO \
12163lt_prog_compiler_no_builtin_flag \
12164lt_prog_compiler_wl \
12165lt_prog_compiler_pic \
12166lt_prog_compiler_static \
12167lt_cv_prog_compiler_c_o \
12168need_locks \
18d98188
PG
12169DSYMUTIL \
12170NMEDIT \
12171LIPO \
12172OTOOL \
12173OTOOL64 \
1cf3d07d
SE
12174shrext_cmds \
12175export_dynamic_flag_spec \
12176whole_archive_flag_spec \
12177compiler_needs_object \
12178with_gnu_ld \
12179allow_undefined_flag \
12180no_undefined_flag \
12181hardcode_libdir_flag_spec \
12182hardcode_libdir_flag_spec_ld \
12183hardcode_libdir_separator \
12184fix_srcfile_path \
12185exclude_expsyms \
12186include_expsyms \
12187file_list_spec \
12188variables_saved_for_relink \
12189libname_spec \
12190library_names_spec \
12191soname_spec \
12192finish_eval \
12193old_striplib \
12194striplib; do
12195 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12196 *[\\\\\\\`\\"\\\$]*)
12197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12198 ;;
12199 *)
12200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12201 ;;
12202 esac
12203done
12204
12205# Double-quote double-evaled strings.
12206for var in reload_cmds \
12207old_postinstall_cmds \
12208old_postuninstall_cmds \
12209old_archive_cmds \
12210extract_expsyms_cmds \
12211old_archive_from_new_cmds \
12212old_archive_from_expsyms_cmds \
12213archive_cmds \
12214archive_expsym_cmds \
12215module_cmds \
12216module_expsym_cmds \
12217export_symbols_cmds \
12218prelink_cmds \
12219postinstall_cmds \
12220postuninstall_cmds \
12221finish_cmds \
12222sys_lib_search_path_spec \
12223sys_lib_dlsearch_path_spec; do
12224 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12225 *[\\\\\\\`\\"\\\$]*)
12226 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12227 ;;
12228 *)
12229 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12230 ;;
12231 esac
12232done
12233
12234# Fix-up fallback echo if it was mangled by the above quoting rules.
12235case \$lt_ECHO in
12236*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12237 ;;
12238esac
12239
12240ac_aux_dir='$ac_aux_dir'
12241xsi_shell='$xsi_shell'
12242lt_shell_append='$lt_shell_append'
12243
12244# See if we are running on zsh, and set the options which allow our
12245# commands through without removal of \ escapes INIT.
12246if test -n "\${ZSH_VERSION+set}" ; then
12247 setopt NO_GLOB_SUBST
12248fi
12249
12250
12251 PACKAGE='$PACKAGE'
12252 VERSION='$VERSION'
12253 TIMESTAMP='$TIMESTAMP'
12254 RM='$RM'
12255 ofile='$ofile'
12256
12257
12258
12259
a8aea176
NN
12260_ACEOF
12261
12262
12263
12264cat >>$CONFIG_STATUS <<\_ACEOF
12265for ac_config_target in $ac_config_targets
12266do
12267 case "$ac_config_target" in
12268 # Handling of arguments.
12269 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
076e5443 12270 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9fabf579 12271 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 12272 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
a8aea176
NN
12273 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12274echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12275 { (exit 1); exit 1; }; };;
12276 esac
12277done
12278
12279# If the user did not use the arguments to specify the items to instantiate,
12280# then the envvar interface is used. Set only those that are not.
12281# We use the long form for the default assignment because of an extremely
12282# bizarre bug on SunOS 4.1.3.
12283if $ac_need_defaults; then
12284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12286fi
12287
12288# Have a temporary directory for convenience. Make it in the build tree
12289# simply because there is no reason to put it here, and in addition,
12290# creating and moving files from /tmp can sometimes cause problems.
12291# Create a temporary directory, and hook for its removal unless debugging.
12292$debug ||
12293{
12294 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12295 trap '{ (exit 1); exit 1; }' 1 2 13 15
12296}
12297
12298# Create a (secure) tmp directory for tmp files.
12299
12300{
12301 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12302 test -n "$tmp" && test -d "$tmp"
12303} ||
12304{
12305 tmp=./confstat$$-$RANDOM
12306 (umask 077 && mkdir $tmp)
12307} ||
12308{
12309 echo "$me: cannot create a temporary directory in ." >&2
12310 { (exit 1); exit 1; }
12311}
12312
12313_ACEOF
12314
12315cat >>$CONFIG_STATUS <<_ACEOF
12316
12317#
12318# CONFIG_FILES section.
12319#
12320
12321# No need to generate the scripts if there are no CONFIG_FILES.
12322# This happens for instance when ./config.status config.h
12323if test -n "\$CONFIG_FILES"; then
12324 # Protect against being on the right side of a sed subst in config.status.
12325 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12326 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12327s,@SHELL@,$SHELL,;t t
12328s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12329s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12330s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12331s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12332s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12333s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12334s,@exec_prefix@,$exec_prefix,;t t
12335s,@prefix@,$prefix,;t t
12336s,@program_transform_name@,$program_transform_name,;t t
12337s,@bindir@,$bindir,;t t
12338s,@sbindir@,$sbindir,;t t
12339s,@libexecdir@,$libexecdir,;t t
12340s,@datadir@,$datadir,;t t
12341s,@sysconfdir@,$sysconfdir,;t t
12342s,@sharedstatedir@,$sharedstatedir,;t t
12343s,@localstatedir@,$localstatedir,;t t
12344s,@libdir@,$libdir,;t t
12345s,@includedir@,$includedir,;t t
12346s,@oldincludedir@,$oldincludedir,;t t
12347s,@infodir@,$infodir,;t t
12348s,@mandir@,$mandir,;t t
12349s,@build_alias@,$build_alias,;t t
12350s,@host_alias@,$host_alias,;t t
12351s,@target_alias@,$target_alias,;t t
12352s,@DEFS@,$DEFS,;t t
12353s,@ECHO_C@,$ECHO_C,;t t
12354s,@ECHO_N@,$ECHO_N,;t t
12355s,@ECHO_T@,$ECHO_T,;t t
12356s,@LIBS@,$LIBS,;t t
076e5443 12357s,@multi_basedir@,$multi_basedir,;t t
a8aea176
NN
12358s,@build@,$build,;t t
12359s,@build_cpu@,$build_cpu,;t t
12360s,@build_vendor@,$build_vendor,;t t
12361s,@build_os@,$build_os,;t t
12362s,@host@,$host,;t t
12363s,@host_cpu@,$host_cpu,;t t
12364s,@host_vendor@,$host_vendor,;t t
12365s,@host_os@,$host_os,;t t
12366s,@target@,$target,;t t
12367s,@target_cpu@,$target_cpu,;t t
12368s,@target_vendor@,$target_vendor,;t t
12369s,@target_os@,$target_os,;t t
12370s,@mkinstalldirs@,$mkinstalldirs,;t t
12371s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12372s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12373s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9fabf579 12374s,@CYGPATH_W@,$CYGPATH_W,;t t
a8aea176
NN
12375s,@PACKAGE@,$PACKAGE,;t t
12376s,@VERSION@,$VERSION,;t t
12377s,@ACLOCAL@,$ACLOCAL,;t t
12378s,@AUTOCONF@,$AUTOCONF,;t t
12379s,@AUTOMAKE@,$AUTOMAKE,;t t
12380s,@AUTOHEADER@,$AUTOHEADER,;t t
12381s,@MAKEINFO@,$MAKEINFO,;t t
9fabf579
KC
12382s,@install_sh@,$install_sh,;t t
12383s,@STRIP@,$STRIP,;t t
12384s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12385s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 12386s,@mkdir_p@,$mkdir_p,;t t
9fabf579 12387s,@AWK@,$AWK,;t t
a8aea176 12388s,@SET_MAKE@,$SET_MAKE,;t t
9fabf579 12389s,@am__leading_dot@,$am__leading_dot,;t t
17210dff
TT
12390s,@AMTAR@,$AMTAR,;t t
12391s,@am__tar@,$am__tar,;t t
12392s,@am__untar@,$am__untar,;t t
a8aea176
NN
12393s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12394s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12395s,@MAINT@,$MAINT,;t t
12396s,@COMPPATH@,$COMPPATH,;t t
12397s,@CC@,$CC,;t t
a8aea176
NN
12398s,@ac_ct_CC@,$ac_ct_CC,;t t
12399s,@EXEEXT@,$EXEEXT,;t t
12400s,@OBJEXT@,$OBJEXT,;t t
9fabf579
KC
12401s,@DEPDIR@,$DEPDIR,;t t
12402s,@am__include@,$am__include,;t t
12403s,@am__quote@,$am__quote,;t t
12404s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12405s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12406s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12407s,@CCDEPMODE@,$CCDEPMODE,;t t
12408s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12409s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
076e5443 12410s,@CFLAGS@,$CFLAGS,;t t
1cf3d07d
SE
12411s,@LIBTOOL@,$LIBTOOL,;t t
12412s,@SED@,$SED,;t t
12413s,@EGREP@,$EGREP,;t t
12414s,@FGREP@,$FGREP,;t t
12415s,@GREP@,$GREP,;t t
12416s,@LD@,$LD,;t t
12417s,@DUMPBIN@,$DUMPBIN,;t t
12418s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12419s,@NM@,$NM,;t t
a8aea176 12420s,@LN_S@,$LN_S,;t t
18d98188
PG
12421s,@OBJDUMP@,$OBJDUMP,;t t
12422s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1cf3d07d
SE
12423s,@AR@,$AR,;t t
12424s,@ac_ct_AR@,$ac_ct_AR,;t t
a8aea176
NN
12425s,@RANLIB@,$RANLIB,;t t
12426s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d 12427s,@lt_ECHO@,$lt_ECHO,;t t
18d98188
PG
12428s,@DSYMUTIL@,$DSYMUTIL,;t t
12429s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12430s,@NMEDIT@,$NMEDIT,;t t
12431s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12432s,@LIPO@,$LIPO,;t t
12433s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12434s,@OTOOL@,$OTOOL,;t t
12435s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12436s,@OTOOL64@,$OTOOL64,;t t
12437s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
a8aea176 12438s,@CPP@,$CPP,;t t
076e5443 12439s,@CPPFLAGS@,$CPPFLAGS,;t t
a8aea176
NN
12440s,@target_all@,$target_all,;t t
12441s,@toolexecdir@,$toolexecdir,;t t
12442s,@toolexeclibdir@,$toolexeclibdir,;t t
12443s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
12444s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
12445s,@LIBOBJS@,$LIBOBJS,;t t
12446s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12447CEOF
12448
12449_ACEOF
12450
12451 cat >>$CONFIG_STATUS <<\_ACEOF
12452 # Split the substitutions into bite-sized pieces for seds with
12453 # small command number limits, like on Digital OSF/1 and HP-UX.
12454 ac_max_sed_lines=48
12455 ac_sed_frag=1 # Number of current file.
12456 ac_beg=1 # First line for current file.
12457 ac_end=$ac_max_sed_lines # Line after last line for current file.
12458 ac_more_lines=:
12459 ac_sed_cmds=
12460 while $ac_more_lines; do
12461 if test $ac_beg -gt 1; then
12462 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12463 else
12464 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12465 fi
12466 if test ! -s $tmp/subs.frag; then
12467 ac_more_lines=false
12468 else
12469 # The purpose of the label and of the branching condition is to
12470 # speed up the sed processing (if there are no `@' at all, there
12471 # is no need to browse any of the substitutions).
12472 # These are the two extra sed commands mentioned above.
12473 (echo ':t
12474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12475 if test -z "$ac_sed_cmds"; then
12476 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12477 else
12478 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12479 fi
12480 ac_sed_frag=`expr $ac_sed_frag + 1`
12481 ac_beg=$ac_end
12482 ac_end=`expr $ac_end + $ac_max_sed_lines`
12483 fi
12484 done
12485 if test -z "$ac_sed_cmds"; then
12486 ac_sed_cmds=cat
12487 fi
12488fi # test -n "$CONFIG_FILES"
12489
12490_ACEOF
12491cat >>$CONFIG_STATUS <<\_ACEOF
12492for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12494 case $ac_file in
12495 - | *:- | *:-:* ) # input from stdin
12496 cat >$tmp/stdin
12497 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12499 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12501 * ) ac_file_in=$ac_file.in ;;
12502 esac
12503
12504 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12505 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12506$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12507 X"$ac_file" : 'X\(//\)[^/]' \| \
12508 X"$ac_file" : 'X\(//\)$' \| \
12509 X"$ac_file" : 'X\(/\)' \| \
12510 . : '\(.\)' 2>/dev/null ||
12511echo X"$ac_file" |
12512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12514 /^X\(\/\/\)$/{ s//\1/; q; }
12515 /^X\(\/\).*/{ s//\1/; q; }
12516 s/.*/./; q'`
12517 { if $as_mkdir_p; then
12518 mkdir -p "$ac_dir"
12519 else
12520 as_dir="$ac_dir"
12521 as_dirs=
12522 while test ! -d "$as_dir"; do
12523 as_dirs="$as_dir $as_dirs"
12524 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12525$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12526 X"$as_dir" : 'X\(//\)[^/]' \| \
12527 X"$as_dir" : 'X\(//\)$' \| \
12528 X"$as_dir" : 'X\(/\)' \| \
12529 . : '\(.\)' 2>/dev/null ||
12530echo X"$as_dir" |
12531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12533 /^X\(\/\/\)$/{ s//\1/; q; }
12534 /^X\(\/\).*/{ s//\1/; q; }
12535 s/.*/./; q'`
12536 done
12537 test ! -n "$as_dirs" || mkdir $as_dirs
12538 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12539echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12540 { (exit 1); exit 1; }; }; }
12541
12542 ac_builddir=.
12543
12544if test "$ac_dir" != .; then
12545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12546 # A "../" for each directory in $ac_dir_suffix.
12547 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12548else
12549 ac_dir_suffix= ac_top_builddir=
12550fi
12551
12552case $srcdir in
12553 .) # No --srcdir option. We are building in place.
12554 ac_srcdir=.
12555 if test -z "$ac_top_builddir"; then
12556 ac_top_srcdir=.
12557 else
12558 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12559 fi ;;
12560 [\\/]* | ?:[\\/]* ) # Absolute path.
12561 ac_srcdir=$srcdir$ac_dir_suffix;
12562 ac_top_srcdir=$srcdir ;;
12563 *) # Relative path.
12564 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12565 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12566esac
12567
12568# Do not use `cd foo && pwd` to compute absolute paths, because
12569# the directories may not exist.
12570case `pwd` in
12571.) ac_abs_builddir="$ac_dir";;
12572*)
12573 case "$ac_dir" in
12574 .) ac_abs_builddir=`pwd`;;
12575 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12576 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12577 esac;;
12578esac
12579case $ac_abs_builddir in
12580.) ac_abs_top_builddir=${ac_top_builddir}.;;
12581*)
12582 case ${ac_top_builddir}. in
12583 .) ac_abs_top_builddir=$ac_abs_builddir;;
12584 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12585 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12586 esac;;
12587esac
12588case $ac_abs_builddir in
12589.) ac_abs_srcdir=$ac_srcdir;;
12590*)
12591 case $ac_srcdir in
12592 .) ac_abs_srcdir=$ac_abs_builddir;;
12593 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12594 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12595 esac;;
12596esac
12597case $ac_abs_builddir in
12598.) ac_abs_top_srcdir=$ac_top_srcdir;;
12599*)
12600 case $ac_top_srcdir in
12601 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12602 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12603 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12604 esac;;
12605esac
12606
12607
12608 case $INSTALL in
12609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12610 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12611 esac
12612
17210dff
TT
12613 if test x"$ac_file" != x-; then
12614 { echo "$as_me:$LINENO: creating $ac_file" >&5
12615echo "$as_me: creating $ac_file" >&6;}
12616 rm -f "$ac_file"
12617 fi
a8aea176
NN
12618 # Let's still pretend it is `configure' which instantiates (i.e., don't
12619 # use $as_me), people would be surprised to read:
12620 # /* config.h. Generated by config.status. */
12621 if test x"$ac_file" = x-; then
12622 configure_input=
12623 else
12624 configure_input="$ac_file. "
12625 fi
12626 configure_input=$configure_input"Generated from `echo $ac_file_in |
12627 sed 's,.*/,,'` by configure."
12628
12629 # First look for the input files in the build tree, otherwise in the
12630 # src tree.
12631 ac_file_inputs=`IFS=:
12632 for f in $ac_file_in; do
12633 case $f in
12634 -) echo $tmp/stdin ;;
12635 [\\/$]*)
12636 # Absolute (can't be DOS-style, as IFS=:)
12637 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12638echo "$as_me: error: cannot find input file: $f" >&2;}
12639 { (exit 1); exit 1; }; }
12640 echo "$f";;
12641 *) # Relative
12642 if test -f "$f"; then
12643 # Build tree
12644 echo "$f"
12645 elif test -f "$srcdir/$f"; then
12646 # Source tree
12647 echo "$srcdir/$f"
12648 else
12649 # /dev/null tree
12650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12651echo "$as_me: error: cannot find input file: $f" >&2;}
12652 { (exit 1); exit 1; }; }
12653 fi;;
12654 esac
12655 done` || { (exit 1); exit 1; }
a8aea176
NN
12656_ACEOF
12657cat >>$CONFIG_STATUS <<_ACEOF
12658 sed "$ac_vpsub
12659$extrasub
12660_ACEOF
12661cat >>$CONFIG_STATUS <<\_ACEOF
12662:t
12663/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12664s,@configure_input@,$configure_input,;t t
12665s,@srcdir@,$ac_srcdir,;t t
12666s,@abs_srcdir@,$ac_abs_srcdir,;t t
12667s,@top_srcdir@,$ac_top_srcdir,;t t
12668s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12669s,@builddir@,$ac_builddir,;t t
12670s,@abs_builddir@,$ac_abs_builddir,;t t
12671s,@top_builddir@,$ac_top_builddir,;t t
12672s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12673s,@INSTALL@,$ac_INSTALL,;t t
12674" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12675 rm -f $tmp/stdin
12676 if test x"$ac_file" != x-; then
12677 mv $tmp/out $ac_file
12678 else
12679 cat $tmp/out
12680 rm -f $tmp/out
12681 fi
12682
12683done
12684_ACEOF
12685cat >>$CONFIG_STATUS <<\_ACEOF
12686
12687#
12688# CONFIG_COMMANDS section.
12689#
12690for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12691 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12692 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12693 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12694$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12695 X"$ac_dest" : 'X\(//\)[^/]' \| \
12696 X"$ac_dest" : 'X\(//\)$' \| \
12697 X"$ac_dest" : 'X\(/\)' \| \
12698 . : '\(.\)' 2>/dev/null ||
12699echo X"$ac_dest" |
12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12702 /^X\(\/\/\)$/{ s//\1/; q; }
12703 /^X\(\/\).*/{ s//\1/; q; }
12704 s/.*/./; q'`
12705 { if $as_mkdir_p; then
12706 mkdir -p "$ac_dir"
12707 else
12708 as_dir="$ac_dir"
12709 as_dirs=
12710 while test ! -d "$as_dir"; do
12711 as_dirs="$as_dir $as_dirs"
12712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12714 X"$as_dir" : 'X\(//\)[^/]' \| \
12715 X"$as_dir" : 'X\(//\)$' \| \
12716 X"$as_dir" : 'X\(/\)' \| \
12717 . : '\(.\)' 2>/dev/null ||
12718echo X"$as_dir" |
12719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12721 /^X\(\/\/\)$/{ s//\1/; q; }
12722 /^X\(\/\).*/{ s//\1/; q; }
12723 s/.*/./; q'`
12724 done
12725 test ! -n "$as_dirs" || mkdir $as_dirs
12726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12727echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12728 { (exit 1); exit 1; }; }; }
12729
12730 ac_builddir=.
12731
12732if test "$ac_dir" != .; then
12733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12734 # A "../" for each directory in $ac_dir_suffix.
12735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12736else
12737 ac_dir_suffix= ac_top_builddir=
12738fi
12739
12740case $srcdir in
12741 .) # No --srcdir option. We are building in place.
12742 ac_srcdir=.
12743 if test -z "$ac_top_builddir"; then
12744 ac_top_srcdir=.
12745 else
12746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12747 fi ;;
12748 [\\/]* | ?:[\\/]* ) # Absolute path.
12749 ac_srcdir=$srcdir$ac_dir_suffix;
12750 ac_top_srcdir=$srcdir ;;
12751 *) # Relative path.
12752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12754esac
12755
12756# Do not use `cd foo && pwd` to compute absolute paths, because
12757# the directories may not exist.
12758case `pwd` in
12759.) ac_abs_builddir="$ac_dir";;
12760*)
12761 case "$ac_dir" in
12762 .) ac_abs_builddir=`pwd`;;
12763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12764 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12765 esac;;
12766esac
12767case $ac_abs_builddir in
12768.) ac_abs_top_builddir=${ac_top_builddir}.;;
12769*)
12770 case ${ac_top_builddir}. in
12771 .) ac_abs_top_builddir=$ac_abs_builddir;;
12772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12774 esac;;
12775esac
12776case $ac_abs_builddir in
12777.) ac_abs_srcdir=$ac_srcdir;;
12778*)
12779 case $ac_srcdir in
12780 .) ac_abs_srcdir=$ac_abs_builddir;;
12781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12783 esac;;
12784esac
12785case $ac_abs_builddir in
12786.) ac_abs_top_srcdir=$ac_top_srcdir;;
12787*)
12788 case $ac_top_srcdir in
12789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12792 esac;;
12793esac
12794
12795
12796 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12797echo "$as_me: executing $ac_dest commands" >&6;}
12798 case $ac_dest in
076e5443
PB
12799 default-1 )
12800# Only add multilib support code if we just rebuilt the top-level
12801# Makefile.
12802case " $CONFIG_FILES " in
12803 *" Makefile "*)
12804 ac_file=Makefile . ${multi_basedir}/config-ml.in
12805 ;;
12806esac ;;
9fabf579
KC
12807 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12808 # Strip MF so we end up with the name of the file.
12809 mf=`echo "$mf" | sed -e 's/:.*$//'`
12810 # Check whether this is an Automake generated Makefile or not.
12811 # We used to match only the files named `Makefile.in', but
12812 # some people rename them; so instead we look at the file content.
12813 # Grep'ing the first line is not enough: some people post-process
12814 # each Makefile.in and add a new line on top of each file to say so.
12815 # So let's grep whole file.
12816 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12817 dirpart=`(dirname "$mf") 2>/dev/null ||
12818$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819 X"$mf" : 'X\(//\)[^/]' \| \
12820 X"$mf" : 'X\(//\)$' \| \
12821 X"$mf" : 'X\(/\)' \| \
12822 . : '\(.\)' 2>/dev/null ||
12823echo X"$mf" |
12824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12826 /^X\(\/\/\)$/{ s//\1/; q; }
12827 /^X\(\/\).*/{ s//\1/; q; }
12828 s/.*/./; q'`
12829 else
12830 continue
12831 fi
17210dff
TT
12832 # Extract the definition of DEPDIR, am__include, and am__quote
12833 # from the Makefile without running `make'.
076e5443 12834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9fabf579 12835 test -z "$DEPDIR" && continue
17210dff
TT
12836 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12837 test -z "am__include" && continue
12838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9fabf579 12839 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 12840 U=`sed -n 's/^U = //p' < "$mf"`
17210dff
TT
12841 # Find all dependency output files, they are included files with
12842 # $(DEPDIR) in their names. We invoke sed twice because it is the
12843 # simplest approach to changing $(DEPDIR) to its actual value in the
12844 # expansion.
12845 for file in `sed -n "
12846 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9fabf579
KC
12847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12848 # Make sure the directory exists.
12849 test -f "$dirpart/$file" && continue
12850 fdir=`(dirname "$file") 2>/dev/null ||
12851$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12852 X"$file" : 'X\(//\)[^/]' \| \
12853 X"$file" : 'X\(//\)$' \| \
12854 X"$file" : 'X\(/\)' \| \
12855 . : '\(.\)' 2>/dev/null ||
12856echo X"$file" |
12857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12859 /^X\(\/\/\)$/{ s//\1/; q; }
12860 /^X\(\/\).*/{ s//\1/; q; }
12861 s/.*/./; q'`
12862 { if $as_mkdir_p; then
12863 mkdir -p $dirpart/$fdir
12864 else
12865 as_dir=$dirpart/$fdir
12866 as_dirs=
12867 while test ! -d "$as_dir"; do
12868 as_dirs="$as_dir $as_dirs"
12869 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12870$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871 X"$as_dir" : 'X\(//\)[^/]' \| \
12872 X"$as_dir" : 'X\(//\)$' \| \
12873 X"$as_dir" : 'X\(/\)' \| \
12874 . : '\(.\)' 2>/dev/null ||
12875echo X"$as_dir" |
12876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12878 /^X\(\/\/\)$/{ s//\1/; q; }
12879 /^X\(\/\).*/{ s//\1/; q; }
12880 s/.*/./; q'`
12881 done
12882 test ! -n "$as_dirs" || mkdir $as_dirs
12883 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12884echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12885 { (exit 1); exit 1; }; }; }
12886
12887 # echo "creating $dirpart/$file"
12888 echo '# dummy' > "$dirpart/$file"
12889 done
12890done
1cf3d07d
SE
12891 ;;
12892 libtool )
12893
12894 # See if we are running on zsh, and set the options which allow our
12895 # commands through without removal of \ escapes.
12896 if test -n "${ZSH_VERSION+set}" ; then
12897 setopt NO_GLOB_SUBST
12898 fi
12899
12900 cfgfile="${ofile}T"
12901 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12902 $RM "$cfgfile"
12903
12904 cat <<_LT_EOF >> "$cfgfile"
12905#! $SHELL
12906
12907# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18d98188 12908# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
12909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12910# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12911#
18d98188
PG
12912# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12913# 2006, 2007, 2008 Free Software Foundation, Inc.
12914# Written by Gordon Matzigkeit, 1996
1cf3d07d 12915#
18d98188 12916# This file is part of GNU Libtool.
1cf3d07d 12917#
18d98188
PG
12918# GNU Libtool is free software; you can redistribute it and/or
12919# modify it under the terms of the GNU General Public License as
12920# published by the Free Software Foundation; either version 2 of
12921# the License, or (at your option) any later version.
1cf3d07d 12922#
18d98188
PG
12923# As a special exception to the GNU General Public License,
12924# if you distribute this file as part of a program or library that
12925# is built using GNU Libtool, you may include this file under the
12926# same distribution terms that you use for the rest of that program.
1cf3d07d 12927#
18d98188
PG
12928# GNU Libtool is distributed in the hope that it will be useful,
12929# but WITHOUT ANY WARRANTY; without even the implied warranty of
12930# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12931# GNU General Public License for more details.
1cf3d07d 12932#
18d98188
PG
12933# You should have received a copy of the GNU General Public License
12934# along with GNU Libtool; see the file COPYING. If not, a copy
12935# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12936# obtained by writing to the Free Software Foundation, Inc.,
12937# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
12938
12939
12940# The names of the tagged configurations supported by this script.
12941available_tags=""
12942
12943# ### BEGIN LIBTOOL CONFIG
12944
12945# Which release of libtool.m4 was used?
12946macro_version=$macro_version
12947macro_revision=$macro_revision
12948
12949# Whether or not to build shared libraries.
12950build_libtool_libs=$enable_shared
12951
12952# Whether or not to build static libraries.
12953build_old_libs=$enable_static
12954
12955# What type of objects to build.
12956pic_mode=$pic_mode
12957
12958# Whether or not to optimize for fast installation.
12959fast_install=$enable_fast_install
12960
12961# The host system.
12962host_alias=$host_alias
12963host=$host
12964host_os=$host_os
12965
12966# The build system.
12967build_alias=$build_alias
12968build=$build
12969build_os=$build_os
12970
12971# A sed program that does not truncate output.
12972SED=$lt_SED
12973
12974# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12975Xsed="\$SED -e 1s/^X//"
12976
12977# A grep program that handles long lines.
12978GREP=$lt_GREP
12979
12980# An ERE matcher.
12981EGREP=$lt_EGREP
12982
12983# A literal string matcher.
12984FGREP=$lt_FGREP
12985
12986# A BSD- or MS-compatible name lister.
12987NM=$lt_NM
12988
12989# Whether we need soft or hard links.
12990LN_S=$lt_LN_S
12991
12992# What is the maximum length of a command?
12993max_cmd_len=$max_cmd_len
12994
12995# Object file suffix (normally "o").
12996objext=$ac_objext
12997
12998# Executable file suffix (normally "").
12999exeext=$exeext
13000
13001# whether the shell understands "unset".
13002lt_unset=$lt_unset
13003
13004# turn spaces into newlines.
13005SP2NL=$lt_lt_SP2NL
13006
13007# turn newlines into spaces.
13008NL2SP=$lt_lt_NL2SP
13009
13010# How to create reloadable object files.
13011reload_flag=$lt_reload_flag
13012reload_cmds=$lt_reload_cmds
13013
18d98188
PG
13014# An object symbol dumper.
13015OBJDUMP=$lt_OBJDUMP
13016
1cf3d07d
SE
13017# Method to check whether dependent libraries are shared objects.
13018deplibs_check_method=$lt_deplibs_check_method
13019
13020# Command to use when deplibs_check_method == "file_magic".
13021file_magic_cmd=$lt_file_magic_cmd
13022
13023# The archiver.
13024AR=$lt_AR
13025AR_FLAGS=$lt_AR_FLAGS
13026
13027# A symbol stripping program.
13028STRIP=$lt_STRIP
13029
13030# Commands used to install an old-style archive.
13031RANLIB=$lt_RANLIB
13032old_postinstall_cmds=$lt_old_postinstall_cmds
13033old_postuninstall_cmds=$lt_old_postuninstall_cmds
13034
13035# A C compiler.
13036LTCC=$lt_CC
13037
13038# LTCC compiler flags.
13039LTCFLAGS=$lt_CFLAGS
13040
13041# Take the output of nm and produce a listing of raw symbols and C names.
13042global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13043
13044# Transform the output of nm in a proper C declaration.
13045global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13046
13047# Transform the output of nm in a C name address pair.
13048global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13049
18d98188
PG
13050# Transform the output of nm in a C name address pair when lib prefix is needed.
13051global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13052
1cf3d07d
SE
13053# The name of the directory that contains temporary libtool files.
13054objdir=$objdir
13055
13056# Shell to use when invoking shell scripts.
13057SHELL=$lt_SHELL
13058
13059# An echo program that does not interpret backslashes.
13060ECHO=$lt_ECHO
13061
13062# Used to examine libraries when file_magic_cmd begins with "file".
13063MAGIC_CMD=$MAGIC_CMD
13064
13065# Must we lock files when doing compilation?
13066need_locks=$lt_need_locks
13067
18d98188
PG
13068# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13069DSYMUTIL=$lt_DSYMUTIL
13070
13071# Tool to change global to local symbols on Mac OS X.
13072NMEDIT=$lt_NMEDIT
13073
13074# Tool to manipulate fat objects and archives on Mac OS X.
13075LIPO=$lt_LIPO
13076
13077# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13078OTOOL=$lt_OTOOL
13079
13080# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13081OTOOL64=$lt_OTOOL64
13082
1cf3d07d
SE
13083# Old archive suffix (normally "a").
13084libext=$libext
13085
13086# Shared library suffix (normally ".so").
13087shrext_cmds=$lt_shrext_cmds
13088
13089# The commands to extract the exported symbol list from a shared archive.
13090extract_expsyms_cmds=$lt_extract_expsyms_cmds
13091
13092# Variables whose values should be saved in libtool wrapper scripts and
13093# restored at link time.
13094variables_saved_for_relink=$lt_variables_saved_for_relink
13095
13096# Do we need the "lib" prefix for modules?
13097need_lib_prefix=$need_lib_prefix
13098
13099# Do we need a version for libraries?
13100need_version=$need_version
13101
13102# Library versioning type.
13103version_type=$version_type
13104
13105# Shared library runtime path variable.
13106runpath_var=$runpath_var
13107
13108# Shared library path variable.
13109shlibpath_var=$shlibpath_var
13110
13111# Is shlibpath searched before the hard-coded library search path?
13112shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13113
13114# Format of library name prefix.
13115libname_spec=$lt_libname_spec
13116
13117# List of archive names. First name is the real one, the rest are links.
13118# The last name is the one that the linker finds with -lNAME
13119library_names_spec=$lt_library_names_spec
13120
13121# The coded name of the library, if different from the real name.
13122soname_spec=$lt_soname_spec
13123
13124# Command to use after installation of a shared archive.
13125postinstall_cmds=$lt_postinstall_cmds
13126
13127# Command to use after uninstallation of a shared archive.
13128postuninstall_cmds=$lt_postuninstall_cmds
13129
13130# Commands used to finish a libtool library installation in a directory.
13131finish_cmds=$lt_finish_cmds
13132
13133# As "finish_cmds", except a single script fragment to be evaled but
13134# not shown.
13135finish_eval=$lt_finish_eval
13136
13137# Whether we should hardcode library paths into libraries.
13138hardcode_into_libs=$hardcode_into_libs
13139
13140# Compile-time system search path for libraries.
13141sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13142
13143# Run-time system search path for libraries.
13144sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13145
13146# Whether dlopen is supported.
13147dlopen_support=$enable_dlopen
13148
13149# Whether dlopen of programs is supported.
13150dlopen_self=$enable_dlopen_self
13151
13152# Whether dlopen of statically linked programs is supported.
13153dlopen_self_static=$enable_dlopen_self_static
13154
13155# Commands to strip libraries.
13156old_striplib=$lt_old_striplib
13157striplib=$lt_striplib
13158
13159
13160# The linker used to build libraries.
13161LD=$lt_LD
13162
13163# Commands used to build an old-style archive.
13164old_archive_cmds=$lt_old_archive_cmds
13165
13166# A language specific compiler.
13167CC=$lt_compiler
13168
13169# Is the compiler the GNU compiler?
13170with_gcc=$GCC
13171
13172# Compiler flag to turn off builtin functions.
13173no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13174
13175# How to pass a linker flag through the compiler.
13176wl=$lt_lt_prog_compiler_wl
13177
13178# Additional compiler flags for building library objects.
13179pic_flag=$lt_lt_prog_compiler_pic
13180
13181# Compiler flag to prevent dynamic linking.
13182link_static_flag=$lt_lt_prog_compiler_static
13183
13184# Does compiler simultaneously support -c and -o options?
13185compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13186
13187# Whether or not to add -lc for building shared libraries.
13188build_libtool_need_lc=$archive_cmds_need_lc
13189
13190# Whether or not to disallow shared libs when runtime libs are static.
13191allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13192
13193# Compiler flag to allow reflexive dlopens.
13194export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13195
13196# Compiler flag to generate shared objects directly from archives.
13197whole_archive_flag_spec=$lt_whole_archive_flag_spec
13198
13199# Whether the compiler copes with passing no objects directly.
13200compiler_needs_object=$lt_compiler_needs_object
13201
13202# Create an old-style archive from a shared archive.
13203old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13204
13205# Create a temporary old-style archive to link instead of a shared archive.
13206old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13207
13208# Commands used to build a shared archive.
13209archive_cmds=$lt_archive_cmds
13210archive_expsym_cmds=$lt_archive_expsym_cmds
13211
13212# Commands used to build a loadable module if different from building
13213# a shared archive.
13214module_cmds=$lt_module_cmds
13215module_expsym_cmds=$lt_module_expsym_cmds
13216
13217# Whether we are building with GNU ld or not.
13218with_gnu_ld=$lt_with_gnu_ld
13219
13220# Flag that allows shared libraries with undefined symbols to be built.
13221allow_undefined_flag=$lt_allow_undefined_flag
13222
13223# Flag that enforces no undefined symbols.
13224no_undefined_flag=$lt_no_undefined_flag
13225
13226# Flag to hardcode \$libdir into a binary during linking.
13227# This must work even if \$libdir does not exist
13228hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13229
13230# If ld is used when linking, flag to hardcode \$libdir into a binary
13231# during linking. This must work even if \$libdir does not exist.
13232hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13233
13234# Whether we need a single "-rpath" flag with a separated argument.
13235hardcode_libdir_separator=$lt_hardcode_libdir_separator
13236
13237# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13238# DIR into the resulting binary.
13239hardcode_direct=$hardcode_direct
13240
13241# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13242# DIR into the resulting binary and the resulting library dependency is
13243# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13244# library is relocated.
13245hardcode_direct_absolute=$hardcode_direct_absolute
13246
13247# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13248# into the resulting binary.
13249hardcode_minus_L=$hardcode_minus_L
13250
13251# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13252# into the resulting binary.
13253hardcode_shlibpath_var=$hardcode_shlibpath_var
13254
13255# Set to "yes" if building a shared library automatically hardcodes DIR
13256# into the library and all subsequent libraries and executables linked
13257# against it.
13258hardcode_automatic=$hardcode_automatic
13259
13260# Set to yes if linker adds runtime paths of dependent libraries
13261# to runtime path list.
13262inherit_rpath=$inherit_rpath
13263
13264# Whether libtool must link a program against all its dependency libraries.
13265link_all_deplibs=$link_all_deplibs
13266
13267# Fix the shell variable \$srcfile for the compiler.
13268fix_srcfile_path=$lt_fix_srcfile_path
13269
13270# Set to "yes" if exported symbols are required.
13271always_export_symbols=$always_export_symbols
13272
13273# The commands to list exported symbols.
13274export_symbols_cmds=$lt_export_symbols_cmds
13275
13276# Symbols that should not be listed in the preloaded symbols.
13277exclude_expsyms=$lt_exclude_expsyms
13278
13279# Symbols that must always be exported.
13280include_expsyms=$lt_include_expsyms
13281
13282# Commands necessary for linking programs (against libraries) with templates.
13283prelink_cmds=$lt_prelink_cmds
13284
13285# Specify filename containing input files.
13286file_list_spec=$lt_file_list_spec
13287
13288# How to hardcode a shared library path into an executable.
13289hardcode_action=$hardcode_action
13290
13291# ### END LIBTOOL CONFIG
13292
13293_LT_EOF
13294
13295 case $host_os in
13296 aix3*)
13297 cat <<\_LT_EOF >> "$cfgfile"
13298# AIX sometimes has problems with the GCC collect2 program. For some
13299# reason, if we set the COLLECT_NAMES environment variable, the problems
13300# vanish in a puff of smoke.
13301if test "X${COLLECT_NAMES+set}" != Xset; then
13302 COLLECT_NAMES=
13303 export COLLECT_NAMES
13304fi
13305_LT_EOF
13306 ;;
13307 esac
13308
13309
13310ltmain="$ac_aux_dir/ltmain.sh"
13311
13312
13313 # We use sed instead of cat because bash on DJGPP gets confused if
13314 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13315 # text mode, it properly converts lines to CR/LF. This bash problem
13316 # is reportedly fixed, but why not run on old versions too?
13317 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13318 || (rm -f "$cfgfile"; exit 1)
13319
13320 case $xsi_shell in
13321 yes)
13322 cat << \_LT_EOF >> "$cfgfile"
18d98188 13323
1cf3d07d
SE
13324# func_dirname file append nondir_replacement
13325# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13326# otherwise set result to NONDIR_REPLACEMENT.
13327func_dirname ()
13328{
13329 case ${1} in
13330 */*) func_dirname_result="${1%/*}${2}" ;;
13331 * ) func_dirname_result="${3}" ;;
13332 esac
13333}
13334
13335# func_basename file
13336func_basename ()
13337{
13338 func_basename_result="${1##*/}"
13339}
13340
18d98188
PG
13341# func_dirname_and_basename file append nondir_replacement
13342# perform func_basename and func_dirname in a single function
13343# call:
13344# dirname: Compute the dirname of FILE. If nonempty,
13345# add APPEND to the result, otherwise set result
13346# to NONDIR_REPLACEMENT.
13347# value returned in "$func_dirname_result"
13348# basename: Compute filename of FILE.
13349# value retuned in "$func_basename_result"
13350# Implementation must be kept synchronized with func_dirname
13351# and func_basename. For efficiency, we do not delegate to
13352# those functions but instead duplicate the functionality here.
13353func_dirname_and_basename ()
13354{
13355 case ${1} in
13356 */*) func_dirname_result="${1%/*}${2}" ;;
13357 * ) func_dirname_result="${3}" ;;
13358 esac
13359 func_basename_result="${1##*/}"
13360}
13361
1cf3d07d
SE
13362# func_stripname prefix suffix name
13363# strip PREFIX and SUFFIX off of NAME.
13364# PREFIX and SUFFIX must not contain globbing or regex special
13365# characters, hashes, percent signs, but SUFFIX may contain a leading
13366# dot (in which case that matches only a dot).
13367func_stripname ()
13368{
13369 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13370 # positional parameters, so assign one to ordinary parameter first.
13371 func_stripname_result=${3}
13372 func_stripname_result=${func_stripname_result#"${1}"}
13373 func_stripname_result=${func_stripname_result%"${2}"}
13374}
13375
13376# func_opt_split
13377func_opt_split ()
13378{
13379 func_opt_split_opt=${1%%=*}
13380 func_opt_split_arg=${1#*=}
13381}
13382
13383# func_lo2o object
13384func_lo2o ()
13385{
13386 case ${1} in
13387 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13388 *) func_lo2o_result=${1} ;;
13389 esac
13390}
18d98188
PG
13391
13392# func_xform libobj-or-source
13393func_xform ()
13394{
13395 func_xform_result=${1%.*}.lo
13396}
13397
13398# func_arith arithmetic-term...
13399func_arith ()
13400{
13401 func_arith_result=$(( $* ))
13402}
13403
13404# func_len string
13405# STRING may not start with a hyphen.
13406func_len ()
13407{
13408 func_len_result=${#1}
13409}
13410
1cf3d07d
SE
13411_LT_EOF
13412 ;;
13413 *) # Bourne compatible functions.
13414 cat << \_LT_EOF >> "$cfgfile"
18d98188 13415
1cf3d07d
SE
13416# func_dirname file append nondir_replacement
13417# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13418# otherwise set result to NONDIR_REPLACEMENT.
13419func_dirname ()
13420{
13421 # Extract subdirectory from the argument.
13422 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13423 if test "X$func_dirname_result" = "X${1}"; then
13424 func_dirname_result="${3}"
13425 else
13426 func_dirname_result="$func_dirname_result${2}"
13427 fi
13428}
13429
13430# func_basename file
13431func_basename ()
13432{
13433 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13434}
13435
18d98188 13436
1cf3d07d
SE
13437# func_stripname prefix suffix name
13438# strip PREFIX and SUFFIX off of NAME.
13439# PREFIX and SUFFIX must not contain globbing or regex special
13440# characters, hashes, percent signs, but SUFFIX may contain a leading
13441# dot (in which case that matches only a dot).
13442# func_strip_suffix prefix name
13443func_stripname ()
13444{
13445 case ${2} in
13446 .*) func_stripname_result=`$ECHO "X${3}" \
13447 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13448 *) func_stripname_result=`$ECHO "X${3}" \
13449 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13450 esac
13451}
13452
13453# sed scripts:
13454my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13455my_sed_long_arg='1s/^-[^=]*=//'
13456
13457# func_opt_split
13458func_opt_split ()
13459{
13460 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13461 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13462}
13463
13464# func_lo2o object
13465func_lo2o ()
13466{
13467 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13468}
18d98188
PG
13469
13470# func_xform libobj-or-source
13471func_xform ()
13472{
13473 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13474}
13475
13476# func_arith arithmetic-term...
13477func_arith ()
13478{
13479 func_arith_result=`expr "$@"`
13480}
13481
13482# func_len string
13483# STRING may not start with a hyphen.
13484func_len ()
13485{
13486 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13487}
13488
1cf3d07d
SE
13489_LT_EOF
13490esac
13491
13492case $lt_shell_append in
13493 yes)
13494 cat << \_LT_EOF >> "$cfgfile"
13495
13496# func_append var value
13497# Append VALUE to the end of shell variable VAR.
13498func_append ()
13499{
13500 eval "$1+=\$2"
13501}
13502_LT_EOF
13503 ;;
13504 *)
13505 cat << \_LT_EOF >> "$cfgfile"
13506
13507# func_append var value
13508# Append VALUE to the end of shell variable VAR.
13509func_append ()
13510{
13511 eval "$1=\$$1\$2"
13512}
18d98188 13513
1cf3d07d
SE
13514_LT_EOF
13515 ;;
13516 esac
13517
13518
13519 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13520 || (rm -f "$cfgfile"; exit 1)
13521
13522 mv -f "$cfgfile" "$ofile" ||
13523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13524 chmod +x "$ofile"
13525
9fabf579 13526 ;;
a8aea176
NN
13527 esac
13528done
13529_ACEOF
13530
13531cat >>$CONFIG_STATUS <<\_ACEOF
13532
13533{ (exit 0); exit 0; }
13534_ACEOF
dfac8a13 13535chmod +x $CONFIG_STATUS
a8aea176
NN
13536ac_clean_files=$ac_clean_files_save
13537
13538
13539# configure is writing to config.log, and then calls config.status.
13540# config.status does its own redirection, appending to config.log.
13541# Unfortunately, on DOS this fails, as config.log is still kept open
13542# by configure, so config.status won't be able to write to it; its
13543# output is simply discarded. So we exec the FD to /dev/null,
13544# effectively closing config.log, so it can be properly (re)opened and
13545# appended to by config.status. When coming back to configure, we
13546# need to make the FD available again.
13547if test "$no_create" != yes; then
13548 ac_cs_success=:
13549 ac_config_status_args=
13550 test "$silent" = yes &&
13551 ac_config_status_args="$ac_config_status_args --quiet"
13552 exec 5>/dev/null
13553 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13554 exec 5>>config.log
13555 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13556 # would make configure fail if this is the last instruction.
13557 $ac_cs_success || { (exit 1); exit 1; }
13558fi
c45f211e 13559