]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
Fix date.
[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
1cf3d07d 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
a8aea176 462ac_subst_files=''
dfac8a13
TT
463
464# Initialize some variables set by options.
a8aea176
NN
465ac_init_help=
466ac_init_version=false
dfac8a13
TT
467# The variables have the same names as the options, with
468# dashes changed to underlines.
a8aea176 469cache_file=/dev/null
dfac8a13 470exec_prefix=NONE
dfac8a13 471no_create=
dfac8a13
TT
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
dfac8a13
TT
480verbose=
481x_includes=NONE
482x_libraries=NONE
a8aea176
NN
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
dfac8a13
TT
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
dfac8a13
TT
502ac_prev=
503for ac_option
504do
dfac8a13
TT
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
a8aea176 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
dfac8a13
TT
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
a8aea176 516 case $ac_option in
dfac8a13
TT
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 521 bindir=$ac_optarg ;;
dfac8a13
TT
522
523 -build | --build | --buil | --bui | --bu)
a8aea176 524 ac_prev=build_alias ;;
dfac8a13 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 526 build_alias=$ac_optarg ;;
dfac8a13
TT
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
dfac8a13
TT
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
a8aea176 542 datadir=$ac_optarg ;;
dfac8a13
TT
543
544 -disable-* | --disable-*)
a8aea176 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 546 # Reject names that are not valid shell variable names.
a8aea176
NN
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
dfac8a13
TT
552
553 -enable-* | --enable-*)
a8aea176 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 555 # Reject names that are not valid shell variable names.
a8aea176
NN
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
562 *) ac_optarg=yes ;;
563 esac
a8aea176 564 eval "enable_$ac_feature='$ac_optarg'" ;;
dfac8a13
TT
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
a8aea176 573 exec_prefix=$ac_optarg ;;
dfac8a13
TT
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
a8aea176
NN
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
dfac8a13
TT
585
586 -host | --host | --hos | --ho)
a8aea176 587 ac_prev=host_alias ;;
dfac8a13 588 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 589 host_alias=$ac_optarg ;;
dfac8a13
TT
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 596 includedir=$ac_optarg ;;
dfac8a13
TT
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 601 infodir=$ac_optarg ;;
dfac8a13
TT
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 606 libdir=$ac_optarg ;;
dfac8a13
TT
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
a8aea176 613 libexecdir=$ac_optarg ;;
dfac8a13
TT
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a8aea176 622 localstatedir=$ac_optarg ;;
dfac8a13
TT
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 627 mandir=$ac_optarg ;;
dfac8a13
TT
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 634 | --no-cr | --no-c | -n)
dfac8a13
TT
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 648 oldincludedir=$ac_optarg ;;
dfac8a13
TT
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 653 prefix=$ac_optarg ;;
dfac8a13
TT
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 660 program_prefix=$ac_optarg ;;
dfac8a13
TT
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 667 program_suffix=$ac_optarg ;;
dfac8a13
TT
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 684 program_transform_name=$ac_optarg ;;
dfac8a13
TT
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
a8aea176 694 sbindir=$ac_optarg ;;
dfac8a13
TT
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
a8aea176 705 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
a8aea176 710 site=$ac_optarg ;;
dfac8a13
TT
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 715 srcdir=$ac_optarg ;;
dfac8a13
TT
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 722 sysconfdir=$ac_optarg ;;
dfac8a13
TT
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 725 ac_prev=target_alias ;;
dfac8a13 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 727 target_alias=$ac_optarg ;;
dfac8a13
TT
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
a8aea176
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
dfac8a13
TT
734
735 -with-* | --with-*)
a8aea176 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 737 # Reject names that are not valid shell variable names.
a8aea176
NN
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
dfac8a13 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
a8aea176
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
744 *) ac_optarg=yes ;;
745 esac
a8aea176 746 eval "with_$ac_package='$ac_optarg'" ;;
dfac8a13
TT
747
748 -without-* | --without-*)
a8aea176 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 750 # Reject names that are not valid shell variable names.
a8aea176
NN
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
dfac8a13
TT
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 766 x_includes=$ac_optarg ;;
dfac8a13
TT
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 773 x_libraries=$ac_optarg ;;
dfac8a13 774
a8aea176
NN
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
dfac8a13
TT
778 ;;
779
a8aea176
NN
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
dfac8a13 790 *)
a8aea176
NN
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
dfac8a13
TT
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
a8aea176
NN
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
dfac8a13 805fi
dfac8a13 806
a8aea176
NN
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
dfac8a13 817
a8aea176
NN
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
c45f211e 821do
a8aea176
NN
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
dfac8a13
TT
827 esac
828done
829
a8aea176
NN
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
dfac8a13 847
a8aea176
NN
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
dfac8a13 852
dfac8a13
TT
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
a8aea176
NN
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
dfac8a13
TT
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
a8aea176
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
dfac8a13 881 else
a8aea176
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
dfac8a13
TT
884 fi
885fi
a8aea176
NN
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
a8aea176
NN
902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
076e5443
PB
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
a8aea176
NN
910
911#
912# Report the --help message.
913#
914if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918\`configure' configures this package to adapt to many kinds of systems.
919
920Usage: $0 [OPTION]... [VAR=VALUE]...
921
922To assign environment variables (e.g., CC, CFLAGS...), specify them as
923VAR=VALUE. See below for descriptions of some of the useful variables.
924
925Defaults for the options are specified in brackets.
926
927Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
937
938_ACEOF
939
940 cat <<_ACEOF
941Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
946
947By default, \`make install' will install all the files in
948\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950for instance \`--prefix=\$HOME'.
951
952For better control, use the options below.
953
954Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967_ACEOF
968
969 cat <<\_ACEOF
970
971Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
975
976System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980_ACEOF
981fi
982
983if test -n "$ac_init_help"; then
984
985 cat <<\_ACEOF
986
987Optional Features:
988 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
989 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a8aea176 990 --enable-multilib build many library versions (default)
076e5443
PB
991 --enable-maintainer-mode enable make rules and dependencies not useful
992 (and sometimes confusing) to the casual installer
993 --disable-dependency-tracking speeds up one-time build
994 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
995 --enable-shared[=PKGS]
996 build shared libraries [default=yes]
997 --enable-static[=PKGS]
998 build static libraries [default=yes]
999 --enable-fast-install[=PKGS]
1000 optimize for fast installation [default=yes]
a8aea176
NN
1001 --disable-libtool-lock avoid locking (might break parallel builds)
1002
1003Optional Packages:
1004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1006 --with-target-subdir=SUBDIR
1007 configuring in a subdirectory
1008 --with-cross-host=HOST configuring with a cross compiler
1009 --with-system-zlib use installed libz
1cf3d07d
SE
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
a8aea176
NN
1013
1014Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1022
1023Use these variables to override the choices made by `configure' or to help
1024it to find libraries and programs with nonstandard names/locations.
1025
1026_ACEOF
1027fi
1028
1029if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1035
1036if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040else
1041 ac_dir_suffix= ac_top_builddir=
1042fi
1043
1044case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058esac
1059
1060# Do not use `cd foo && pwd` to compute absolute paths, because
1061# the directories may not exist.
1062case `pwd` in
1063.) ac_abs_builddir="$ac_dir";;
1064*)
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070esac
1071case $ac_abs_builddir in
1072.) ac_abs_top_builddir=${ac_top_builddir}.;;
1073*)
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079esac
1080case $ac_abs_builddir in
1081.) ac_abs_srcdir=$ac_srcdir;;
1082*)
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088esac
1089case $ac_abs_builddir in
1090.) ac_abs_top_srcdir=$ac_top_srcdir;;
1091*)
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097esac
1098
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113 fi
17210dff 1114 cd $ac_popdir
a8aea176
NN
1115 done
1116fi
1117
1118test -n "$ac_init_help" && exit 0
1119if $ac_init_version; then
1120 cat <<\_ACEOF
1121
1122Copyright (C) 2003 Free Software Foundation, Inc.
1123This configure script is free software; the Free Software Foundation
1124gives unlimited permission to copy, distribute and modify it.
1125_ACEOF
1126 exit 0
1127fi
1128exec 5>config.log
1129cat >&5 <<_ACEOF
1130This file contains any messages produced by compilers while
1131running configure, to aid debugging if configure makes a mistake.
1132
1133It was created by $as_me, which was
1134generated by GNU Autoconf 2.59. Invocation command line was
1135
1136 $ $0 $@
1137
1138_ACEOF
1139{
1140cat <<_ASUNAME
1141## --------- ##
1142## Platform. ##
1143## --------- ##
1144
1145hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150
1151/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1153
1154/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1155/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1156/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1158/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1159/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1160/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1161
1162_ASUNAME
1163
1164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165for as_dir in $PATH
1166do
1167 IFS=$as_save_IFS
1168 test -z "$as_dir" && as_dir=.
1169 echo "PATH: $as_dir"
1170done
1171
1172} >&5
1173
1174cat >&5 <<_ACEOF
1175
1176
1177## ----------- ##
1178## Core tests. ##
1179## ----------- ##
1180
1181_ACEOF
1182
1183
1184# Keep a trace of the command line.
1185# Strip out --no-create and --no-recursion so they do not pile up.
1186# Strip out --silent because we don't want to record it for future runs.
1187# Also quote any args containing shell meta-characters.
1188# Make two passes to allow for proper duplicate-argument suppression.
1189ac_configure_args=
1190ac_configure_args0=
1191ac_configure_args1=
1192ac_sep=
1193ac_must_keep_next=false
1194for ac_pass in 1 2
1195do
1196 for ac_arg
1197 do
1198 case $ac_arg in
1199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 continue ;;
1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1205 esac
1206 case $ac_pass in
1207 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1208 2)
1209 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210 if test $ac_must_keep_next = true; then
1211 ac_must_keep_next=false # Got value, back to normal.
1212 else
1213 case $ac_arg in
1214 *=* | --config-cache | -C | -disable-* | --disable-* \
1215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217 | -with-* | --with-* | -without-* | --without-* | --x)
1218 case "$ac_configure_args0 " in
1219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1220 esac
1221 ;;
1222 -* ) ac_must_keep_next=true ;;
1223 esac
1224 fi
1225 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226 # Get rid of the leading space.
1227 ac_sep=" "
1228 ;;
1229 esac
1230 done
1231done
1232$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1234
1235# When interrupted or exit'd, cleanup temporary files, and complete
1236# config.log. We remove comments because anyway the quotes in there
1237# would cause problems or look ugly.
1238# WARNING: Be sure not to use single quotes in there, as some shells,
1239# such as our DU 5.0 friend, will then `close' the trap.
1240trap 'exit_status=$?
1241 # Save into config.log some information that might help in debugging.
1242 {
1243 echo
1244
1245 cat <<\_ASBOX
1246## ---------------- ##
1247## Cache variables. ##
1248## ---------------- ##
1249_ASBOX
1250 echo
1251 # The following way of writing the cache mishandles newlines in values,
1252{
1253 (set) 2>&1 |
1254 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1255 *ac_space=\ *)
1256 sed -n \
1257 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1259 ;;
1260 *)
1261 sed -n \
1262 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1263 ;;
1264 esac;
1265}
1266 echo
1267
1268 cat <<\_ASBOX
1269## ----------------- ##
1270## Output variables. ##
1271## ----------------- ##
1272_ASBOX
1273 echo
1274 for ac_var in $ac_subst_vars
1275 do
1276 eval ac_val=$`echo $ac_var`
1277 echo "$ac_var='"'"'$ac_val'"'"'"
1278 done | sort
1279 echo
1280
1281 if test -n "$ac_subst_files"; then
1282 cat <<\_ASBOX
1283## ------------- ##
1284## Output files. ##
1285## ------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_files
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294 fi
1295
1296 if test -s confdefs.h; then
1297 cat <<\_ASBOX
1298## ----------- ##
1299## confdefs.h. ##
1300## ----------- ##
1301_ASBOX
1302 echo
1303 sed "/^$/d" confdefs.h | sort
1304 echo
1305 fi
1306 test "$ac_signal" != 0 &&
1307 echo "$as_me: caught signal $ac_signal"
1308 echo "$as_me: exit $exit_status"
1309 } >&5
1310 rm -f core *.core &&
1311 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1312 exit $exit_status
1313 ' 0
1314for ac_signal in 1 2 13 15; do
1315 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1316done
1317ac_signal=0
dfac8a13 1318
a8aea176
NN
1319# confdefs.h avoids OS command line length limits that DEFS can exceed.
1320rm -rf conftest* confdefs.h
1321# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1322echo >confdefs.h
1323
1324# Predefined preprocessor variables.
1325
1326cat >>confdefs.h <<_ACEOF
1327#define PACKAGE_NAME "$PACKAGE_NAME"
1328_ACEOF
1329
1330
1331cat >>confdefs.h <<_ACEOF
1332#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1333_ACEOF
1334
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_VERSION "$PACKAGE_VERSION"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_STRING "$PACKAGE_STRING"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1348_ACEOF
1349
1350
1351# Let the site file select an alternate cache file if it wants to.
dfac8a13 1352# Prefer explicitly selected file to automatically selected ones.
0ccf2c33
AO
1353if test -z "$CONFIG_SITE"; then
1354 if test "x$prefix" != xNONE; then
1355 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1356 else
1357 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
dfac8a13
TT
1358 fi
1359fi
1360for ac_site_file in $CONFIG_SITE; do
1361 if test -r "$ac_site_file"; then
a8aea176
NN
1362 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363echo "$as_me: loading site script $ac_site_file" >&6;}
1364 sed 's/^/| /' "$ac_site_file" >&5
dfac8a13
TT
1365 . "$ac_site_file"
1366 fi
1367done
1368
1369if test -r "$cache_file"; then
a8aea176
NN
1370 # Some versions of bash will fail to source /dev/null (special
1371 # files actually), so we avoid doing that.
1372 if test -f "$cache_file"; then
1373 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374echo "$as_me: loading cache $cache_file" >&6;}
1375 case $cache_file in
1376 [\\/]* | ?:[\\/]* ) . $cache_file;;
1377 *) . ./$cache_file;;
1378 esac
1379 fi
dfac8a13 1380else
a8aea176
NN
1381 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382echo "$as_me: creating cache $cache_file" >&6;}
1383 >$cache_file
1384fi
1385
1386# Check that the precious variables saved in the cache have kept the same
1387# value.
1388ac_cache_corrupted=false
1389for ac_var in `(set) 2>&1 |
1390 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392 eval ac_new_set=\$ac_env_${ac_var}_set
1393 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394 eval ac_new_val="\$ac_env_${ac_var}_value"
1395 case $ac_old_set,$ac_new_set in
1396 set,)
1397 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399 ac_cache_corrupted=: ;;
1400 ,set)
1401 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403 ac_cache_corrupted=: ;;
1404 ,);;
1405 *)
1406 if test "x$ac_old_val" != "x$ac_new_val"; then
1407 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1408echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1409 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1410echo "$as_me: former value: $ac_old_val" >&2;}
1411 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1412echo "$as_me: current value: $ac_new_val" >&2;}
1413 ac_cache_corrupted=:
1414 fi;;
1415 esac
1416 # Pass precious variables to config.status.
1417 if test "$ac_new_set" = set; then
1418 case $ac_new_val in
1419 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1421 *) ac_arg=$ac_var=$ac_new_val ;;
1422 esac
1423 case " $ac_configure_args " in
1424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1425 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1426 esac
1427 fi
1428done
1429if $ac_cache_corrupted; then
1430 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1431echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1432 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1433echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1434 { (exit 1); exit 1; }; }
dfac8a13
TT
1435fi
1436
1437ac_ext=c
dfac8a13 1438ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
1439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1441ac_compiler_gnu=$ac_cv_c_compiler_gnu
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
dfac8a13
TT
1460
1461
0fd91e0a 1462
076e5443
PB
1463# Default to --enable-multilib
1464# Check whether --enable-multilib or --disable-multilib was given.
1465if test "${enable_multilib+set}" = set; then
1466 enableval="$enable_multilib"
1467 case "$enableval" in
1468 yes) multilib=yes ;;
1469 no) multilib=no ;;
1470 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1471echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1472 { (exit 1); exit 1; }; } ;;
1473 esac
1474else
1475 multilib=yes
1476fi;
6706f116 1477
076e5443
PB
1478# We may get other options which we leave undocumented:
1479# --with-target-subdir, --with-multisrctop, --with-multisubdir
1480# See config-ml.in if you want the gory details.
0fd91e0a 1481
076e5443
PB
1482if test "$srcdir" = "."; then
1483 if test "$with_target_subdir" != "."; then
1484 multi_basedir="$srcdir/$with_multisrctop../.."
0fd91e0a 1485 else
076e5443 1486 multi_basedir="$srcdir/$with_multisrctop.."
0fd91e0a
AO
1487 fi
1488else
076e5443 1489 multi_basedir="$srcdir/.."
0fd91e0a
AO
1490fi
1491
dfac8a13 1492
8a489465
JH
1493# Even if the default multilib is not a cross compilation,
1494# it may be that some of the other multilibs are.
1495if test $cross_compiling = no && test $multilib = yes \
1496 && test "x${with_multisubdir}" != x ; then
1497 cross_compiling=maybe
1498fi
1499
076e5443
PB
1500 ac_config_commands="$ac_config_commands default-1"
1501
1502
1503ac_aux_dir=
1504for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
0fd91e0a
AO
1505 if test -f $ac_dir/install-sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
1509 elif test -f $ac_dir/install.sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
a8aea176
NN
1513 elif test -f $ac_dir/shtool; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1517 fi
0fd91e0a
AO
1518done
1519if test -z "$ac_aux_dir"; then
076e5443
PB
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
a8aea176 1522 { (exit 1); exit 1; }; }
0fd91e0a 1523fi
a8aea176
NN
1524ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
0fd91e0a 1527
dfac8a13 1528# Make sure we can run config.sub.
a8aea176
NN
1529$ac_config_sub sun4 >/dev/null 2>&1 ||
1530 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534echo "$as_me:$LINENO: checking build system type" >&5
1535echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536if test "${ac_cv_build+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539 ac_cv_build_alias=$build_alias
1540test -z "$ac_cv_build_alias" &&
1541 ac_cv_build_alias=`$ac_config_guess`
1542test -z "$ac_cv_build_alias" &&
1543 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545 { (exit 1); exit 1; }; }
1546ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549 { (exit 1); exit 1; }; }
1550
1551fi
1552echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553echo "${ECHO_T}$ac_cv_build" >&6
1554build=$ac_cv_build
1555build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558
1559
1560echo "$as_me:$LINENO: checking host system type" >&5
1561echo $ECHO_N "checking host system type... $ECHO_C" >&6
1562if test "${ac_cv_host+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 ac_cv_host_alias=$host_alias
1566test -z "$ac_cv_host_alias" &&
1567 ac_cv_host_alias=$ac_cv_build_alias
1568ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1570echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1571 { (exit 1); exit 1; }; }
1572
1573fi
1574echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1575echo "${ECHO_T}$ac_cv_host" >&6
1576host=$ac_cv_host
1577host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580
1581
1582echo "$as_me:$LINENO: checking target system type" >&5
1583echo $ECHO_N "checking target system type... $ECHO_C" >&6
1584if test "${ac_cv_target+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_target_alias=$target_alias
1588test "x$ac_cv_target_alias" = "x" &&
1589 ac_cv_target_alias=$ac_cv_host_alias
1590ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1592echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
dfac8a13 1594
a8aea176
NN
1595fi
1596echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1597echo "${ECHO_T}$ac_cv_target" >&6
1598target=$ac_cv_target
1599target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
dfac8a13 1602
dfac8a13 1603
a8aea176
NN
1604# The aliases save the names the user supplied, while $host etc.
1605# will get canonicalized.
1606test -n "$target_alias" &&
dfac8a13
TT
1607 test "$program_prefix$program_suffix$program_transform_name" = \
1608 NONENONEs,x,x, &&
1609 program_prefix=${target_alias}-
1610
8b55628e 1611# This works around an automake problem.
1e6347d8 1612mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
1613
1614
17210dff 1615am__api_version="1.9"
dfac8a13
TT
1616# Find a good install program. We prefer a C program (faster),
1617# so one script is as good as another. But avoid the broken or
1618# incompatible versions:
1619# SysV /etc/install, /usr/sbin/install
1620# SunOS /usr/etc/install
1621# IRIX /sbin/install
1622# AIX /bin/install
a8aea176 1623# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
1624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 1627# OS/2's system install, which has a completely different semantic
dfac8a13 1628# ./install, which can be erroneously created by make from ./install.sh.
a8aea176
NN
1629echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1630echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
dfac8a13 1631if test -z "$INSTALL"; then
a8aea176
NN
1632if test "${ac_cv_path_install+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1634else
a8aea176
NN
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 # Account for people who put trailing slashes in PATH elements.
1641case $as_dir/ in
1642 ./ | .// | /cC/* | \
1643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1644 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1645 /usr/ucb/* ) ;;
1646 *)
1647 # OSF1 and SCO ODT 3.0 have their own names for install.
1648 # Don't use installbsd from OSF since it installs stuff as root
1649 # by default.
1650 for ac_prog in ginstall scoinst install; do
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 1653 if test $ac_prog = install &&
a8aea176 1654 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
1655 # AIX install. It has an incompatible calling convention.
1656 :
a8aea176
NN
1657 elif test $ac_prog = install &&
1658 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659 # program-specific install script used by HP pwplus--don't use.
1660 :
dfac8a13 1661 else
a8aea176
NN
1662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1663 break 3
dfac8a13
TT
1664 fi
1665 fi
1666 done
a8aea176
NN
1667 done
1668 ;;
1669esac
1670done
1671
dfac8a13
TT
1672
1673fi
1674 if test "${ac_cv_path_install+set}" = set; then
a8aea176 1675 INSTALL=$ac_cv_path_install
dfac8a13
TT
1676 else
1677 # As a last resort, use the slow shell script. We don't cache a
1678 # path for INSTALL within a source directory, because that will
1679 # break other packages using the cache if that directory is
1680 # removed, or if the path is relative.
a8aea176 1681 INSTALL=$ac_install_sh
dfac8a13
TT
1682 fi
1683fi
a8aea176
NN
1684echo "$as_me:$LINENO: result: $INSTALL" >&5
1685echo "${ECHO_T}$INSTALL" >&6
dfac8a13
TT
1686
1687# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688# It thinks the first close brace ends the variable substitution.
1689test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1690
a8aea176 1691test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
1692
1693test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1694
a8aea176
NN
1695echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1696echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
dfac8a13
TT
1697# Just in case
1698sleep 1
9fabf579 1699echo timestamp > conftest.file
dfac8a13
TT
1700# Do `set' in a subshell so we don't clobber the current shell's
1701# arguments. Must try -L first in case configure is actually a
1702# symlink; some systems play weird games with the mod time of symlinks
1703# (eg FreeBSD returns the mod time of the symlink's containing
1704# directory).
1705if (
9fabf579 1706 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
dfac8a13
TT
1707 if test "$*" = "X"; then
1708 # -L didn't work.
9fabf579 1709 set X `ls -t $srcdir/configure conftest.file`
dfac8a13 1710 fi
9fabf579
KC
1711 rm -f conftest.file
1712 if test "$*" != "X $srcdir/configure conftest.file" \
1713 && test "$*" != "X conftest.file $srcdir/configure"; then
dfac8a13
TT
1714
1715 # If neither matched, then we have a broken ls. This can happen
1716 # if, for instance, CONFIG_SHELL is bash and it inherits a
1717 # broken ls alias from the environment. This has actually
1718 # happened. Such a system could not be considered "sane".
a8aea176
NN
1719 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1720alias in your environment" >&5
1721echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1722alias in your environment" >&2;}
1723 { (exit 1); exit 1; }; }
dfac8a13
TT
1724 fi
1725
9fabf579 1726 test "$2" = conftest.file
dfac8a13
TT
1727 )
1728then
1729 # Ok.
1730 :
1731else
a8aea176
NN
1732 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1733Check your system clock" >&5
1734echo "$as_me: error: newly created file is older than distributed files!
1735Check your system clock" >&2;}
1736 { (exit 1); exit 1; }; }
dfac8a13 1737fi
a8aea176
NN
1738echo "$as_me:$LINENO: result: yes" >&5
1739echo "${ECHO_T}yes" >&6
dfac8a13 1740test "$program_prefix" != NONE &&
a8aea176 1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
dfac8a13
TT
1742# Use a double $ so make ignores it.
1743test "$program_suffix" != NONE &&
a8aea176
NN
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745# Double any \ or $. echo might interpret backslashes.
1746# By default was `s,x,x', remove it if useless.
1747cat <<\_ACEOF >conftest.sed
1748s/[\\$]/&&/g;s/;s,x,x,$//
1749_ACEOF
1750program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751rm conftest.sed
1752
9fabf579
KC
1753# expand $ac_aux_dir to an absolute path
1754am_aux_dir=`cd $ac_aux_dir && pwd`
1755
1756test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757# Use eval to expand $SHELL
1758if eval "$MISSING --run true"; then
1759 am_missing_run="$MISSING --run "
1760else
1761 am_missing_run=
1762 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1764fi
1765
076e5443 1766if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
17210dff
TT
1767 # We used to keeping the `.' as first argument, in order to
1768 # allow $(mkdir_p) to be used without argument. As in
076e5443 1769 # $(mkdir_p) $(somedir)
17210dff
TT
1770 # where $(somedir) is conditionally defined. However this is wrong
1771 # for two reasons:
1772 # 1. if the package is installed by a user who cannot write `.'
1773 # make install will fail,
1774 # 2. the above comment should most certainly read
1775 # $(mkdir_p) $(DESTDIR)$(somedir)
1776 # so it does not work when $(somedir) is undefined and
1777 # $(DESTDIR) is not.
1778 # To support the latter case, we have to write
1779 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1780 # so the `.' trick is pointless.
1781 mkdir_p='mkdir -p --'
076e5443
PB
1782else
1783 # On NextStep and OpenStep, the `mkdir' command does not
1784 # recognize any option. It will interpret all options as
1785 # directories to create, and then abort because `.' already
1786 # exists.
1787 for d in ./-p ./--version;
1788 do
1789 test -d $d && rmdir $d
1790 done
1791 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1792 if test -f "$ac_aux_dir/mkinstalldirs"; then
1793 mkdir_p='$(mkinstalldirs)'
1794 else
1795 mkdir_p='$(install_sh) -d'
1796 fi
1797fi
1798
9fabf579
KC
1799for ac_prog in gawk mawk nawk awk
1800do
1801 # Extract the first word of "$ac_prog", so it can be a program name with args.
1802set dummy $ac_prog; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_AWK+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 if test -n "$AWK"; then
1809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_AWK="$ac_prog"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822done
1823done
1824
1825fi
1826fi
1827AWK=$ac_cv_prog_AWK
1828if test -n "$AWK"; then
1829 echo "$as_me:$LINENO: result: $AWK" >&5
1830echo "${ECHO_T}$AWK" >&6
1831else
1832 echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836 test -n "$AWK" && break
1837done
1838
a8aea176
NN
1839echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1840echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1841set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1842if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1844else
a8aea176 1845 cat >conftest.make <<\_ACEOF
dfac8a13 1846all:
a8aea176
NN
1847 @echo 'ac_maketemp="$(MAKE)"'
1848_ACEOF
dfac8a13 1849# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8aea176 1850eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
dfac8a13
TT
1851if test -n "$ac_maketemp"; then
1852 eval ac_cv_prog_make_${ac_make}_set=yes
1853else
1854 eval ac_cv_prog_make_${ac_make}_set=no
1855fi
a8aea176 1856rm -f conftest.make
dfac8a13
TT
1857fi
1858if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a8aea176
NN
1859 echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6
dfac8a13
TT
1861 SET_MAKE=
1862else
a8aea176
NN
1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
dfac8a13
TT
1865 SET_MAKE="MAKE=${MAKE-make}"
1866fi
1867
9fabf579
KC
1868rm -rf .tst 2>/dev/null
1869mkdir .tst 2>/dev/null
1870if test -d .tst; then
1871 am__leading_dot=.
1872else
1873 am__leading_dot=_
1874fi
1875rmdir .tst 2>/dev/null
dfac8a13 1876
076e5443 1877# test to see if srcdir already configured
9fabf579
KC
1878if test "`cd $srcdir && pwd`" != "`pwd`" &&
1879 test -f $srcdir/config.status; then
a8aea176
NN
1880 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1881echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1882 { (exit 1); exit 1; }; }
dfac8a13 1883fi
a8aea176 1884
9fabf579
KC
1885# test whether we have cygpath
1886if test -z "$CYGPATH_W"; then
1887 if (cygpath --version) >/dev/null 2>/dev/null; then
1888 CYGPATH_W='cygpath -w'
1889 else
1890 CYGPATH_W=echo
1891 fi
1892fi
1893
1894
1895# Define the identity of the package.
1896 PACKAGE=zlib
1897 VERSION=1.1.4
1898
1899
a8aea176 1900cat >>confdefs.h <<_ACEOF
dfac8a13 1901#define PACKAGE "$PACKAGE"
a8aea176 1902_ACEOF
dfac8a13 1903
a8aea176
NN
1904
1905cat >>confdefs.h <<_ACEOF
dfac8a13 1906#define VERSION "$VERSION"
a8aea176 1907_ACEOF
dfac8a13 1908
9fabf579
KC
1909# Some tools Automake needs.
1910
1911ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1912
1913
1914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1915
1916
1917AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
dfac8a13
TT
1918
1919
9fabf579
KC
1920AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1921
1922
1923MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1924
9fabf579
KC
1925install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926
1927# Installed binaries are usually stripped using `strip' when the user
1928# run `make install-strip'. However `strip' might not be the right
1929# tool to use in cross-compilation environments, therefore Automake
1930# will honor the `STRIP' environment variable to overrule this program.
1931if test "$cross_compiling" != no; then
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1934set dummy ${ac_tool_prefix}strip; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_STRIP+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1939else
9fabf579
KC
1940 if test -n "$STRIP"; then
1941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
dfac8a13 1956
9fabf579
KC
1957fi
1958fi
1959STRIP=$ac_cv_prog_STRIP
1960if test -n "$STRIP"; then
1961 echo "$as_me:$LINENO: result: $STRIP" >&5
1962echo "${ECHO_T}$STRIP" >&6
dfac8a13 1963else
9fabf579
KC
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
dfac8a13
TT
1966fi
1967
dfac8a13 1968fi
9fabf579
KC
1969if test -z "$ac_cv_prog_STRIP"; then
1970 ac_ct_STRIP=$STRIP
1971 # Extract the first word of "strip", so it can be a program name with args.
1972set dummy strip; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978 if test -n "$ac_ct_STRIP"; then
1979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_STRIP="strip"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1991 fi
1992done
1993done
dfac8a13 1994
9fabf579
KC
1995 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1996fi
1997fi
1998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1999if test -n "$ac_ct_STRIP"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2001echo "${ECHO_T}$ac_ct_STRIP" >&6
dfac8a13 2002else
9fabf579
KC
2003 echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
dfac8a13
TT
2005fi
2006
9fabf579 2007 STRIP=$ac_ct_STRIP
dfac8a13 2008else
9fabf579
KC
2009 STRIP="$ac_cv_prog_STRIP"
2010fi
2011
dfac8a13 2012fi
9fabf579
KC
2013INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014
2015# We need awk for the "check" target. The system "awk" is bad on
2016# some platforms.
17210dff
TT
2017# Always define AMTAR for backward compatibility.
2018
2019AMTAR=${AMTAR-"${am_missing_run}tar"}
2020
2021am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2022
2023
9fabf579 2024
dfac8a13
TT
2025
2026
2027
a8aea176
NN
2028echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2029echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
e093c992
AG
2030 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2031if test "${enable_maintainer_mode+set}" = set; then
2032 enableval="$enable_maintainer_mode"
2033 USE_MAINTAINER_MODE=$enableval
2034else
2035 USE_MAINTAINER_MODE=no
a8aea176
NN
2036fi;
2037 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2038echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e093c992 2039
e093c992
AG
2040
2041if test $USE_MAINTAINER_MODE = yes; then
2042 MAINTAINER_MODE_TRUE=
2043 MAINTAINER_MODE_FALSE='#'
2044else
2045 MAINTAINER_MODE_TRUE='#'
2046 MAINTAINER_MODE_FALSE=
2047fi
9fabf579 2048
e093c992 2049 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
2050
2051
e093c992
AG
2052
2053
dfac8a13
TT
2054# Check whether --with-target-subdir or --without-target-subdir was given.
2055if test "${with_target_subdir+set}" = set; then
2056 withval="$with_target_subdir"
a8aea176
NN
2057
2058fi;
2059
2060if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2061 COMPPATH=.
2062else
2063 COMPPATH=..
dfac8a13
TT
2064fi
2065
a8aea176
NN
2066
2067
dfac8a13
TT
2068# Check whether --with-cross-host or --without-cross-host was given.
2069if test "${with_cross_host+set}" = set; then
2070 withval="$with_cross_host"
dfac8a13 2071
a8aea176 2072fi;
dfac8a13
TT
2073
2074# Check whether --enable-multilib or --disable-multilib was given.
2075if test "${enable_multilib+set}" = set; then
2076 enableval="$enable_multilib"
2077 case "${enableval}" in
2078 yes) multilib=yes ;;
2079 no) multilib=no ;;
a8aea176
NN
2080 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2081echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2082 { (exit 1); exit 1; }; } ;;
dfac8a13
TT
2083 esac
2084else
67d08194 2085 test -z "$with_target_subdir" && multilib=no || multilib=yes
a8aea176 2086fi;
dfac8a13 2087
79a9a529
TT
2088# Check whether --with-system-zlib or --without-system-zlib was given.
2089if test "${with_system_zlib+set}" = set; then
2090 withval="$with_system_zlib"
79a9a529 2091
a8aea176
NN
2092fi;
2093
2094# Make sure we don't test executables when making cross-tools.
2095
2096
076e5443
PB
2097# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2098# We must force CC to /not/ be precious variables; otherwise
2099# the wrong, non-multilib-adjusted value will be used in multilibs.
2100# As a side effect, we have to subst CFLAGS ourselves.
2101
2102
2103
a8aea176
NN
2104ac_ext=c
2105ac_cpp='$CPP $CPPFLAGS'
2106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2111set dummy ${ac_tool_prefix}gcc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131done
2132done
79a9a529 2133
a8aea176
NN
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6
2140else
2141 echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6
2143fi
025fd00e 2144
a8aea176
NN
2145fi
2146if test -z "$ac_cv_prog_CC"; then
2147 ac_ct_CC=$CC
2148 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 2149set dummy gcc; ac_word=$2
a8aea176
NN
2150echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155 if test -n "$ac_ct_CC"; then
2156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157else
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165 ac_cv_prog_ac_ct_CC="gcc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2168 fi
2169done
2170done
2171
2172fi
2173fi
2174ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175if test -n "$ac_ct_CC"; then
2176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177echo "${ECHO_T}$ac_ct_CC" >&6
2178else
2179 echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6
2181fi
2182
2183 CC=$ac_ct_CC
2184else
2185 CC="$ac_cv_prog_CC"
2186fi
2187
2188if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2191set dummy ${ac_tool_prefix}cc; ac_word=$2
2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_prog_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2196else
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
a8aea176
NN
2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207 ac_cv_prog_CC="${ac_tool_prefix}cc"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 break 2
2210 fi
2211done
2212done
2213
dfac8a13
TT
2214fi
2215fi
a8aea176 2216CC=$ac_cv_prog_CC
dfac8a13 2217if test -n "$CC"; then
a8aea176
NN
2218 echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6
2220else
2221 echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6
2223fi
2224
2225fi
2226if test -z "$ac_cv_prog_CC"; then
2227 ac_ct_CC=$CC
2228 # Extract the first word of "cc", so it can be a program name with args.
2229set dummy cc; ac_word=$2
2230echo "$as_me:$LINENO: checking for $ac_word" >&5
2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235 if test -n "$ac_ct_CC"; then
2236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2237else
2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_prog_ac_ct_CC="cc"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2248 fi
2249done
2250done
2251
2252fi
2253fi
2254ac_ct_CC=$ac_cv_prog_ac_ct_CC
2255if test -n "$ac_ct_CC"; then
2256 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2257echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2258else
a8aea176
NN
2259 echo "$as_me:$LINENO: result: no" >&5
2260echo "${ECHO_T}no" >&6
dfac8a13
TT
2261fi
2262
a8aea176
NN
2263 CC=$ac_ct_CC
2264else
2265 CC="$ac_cv_prog_CC"
2266fi
2267
2268fi
dfac8a13
TT
2269if test -z "$CC"; then
2270 # Extract the first word of "cc", so it can be a program name with args.
2271set dummy cc; ac_word=$2
a8aea176
NN
2272echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2276else
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2279else
dfac8a13 2280 ac_prog_rejected=no
a8aea176
NN
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2289 ac_prog_rejected=yes
2290 continue
2291 fi
2292 ac_cv_prog_CC="cc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2295 fi
2296done
2297done
2298
dfac8a13
TT
2299if test $ac_prog_rejected = yes; then
2300 # We found a bogon in the path, so make sure we never use it.
2301 set dummy $ac_cv_prog_CC
2302 shift
a8aea176 2303 if test $# != 0; then
dfac8a13
TT
2304 # We chose a different compiler from the bogus one.
2305 # However, it has the same basename, so the bogon will be chosen
2306 # first if we set CC to just the basename; use the full file name.
2307 shift
a8aea176 2308 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
2309 fi
2310fi
2311fi
2312fi
a8aea176 2313CC=$ac_cv_prog_CC
dfac8a13 2314if test -n "$CC"; then
a8aea176
NN
2315 echo "$as_me:$LINENO: result: $CC" >&5
2316echo "${ECHO_T}$CC" >&6
dfac8a13 2317else
a8aea176
NN
2318 echo "$as_me:$LINENO: result: no" >&5
2319echo "${ECHO_T}no" >&6
dfac8a13
TT
2320fi
2321
dfac8a13 2322fi
a8aea176
NN
2323if test -z "$CC"; then
2324 if test -n "$ac_tool_prefix"; then
2325 for ac_prog in cl
2326 do
2327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2329echo "$as_me:$LINENO: checking for $ac_word" >&5
2330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2333else
a8aea176
NN
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 2336else
a8aea176
NN
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348done
2349done
2350
dfac8a13 2351fi
a8aea176
NN
2352fi
2353CC=$ac_cv_prog_CC
2354if test -n "$CC"; then
2355 echo "$as_me:$LINENO: result: $CC" >&5
2356echo "${ECHO_T}$CC" >&6
2357else
2358 echo "$as_me:$LINENO: result: no" >&5
2359echo "${ECHO_T}no" >&6
dfac8a13
TT
2360fi
2361
a8aea176
NN
2362 test -n "$CC" && break
2363 done
2364fi
2365if test -z "$CC"; then
2366 ac_ct_CC=$CC
2367 for ac_prog in cl
2368do
2369 # Extract the first word of "$ac_prog", so it can be a program name with args.
2370set dummy $ac_prog; ac_word=$2
2371echo "$as_me:$LINENO: checking for $ac_word" >&5
2372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2375else
a8aea176
NN
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_ac_ct_CC="$ac_prog"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390done
2391done
2392
2393fi
2394fi
2395ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396if test -n "$ac_ct_CC"; then
2397 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2399else
a8aea176
NN
2400 echo "$as_me:$LINENO: result: no" >&5
2401echo "${ECHO_T}no" >&6
dfac8a13 2402fi
dfac8a13 2403
a8aea176
NN
2404 test -n "$ac_ct_CC" && break
2405done
2406
2407 CC=$ac_ct_CC
2408fi
2409
2410fi
2411
2412
2413test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2414See \`config.log' for more details." >&5
2415echo "$as_me: error: no acceptable C compiler found in \$PATH
2416See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2418
2419# Provide some information about the compiler.
2420echo "$as_me:$LINENO:" \
2421 "checking for C compiler version" >&5
2422ac_compiler=`set X $ac_compile; echo $2`
2423{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2424 (eval $ac_compiler --version </dev/null >&5) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2428{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2429 (eval $ac_compiler -v </dev/null >&5) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2433{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2434 (eval $ac_compiler -V </dev/null >&5) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438
2439cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445
2446int
2447main ()
2448{
2449
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454# FIXME: Cleanup?
2455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 gcc_no_link=no
2461else
2462 gcc_no_link=yes
dfac8a13
TT
2463fi
2464
a8aea176
NN
2465if test x$gcc_no_link = xyes; then
2466 # Setting cross_compile will disable run tests; it will
2467 # also disable AC_CHECK_FILE but that's generally
2468 # correct if we can't link.
2469 cross_compiling=yes
2470 EXEEXT=
2471else
2472 cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h. */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h. */
2478
2479int
2480main ()
2481{
2482
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487ac_clean_files_save=$ac_clean_files
2488ac_clean_files="$ac_clean_files a.out a.exe b.out"
2489# Try to create an executable without -o first, disregard a.out.
2490# It will help us diagnose broken compilers, and finding out an intuition
2491# of exeext.
2492echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2493echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2494ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2495if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2496 (eval $ac_link_default) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # Find the output, starting from the most likely. This scheme is
2501# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2502# resort.
2503
2504# Be careful to initialize this variable, since it used to be cached.
2505# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2506ac_cv_exeext=
2507# b.out is created by i960 compilers.
2508for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2509do
2510 test -f "$ac_file" || continue
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2513 ;;
2514 conftest.$ac_ext )
2515 # This is the source file.
2516 ;;
2517 [ab].out )
2518 # We found the default executable, but exeext='' is most
2519 # certainly right.
2520 break;;
2521 *.* )
2522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 # FIXME: I believe we export ac_cv_exeext for Libtool,
2524 # but it would be cool to find out if it's true. Does anybody
2525 # maintain Libtool? --akim.
2526 export ac_cv_exeext
2527 break;;
2528 * )
2529 break;;
2530 esac
2531done
2532else
2533 echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537See \`config.log' for more details." >&5
2538echo "$as_me: error: C compiler cannot create executables
2539See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }
2541fi
2542
2543ac_exeext=$ac_cv_exeext
2544echo "$as_me:$LINENO: result: $ac_file" >&5
2545echo "${ECHO_T}$ac_file" >&6
2546
2547# Check the compiler produces executables we can run. If not, either
2548# the compiler is broken, or we cross compile.
2549echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552# If not cross compiling, check that we can run a simple program.
2553if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cross_compiling=no
dfac8a13 2561 else
a8aea176
NN
2562 if test "$cross_compiling" = maybe; then
2563 cross_compiling=yes
2564 else
2565 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2566If you meant to cross compile, use \`--host'.
2567See \`config.log' for more details." >&5
2568echo "$as_me: error: cannot run C compiled programs.
2569If you meant to cross compile, use \`--host'.
2570See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2572 fi
dfac8a13 2573 fi
a8aea176
NN
2574fi
2575echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
2577
2578rm -f a.out a.exe conftest$ac_cv_exeext b.out
2579ac_clean_files=$ac_clean_files_save
2580# Check the compiler produces executables we can run. If not, either
2581# the compiler is broken, or we cross compile.
2582echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2583echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2584echo "$as_me:$LINENO: result: $cross_compiling" >&5
2585echo "${ECHO_T}$cross_compiling" >&6
2586
2587echo "$as_me:$LINENO: checking for suffix of executables" >&5
2588echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596# work properly (i.e., refer to `conftest.exe'), while it won't with
2597# `rm'.
2598for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603 export ac_cv_exeext
2604 break;;
2605 * ) break;;
2606 esac
2607done
dfac8a13 2608else
a8aea176
NN
2609 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2610See \`config.log' for more details." >&5
2611echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2612See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2614fi
2615
2616rm -f conftest$ac_cv_exeext
2617echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2618echo "${ECHO_T}$ac_cv_exeext" >&6
2619
2620rm -f conftest.$ac_ext
2621EXEEXT=$ac_cv_exeext
2622ac_exeext=$EXEEXT
2623fi
2624echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2626if test "${ac_cv_objext+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2628else
a8aea176
NN
2629 cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
5d836b57 2635
a8aea176
NN
2636int
2637main ()
2638{
5d836b57 2639
a8aea176
NN
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.o conftest.obj
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; then
2650 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2651 case $ac_file in
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654 break;;
2655 esac
2656done
5d836b57 2657else
a8aea176
NN
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662See \`config.log' for more details." >&5
2663echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
5d836b57
TT
2666fi
2667
a8aea176
NN
2668rm -f conftest.$ac_cv_objext conftest.$ac_ext
2669fi
2670echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671echo "${ECHO_T}$ac_cv_objext" >&6
2672OBJEXT=$ac_cv_objext
2673ac_objext=$OBJEXT
2674echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2676if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2678else
a8aea176
NN
2679 cat >conftest.$ac_ext <<_ACEOF
2680/* confdefs.h. */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h. */
5d836b57 2685
a8aea176
NN
2686int
2687main ()
2688{
2689#ifndef __GNUC__
2690 choke me
2691#endif
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
2698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
17210dff
TT
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
a8aea176
NN
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_compiler_gnu=yes
5d836b57 2720else
a8aea176
NN
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724ac_compiler_gnu=no
5d836b57 2725fi
a8aea176
NN
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 2728
a8aea176
NN
2729fi
2730echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2731echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2732GCC=`test $ac_compiler_gnu = yes && echo yes`
2733ac_test_CFLAGS=${CFLAGS+set}
2734ac_save_CFLAGS=$CFLAGS
2735CFLAGS="-g"
2736echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2737echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2738if test "${ac_cv_prog_cc_g+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h. */
5d836b57 2747
a8aea176
NN
2748int
2749main ()
2750{
5d836b57 2751
a8aea176
NN
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
17210dff
TT
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
a8aea176
NN
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_prog_cc_g=yes
5d836b57 2779else
a8aea176
NN
2780 echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783ac_cv_prog_cc_g=no
2784fi
2785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786fi
2787echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2788echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2789if test "$ac_test_CFLAGS" = set; then
2790 CFLAGS=$ac_save_CFLAGS
2791elif test $ac_cv_prog_cc_g = yes; then
2792 if test "$GCC" = yes; then
2793 CFLAGS="-g -O2"
2794 else
2795 CFLAGS="-g"
2796 fi
5d836b57 2797else
a8aea176
NN
2798 if test "$GCC" = yes; then
2799 CFLAGS="-O2"
5d836b57 2800 else
a8aea176 2801 CFLAGS=
5d836b57 2802 fi
5d836b57 2803fi
a8aea176
NN
2804echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2805echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2806if test "${ac_cv_prog_cc_stdc+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 ac_cv_prog_cc_stdc=no
2810ac_save_CC=$CC
2811cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h. */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h. */
2817#include <stdarg.h>
2818#include <stdio.h>
2819#include <sys/types.h>
2820#include <sys/stat.h>
2821/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2822struct buf { int x; };
2823FILE * (*rcsopen) (struct buf *, struct stat *, int);
2824static char *e (p, i)
2825 char **p;
2826 int i;
2827{
2828 return p[i];
2829}
2830static char *f (char * (*g) (char **, int), char **p, ...)
2831{
2832 char *s;
2833 va_list v;
2834 va_start (v,p);
2835 s = g (p, va_arg (v,int));
2836 va_end (v);
2837 return s;
2838}
5d836b57 2839
a8aea176
NN
2840/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2841 function prototypes and stuff, but not '\xHH' hex character constants.
2842 These don't provoke an error unfortunately, instead are silently treated
2843 as 'x'. The following induces an error, until -std1 is added to get
2844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2845 array size at least. It's necessary to write '\x00'==0 to get something
2846 that's true only with -std1. */
2847int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2848
2849int test (int i, double x);
2850struct s1 {int (*f) (int a);};
2851struct s2 {int (*f) (double a);};
2852int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2853int argc;
2854char **argv;
2855int
2856main ()
2857{
2858return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863# Don't try gcc -ansi; that turns off useful extensions and
2864# breaks some systems' header files.
2865# AIX -qlanglvl=ansi
2866# Ultrix and OSF/1 -std1
2867# HP-UX 10.20 and later -Ae
2868# HP-UX older versions -Aa -D_HPUX_SOURCE
2869# SVR4 -Xc -D__EXTENSIONS__
2870for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2871do
2872 CC="$ac_save_CC $ac_arg"
2873 rm -f conftest.$ac_objext
2874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
17210dff
TT
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
a8aea176
NN
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 ac_cv_prog_cc_stdc=$ac_arg
2896break
2897else
2898 echo "$as_me: failed program was:" >&5
2899sed 's/^/| /' conftest.$ac_ext >&5
2900
2901fi
2902rm -f conftest.err conftest.$ac_objext
2903done
2904rm -f conftest.$ac_ext conftest.$ac_objext
2905CC=$ac_save_CC
2906
2907fi
2908
2909case "x$ac_cv_prog_cc_stdc" in
2910 x|xno)
2911 echo "$as_me:$LINENO: result: none needed" >&5
2912echo "${ECHO_T}none needed" >&6 ;;
2913 *)
2914 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2915echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2916 CC="$CC $ac_cv_prog_cc_stdc" ;;
2917esac
2918
2919# Some people use a C++ compiler to compile C. Since we use `exit',
2920# in C++ we need to declare it. In case someone uses the same compiler
2921# for both compiling C and C++ we need to have the C++ compiler decide
2922# the declaration of exit, since it's the most demanding environment.
2923cat >conftest.$ac_ext <<_ACEOF
2924#ifndef __cplusplus
2925 choke me
2926#endif
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
17210dff
TT
2937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
a8aea176
NN
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 for ac_declaration in \
2951 '' \
2952 'extern "C" void std::exit (int) throw (); using std::exit;' \
2953 'extern "C" void std::exit (int); using std::exit;' \
2954 'extern "C" void exit (int) throw ();' \
2955 'extern "C" void exit (int);' \
2956 'void exit (int);'
2957do
2958 cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
2964$ac_declaration
2965#include <stdlib.h>
2966int
2967main ()
2968{
2969exit (42);
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext
2975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976 (eval $ac_compile) 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
17210dff
TT
2983 { ac_try='test -z "$ac_c_werror_flag"
2984 || test ! -s conftest.err'
a8aea176
NN
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 :
2997else
2998 echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001continue
3002fi
3003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h. */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h. */
3010$ac_declaration
3011int
3012main ()
3013{
3014exit (42);
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext
3020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
17210dff
TT
3028 { ac_try='test -z "$ac_c_werror_flag"
3029 || test ! -s conftest.err'
a8aea176
NN
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 break
3042else
3043 echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046fi
3047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3048done
3049rm -f conftest*
3050if test -n "$ac_declaration"; then
3051 echo '#ifdef __cplusplus' >>confdefs.h
3052 echo $ac_declaration >>confdefs.h
3053 echo '#endif' >>confdefs.h
3054fi
3055
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
5d836b57 3059
5d836b57 3060fi
a8aea176
NN
3061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3062ac_ext=c
3063ac_cpp='$CPP $CPPFLAGS'
3064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066ac_compiler_gnu=$ac_cv_c_compiler_gnu
9fabf579
KC
3067DEPDIR="${am__leading_dot}deps"
3068
3069 ac_config_commands="$ac_config_commands depfiles"
3070
3071
3072am_make=${MAKE-make}
3073cat > confinc << 'END'
3074am__doit:
3075 @echo done
3076.PHONY: am__doit
3077END
3078# If we don't find an include directive, just comment out the code.
3079echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3080echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3081am__include="#"
3082am__quote=
3083_am_result=none
3084# First try GNU make style include.
3085echo "include confinc" > confmf
3086# We grep out `Entering directory' and `Leaving directory'
3087# messages which can occur if `w' ends up in MAKEFLAGS.
3088# In particular we don't look at `^make:' because GNU make might
3089# be invoked under some other name (usually "gmake"), in which
3090# case it prints its new name instead of `make'.
3091if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3092 am__include=include
3093 am__quote=
3094 _am_result=GNU
3095fi
3096# Now try BSD make style include.
3097if test "$am__include" = "#"; then
3098 echo '.include "confinc"' > confmf
3099 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3100 am__include=.include
3101 am__quote="\""
3102 _am_result=BSD
3103 fi
3104fi
3105
3106
3107echo "$as_me:$LINENO: result: $_am_result" >&5
3108echo "${ECHO_T}$_am_result" >&6
3109rm -f confinc confmf
3110
3111# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3112if test "${enable_dependency_tracking+set}" = set; then
3113 enableval="$enable_dependency_tracking"
3114
3115fi;
3116if test "x$enable_dependency_tracking" != xno; then
3117 am_depcomp="$ac_aux_dir/depcomp"
3118 AMDEPBACKSLASH='\'
3119fi
3120
3121
3122if test "x$enable_dependency_tracking" != xno; then
3123 AMDEP_TRUE=
3124 AMDEP_FALSE='#'
3125else
3126 AMDEP_TRUE='#'
3127 AMDEP_FALSE=
3128fi
3129
3130
3131
3132
3133depcc="$CC" am_compiler_list=
3134
3135echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3136echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3137if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3141 # We make a subdir and do the tests there. Otherwise we can end up
3142 # making bogus files that we don't know about and never remove. For
3143 # instance it was reported that on HP-UX the gcc test will end up
3144 # making a dummy file named `D' -- because `-MD' means `put the output
3145 # in D'.
3146 mkdir conftest.dir
3147 # Copy depcomp to subdir because otherwise we won't find it if we're
3148 # using a relative directory.
3149 cp "$am_depcomp" conftest.dir
3150 cd conftest.dir
3151 # We will build objects and dependencies in a subdirectory because
3152 # it helps to detect inapplicable dependency modes. For instance
3153 # both Tru64's cc and ICC support -MD to output dependencies as a
3154 # side effect of compilation, but ICC will put the dependencies in
3155 # the current directory while Tru64 will put them in the object
3156 # directory.
3157 mkdir sub
3158
3159 am_cv_CC_dependencies_compiler_type=none
3160 if test "$am_compiler_list" = ""; then
3161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3162 fi
3163 for depmode in $am_compiler_list; do
3164 # Setup a source with many dependencies, because some compilers
3165 # like to wrap large dependency lists on column 80 (with \), and
3166 # we should not choose a depcomp mode which is confused by this.
3167 #
3168 # We need to recreate these files for each test, as the compiler may
3169 # overwrite some of them when testing with obscure command lines.
3170 # This happens at least with the AIX C compiler.
3171 : > sub/conftest.c
3172 for i in 1 2 3 4 5 6; do
3173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3175 # Solaris 8's {/usr,}/bin/sh.
3176 touch sub/conftst$i.h
9fabf579
KC
3177 done
3178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3179
3180 case $depmode in
3181 nosideeffect)
3182 # after this tag, mechanisms are not by side-effect, so they'll
3183 # only be used when explicitly requested
3184 if test "x$enable_dependency_tracking" = xyes; then
3185 continue
3186 else
3187 break
3188 fi
3189 ;;
3190 none) break ;;
3191 esac
3192 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3193 # mode. It turns out that the SunPro C++ compiler does not properly
3194 # handle `-M -o', and we need to detect this.
3195 if depmode=$depmode \
3196 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3198 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3199 >/dev/null 2>conftest.err &&
3200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3203 # icc doesn't choke on unknown options, it will just issue warnings
076e5443
PB
3204 # or remarks (even with -Werror). So we grep stderr for any message
3205 # that says an option was ignored or not supported.
3206 # When given -MP, icc 7.0 and 7.1 complain thusly:
3207 # icc: Command line warning: ignoring option '-M'; no argument required
3208 # The diagnosis changed in icc 8.0:
3209 # icc: Command line remark: option '-MP' not supported
3210 if (grep 'ignoring option' conftest.err ||
3211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9fabf579
KC
3212 am_cv_CC_dependencies_compiler_type=$depmode
3213 break
3214 fi
3215 fi
3216 done
3217
3218 cd ..
3219 rm -rf conftest.dir
3220else
3221 am_cv_CC_dependencies_compiler_type=none
3222fi
3223
3224fi
3225echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3226echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3227CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3228
3229
3230
3231if
3232 test "x$enable_dependency_tracking" != xno \
3233 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3234 am__fastdepCC_TRUE=
3235 am__fastdepCC_FALSE='#'
3236else
3237 am__fastdepCC_TRUE='#'
3238 am__fastdepCC_FALSE=
3239fi
3240
a8aea176
NN
3241
3242
076e5443
PB
3243
3244
3245
1cf3d07d
SE
3246
3247
3248macro_version='2.1a'
3249macro_revision='1.2435'
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262ltmain="$ac_aux_dir/ltmain.sh"
3263
3264# Set options
3265
3266enable_dlopen=no
3267
3268
3269enable_win32_dll=no
3270
3271
dfac8a13
TT
3272# Check whether --enable-shared or --disable-shared was given.
3273if test "${enable_shared+set}" = set; then
3274 enableval="$enable_shared"
3275 p=${PACKAGE-default}
1cf3d07d
SE
3276 case $enableval in
3277 yes) enable_shared=yes ;;
3278 no) enable_shared=no ;;
3279 *)
3280 enable_shared=no
3281 # Look at the argument we got. We use all the common list separators.
3282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3283 for pkg in $enableval; do
3284 IFS="$lt_save_ifs"
3285 if test "X$pkg" = "X$p"; then
3286 enable_shared=yes
3287 fi
3288 done
3289 IFS="$lt_save_ifs"
3290 ;;
3291 esac
dfac8a13
TT
3292else
3293 enable_shared=yes
a8aea176 3294fi;
1cf3d07d
SE
3295
3296
3297
3298
3299
3300
3301
3302
dfac8a13
TT
3303# Check whether --enable-static or --disable-static was given.
3304if test "${enable_static+set}" = set; then
3305 enableval="$enable_static"
3306 p=${PACKAGE-default}
1cf3d07d
SE
3307 case $enableval in
3308 yes) enable_static=yes ;;
3309 no) enable_static=no ;;
3310 *)
3311 enable_static=no
3312 # Look at the argument we got. We use all the common list separators.
3313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3314 for pkg in $enableval; do
3315 IFS="$lt_save_ifs"
3316 if test "X$pkg" = "X$p"; then
3317 enable_static=yes
3318 fi
3319 done
3320 IFS="$lt_save_ifs"
3321 ;;
3322 esac
dfac8a13
TT
3323else
3324 enable_static=yes
a8aea176 3325fi;
1cf3d07d
SE
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335# Check whether --with-pic or --without-pic was given.
3336if test "${with_pic+set}" = set; then
3337 withval="$with_pic"
3338 pic_mode="$withval"
3339else
3340 pic_mode=default
3341fi;
3342
3343test -z "$pic_mode" && pic_mode=default
3344
3345
3346
3347
3348
3349
3350
dfac8a13
TT
3351# Check whether --enable-fast-install or --disable-fast-install was given.
3352if test "${enable_fast_install+set}" = set; then
3353 enableval="$enable_fast_install"
3354 p=${PACKAGE-default}
1cf3d07d
SE
3355 case $enableval in
3356 yes) enable_fast_install=yes ;;
3357 no) enable_fast_install=no ;;
3358 *)
3359 enable_fast_install=no
3360 # Look at the argument we got. We use all the common list separators.
3361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3362 for pkg in $enableval; do
3363 IFS="$lt_save_ifs"
3364 if test "X$pkg" = "X$p"; then
3365 enable_fast_install=yes
3366 fi
3367 done
3368 IFS="$lt_save_ifs"
3369 ;;
3370 esac
dfac8a13
TT
3371else
3372 enable_fast_install=yes
a8aea176 3373fi;
dfac8a13 3374
1cf3d07d
SE
3375
3376
3377
3378
3379
3380
3381
3382echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3383echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3384if test "${lt_cv_path_SED+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387 # Loop through the user's path and test for sed and gsed.
3388# Then use that list of sed's as ones to test for truncation.
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for lt_ac_prog in sed gsed; do
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3397 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3398 fi
3399 done
3400 done
3401done
3402IFS=$as_save_IFS
3403lt_ac_max=0
3404lt_ac_count=0
3405# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3406# along with /bin/sed that truncates output.
3407for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3408 test ! -f $lt_ac_sed && continue
3409 cat /dev/null > conftest.in
3410 lt_ac_count=0
3411 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3412 # Check for GNU sed and select it if it is found.
3413 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3414 lt_cv_path_SED=$lt_ac_sed
3415 break
3416 fi
3417 while true; do
3418 cat conftest.in conftest.in >conftest.tmp
3419 mv conftest.tmp conftest.in
3420 cp conftest.in conftest.nl
3421 echo >>conftest.nl
3422 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3423 cmp -s conftest.out conftest.nl || break
3424 # 10000 chars as input seems more than enough
3425 test $lt_ac_count -gt 10 && break
3426 lt_ac_count=`expr $lt_ac_count + 1`
3427 if test $lt_ac_count -gt $lt_ac_max; then
3428 lt_ac_max=$lt_ac_count
3429 lt_cv_path_SED=$lt_ac_sed
3430 fi
3431 done
3432done
3433
3434fi
3435
3436SED=$lt_cv_path_SED
3437
3438echo "$as_me:$LINENO: result: $SED" >&5
3439echo "${ECHO_T}$SED" >&6
3440
3441test -z "$SED" && SED=sed
3442Xsed="$SED -e 1s/^X//"
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454echo "$as_me:$LINENO: checking for egrep" >&5
3455echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3456if test "${ac_cv_prog_egrep+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3460 then ac_cv_prog_egrep='grep -E'
3461 else ac_cv_prog_egrep='egrep'
3462 fi
3463fi
3464echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3465echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3466 EGREP=$ac_cv_prog_egrep
3467
3468
3469echo "$as_me:$LINENO: checking for fgrep" >&5
3470echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3471if test "${ac_cv_prog_fgrep+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3475 then ac_cv_prog_fgrep='grep -F'
3476 else ac_cv_prog_fgrep='fgrep'
3477 fi
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3480echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3481 FGREP=$ac_cv_prog_fgrep
3482
3483
3484test -z "$GREP" && GREP=grep
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
dfac8a13
TT
3504# Check whether --with-gnu-ld or --without-gnu-ld was given.
3505if test "${with_gnu_ld+set}" = set; then
3506 withval="$with_gnu_ld"
3507 test "$withval" = no || with_gnu_ld=yes
3508else
3509 with_gnu_ld=no
a8aea176 3510fi;
dfac8a13 3511ac_prog=ld
0fd91e0a 3512if test "$GCC" = yes; then
dfac8a13 3513 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3514 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3515echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
0fd91e0a
AO
3516 case $host in
3517 *-*-mingw*)
3518 # gcc leaves a trailing carriage return which upsets mingw
3519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3520 *)
3521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3522 esac
3523 case $ac_prog in
dfac8a13 3524 # Accept absolute paths.
1cf3d07d 3525 [\\/]* | ?:[\\/]*)
dfac8a13 3526 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3527 # Canonicalize the pathname of ld
3528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
dfac8a13
TT
3531 done
3532 test -z "$LD" && LD="$ac_prog"
3533 ;;
3534 "")
3535 # If it fails, then pretend we aren't using GCC.
3536 ac_prog=ld
3537 ;;
3538 *)
3539 # If it is relative, then search for the first ld in PATH.
3540 with_gnu_ld=unknown
3541 ;;
3542 esac
3543elif test "$with_gnu_ld" = yes; then
a8aea176
NN
3544 echo "$as_me:$LINENO: checking for GNU ld" >&5
3545echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
dfac8a13 3546else
a8aea176
NN
3547 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3548echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
dfac8a13 3549fi
a8aea176
NN
3550if test "${lt_cv_path_LD+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3552else
3553 if test -z "$LD"; then
1cf3d07d 3554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
dfac8a13 3555 for ac_dir in $PATH; do
1cf3d07d 3556 IFS="$lt_save_ifs"
dfac8a13 3557 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
3558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3559 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13 3560 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3561 # but apparently some variants of GNU ld only accept -v.
dfac8a13 3562 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3564 *GNU* | *'with BFD'*)
dfac8a13 3565 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3566 ;;
3567 *)
dfac8a13 3568 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3569 ;;
3570 esac
dfac8a13
TT
3571 fi
3572 done
1cf3d07d 3573 IFS="$lt_save_ifs"
dfac8a13 3574else
0fd91e0a 3575 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
3576fi
3577fi
3578
0fd91e0a 3579LD="$lt_cv_path_LD"
dfac8a13 3580if test -n "$LD"; then
a8aea176
NN
3581 echo "$as_me:$LINENO: result: $LD" >&5
3582echo "${ECHO_T}$LD" >&6
dfac8a13 3583else
a8aea176
NN
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586fi
3587test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3588echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3589 { (exit 1); exit 1; }; }
3590echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3591echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3592if test "${lt_cv_prog_gnu_ld+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3594else
1cf3d07d
SE
3595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3596case `$LD -v 2>&1 </dev/null` in
3597*GNU* | *'with BFD'*)
0fd91e0a 3598 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3599 ;;
3600*)
0fd91e0a 3601 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3602 ;;
3603esac
dfac8a13 3604fi
a8aea176
NN
3605echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3606echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
0fd91e0a 3607with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
3608
3609
0fd91e0a 3610
1cf3d07d
SE
3611
3612
3613
3614
3615
3616
3617
3618echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3619echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
a8aea176
NN
3620if test "${lt_cv_path_NM+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3622else
3623 if test -n "$NM"; then
3624 # Let the user override the test.
0fd91e0a 3625 lt_cv_path_NM="$NM"
dfac8a13 3626else
1cf3d07d
SE
3627 lt_nm_to_check="${ac_tool_prefix}nm"
3628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3629 lt_nm_to_check="$lt_nm_to_check nm"
3630 fi
3631 for lt_tmp_nm in $lt_nm_to_check; do
3632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3634 IFS="$lt_save_ifs"
3635 test -z "$ac_dir" && ac_dir=.
3636 tmp_nm="$ac_dir/$lt_tmp_nm"
3637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3638 # Check to see if the nm accepts a BSD-compat flag.
3639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3640 # nm: unknown option "B" ignored
3641 # Tru64's nm complains that /dev/null is an invalid object file
3642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3643 */dev/null* | *'Invalid file or object type'*)
3644 lt_cv_path_NM="$tmp_nm -B"
3645 break
3646 ;;
3647 *)
3648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3649 */dev/null*)
3650 lt_cv_path_NM="$tmp_nm -p"
3651 break
3652 ;;
3653 *)
3654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3655 continue # so that we can try to find one that supports BSD flags
3656 ;;
3657 esac
3658 ;;
3659 esac
dfac8a13 3660 fi
1cf3d07d
SE
3661 done
3662 IFS="$lt_save_ifs"
dfac8a13 3663 done
1cf3d07d 3664 : ${lt_cv_path_NM=no}
dfac8a13
TT
3665fi
3666fi
1cf3d07d
SE
3667echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3668echo "${ECHO_T}$lt_cv_path_NM" >&6
3669if test "$lt_cv_path_NM" != "no"; then
3670 NM="$lt_cv_path_NM"
0fd91e0a 3671else
1cf3d07d
SE
3672 # Didn't find any BSD compatible name lister, look for dumpbin.
3673 if test -n "$ac_tool_prefix"; then
3674 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3675 do
3676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3678echo "$as_me:$LINENO: checking for $ac_word" >&5
3679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 if test -n "$DUMPBIN"; then
3684 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3685else
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697done
3698done
025fd00e 3699
1cf3d07d
SE
3700fi
3701fi
3702DUMPBIN=$ac_cv_prog_DUMPBIN
3703if test -n "$DUMPBIN"; then
3704 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3705echo "${ECHO_T}$DUMPBIN" >&6
3706else
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
3709fi
025fd00e 3710
1cf3d07d
SE
3711 test -n "$DUMPBIN" && break
3712 done
3713fi
3714if test -z "$DUMPBIN"; then
3715 ac_ct_DUMPBIN=$DUMPBIN
3716 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3717do
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719set dummy $ac_prog; ac_word=$2
3720echo "$as_me:$LINENO: checking for $ac_word" >&5
3721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725 if test -n "$ac_ct_DUMPBIN"; then
3726 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
0fd91e0a 3738 fi
1cf3d07d
SE
3739done
3740done
025fd00e 3741
1cf3d07d
SE
3742fi
3743fi
3744ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3745if test -n "$ac_ct_DUMPBIN"; then
3746 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3747echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3748else
3749 echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6
3751fi
025fd00e 3752
1cf3d07d
SE
3753 test -n "$ac_ct_DUMPBIN" && break
3754done
3755test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
025fd00e 3756
1cf3d07d
SE
3757 DUMPBIN=$ac_ct_DUMPBIN
3758fi
025fd00e 3759
025fd00e 3760
1cf3d07d
SE
3761 if test "$DUMPBIN" != ":"; then
3762 NM="$DUMPBIN"
025fd00e 3763 fi
1cf3d07d
SE
3764fi
3765test -z "$NM" && NM=nm
025fd00e 3766
025fd00e
TT
3767
3768
025fd00e 3769
33456445 3770
025fd00e 3771
1cf3d07d
SE
3772echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3773echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3774if test "${lt_cv_nm_interface+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 lt_cv_nm_interface="BSD nm"
3778 echo "int some_variable = 0;" > conftest.$ac_ext
3779 (eval echo "\"\$as_me:3779: $ac_compile\"" >&5)
3780 (eval "$ac_compile" 2>conftest.err)
3781 cat conftest.err >&5
3782 (eval echo "\"\$as_me:3782: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3784 cat conftest.err >&5
3785 (eval echo "\"\$as_me:3785: output\"" >&5)
3786 cat conftest.out >&5
3787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3788 lt_cv_nm_interface="MS dumpbin"
3789 fi
3790 rm -f conftest*
025fd00e 3791fi
1cf3d07d
SE
3792echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3793echo "${ECHO_T}$lt_cv_nm_interface" >&6
a8aea176 3794
1cf3d07d
SE
3795echo "$as_me:$LINENO: checking whether ln -s works" >&5
3796echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3797LN_S=$as_ln_s
3798if test "$LN_S" = "ln -s"; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801else
3802 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3803echo "${ECHO_T}no, using $LN_S" >&6
3804fi
dfac8a13 3805
6dab073b
MS
3806# find the maximum length of command line arguments
3807echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3808echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3809if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812 i=0
3813 teststring="ABCD"
3814
3815 case $build_os in
3816 msdosdjgpp*)
3817 # On DJGPP, this test can blow up pretty badly due to problems in libc
3818 # (any single argument exceeding 2000 bytes causes a buffer overrun
3819 # during glob expansion). Even if it were fixed, the result of this
3820 # check would be larger than it should be.
3821 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3822 ;;
3823
1cf3d07d
SE
3824 gnu*)
3825 # Under GNU Hurd, this test is not required because there is
3826 # no limit to the length of command line arguments.
3827 # Libtool will interpret -1 as no limit whatsoever
3828 lt_cv_sys_max_cmd_len=-1;
3829 ;;
3830
6dab073b
MS
3831 cygwin* | mingw*)
3832 # On Win9x/ME, this test blows up -- it succeeds, but takes
3833 # about 5 minutes as the teststring grows exponentially.
3834 # Worse, since 9x/ME are not pre-emptively multitasking,
3835 # you end up with a "frozen" computer, even though with patience
3836 # the test eventually succeeds (with a max line length of 256k).
3837 # Instead, let's just punt: use the minimum linelength reported by
3838 # all of the supported platforms: 8192 (on NT/2K/XP).
3839 lt_cv_sys_max_cmd_len=8192;
3840 ;;
3841
3842 amigaos*)
3843 # On AmigaOS with pdksh, this test takes hours, literally.
3844 # So we just punt and use a minimum line length of 8192.
3845 lt_cv_sys_max_cmd_len=8192;
3846 ;;
3847
3848 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3849 # This has been around since 386BSD, at least. Likely further.
3850 if test -x /sbin/sysctl; then
3851 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3852 elif test -x /usr/sbin/sysctl; then
3853 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3854 else
1cf3d07d 3855 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
3856 fi
3857 # And add a safety zone
3858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3860 ;;
1cf3d07d
SE
3861
3862 interix*)
3863 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3864 lt_cv_sys_max_cmd_len=196608
3865 ;;
3866
3867 osf*)
3868 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3869 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3870 # nice to cause kernel panics so lets avoid the loop below.
3871 # First set a reasonable default.
3872 lt_cv_sys_max_cmd_len=16384
3873 #
3874 if test -x /sbin/sysconfig; then
3875 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3876 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3877 esac
3878 fi
3879 ;;
3880 sco3.2v5*)
3881 lt_cv_sys_max_cmd_len=102400
3882 ;;
3883 sysv5* | sco5v6* | sysv4.2uw2*)
3884 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3885 if test -n "$kargmax"; then
3886 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3887 else
3888 lt_cv_sys_max_cmd_len=32768
3889 fi
3890 ;;
3891 *)
82a6cadf
PB
3892 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3893 if test -n $lt_cv_sys_max_cmd_len; then
3894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3896 else
3897 # Make teststring a little bigger before we do anything with it.
3898 # a 1K string should be a reasonable start.
3899 for i in 1 2 3 4 5 6 7 8 ; do
3900 teststring=$teststring$teststring
3901 done
3902 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3903 # If test is not a shell built-in, we'll probably end up computing a
3904 # maximum length that is only half of the actual maximum length, but
3905 # we can't tell.
3906 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3907 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3908 test $i != 17 # 1/2 MB should be enough
3909 do
3910 i=`expr $i + 1`
3911 teststring=$teststring$teststring
3912 done
3913 # Only check the string length outside the loop.
3914 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3915 teststring=
3916 # Add a significant safety factor because C++ compilers can tack on
3917 # massive amounts of additional arguments before passing them to the
3918 # linker. It appears as though 1/2 is a usable value.
3919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3920 fi
1cf3d07d 3921 ;;
6dab073b
MS
3922 esac
3923
3924fi
3925
1cf3d07d 3926if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
3927 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3928echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3929else
3930 echo "$as_me:$LINENO: result: none" >&5
3931echo "${ECHO_T}none" >&6
3932fi
1cf3d07d 3933max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
3934
3935
dfac8a13 3936
0fd91e0a 3937
dfac8a13 3938
1cf3d07d
SE
3939
3940
3941: ${CP="cp -f"}
3942: ${MV="mv -f"}
3943: ${RM="rm -f"}
3944
3945echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3946echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3947# Try some XSI features
3948xsi_shell=no
3949( _lt_dummy="a/b/c"
3950 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3951 = c,a/b,, ) >/dev/null 2>&1 \
3952 && xsi_shell=yes
3953echo "$as_me:$LINENO: result: $xsi_shell" >&5
3954echo "${ECHO_T}$xsi_shell" >&6
3955
3956
3957echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3958echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3959lt_shell_append=no
3960( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3961 >/dev/null 2>&1 \
3962 && lt_shell_append=yes
3963echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3964echo "${ECHO_T}$lt_shell_append" >&6
3965
3966
3967if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3968 lt_unset=unset
0fd91e0a 3969else
1cf3d07d 3970 lt_unset=false
0fd91e0a
AO
3971fi
3972
1cf3d07d
SE
3973
3974
3975
3976
3977# test EBCDIC or ASCII
3978case `echo X|tr X '\101'` in
3979 A) # ASCII based system
3980 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3981 lt_SP2NL='tr \040 \012'
3982 lt_NL2SP='tr \015\012 \040\040'
3983 ;;
3984 *) # EBCDIC based system
3985 lt_SP2NL='tr \100 \n'
3986 lt_NL2SP='tr \r\n \100\100'
3987 ;;
3988esac
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3999echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4000if test "${lt_cv_ld_reload_flag+set}" = set; then
a8aea176 4001 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 4002else
1cf3d07d
SE
4003 lt_cv_ld_reload_flag='-r'
4004fi
4005echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4006echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4007reload_flag=$lt_cv_ld_reload_flag
4008case $reload_flag in
4009"" | " "*) ;;
4010*) reload_flag=" $reload_flag" ;;
4011esac
4012reload_cmds='$LD$reload_flag -o $output$reload_objs'
4013case $host_os in
4014 darwin*)
4015 if test "$GCC" = yes; then
4016 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4017 else
4018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4019 fi
4020 ;;
4021esac
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4033echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4034if test "${lt_cv_deplibs_check_method+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037 lt_cv_file_magic_cmd='$MAGIC_CMD'
4038lt_cv_file_magic_test_file=
4039lt_cv_deplibs_check_method='unknown'
4040# Need to set the preceding variable on all platforms that support
4041# interlibrary dependencies.
4042# 'none' -- dependencies not supported.
4043# `unknown' -- same as none, but documents that we really don't know.
4044# 'pass_all' -- all dependencies passed with no checks.
4045# 'test_compile' -- check by making test program.
4046# 'file_magic [[regex]]' -- check by looking for files in library path
4047# which responds to the $file_magic_cmd with a given extended regex.
4048# If you have `file' or equivalent on your system and you're not sure
4049# whether `pass_all' will *always* work, you probably want this one.
4050
4051case $host_os in
4052aix4* | aix5*)
4053 lt_cv_deplibs_check_method=pass_all
4054 ;;
4055
4056beos*)
4057 lt_cv_deplibs_check_method=pass_all
4058 ;;
4059
4060bsdi[45]*)
4061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4062 lt_cv_file_magic_cmd='/usr/bin/file -L'
4063 lt_cv_file_magic_test_file=/shlib/libc.so
4064 ;;
4065
4066cygwin*)
4067 # func_win32_libid is a shell function defined in ltmain.sh
4068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4069 lt_cv_file_magic_cmd='func_win32_libid'
4070 ;;
4071
4072mingw* | pw32*)
4073 # Base MSYS/MinGW do not provide the 'file' command needed by
4074 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4075 # unless we find 'file', for example because we are cross-compiling.
4076 if ( file / ) >/dev/null 2>&1; then
4077 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4078 lt_cv_file_magic_cmd='func_win32_libid'
4079 else
4080 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4081 lt_cv_file_magic_cmd='$OBJDUMP -f'
4082 fi
4083 ;;
4084
4085darwin* | rhapsody*)
4086 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4087 ;;
1cf3d07d
SE
4088
4089freebsd* | dragonfly*)
4090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4091 case $host_cpu in
4092 i*86 )
4093 # Not sure whether the presence of OpenBSD here was a mistake.
4094 # Let's accept both of them until this is cleared up.
4095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4096 lt_cv_file_magic_cmd=/usr/bin/file
4097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4098 ;;
4099 esac
4100 else
4101 lt_cv_deplibs_check_method=pass_all
4102 fi
4103 ;;
4104
4105gnu*)
4106 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4107 ;;
1cf3d07d
SE
4108
4109hpux10.20* | hpux11*)
4110 lt_cv_file_magic_cmd=/usr/bin/file
4111 case $host_cpu in
4112 ia64*)
4113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4115 ;;
4116 hppa*64*)
4117 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]'
4118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4119 ;;
0fd91e0a 4120 *)
1cf3d07d
SE
4121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4123 ;;
4124 esac
4125 ;;
c45f211e 4126
1cf3d07d
SE
4127interix[3-9]*)
4128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4130 ;;
dfac8a13 4131
1cf3d07d
SE
4132irix5* | irix6* | nonstopux*)
4133 case $LD in
4134 *-32|*"-32 ") libmagic=32-bit;;
4135 *-n32|*"-n32 ") libmagic=N32;;
4136 *-64|*"-64 ") libmagic=64-bit;;
4137 *) libmagic=never-match;;
4138 esac
4139 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4140 ;;
0fd91e0a 4141
1cf3d07d
SE
4142# This must be Linux ELF.
4143linux* | k*bsd*-gnu)
4144 lt_cv_deplibs_check_method=pass_all
4145 ;;
0fd91e0a 4146
1cf3d07d
SE
4147netbsd*)
4148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0fd91e0a 4150 else
1cf3d07d 4151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0fd91e0a 4152 fi
1cf3d07d
SE
4153 ;;
4154
4155newos6*)
4156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4157 lt_cv_file_magic_cmd=/usr/bin/file
4158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4159 ;;
4160
4161*nto* | *qnx*)
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
dfac8a13 4164
1cf3d07d
SE
4165openbsd*)
4166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4168 else
4169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
dfac8a13
TT
4170 fi
4171 ;;
1cf3d07d
SE
4172
4173osf3* | osf4* | osf5*)
4174 lt_cv_deplibs_check_method=pass_all
4175 ;;
4176
4177rdos*)
4178 lt_cv_deplibs_check_method=pass_all
4179 ;;
4180
4181solaris*)
4182 lt_cv_deplibs_check_method=pass_all
4183 ;;
4184
4185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4186 lt_cv_deplibs_check_method=pass_all
4187 ;;
4188
4189sysv4 | sysv4.3*)
4190 case $host_vendor in
4191 motorola)
4192 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]'
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4194 ;;
4195 ncr)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198 sequent)
4199 lt_cv_file_magic_cmd='/bin/file'
4200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4201 ;;
4202 sni)
4203 lt_cv_file_magic_cmd='/bin/file'
4204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4205 lt_cv_file_magic_test_file=/lib/libc.so
4206 ;;
4207 siemens)
4208 lt_cv_deplibs_check_method=pass_all
4209 ;;
4210 pc)
4211 lt_cv_deplibs_check_method=pass_all
4212 ;;
4213 esac
4214 ;;
4215
4216tpf*)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
0fd91e0a 4219esac
dfac8a13 4220
1cf3d07d
SE
4221fi
4222echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4223echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4224file_magic_cmd=$lt_cv_file_magic_cmd
4225deplibs_check_method=$lt_cv_deplibs_check_method
4226test -z "$deplibs_check_method" && deplibs_check_method=unknown
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
a8aea176 4239if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4241set dummy ${ac_tool_prefix}ar; ac_word=$2
a8aea176
NN
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4244if test "${ac_cv_prog_AR+set}" = set; then
a8aea176 4245 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4246else
1cf3d07d
SE
4247 if test -n "$AR"; then
4248 ac_cv_prog_AR="$AR" # Let the user override the test.
025fd00e 4249else
a8aea176
NN
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4257 ac_cv_prog_AR="${ac_tool_prefix}ar"
a8aea176
NN
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261done
4262done
4263
025fd00e
TT
4264fi
4265fi
1cf3d07d
SE
4266AR=$ac_cv_prog_AR
4267if test -n "$AR"; then
4268 echo "$as_me:$LINENO: result: $AR" >&5
4269echo "${ECHO_T}$AR" >&6
025fd00e 4270else
a8aea176
NN
4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
025fd00e
TT
4273fi
4274
a8aea176 4275fi
1cf3d07d
SE
4276if test -z "$ac_cv_prog_AR"; then
4277 ac_ct_AR=$AR
4278 # Extract the first word of "ar", so it can be a program name with args.
4279set dummy ar; ac_word=$2
a8aea176
NN
4280echo "$as_me:$LINENO: checking for $ac_word" >&5
4281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4282if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
a8aea176 4283 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4284else
1cf3d07d
SE
4285 if test -n "$ac_ct_AR"; then
4286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
025fd00e 4287else
a8aea176
NN
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4295 ac_cv_prog_ac_ct_AR="ar"
a8aea176
NN
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300done
4301
1cf3d07d 4302 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
025fd00e
TT
4303fi
4304fi
1cf3d07d
SE
4305ac_ct_AR=$ac_cv_prog_ac_ct_AR
4306if test -n "$ac_ct_AR"; then
4307 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4308echo "${ECHO_T}$ac_ct_AR" >&6
025fd00e 4309else
a8aea176
NN
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
025fd00e
TT
4312fi
4313
1cf3d07d 4314 AR=$ac_ct_AR
025fd00e 4315else
1cf3d07d 4316 AR="$ac_cv_prog_AR"
025fd00e
TT
4317fi
4318
1cf3d07d
SE
4319test -z "$AR" && AR=ar
4320test -z "$AR_FLAGS" && AR_FLAGS=cru
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
a8aea176
NN
4332if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 4334set dummy ${ac_tool_prefix}strip; ac_word=$2
a8aea176
NN
4335echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337if test "${ac_cv_prog_STRIP+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4339else
0fd91e0a
AO
4340 if test -n "$STRIP"; then
4341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 4342else
a8aea176
NN
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354done
4355done
4356
025fd00e
TT
4357fi
4358fi
a8aea176 4359STRIP=$ac_cv_prog_STRIP
0fd91e0a 4360if test -n "$STRIP"; then
a8aea176
NN
4361 echo "$as_me:$LINENO: result: $STRIP" >&5
4362echo "${ECHO_T}$STRIP" >&6
025fd00e 4363else
a8aea176
NN
4364 echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6
025fd00e
TT
4366fi
4367
a8aea176 4368fi
0fd91e0a 4369if test -z "$ac_cv_prog_STRIP"; then
a8aea176 4370 ac_ct_STRIP=$STRIP
0fd91e0a
AO
4371 # Extract the first word of "strip", so it can be a program name with args.
4372set dummy strip; ac_word=$2
a8aea176
NN
4373echo "$as_me:$LINENO: checking for $ac_word" >&5
4374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4377else
a8aea176
NN
4378 if test -n "$ac_ct_STRIP"; then
4379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 4380else
a8aea176
NN
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_ac_ct_STRIP="strip"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4391 fi
4392done
4393done
4394
4395 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
025fd00e
TT
4396fi
4397fi
a8aea176
NN
4398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4399if test -n "$ac_ct_STRIP"; then
4400 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4401echo "${ECHO_T}$ac_ct_STRIP" >&6
025fd00e 4402else
a8aea176
NN
4403 echo "$as_me:$LINENO: result: no" >&5
4404echo "${ECHO_T}no" >&6
025fd00e
TT
4405fi
4406
a8aea176 4407 STRIP=$ac_ct_STRIP
025fd00e 4408else
a8aea176 4409 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
4410fi
4411
1cf3d07d 4412test -z "$STRIP" && STRIP=:
025fd00e 4413
c45f211e 4414
025fd00e 4415
0fd91e0a 4416
0fd91e0a 4417
a8aea176 4418
1cf3d07d
SE
4419if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4421set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4422echo "$as_me:$LINENO: checking for $ac_word" >&5
4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424if test "${ac_cv_prog_RANLIB+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4426else
1cf3d07d
SE
4427 if test -n "$RANLIB"; then
4428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
0fd91e0a 4443
1cf3d07d
SE
4444fi
4445fi
4446RANLIB=$ac_cv_prog_RANLIB
4447if test -n "$RANLIB"; then
4448 echo "$as_me:$LINENO: result: $RANLIB" >&5
4449echo "${ECHO_T}$RANLIB" >&6
4450else
4451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
4453fi
4454
4455fi
4456if test -z "$ac_cv_prog_RANLIB"; then
4457 ac_ct_RANLIB=$RANLIB
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459set dummy ranlib; ac_word=$2
4460echo "$as_me:$LINENO: checking for $ac_word" >&5
4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 if test -n "$ac_ct_RANLIB"; then
4466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_ac_ct_RANLIB="ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
0fd91e0a 4478 fi
1cf3d07d
SE
4479done
4480done
025fd00e 4481
1cf3d07d
SE
4482 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4483fi
4484fi
4485ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4486if test -n "$ac_ct_RANLIB"; then
4487 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4488echo "${ECHO_T}$ac_ct_RANLIB" >&6
4489else
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492fi
4493
4494 RANLIB=$ac_ct_RANLIB
4495else
4496 RANLIB="$ac_cv_prog_RANLIB"
4497fi
4498
4499test -z "$RANLIB" && RANLIB=:
4500
4501
4502
4503
4504
4505
4506# Determine commands to create old-style static archives.
4507old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4508old_postinstall_cmds='chmod 644 $oldlib'
4509old_postuninstall_cmds=
4510
4511if test -n "$RANLIB"; then
4512 case $host_os in
4513 openbsd*)
4514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4515 ;;
4516 *)
4517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4518 ;;
4519 esac
4520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4521fi
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556# If no C compiler was specified, use CC.
4557LTCC=${LTCC-"$CC"}
4558
4559# If no C compiler flags were specified, use CFLAGS.
4560LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4561
4562# Allow CC to be a program name with arguments.
4563compiler=$CC
4564
4565
4566# Check for command to grab the raw symbol name followed by C symbol from nm.
4567echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4568echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4569if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572
4573# These are sane defaults that work on at least a few old systems.
4574# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4575
4576# Character class describing NM global symbol codes.
4577symcode='[BCDEGRST]'
4578
4579# Regexp to match symbols that can be accessed directly from C.
4580sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4581
4582# Define system-specific variables.
4583case $host_os in
4584aix*)
4585 symcode='[BCDT]'
4586 ;;
4587cygwin* | mingw* | pw32*)
4588 symcode='[ABCDGISTW]'
4589 ;;
4590hpux*)
4591 if test "$host_cpu" = ia64; then
4592 symcode='[ABCDEGRST]'
f5cc59a7 4593 fi
f5cc59a7 4594 ;;
1cf3d07d
SE
4595irix* | nonstopux*)
4596 symcode='[BCDEGRST]'
4597 ;;
4598osf*)
4599 symcode='[BCDEGQRST]'
4600 ;;
4601solaris*)
4602 symcode='[BDRT]'
4603 ;;
4604sco3.2v5*)
4605 symcode='[DT]'
4606 ;;
4607sysv4.2uw2*)
4608 symcode='[DT]'
4609 ;;
4610sysv5* | sco5v6* | unixware* | OpenUNIX*)
4611 symcode='[ABDT]'
4612 ;;
4613sysv4)
4614 symcode='[DFNSTU]'
4615 ;;
4616esac
4617
4618# If we're using GNU nm, then use its standard symbol codes.
4619case `$NM -V 2>&1` in
4620*GNU* | *'with BFD'*)
4621 symcode='[ABCDGIRSTW]' ;;
4622esac
4623
4624# Transform an extracted symbol line into a proper C declaration.
4625# Some systems (esp. on ia64) link data and code symbols differently,
4626# so use this general approach.
4627lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4628
4629# Transform an extracted symbol line into symbol name and symbol address
4630lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4631
4632# Handle CRLF in mingw tool chain
4633opt_cr=
4634case $build_os in
4635mingw*)
4636 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4637 ;;
4638esac
4639
4640# Try without a prefix underscore, then with it.
4641for ac_symprfx in "" "_"; do
4642
4643 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4644 symxfrm="\\1 $ac_symprfx\\2 \\2"
4645
4646 # Write the raw and C identifiers.
4647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4648 # Fake it for dumpbin and say T for any non-static function
4649 # and D for any global variable.
4650 # Also find C++ and __fastcall symbols from MSVC++,
4651 # which start with @ or ?.
4652 lt_cv_sys_global_symbol_pipe="$AWK '"\
4653" {last_section=section; section=\$ 3};"\
4654" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4655" \$ 0!~/External *\|/{next};"\
4656" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4657" {if(hide[section]) next};"\
4658" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4659" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4660" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4661" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4662" ' prfx=^$ac_symprfx"
4663 else
4664 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4665 fi
4666
4667 # Check to see that the pipe works correctly.
4668 pipe_works=no
4669
4670 rm -f conftest*
4671 cat > conftest.$ac_ext <<_LT_EOF
4672#ifdef __cplusplus
4673extern "C" {
4674#endif
4675char nm_test_var;
4676void nm_test_func(void);
4677void nm_test_func(void){}
4678#ifdef __cplusplus
4679}
4680#endif
4681int main(){nm_test_var='a';nm_test_func();return(0);}
4682_LT_EOF
f5cc59a7 4683
a8aea176
NN
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; then
1cf3d07d
SE
4689 # Now try to grab the symbols.
4690 nlist=conftest.nm
4691 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4692 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && test -s "$nlist"; then
4696 # Try sorting and uniquifying the output.
4697 if sort "$nlist" | uniq > "$nlist"T; then
4698 mv -f "$nlist"T "$nlist"
4699 else
4700 rm -f "$nlist"T
4701 fi
0ccf2c33 4702
1cf3d07d
SE
4703 # Make sure that we snagged all the symbols we need.
4704 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4705 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4706 cat <<_LT_EOF > conftest.$ac_ext
4707#ifdef __cplusplus
4708extern "C" {
4709#endif
a8aea176 4710
1cf3d07d
SE
4711_LT_EOF
4712 # Now generate the symbol file.
4713 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a8aea176 4714
1cf3d07d 4715 cat <<_LT_EOF >> conftest.$ac_ext
a8aea176 4716
1cf3d07d
SE
4717/* The mapping between symbol names and symbols. */
4718const struct {
4719 const char *name;
4720 void *address;
4721}
4722lt__PROGRAM__LTX_preloaded_symbols[] =
4723{
4724 { "@PROGRAM@", (void *) 0 },
4725_LT_EOF
4726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4727 cat <<\_LT_EOF >> conftest.$ac_ext
4728 {0, (void *) 0}
4729};
4730
4731/* This works around a problem in FreeBSD linker */
4732#ifdef FREEBSD_WORKAROUND
4733static const void *lt_preloaded_setup() {
4734 return lt__PROGRAM__LTX_preloaded_symbols;
4735}
4736#endif
4737
4738#ifdef __cplusplus
4739}
4740#endif
4741_LT_EOF
4742 # Now try linking the two files.
4743 mv conftest.$ac_objext conftstm.$ac_objext
4744 lt_save_LIBS="$LIBS"
4745 lt_save_CFLAGS="$CFLAGS"
4746 LIBS="conftstm.$ac_objext"
4747 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4753 pipe_works=yes
4754 fi
4755 LIBS="$lt_save_LIBS"
4756 CFLAGS="$lt_save_CFLAGS"
4757 else
4758 echo "cannot find nm_test_func in $nlist" >&5
4759 fi
4760 else
4761 echo "cannot find nm_test_var in $nlist" >&5
4762 fi
4763 else
4764 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4765 fi
4766 else
4767 echo "$progname: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 fi
4770 rm -f conftest* conftst*
4771
4772 # Do not use the global_symbol_pipe unless it works.
4773 if test "$pipe_works" = yes; then
4774 break
4775 else
4776 lt_cv_sys_global_symbol_pipe=
4777 fi
4778done
4779
4780fi
4781
4782if test -z "$lt_cv_sys_global_symbol_pipe"; then
4783 lt_cv_sys_global_symbol_to_cdecl=
4784fi
4785if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4786 echo "$as_me:$LINENO: result: failed" >&5
4787echo "${ECHO_T}failed" >&6
4788else
4789 echo "$as_me:$LINENO: result: ok" >&5
4790echo "${ECHO_T}ok" >&6
4791fi
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4811if test "${enable_libtool_lock+set}" = set; then
4812 enableval="$enable_libtool_lock"
4813
4814fi;
4815test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4816
4817# Some flags need to be propagated to the compiler or linker for good
4818# libtool support.
4819case $host in
4820ia64-*-hpux*)
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 case `/usr/bin/file conftest.$ac_objext` in
4829 *ELF-32*)
4830 HPUX_IA64_MODE="32"
4831 ;;
4832 *ELF-64*)
4833 HPUX_IA64_MODE="64"
4834 ;;
4835 esac
4836 fi
4837 rm -rf conftest*
4838 ;;
4839*-*-irix6*)
4840 # Find out which ABI we are using.
82a6cadf 4841 echo '#line 4841 "configure"' > conftest.$ac_ext
1cf3d07d
SE
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; then
4847 if test "$lt_cv_prog_gnu_ld" = yes; then
4848 case `/usr/bin/file conftest.$ac_objext` in
4849 *32-bit*)
4850 LD="${LD-ld} -melf32bsmip"
4851 ;;
4852 *N32*)
4853 LD="${LD-ld} -melf32bmipn32"
4854 ;;
4855 *64-bit*)
4856 LD="${LD-ld} -melf64bmip"
4857 ;;
4858 esac
4859 else
4860 case `/usr/bin/file conftest.$ac_objext` in
4861 *32-bit*)
4862 LD="${LD-ld} -32"
4863 ;;
4864 *N32*)
4865 LD="${LD-ld} -n32"
4866 ;;
4867 *64-bit*)
4868 LD="${LD-ld} -64"
4869 ;;
4870 esac
4871 fi
4872 fi
4873 rm -rf conftest*
4874 ;;
4875
4876x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4877s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; then
4885 case `/usr/bin/file conftest.o` in
4886 *32-bit*)
4887 case $host in
4888 x86_64-*kfreebsd*-gnu)
4889 LD="${LD-ld} -m elf_i386_fbsd"
4890 ;;
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_i386"
4893 ;;
4894 ppc64-*linux*|powerpc64-*linux*)
4895 LD="${LD-ld} -m elf32ppclinux"
4896 ;;
4897 s390x-*linux*)
4898 LD="${LD-ld} -m elf_s390"
4899 ;;
4900 sparc64-*linux*)
4901 LD="${LD-ld} -m elf32_sparc"
4902 ;;
4903 esac
4904 ;;
4905 *64-bit*)
4906 case $host in
4907 x86_64-*kfreebsd*-gnu)
4908 LD="${LD-ld} -m elf_x86_64_fbsd"
4909 ;;
4910 x86_64-*linux*)
4911 LD="${LD-ld} -m elf_x86_64"
4912 ;;
4913 ppc*-*linux*|powerpc*-*linux*)
4914 LD="${LD-ld} -m elf64ppc"
4915 ;;
4916 s390*-*linux*|s390*-*tpf*)
4917 LD="${LD-ld} -m elf64_s390"
4918 ;;
4919 sparc*-*linux*)
4920 LD="${LD-ld} -m elf64_sparc"
4921 ;;
4922 esac
4923 ;;
4924 esac
4925 fi
4926 rm -rf conftest*
4927 ;;
4928
4929*-*-sco3.2v5*)
4930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4931 SAVE_CFLAGS="$CFLAGS"
4932 CFLAGS="$CFLAGS -belf"
4933 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4934echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4935if test "${lt_cv_cc_needs_belf+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938 ac_ext=c
4939ac_cpp='$CPP $CPPFLAGS'
4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944 if test x$gcc_no_link = xyes; then
4945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4946echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4947 { (exit 1); exit 1; }; }
4948fi
4949cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
4955
4956int
4957main ()
4958{
4959
4960 ;
4961 return 0;
4962}
4963_ACEOF
4964rm -f conftest.$ac_objext conftest$ac_exeext
4965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4966 (eval $ac_link) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 lt_cv_cc_needs_belf=yes
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991lt_cv_cc_needs_belf=no
4992fi
4993rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4995 ac_ext=c
4996ac_cpp='$CPP $CPPFLAGS'
4997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000
5001fi
5002echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5003echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5006 CFLAGS="$SAVE_CFLAGS"
5007 fi
5008 ;;
5009sparc*-*solaris*)
5010 # Find out which ABI we are using.
5011 echo 'int i;' > conftest.$ac_ext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; then
5017 case `/usr/bin/file conftest.o` in
5018 *64-bit*)
5019 case $lt_cv_prog_gnu_ld in
5020 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5021 *) LD="${LD-ld} -64" ;;
5022 esac
5023 ;;
5024 esac
5025 fi
5026 rm -rf conftest*
5027 ;;
5028esac
5029
5030need_locks="$enable_libtool_lock"
5031
5032ac_ext=c
5033ac_cpp='$CPP $CPPFLAGS'
5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5039# On Suns, sometimes $CPP names a directory.
5040if test -n "$CPP" && test -d "$CPP"; then
5041 CPP=
5042fi
5043if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5049 do
5050 ac_preproc_ok=false
5051for ac_c_preproc_warn_flag in '' yes
5052do
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065#ifdef __STDC__
5066# include <limits.h>
5067#else
5068# include <assert.h>
5069#endif
5070 Syntax error
5071_ACEOF
5072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086else
5087 ac_cpp_err=yes
5088fi
5089if test -z "$ac_cpp_err"; then
5090 :
5091else
5092 echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 # Broken: fails on valid input.
5096continue
5097fi
5098rm -f conftest.err conftest.$ac_ext
5099
5100 # OK, works on sane cases. Now check whether non-existent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108#include <ac_nonexistent.h>
5109_ACEOF
5110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121 else
5122 ac_cpp_err=
5123 fi
5124else
5125 ac_cpp_err=yes
5126fi
5127if test -z "$ac_cpp_err"; then
5128 # Broken: success on invalid input.
5129continue
5130else
5131 echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 # Passes both tests.
5135ac_preproc_ok=:
5136break
5137fi
5138rm -f conftest.err conftest.$ac_ext
5139
5140done
5141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142rm -f conftest.err conftest.$ac_ext
5143if $ac_preproc_ok; then
5144 break
5145fi
5146
5147 done
5148 ac_cv_prog_CPP=$CPP
5149
5150fi
5151 CPP=$ac_cv_prog_CPP
5152else
5153 ac_cv_prog_CPP=$CPP
5154fi
5155echo "$as_me:$LINENO: result: $CPP" >&5
5156echo "${ECHO_T}$CPP" >&6
5157ac_preproc_ok=false
5158for ac_c_preproc_warn_flag in '' yes
5159do
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
5172#ifdef __STDC__
5173# include <limits.h>
5174#else
5175# include <assert.h>
5176#endif
5177 Syntax error
5178_ACEOF
5179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190 else
5191 ac_cpp_err=
5192 fi
5193else
5194 ac_cpp_err=yes
5195fi
5196if test -z "$ac_cpp_err"; then
5197 :
5198else
5199 echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 # Broken: fails on valid input.
5203continue
5204fi
5205rm -f conftest.err conftest.$ac_ext
5206
5207 # OK, works on sane cases. Now check whether non-existent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h. */
5215#include <ac_nonexistent.h>
5216_ACEOF
5217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null; then
5225 if test -s conftest.err; then
5226 ac_cpp_err=$ac_c_preproc_warn_flag
5227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5228 else
5229 ac_cpp_err=
5230 fi
5231else
5232 ac_cpp_err=yes
5233fi
5234if test -z "$ac_cpp_err"; then
5235 # Broken: success on invalid input.
5236continue
5237else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests.
5242ac_preproc_ok=:
5243break
5244fi
5245rm -f conftest.err conftest.$ac_ext
5246
5247done
5248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249rm -f conftest.err conftest.$ac_ext
5250if $ac_preproc_ok; then
5251 :
5252else
5253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254See \`config.log' for more details." >&5
5255echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5258fi
5259
5260ac_ext=c
5261ac_cpp='$CPP $CPPFLAGS'
5262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264ac_compiler_gnu=$ac_cv_c_compiler_gnu
5265
5266
5267echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5268echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5269if test "${ac_cv_header_stdc+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278#include <stdlib.h>
5279#include <stdarg.h>
5280#include <string.h>
5281#include <float.h>
5282
5283int
5284main ()
5285{
5286
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291rm -f conftest.$ac_objext
5292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_header_stdc=yes
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318ac_cv_header_stdc=no
5319fi
5320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321
5322if test $ac_cv_header_stdc = yes; then
5323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5324 cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h. */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h. */
5330#include <string.h>
5331
5332_ACEOF
5333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334 $EGREP "memchr" >/dev/null 2>&1; then
5335 :
5336else
5337 ac_cv_header_stdc=no
5338fi
5339rm -f conftest*
5340
5341fi
5342
5343if test $ac_cv_header_stdc = yes; then
5344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5345 cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351#include <stdlib.h>
5352
5353_ACEOF
5354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355 $EGREP "free" >/dev/null 2>&1; then
5356 :
5357else
5358 ac_cv_header_stdc=no
5359fi
5360rm -f conftest*
5361
5362fi
5363
5364if test $ac_cv_header_stdc = yes; then
5365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5366 if test "$cross_compiling" = yes; then
5367 :
5368else
5369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375#include <ctype.h>
5376#if ((' ' & 0x0FF) == 0x020)
5377# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5378# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5379#else
5380# define ISLOWER(c) \
5381 (('a' <= (c) && (c) <= 'i') \
5382 || ('j' <= (c) && (c) <= 'r') \
5383 || ('s' <= (c) && (c) <= 'z'))
5384# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5385#endif
5386
5387#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5388int
5389main ()
5390{
5391 int i;
5392 for (i = 0; i < 256; i++)
5393 if (XOR (islower (i), ISLOWER (i))
5394 || toupper (i) != TOUPPER (i))
5395 exit(2);
5396 exit (0);
5397}
5398_ACEOF
5399rm -f conftest$ac_exeext
5400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401 (eval $ac_link) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 :
5411else
5412 echo "$as_me: program exited with status $ac_status" >&5
5413echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416( exit $ac_status )
5417ac_cv_header_stdc=no
5418fi
5419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5420fi
5421fi
5422fi
5423echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5424echo "${ECHO_T}$ac_cv_header_stdc" >&6
5425if test $ac_cv_header_stdc = yes; then
5426
5427cat >>confdefs.h <<\_ACEOF
5428#define STDC_HEADERS 1
5429_ACEOF
5430
5431fi
5432
5433# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5444 inttypes.h stdint.h unistd.h
5445do
5446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5447echo "$as_me:$LINENO: checking for $ac_header" >&5
5448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5449if eval "test \"\${$as_ac_Header+set}\" = set"; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458$ac_includes_default
5459
5460#include <$ac_header>
5461_ACEOF
5462rm -f conftest.$ac_objext
5463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 eval "$as_ac_Header=yes"
5485else
5486 echo "$as_me: failed program was:" >&5
5487sed 's/^/| /' conftest.$ac_ext >&5
5488
5489eval "$as_ac_Header=no"
5490fi
5491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492fi
5493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5495if test `eval echo '${'$as_ac_Header'}'` = yes; then
5496 cat >>confdefs.h <<_ACEOF
5497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5498_ACEOF
5499
5500fi
5501
5502done
5503
5504
5505
5506for ac_header in dlfcn.h
5507do
5508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509echo "$as_me:$LINENO: checking for $ac_header" >&5
5510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514 cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520$ac_includes_default
5521
5522#include <$ac_header>
5523_ACEOF
5524rm -f conftest.$ac_objext
5525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest.$ac_objext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 eval "$as_ac_Header=yes"
5547else
5548 echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
5551eval "$as_ac_Header=no"
5552fi
5553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5554fi
5555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560_ACEOF
5561
5562fi
5563
5564done
5565
5566
5567
5568# This can be used to rebuild libtool when needed
5569LIBTOOL_DEPS="$ltmain"
5570
5571# Always use our own libtool.
5572LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598test -z "$LN_S" && LN_S="ln -s"
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613if test -n "${ZSH_VERSION+set}" ; then
5614 setopt NO_GLOB_SUBST
5615fi
5616
5617echo "$as_me:$LINENO: checking for objdir" >&5
5618echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5619if test "${lt_cv_objdir+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622 rm -f .libs 2>/dev/null
5623mkdir .libs 2>/dev/null
5624if test -d .libs; then
5625 lt_cv_objdir=.libs
5626else
5627 # MS-DOS does not allow filenames that begin with a dot.
5628 lt_cv_objdir=_libs
5629fi
5630rmdir .libs 2>/dev/null
5631fi
5632echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5633echo "${ECHO_T}$lt_cv_objdir" >&6
5634objdir=$lt_cv_objdir
5635
5636
5637
5638
5639
5640cat >>confdefs.h <<_ACEOF
5641#define LT_OBJDIR "$lt_cv_objdir/"
5642_ACEOF
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660case $host_os in
5661aix3*)
5662 # AIX sometimes has problems with the GCC collect2 program. For some
5663 # reason, if we set the COLLECT_NAMES environment variable, the problems
5664 # vanish in a puff of smoke.
5665 if test "X${COLLECT_NAMES+set}" != Xset; then
5666 COLLECT_NAMES=
5667 export COLLECT_NAMES
5668 fi
5669 ;;
5670esac
5671
5672# Sed substitution that helps us do robust quoting. It backslashifies
5673# metacharacters that are still active within double-quoted strings.
5674sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5675
5676# Same as above, but do not quote variable references.
5677double_quote_subst='s/\(["`\\]\)/\\\1/g'
5678
5679# Sed substitution to delay expansion of an escaped shell variable in a
5680# double_quote_subst'ed string.
5681delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5682
5683# Sed substitution to delay expansion of an escaped single quote.
5684delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5685
5686# Sed substitution to avoid accidental globbing in evaled expressions
5687no_glob_subst='s/\*/\\\*/g'
5688
5689# Global variables:
5690ofile=libtool
5691can_build_shared=yes
5692
5693# All known linkers require a `.a' archive for static linking (except MSVC,
5694# which needs '.lib').
5695libext=a
5696
5697with_gnu_ld="$lt_cv_prog_gnu_ld"
5698
5699old_CC="$CC"
5700old_CFLAGS="$CFLAGS"
5701
5702# Set sane defaults for various variables
5703test -z "$CC" && CC=cc
5704test -z "$LTCC" && LTCC=$CC
5705test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5706test -z "$LD" && LD=ld
5707test -z "$ac_objext" && ac_objext=o
5708
5709for cc_temp in $compiler""; do
5710 case $cc_temp in
5711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5713 \-*) ;;
5714 *) break;;
5715 esac
5716done
5717cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5718
5719
5720# Only perform the check for file, if the check method requires it
5721test -z "$MAGIC_CMD" && MAGIC_CMD=file
5722case $deplibs_check_method in
5723file_magic*)
5724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5725 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5726echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5727if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 case $MAGIC_CMD in
5731[\\/*] | ?:[\\/]*)
5732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5733 ;;
5734*)
5735 lt_save_MAGIC_CMD="$MAGIC_CMD"
5736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5738 for ac_dir in $ac_dummy; do
5739 IFS="$lt_save_ifs"
5740 test -z "$ac_dir" && ac_dir=.
5741 if test -f $ac_dir/${ac_tool_prefix}file; then
5742 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5743 if test -n "$file_magic_test_file"; then
5744 case $deplibs_check_method in
5745 "file_magic "*)
5746 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5748 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5749 $EGREP "$file_magic_regex" > /dev/null; then
5750 :
5751 else
5752 cat <<_LT_EOF 1>&2
5753
5754*** Warning: the command libtool uses to detect shared libraries,
5755*** $file_magic_cmd, produces output that libtool cannot recognize.
5756*** The result is that libtool may fail to recognize shared libraries
5757*** as such. This will affect the creation of libtool libraries that
5758*** depend on shared libraries, but programs linked with such libtool
5759*** libraries will work regardless of this problem. Nevertheless, you
5760*** may want to report the problem to your system manager and/or to
5761*** bug-libtool@gnu.org
5762
5763_LT_EOF
5764 fi ;;
5765 esac
5766 fi
5767 break
5768 fi
5769 done
5770 IFS="$lt_save_ifs"
5771 MAGIC_CMD="$lt_save_MAGIC_CMD"
5772 ;;
5773esac
5774fi
5775
5776MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5777if test -n "$MAGIC_CMD"; then
5778 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5779echo "${ECHO_T}$MAGIC_CMD" >&6
5780else
5781 echo "$as_me:$LINENO: result: no" >&5
5782echo "${ECHO_T}no" >&6
5783fi
5784
5785
5786
5787
5788
5789if test -z "$lt_cv_path_MAGIC_CMD"; then
5790 if test -n "$ac_tool_prefix"; then
5791 echo "$as_me:$LINENO: checking for file" >&5
5792echo $ECHO_N "checking for file... $ECHO_C" >&6
5793if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796 case $MAGIC_CMD in
5797[\\/*] | ?:[\\/]*)
5798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5799 ;;
5800*)
5801 lt_save_MAGIC_CMD="$MAGIC_CMD"
5802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5804 for ac_dir in $ac_dummy; do
5805 IFS="$lt_save_ifs"
5806 test -z "$ac_dir" && ac_dir=.
5807 if test -f $ac_dir/file; then
5808 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5809 if test -n "$file_magic_test_file"; then
5810 case $deplibs_check_method in
5811 "file_magic "*)
5812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5815 $EGREP "$file_magic_regex" > /dev/null; then
5816 :
5817 else
5818 cat <<_LT_EOF 1>&2
5819
5820*** Warning: the command libtool uses to detect shared libraries,
5821*** $file_magic_cmd, produces output that libtool cannot recognize.
5822*** The result is that libtool may fail to recognize shared libraries
5823*** as such. This will affect the creation of libtool libraries that
5824*** depend on shared libraries, but programs linked with such libtool
5825*** libraries will work regardless of this problem. Nevertheless, you
5826*** may want to report the problem to your system manager and/or to
5827*** bug-libtool@gnu.org
5828
5829_LT_EOF
5830 fi ;;
5831 esac
5832 fi
5833 break
5834 fi
5835 done
5836 IFS="$lt_save_ifs"
5837 MAGIC_CMD="$lt_save_MAGIC_CMD"
5838 ;;
5839esac
5840fi
5841
5842MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5843if test -n "$MAGIC_CMD"; then
5844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5845echo "${ECHO_T}$MAGIC_CMD" >&6
5846else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849fi
5850
5851
5852 else
5853 MAGIC_CMD=:
5854 fi
5855fi
5856
5857 fi
5858 ;;
5859esac
5860
5861# Use C for the default configuration in the libtool script
5862
5863lt_save_CC="$CC"
5864ac_ext=c
5865ac_cpp='$CPP $CPPFLAGS'
5866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869
5870
5871# Source file extension for C test sources.
5872ac_ext=c
5873
5874# Object file extension for compiled C test sources.
5875objext=o
5876objext=$objext
5877
5878# Code to be used in simple compile tests
5879lt_simple_compile_test_code="int some_variable = 0;"
5880
5881# Code to be used in simple link tests
5882lt_simple_link_test_code='int main(){return(0);}'
5883
5884
5885
5886
5887
5888
5889
5890# If no C compiler was specified, use CC.
5891LTCC=${LTCC-"$CC"}
5892
5893# If no C compiler flags were specified, use CFLAGS.
5894LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5895
5896# Allow CC to be a program name with arguments.
5897compiler=$CC
5898
5899# Save the default compiler, since it gets overwritten when the other
5900# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5901compiler_DEFAULT=$CC
5902
5903# save warnings/boilerplate of simple test code
5904ac_outfile=conftest.$ac_objext
5905echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5906eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5907_lt_compiler_boilerplate=`cat conftest.err`
5908$RM conftest*
5909
5910ac_outfile=conftest.$ac_objext
5911echo "$lt_simple_link_test_code" >conftest.$ac_ext
5912eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5913_lt_linker_boilerplate=`cat conftest.err`
5914$RM conftest*
5915
5916
5917## CAVEAT EMPTOR:
5918## There is no encapsulation within the following macros, do not change
5919## the running order or otherwise move them around unless you know exactly
5920## what you are doing...
5921if test -n "$compiler"; then
5922
5923lt_prog_compiler_no_builtin_flag=
5924
5925if test "$GCC" = yes; then
5926 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5927
5928 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5929echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5930if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933 lt_cv_prog_compiler_rtti_exceptions=no
5934 ac_outfile=conftest.$ac_objext
5935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5936 lt_compiler_flag="-fno-rtti -fno-exceptions"
5937 # Insert the option either (1) after the last *FLAGS variable, or
5938 # (2) before a word containing "conftest.", or (3) at the end.
5939 # Note that $ac_compile itself does not contain backslashes and begins
5940 # with a dollar sign (not a hyphen), so the echo should work correctly.
5941 # The option is referenced via a variable to avoid confusing sed.
5942 lt_compile=`echo "$ac_compile" | $SED \
5943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5945 -e 's:$: $lt_compiler_flag:'`
82a6cadf 5946 (eval echo "\"\$as_me:5946: $lt_compile\"" >&5)
1cf3d07d
SE
5947 (eval "$lt_compile" 2>conftest.err)
5948 ac_status=$?
5949 cat conftest.err >&5
82a6cadf 5950 echo "$as_me:5950: \$? = $ac_status" >&5
1cf3d07d
SE
5951 if (exit $ac_status) && test -s "$ac_outfile"; then
5952 # The compiler can only warn and ignore the option if not recognized
5953 # So say no if there are warnings other than the usual output.
5954 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5957 lt_cv_prog_compiler_rtti_exceptions=yes
5958 fi
5959 fi
5960 $RM conftest*
5961
5962fi
5963echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5964echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5965
5966if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5967 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5968else
5969 :
5970fi
5971
5972fi
5973
5974
5975
5976
5977
5978
5979 lt_prog_compiler_wl=
5980lt_prog_compiler_pic=
5981lt_prog_compiler_static=
5982
5983echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5984echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5985
5986 if test "$GCC" = yes; then
5987 lt_prog_compiler_wl='-Wl,'
5988 lt_prog_compiler_static='-static'
5989
5990 case $host_os in
5991 aix*)
5992 # All AIX code is PIC.
5993 if test "$host_cpu" = ia64; then
5994 # AIX 5 now supports IA64 processor
5995 lt_prog_compiler_static='-Bstatic'
5996 fi
5997 ;;
5998
5999 amigaos*)
6000 if test "$host_cpu" = m68k; then
6001 # FIXME: we need at least 68020 code to build shared libraries, but
6002 # adding the `-m68020' flag to GCC prevents building anything better,
6003 # like `-m68040'.
6004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6005 fi
6006 ;;
6007
6008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6009 # PIC is the default for these OSes.
6010 ;;
6011
6012 mingw* | cygwin* | pw32* | os2*)
6013 # This hack is so that the source file can tell whether it is being
6014 # built for inclusion in a dll (and should export symbols for example).
6015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6016 # (--disable-auto-import) libraries
6017 lt_prog_compiler_pic='-DDLL_EXPORT'
6018 ;;
6019
6020 darwin* | rhapsody*)
6021 # PIC is the default on this platform
6022 # Common symbols not allowed in MH_DYLIB files
6023 lt_prog_compiler_pic='-fno-common'
6024 ;;
6025
6026 hpux*)
6027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6028 # not for PA HP-UX.
6029 case $host_cpu in
6030 hppa*64*|ia64*)
6031 # +Z the default
6032 ;;
6033 *)
6034 lt_prog_compiler_pic='-fPIC'
6035 ;;
6036 esac
6037 ;;
6038
6039 interix[3-9]*)
6040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6041 # Instead, we relocate shared libraries at runtime.
6042 ;;
6043
6044 msdosdjgpp*)
6045 # Just because we use GCC doesn't mean we suddenly get shared libraries
6046 # on systems that don't support them.
6047 lt_prog_compiler_can_build_shared=no
6048 enable_shared=no
6049 ;;
6050
6051 *nto* | *qnx*)
6052 # QNX uses GNU C++, but need to define -shared option too, otherwise
6053 # it will coredump.
6054 lt_prog_compiler_pic='-fPIC -shared'
6055 ;;
6056
6057 sysv4*MP*)
6058 if test -d /usr/nec; then
6059 lt_prog_compiler_pic=-Kconform_pic
6060 fi
6061 ;;
6062
6063 *)
6064 lt_prog_compiler_pic='-fPIC'
6065 ;;
6066 esac
6067 else
6068 # PORTME Check for flag to pass linker flags through the system compiler.
6069 case $host_os in
6070 aix*)
6071 lt_prog_compiler_wl='-Wl,'
6072 if test "$host_cpu" = ia64; then
6073 # AIX 5 now supports IA64 processor
6074 lt_prog_compiler_static='-Bstatic'
6075 else
6076 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6077 fi
6078 ;;
6079 darwin*)
6080 # PIC is the default on this platform
6081 # Common symbols not allowed in MH_DYLIB files
6082 case $cc_basename in
6083 xlc*)
6084 lt_prog_compiler_pic='-qnocommon'
6085 lt_prog_compiler_wl='-Wl,'
6086 ;;
6087 esac
6088 ;;
6089
6090 mingw* | cygwin* | pw32* | os2*)
6091 # This hack is so that the source file can tell whether it is being
6092 # built for inclusion in a dll (and should export symbols for example).
6093 lt_prog_compiler_pic='-DDLL_EXPORT'
6094 ;;
6095
6096 hpux9* | hpux10* | hpux11*)
6097 lt_prog_compiler_wl='-Wl,'
6098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6099 # not for PA HP-UX.
6100 case $host_cpu in
6101 hppa*64*|ia64*)
6102 # +Z the default
6103 ;;
6104 *)
6105 lt_prog_compiler_pic='+Z'
6106 ;;
6107 esac
6108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6109 lt_prog_compiler_static='${wl}-a ${wl}archive'
6110 ;;
6111
6112 irix5* | irix6* | nonstopux*)
6113 lt_prog_compiler_wl='-Wl,'
6114 # PIC (with -KPIC) is the default.
6115 lt_prog_compiler_static='-non_shared'
6116 ;;
6117
6118 linux* | k*bsd*-gnu)
6119 case $cc_basename in
6120 icc* | ecc*)
6121 lt_prog_compiler_wl='-Wl,'
6122 lt_prog_compiler_pic='-KPIC'
6123 lt_prog_compiler_static='-static'
6124 ;;
6125 pgcc* | pgf77* | pgf90* | pgf95*)
6126 # Portland Group compilers (*not* the Pentium gcc compiler,
6127 # which looks to be a dead project)
6128 lt_prog_compiler_wl='-Wl,'
6129 lt_prog_compiler_pic='-fpic'
6130 lt_prog_compiler_static='-Bstatic'
6131 ;;
6132 ccc*)
6133 lt_prog_compiler_wl='-Wl,'
6134 # All Alpha code is PIC.
6135 lt_prog_compiler_static='-non_shared'
6136 ;;
6137 *)
6138 case `$CC -V 2>&1 | sed 5q` in
6139 *Sun\ C*)
6140 # Sun C 5.9
6141 lt_prog_compiler_pic='-KPIC'
6142 lt_prog_compiler_static='-Bstatic'
6143 lt_prog_compiler_wl='-Wl,'
6144 ;;
6145 *Sun\ F*)
6146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6147 lt_prog_compiler_pic='-KPIC'
6148 lt_prog_compiler_static='-Bstatic'
6149 lt_prog_compiler_wl=''
6150 ;;
6151 esac
6152 ;;
6153 esac
6154 ;;
6155
6156 newsos6)
6157 lt_prog_compiler_pic='-KPIC'
6158 lt_prog_compiler_static='-Bstatic'
6159 ;;
6160
6161 *nto* | *qnx*)
6162 # QNX uses GNU C++, but need to define -shared option too, otherwise
6163 # it will coredump.
6164 lt_prog_compiler_pic='-fPIC -shared'
6165 ;;
6166
6167 osf3* | osf4* | osf5*)
6168 lt_prog_compiler_wl='-Wl,'
6169 # All OSF/1 code is PIC.
6170 lt_prog_compiler_static='-non_shared'
6171 ;;
6172
6173 rdos*)
6174 lt_prog_compiler_static='-non_shared'
6175 ;;
6176
6177 solaris*)
6178 lt_prog_compiler_pic='-KPIC'
6179 lt_prog_compiler_static='-Bstatic'
6180 case $cc_basename in
6181 f77* | f90* | f95*)
6182 lt_prog_compiler_wl='-Qoption ld ';;
6183 *)
6184 lt_prog_compiler_wl='-Wl,';;
6185 esac
6186 ;;
6187
6188 sunos4*)
6189 lt_prog_compiler_wl='-Qoption ld '
6190 lt_prog_compiler_pic='-PIC'
6191 lt_prog_compiler_static='-Bstatic'
6192 ;;
6193
6194 sysv4 | sysv4.2uw2* | sysv4.3*)
6195 lt_prog_compiler_wl='-Wl,'
6196 lt_prog_compiler_pic='-KPIC'
6197 lt_prog_compiler_static='-Bstatic'
6198 ;;
6199
6200 sysv4*MP*)
6201 if test -d /usr/nec ;then
6202 lt_prog_compiler_pic='-Kconform_pic'
6203 lt_prog_compiler_static='-Bstatic'
6204 fi
6205 ;;
6206
6207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6208 lt_prog_compiler_wl='-Wl,'
6209 lt_prog_compiler_pic='-KPIC'
6210 lt_prog_compiler_static='-Bstatic'
6211 ;;
6212
6213 unicos*)
6214 lt_prog_compiler_wl='-Wl,'
6215 lt_prog_compiler_can_build_shared=no
6216 ;;
6217
6218 uts4*)
6219 lt_prog_compiler_pic='-pic'
6220 lt_prog_compiler_static='-Bstatic'
6221 ;;
6222
6223 *)
6224 lt_prog_compiler_can_build_shared=no
6225 ;;
6226 esac
6227 fi
6228
6229case $host_os in
6230 # For platforms which do not support PIC, -DPIC is meaningless:
6231 *djgpp*)
6232 lt_prog_compiler_pic=
6233 ;;
6234 *)
6235 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6236 ;;
6237esac
6238echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6239echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6240
6241
6242
6243
6244
6245
6246#
6247# Check to make sure the PIC flag actually works.
6248#
6249if test -n "$lt_prog_compiler_pic"; then
6250 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6251echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6252if test "${lt_prog_compiler_pic_works+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255 lt_prog_compiler_pic_works=no
6256 ac_outfile=conftest.$ac_objext
6257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6258 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6259 # Insert the option either (1) after the last *FLAGS variable, or
6260 # (2) before a word containing "conftest.", or (3) at the end.
6261 # Note that $ac_compile itself does not contain backslashes and begins
6262 # with a dollar sign (not a hyphen), so the echo should work correctly.
6263 # The option is referenced via a variable to avoid confusing sed.
6264 lt_compile=`echo "$ac_compile" | $SED \
6265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6267 -e 's:$: $lt_compiler_flag:'`
82a6cadf 6268 (eval echo "\"\$as_me:6268: $lt_compile\"" >&5)
1cf3d07d
SE
6269 (eval "$lt_compile" 2>conftest.err)
6270 ac_status=$?
6271 cat conftest.err >&5
82a6cadf 6272 echo "$as_me:6272: \$? = $ac_status" >&5
1cf3d07d
SE
6273 if (exit $ac_status) && test -s "$ac_outfile"; then
6274 # The compiler can only warn and ignore the option if not recognized
6275 # So say no if there are warnings other than the usual output.
6276 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6279 lt_prog_compiler_pic_works=yes
6280 fi
6281 fi
6282 $RM conftest*
6283
6284fi
6285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6286echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6287
6288if test x"$lt_prog_compiler_pic_works" = xyes; then
6289 case $lt_prog_compiler_pic in
6290 "" | " "*) ;;
6291 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6292 esac
6293else
6294 lt_prog_compiler_pic=
6295 lt_prog_compiler_can_build_shared=no
6296fi
6297
6298fi
6299
6300
6301
6302
6303
6304
6305#
6306# Check to make sure the static flag actually works.
6307#
6308wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6309echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6310echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6311if test "${lt_prog_compiler_static_works+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 lt_prog_compiler_static_works=no
6315 save_LDFLAGS="$LDFLAGS"
6316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6319 # The linker can only warn and ignore the option if not recognized
6320 # So say no if there are warnings
6321 if test -s conftest.err; then
6322 # Append any errors to the config.log.
6323 cat conftest.err 1>&5
6324 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6326 if diff conftest.exp conftest.er2 >/dev/null; then
6327 lt_prog_compiler_static_works=yes
6328 fi
6329 else
6330 lt_prog_compiler_static_works=yes
6331 fi
6332 fi
6333 $RM conftest*
6334 LDFLAGS="$save_LDFLAGS"
6335
6336fi
6337echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6338echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6339
6340if test x"$lt_prog_compiler_static_works" = xyes; then
6341 :
6342else
6343 lt_prog_compiler_static=
6344fi
6345
6346
6347
6348
6349
6350
6351
6352 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6354if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357 lt_cv_prog_compiler_c_o=no
6358 $RM -r conftest 2>/dev/null
6359 mkdir conftest
6360 cd conftest
6361 mkdir out
6362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6363
6364 lt_compiler_flag="-o out/conftest2.$ac_objext"
6365 # Insert the option either (1) after the last *FLAGS variable, or
6366 # (2) before a word containing "conftest.", or (3) at the end.
6367 # Note that $ac_compile itself does not contain backslashes and begins
6368 # with a dollar sign (not a hyphen), so the echo should work correctly.
6369 lt_compile=`echo "$ac_compile" | $SED \
6370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6372 -e 's:$: $lt_compiler_flag:'`
82a6cadf 6373 (eval echo "\"\$as_me:6373: $lt_compile\"" >&5)
1cf3d07d
SE
6374 (eval "$lt_compile" 2>out/conftest.err)
6375 ac_status=$?
6376 cat out/conftest.err >&5
82a6cadf 6377 echo "$as_me:6377: \$? = $ac_status" >&5
1cf3d07d
SE
6378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6379 then
6380 # The compiler can only warn and ignore the option if not recognized
6381 # So say no if there are warnings
6382 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6385 lt_cv_prog_compiler_c_o=yes
6386 fi
6387 fi
6388 chmod u+w . 2>&5
6389 $RM conftest*
6390 # SGI C++ compiler will create directory out/ii_files/ for
6391 # template instantiation
6392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6393 $RM out/* && rmdir out
6394 cd ..
6395 $RM -r conftest
6396 $RM conftest*
6397
6398fi
6399echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6400echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6401
6402
6403
6404
6405
6406
6407 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6408echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6409if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 lt_cv_prog_compiler_c_o=no
6413 $RM -r conftest 2>/dev/null
6414 mkdir conftest
6415 cd conftest
6416 mkdir out
6417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6418
6419 lt_compiler_flag="-o out/conftest2.$ac_objext"
6420 # Insert the option either (1) after the last *FLAGS variable, or
6421 # (2) before a word containing "conftest.", or (3) at the end.
6422 # Note that $ac_compile itself does not contain backslashes and begins
6423 # with a dollar sign (not a hyphen), so the echo should work correctly.
6424 lt_compile=`echo "$ac_compile" | $SED \
6425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6427 -e 's:$: $lt_compiler_flag:'`
82a6cadf 6428 (eval echo "\"\$as_me:6428: $lt_compile\"" >&5)
1cf3d07d
SE
6429 (eval "$lt_compile" 2>out/conftest.err)
6430 ac_status=$?
6431 cat out/conftest.err >&5
82a6cadf 6432 echo "$as_me:6432: \$? = $ac_status" >&5
1cf3d07d
SE
6433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6434 then
6435 # The compiler can only warn and ignore the option if not recognized
6436 # So say no if there are warnings
6437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6440 lt_cv_prog_compiler_c_o=yes
6441 fi
6442 fi
6443 chmod u+w . 2>&5
6444 $RM conftest*
6445 # SGI C++ compiler will create directory out/ii_files/ for
6446 # template instantiation
6447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6448 $RM out/* && rmdir out
6449 cd ..
6450 $RM -r conftest
6451 $RM conftest*
6452
6453fi
6454echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6455echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6456
6457
6458
6459
6460hard_links="nottested"
6461if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6462 # do not overwrite the value of need_locks provided by the user
6463 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6464echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6465 hard_links=yes
6466 $RM conftest*
6467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6468 touch conftest.a
6469 ln conftest.a conftest.b 2>&5 || hard_links=no
6470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6471 echo "$as_me:$LINENO: result: $hard_links" >&5
6472echo "${ECHO_T}$hard_links" >&6
6473 if test "$hard_links" = no; then
6474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6475echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6476 need_locks=warn
6477 fi
6478else
6479 need_locks=no
6480fi
6481
6482
6483
6484
6485
6486
6487 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6488echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6489
6490 runpath_var=
6491 allow_undefined_flag=
6492 always_export_symbols=no
6493 archive_cmds=
6494 archive_expsym_cmds=
6495 compiler_needs_object=no
6496 enable_shared_with_static_runtimes=no
6497 export_dynamic_flag_spec=
6498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6499 hardcode_automatic=no
6500 hardcode_direct=no
6501 hardcode_direct_absolute=no
6502 hardcode_libdir_flag_spec=
6503 hardcode_libdir_flag_spec_ld=
6504 hardcode_libdir_separator=
6505 hardcode_minus_L=no
6506 hardcode_shlibpath_var=unsupported
6507 inherit_rpath=no
6508 link_all_deplibs=unknown
6509 module_cmds=
6510 module_expsym_cmds=
6511 old_archive_from_new_cmds=
6512 old_archive_from_expsyms_cmds=
6513 thread_safe_flag_spec=
6514 whole_archive_flag_spec=
6515 # include_expsyms should be a list of space-separated symbols to be *always*
6516 # included in the symbol list
6517 include_expsyms=
6518 # exclude_expsyms can be an extended regexp of symbols to exclude
6519 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6520 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6521 # as well as any symbol that contains `d'.
6522 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6524 # platforms (ab)use it in PIC code, but their linkers get confused if
6525 # the symbol is explicitly referenced. Since portable code cannot
6526 # rely on this symbol name, it's probably fine to never include it in
6527 # preloaded symbol tables.
6528 extract_expsyms_cmds=
6529
6530 case $host_os in
6531 cygwin* | mingw* | pw32*)
6532 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6533 # When not using gcc, we currently assume that we are using
6534 # Microsoft Visual C++.
6535 if test "$GCC" != yes; then
6536 with_gnu_ld=no
6537 fi
6538 ;;
6539 interix*)
6540 # we just hope/assume this is gcc and not c89 (= MSVC++)
6541 with_gnu_ld=yes
6542 ;;
6543 openbsd*)
6544 with_gnu_ld=no
6545 ;;
6546 esac
6547
6548 ld_shlibs=yes
6549 if test "$with_gnu_ld" = yes; then
6550 # If archive_cmds runs LD, not CC, wlarc should be empty
6551 wlarc='${wl}'
6552
6553 # Set some defaults for GNU ld with shared library support. These
6554 # are reset later if shared libraries are not supported. Putting them
6555 # here allows them to be overridden if necessary.
6556 runpath_var=LD_RUN_PATH
6557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6558 export_dynamic_flag_spec='${wl}--export-dynamic'
6559 # ancient GNU ld didn't support --whole-archive et. al.
6560 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6561 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6562 else
6563 whole_archive_flag_spec=
6564 fi
6565 supports_anon_versioning=no
6566 case `$LD -v 2>&1` in
6567 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6568 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6569 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6570 *\ 2.11.*) ;; # other 2.11 versions
6571 *) supports_anon_versioning=yes ;;
6572 esac
6573
6574 # See if GNU ld supports shared libraries.
6575 case $host_os in
6576 aix3* | aix4* | aix5*)
6577 # On AIX/PPC, the GNU linker is very broken
6578 if test "$host_cpu" != ia64; then
6579 ld_shlibs=no
6580 cat <<_LT_EOF 1>&2
6581
6582*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6583*** to be unable to reliably create shared libraries on AIX.
6584*** Therefore, libtool is disabling shared libraries support. If you
6585*** really care for shared libraries, you may want to modify your PATH
6586*** so that a non-GNU linker is found, and then restart.
6587
6588_LT_EOF
6589 fi
6590 ;;
6591
6592 amigaos*)
6593 if test "$host_cpu" = m68k; then
6594 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)'
6595 hardcode_libdir_flag_spec='-L$libdir'
6596 hardcode_minus_L=yes
6597 fi
6598
6599 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6600 # that the semantics of dynamic libraries on AmigaOS, at least up
6601 # to version 4, is to share data among multiple programs linked
6602 # with the same dynamic library. Since this doesn't match the
6603 # behavior of shared libraries on other platforms, we can't use
6604 # them.
6605 ld_shlibs=no
6606 ;;
6607
6608 beos*)
6609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6610 allow_undefined_flag=unsupported
6611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6612 # support --undefined. This deserves some investigation. FIXME
6613 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6614 else
6615 ld_shlibs=no
6616 fi
6617 ;;
6618
6619 cygwin* | mingw* | pw32*)
6620 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6621 # as there is no search path for DLLs.
6622 hardcode_libdir_flag_spec='-L$libdir'
6623 allow_undefined_flag=unsupported
6624 always_export_symbols=no
6625 enable_shared_with_static_runtimes=yes
6626 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6627
6628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6630 # If the export-symbols file already is a .def file (1st line
6631 # is EXPORTS), use it as is; otherwise, prepend...
6632 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6633 cp $export_symbols $output_objdir/$soname.def;
6634 else
6635 echo EXPORTS > $output_objdir/$soname.def;
6636 cat $export_symbols >> $output_objdir/$soname.def;
6637 fi~
6638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6639 else
6640 ld_shlibs=no
6641 fi
6642 ;;
6643
6644 interix[3-9]*)
6645 hardcode_direct=no
6646 hardcode_shlibpath_var=no
6647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6648 export_dynamic_flag_spec='${wl}-E'
6649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6650 # Instead, shared libraries are loaded at an image base (0x10000000 by
6651 # default) and relocated if they conflict, which is a slow very memory
6652 # consuming and fragmenting process. To avoid this, we pick a random,
6653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6656 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'
6657 ;;
6658
6659 gnu* | linux* | tpf* | k*bsd*-gnu)
6660 tmp_diet=no
6661 if test "$host_os" = linux-dietlibc; then
6662 case $cc_basename in
6663 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6664 esac
6665 fi
6666 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6667 && test "$tmp_diet" = no
6668 then
6669 tmp_addflag=
6670 case $cc_basename,$host_cpu in
6671 pgcc*) # Portland Group C compiler
6672 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'
6673 tmp_addflag=' $pic_flag'
6674 ;;
6675 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6676 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'
6677 tmp_addflag=' $pic_flag -Mnomain' ;;
6678 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6679 tmp_addflag=' -i_dynamic' ;;
6680 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6681 tmp_addflag=' -i_dynamic -nofor_main' ;;
6682 ifc* | ifort*) # Intel Fortran compiler
6683 tmp_addflag=' -nofor_main' ;;
6684 esac
6685 case `$CC -V 2>&1 | sed 5q` in
6686 *Sun\ C*) # Sun C 5.9
6687 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'
6688 compiler_needs_object=yes
6689 tmp_sharedflag='-G' ;;
6690 *Sun\ F*) # Sun Fortran 8.3
6691 tmp_sharedflag='-G' ;;
6692 *)
6693 tmp_sharedflag='-shared' ;;
6694 esac
6695 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6696
6697 if test "x$supports_anon_versioning" = xyes; then
6698 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6700 echo "local: *; };" >> $output_objdir/$libname.ver~
6701 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6702 fi
6703 else
6704 ld_shlibs=no
6705 fi
6706 ;;
6707
6708 netbsd*)
6709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6710 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6711 wlarc=
6712 else
6713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6715 fi
6716 ;;
6717
6718 solaris*)
6719 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6720 ld_shlibs=no
6721 cat <<_LT_EOF 1>&2
6722
6723*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6724*** create shared libraries on Solaris systems. Therefore, libtool
6725*** is disabling shared libraries support. We urge you to upgrade GNU
6726*** binutils to release 2.9.1 or newer. Another option is to modify
6727*** your PATH or compiler configuration so that the native linker is
6728*** used, and then restart.
6729
6730_LT_EOF
6731 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6734 else
6735 ld_shlibs=no
6736 fi
6737 ;;
6738
6739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6740 case `$LD -v 2>&1` in
6741 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6742 ld_shlibs=no
6743 cat <<_LT_EOF 1>&2
6744
6745*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6746*** reliably create shared libraries on SCO systems. Therefore, libtool
6747*** is disabling shared libraries support. We urge you to upgrade GNU
6748*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6749*** your PATH or compiler configuration so that the native linker is
6750*** used, and then restart.
6751
6752_LT_EOF
6753 ;;
6754 *)
6755 # For security reasons, it is highly recommended that you always
6756 # use absolute paths for naming shared libraries, and exclude the
6757 # DT_RUNPATH tag from executables and libraries. But doing so
6758 # requires that you compile everything twice, which is a pain.
6759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6763 else
6764 ld_shlibs=no
6765 fi
6766 ;;
6767 esac
6768 ;;
6769
6770 sunos4*)
6771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6772 wlarc=
6773 hardcode_direct=yes
6774 hardcode_shlibpath_var=no
6775 ;;
6776
6777 *)
6778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 else
6782 ld_shlibs=no
6783 fi
6784 ;;
6785 esac
6786
6787 if test "$ld_shlibs" = no; then
6788 runpath_var=
6789 hardcode_libdir_flag_spec=
6790 export_dynamic_flag_spec=
6791 whole_archive_flag_spec=
6792 fi
6793 else
6794 # PORTME fill in a description of your system's linker (not GNU ld)
6795 case $host_os in
6796 aix3*)
6797 allow_undefined_flag=unsupported
6798 always_export_symbols=yes
6799 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'
6800 # Note: this linker hardcodes the directories in LIBPATH if there
6801 # are no directories specified by -L.
6802 hardcode_minus_L=yes
6803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6804 # Neither direct hardcoding nor static linking is supported with a
6805 # broken collect2.
6806 hardcode_direct=unsupported
6807 fi
6808 ;;
6809
6810 aix4* | aix5*)
6811 if test "$host_cpu" = ia64; then
6812 # On IA64, the linker does run time linking by default, so we don't
6813 # have to do anything special.
6814 aix_use_runtimelinking=no
6815 exp_sym_flag='-Bexport'
6816 no_entry_flag=""
6817 else
6818 # If we're using GNU nm, then we don't want the "-C" option.
6819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6820 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6821 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'
6822 else
6823 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'
6824 fi
6825 aix_use_runtimelinking=no
6826
6827 # Test if we are trying to use run time linking or normal
6828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6829 # need to do runtime linking.
6830 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6831 for ld_flag in $LDFLAGS; do
6832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6833 aix_use_runtimelinking=yes
6834 break
6835 fi
6836 done
6837 ;;
6838 esac
6839
6840 exp_sym_flag='-bexport'
6841 no_entry_flag='-bnoentry'
6842 fi
6843
6844 # When large executables or shared objects are built, AIX ld can
6845 # have problems creating the table of contents. If linking a library
6846 # or program results in "error TOC overflow" add -mminimal-toc to
6847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6849
6850 archive_cmds=''
6851 hardcode_direct=yes
6852 hardcode_direct_absolute=yes
6853 hardcode_libdir_separator=':'
6854 link_all_deplibs=yes
6855 file_list_spec='${wl}-f,'
6856
6857 if test "$GCC" = yes; then
6858 case $host_os in aix4.[012]|aix4.[012].*)
6859 # We only want to do this on AIX 4.2 and lower, the check
6860 # below for broken collect2 doesn't work under 4.3+
6861 collect2name=`${CC} -print-prog-name=collect2`
6862 if test -f "$collect2name" &&
6863 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6864 then
6865 # We have reworked collect2
6866 :
6867 else
6868 # We have old collect2
6869 hardcode_direct=unsupported
6870 # It fails to find uninstalled libraries when the uninstalled
6871 # path is not listed in the libpath. Setting hardcode_minus_L
6872 # to unsupported forces relinking
6873 hardcode_minus_L=yes
6874 hardcode_libdir_flag_spec='-L$libdir'
6875 hardcode_libdir_separator=
6876 fi
6877 ;;
6878 esac
6879 shared_flag='-shared'
6880 if test "$aix_use_runtimelinking" = yes; then
6881 shared_flag="$shared_flag "'${wl}-G'
6882 fi
6883 else
6884 # not using gcc
6885 if test "$host_cpu" = ia64; then
6886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6887 # chokes on -Wl,-G. The following line is correct:
6888 shared_flag='-G'
6889 else
6890 if test "$aix_use_runtimelinking" = yes; then
6891 shared_flag='${wl}-G'
6892 else
6893 shared_flag='${wl}-bM:SRE'
6894 fi
6895 fi
6896 fi
6897
6898 # It seems that -bexpall does not export symbols beginning with
6899 # underscore (_), so it is better to generate a list of symbols to export.
6900 always_export_symbols=yes
6901 if test "$aix_use_runtimelinking" = yes; then
6902 # Warning - without using the other runtime loading flags (-brtl),
6903 # -berok will link without error, but may produce a broken library.
6904 allow_undefined_flag='-berok'
6905 # Determine the default libpath from the value encoded in an
6906 # empty executable.
6907 if test x$gcc_no_link = xyes; then
6908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6909echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6910 { (exit 1); exit 1; }; }
6911fi
6912cat >conftest.$ac_ext <<_ACEOF
6913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
6918
6919int
6920main ()
6921{
6922
6923 ;
6924 return 0;
6925}
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -z "$ac_c_werror_flag"
6937 || test ! -s conftest.err'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 (eval $ac_try) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; } &&
6943 { ac_try='test -s conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949
6950lt_aix_libpath_sed='
6951 /Import File Strings/,/^$/ {
6952 /^0/ {
6953 s/^0 *\(.*\)$/\1/
6954 p
6955 }
6956 }'
6957aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6958# Check for a 64-bit object if we didn't find anything.
6959if test -z "$aix_libpath"; then
6960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6961fi
6962else
6963 echo "$as_me: failed program was:" >&5
6964sed 's/^/| /' conftest.$ac_ext >&5
6965
6966fi
6967rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6970
6971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6972 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"
6973 else
6974 if test "$host_cpu" = ia64; then
6975 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6976 allow_undefined_flag="-z nodefs"
6977 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"
6978 else
6979 # Determine the default libpath from the value encoded in an
6980 # empty executable.
6981 if test x$gcc_no_link = xyes; then
6982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6983echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6984 { (exit 1); exit 1; }; }
6985fi
6986cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h. */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h. */
6992
6993int
6994main ()
6995{
6996
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag"
7011 || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023
7024lt_aix_libpath_sed='
7025 /Import File Strings/,/^$/ {
7026 /^0/ {
7027 s/^0 *\(.*\)$/\1/
7028 p
7029 }
7030 }'
7031aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7032# Check for a 64-bit object if we didn't find anything.
7033if test -z "$aix_libpath"; then
7034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7035fi
7036else
7037 echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040fi
7041rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7044
7045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7046 # Warning - without using the other run time loading flags,
7047 # -berok will link without error, but may produce a broken library.
7048 no_undefined_flag=' ${wl}-bernotok'
7049 allow_undefined_flag=' ${wl}-berok'
7050 # Exported symbols can be pulled into shared objects from archives
7051 whole_archive_flag_spec='$convenience'
7052 archive_cmds_need_lc=yes
7053 # This is similar to how AIX traditionally builds its shared libraries.
7054 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'
7055 fi
7056 fi
7057 ;;
7058
7059 amigaos*)
7060 if test "$host_cpu" = m68k; then
7061 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)'
7062 hardcode_libdir_flag_spec='-L$libdir'
7063 hardcode_minus_L=yes
7064 fi
7065 # see comment about different semantics on the GNU ld section
7066 ld_shlibs=no
7067 ;;
7068
7069 bsdi[45]*)
7070 export_dynamic_flag_spec=-rdynamic
7071 ;;
7072
7073 cygwin* | mingw* | pw32*)
7074 # When not using gcc, we currently assume that we are using
7075 # Microsoft Visual C++.
7076 # hardcode_libdir_flag_spec is actually meaningless, as there is
7077 # no search path for DLLs.
7078 hardcode_libdir_flag_spec=' '
7079 allow_undefined_flag=unsupported
7080 # Tell ltmain to make .lib files, not .a files.
7081 libext=lib
7082 # Tell ltmain to make .dll files, not .so files.
7083 shrext_cmds=".dll"
7084 # FIXME: Setting linknames here is a bad hack.
7085 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7086 # The linker will automatically build a .lib file if we build a DLL.
7087 old_archive_from_new_cmds='true'
7088 # FIXME: Should let the user specify the lib program.
7089 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7090 fix_srcfile_path='`cygpath -w "$srcfile"`'
7091 enable_shared_with_static_runtimes=yes
7092 ;;
7093
7094 darwin* | rhapsody*)
7095 case $host_os in
7096 rhapsody* | darwin1.[012])
7097 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7098 ;;
7099 *) # Darwin 1.3 on
7100 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7101 10.[012])
7102 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7103 ;;
7104 10.*)
7105 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7106 ;;
7107 esac
7108 ;;
7109 esac
7110 archive_cmds_need_lc=no
7111 hardcode_direct=no
7112 hardcode_automatic=yes
7113 hardcode_shlibpath_var=unsupported
7114 whole_archive_flag_spec=''
7115 link_all_deplibs=yes
7116 if test "$GCC" = yes ; then
7117 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120 lt_cv_apple_cc_single_mod=no
7121 if test -z "${LT_MULTI_MODULE}"; then
7122 # By default we will add the -single_module flag. You can override
7123 # by either setting the environment variable LT_MULTI_MODULE
7124 # non-empty at configure time, or by adding -multi-module to the
7125 # link flags.
7126 echo "int foo(void){return 1;}" > conftest.c
7127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7128 -dynamiclib ${wl}-single_module conftest.c
7129 if test -f libconftest.dylib; then
7130 lt_cv_apple_cc_single_mod=yes
7131 rm libconftest.dylib
7132 fi
7133 rm conftest.$ac_ext
7134 fi
7135fi
7136
7137 output_verbose_link_cmd=echo
7138 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7139 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7140 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7141 else
7142 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7143 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7144 fi
7145 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7146 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7147 else
7148 case $cc_basename in
7149 xlc*)
7150 output_verbose_link_cmd=echo
7151 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7152 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7154 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7155 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7156 ;;
7157 *)
7158 ld_shlibs=no
7159 ;;
7160 esac
7161 fi
7162 ;;
7163
7164 dgux*)
7165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166 hardcode_libdir_flag_spec='-L$libdir'
7167 hardcode_shlibpath_var=no
7168 ;;
7169
7170 freebsd1*)
7171 ld_shlibs=no
7172 ;;
7173
7174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7175 # support. Future versions do this automatically, but an explicit c++rt0.o
7176 # does not break anything, and helps significantly (at the cost of a little
7177 # extra space).
7178 freebsd2.2*)
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7180 hardcode_libdir_flag_spec='-R$libdir'
7181 hardcode_direct=yes
7182 hardcode_shlibpath_var=no
7183 ;;
7184
7185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7186 freebsd2*)
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7188 hardcode_direct=yes
7189 hardcode_minus_L=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7194 freebsd* | dragonfly*)
7195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7196 hardcode_libdir_flag_spec='-R$libdir'
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 hpux9*)
7202 if test "$GCC" = yes; then
7203 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'
7204 else
7205 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'
7206 fi
7207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208 hardcode_libdir_separator=:
7209 hardcode_direct=yes
7210
7211 # hardcode_minus_L: Not really in the search PATH,
7212 # but as the default location of the library.
7213 hardcode_minus_L=yes
7214 export_dynamic_flag_spec='${wl}-E'
7215 ;;
7216
7217 hpux10*)
7218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7220 else
7221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7222 fi
7223 if test "$with_gnu_ld" = no; then
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_flag_spec_ld='+b $libdir'
7226 hardcode_libdir_separator=:
7227 hardcode_direct=yes
7228 hardcode_direct_absolute=yes
7229 export_dynamic_flag_spec='${wl}-E'
7230 # hardcode_minus_L: Not really in the search PATH,
7231 # but as the default location of the library.
7232 hardcode_minus_L=yes
7233 fi
7234 ;;
7235
7236 hpux11*)
7237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7238 case $host_cpu in
7239 hppa*64*)
7240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7241 ;;
7242 ia64*)
7243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7244 ;;
7245 *)
7246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7247 ;;
7248 esac
7249 else
7250 case $host_cpu in
7251 hppa*64*)
7252 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7253 ;;
7254 ia64*)
7255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7256 ;;
7257 *)
7258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7259 ;;
7260 esac
7261 fi
7262 if test "$with_gnu_ld" = no; then
7263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7264 hardcode_libdir_separator=:
7265
7266 case $host_cpu in
7267 hppa*64*|ia64*)
7268 hardcode_direct=no
7269 hardcode_shlibpath_var=no
7270 ;;
7271 *)
7272 hardcode_direct=yes
7273 hardcode_direct_absolute=yes
7274 export_dynamic_flag_spec='${wl}-E'
7275
7276 # hardcode_minus_L: Not really in the search PATH,
7277 # but as the default location of the library.
7278 hardcode_minus_L=yes
7279 ;;
7280 esac
7281 fi
7282 ;;
7283
7284 irix5* | irix6* | nonstopux*)
7285 if test "$GCC" = yes; then
7286 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'
7287 # Try to use the -exported_symbol ld option, if it does not
7288 # work, assume that -exports_file does not work either and
7289 # implicitly export all symbols.
7290 save_LDFLAGS="$LDFLAGS"
7291 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7292 if test x$gcc_no_link = xyes; then
7293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7294echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7295 { (exit 1); exit 1; }; }
7296fi
7297cat >conftest.$ac_ext <<_ACEOF
7298int foo(void) {}
7299_ACEOF
7300rm -f conftest.$ac_objext conftest$ac_exeext
7301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 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'
7323
7324else
7325 echo "$as_me: failed program was:" >&5
7326sed 's/^/| /' conftest.$ac_ext >&5
7327
7328fi
7329rm -f conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 LDFLAGS="$save_LDFLAGS"
7332 else
7333 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'
7334 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'
7335 fi
7336 archive_cmds_need_lc='no'
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 hardcode_libdir_separator=:
7339 inherit_rpath=yes
7340 link_all_deplibs=yes
7341 ;;
7342
7343 netbsd*)
7344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7346 else
7347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7348 fi
7349 hardcode_libdir_flag_spec='-R$libdir'
7350 hardcode_direct=yes
7351 hardcode_shlibpath_var=no
7352 ;;
7353
7354 newsos6)
7355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356 hardcode_direct=yes
7357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7358 hardcode_libdir_separator=:
7359 hardcode_shlibpath_var=no
7360 ;;
7361
7362 *nto* | *qnx*)
7363 ;;
7364
7365 openbsd*)
7366 hardcode_direct=yes
7367 hardcode_shlibpath_var=no
7368 hardcode_direct_absolute=yes
7369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7373 export_dynamic_flag_spec='${wl}-E'
7374 else
7375 case $host_os in
7376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_libdir_flag_spec='-R$libdir'
7379 ;;
7380 *)
7381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7383 ;;
7384 esac
7385 fi
7386 ;;
7387
7388 os2*)
7389 hardcode_libdir_flag_spec='-L$libdir'
7390 hardcode_minus_L=yes
7391 allow_undefined_flag=unsupported
7392 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'
7393 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7394 ;;
7395
7396 osf3*)
7397 if test "$GCC" = yes; then
7398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7399 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'
7400 else
7401 allow_undefined_flag=' -expect_unresolved \*'
7402 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'
7403 fi
7404 archive_cmds_need_lc='no'
7405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7406 hardcode_libdir_separator=:
7407 ;;
7408
7409 osf4* | osf5*) # as osf3* with the addition of -msym flag
7410 if test "$GCC" = yes; then
7411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7412 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'
7413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7414 else
7415 allow_undefined_flag=' -expect_unresolved \*'
7416 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'
7417 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~
7418 $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'
7419
7420 # Both c and cxx compiler support -rpath directly
7421 hardcode_libdir_flag_spec='-rpath $libdir'
7422 fi
7423 archive_cmds_need_lc='no'
7424 hardcode_libdir_separator=:
7425 ;;
7426
7427 solaris*)
7428 no_undefined_flag=' -z defs'
7429 if test "$GCC" = yes; then
7430 wlarc='${wl}'
7431 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7433 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7434 else
7435 case `$CC -V 2>&1` in
7436 *"Compilers 5.0"*)
7437 wlarc=''
7438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7441 ;;
7442 *)
7443 wlarc='${wl}'
7444 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7446 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7447 ;;
7448 esac
7449 fi
7450 hardcode_libdir_flag_spec='-R$libdir'
7451 hardcode_shlibpath_var=no
7452 case $host_os in
7453 solaris2.[0-5] | solaris2.[0-5].*) ;;
7454 *)
7455 # The compiler driver will combine and reorder linker options,
7456 # but understands `-z linker_flag'. GCC discards it without `$wl',
7457 # but is careful enough not to reorder.
7458 # Supported since Solaris 2.6 (maybe 2.5.1?)
7459 if test "$GCC" = yes; then
7460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7461 else
7462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7463 fi
7464 ;;
7465 esac
7466 link_all_deplibs=yes
7467 ;;
7468
7469 sunos4*)
7470 if test "x$host_vendor" = xsequent; then
7471 # Use $CC to link under sequent, because it throws in some extra .o
7472 # files that make .init and .fini sections work.
7473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7474 else
7475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7476 fi
7477 hardcode_libdir_flag_spec='-L$libdir'
7478 hardcode_direct=yes
7479 hardcode_minus_L=yes
7480 hardcode_shlibpath_var=no
7481 ;;
7482
7483 sysv4)
7484 case $host_vendor in
7485 sni)
7486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7487 hardcode_direct=yes # is this really true???
7488 ;;
7489 siemens)
7490 ## LD is ld it makes a PLAMLIB
7491 ## CC just makes a GrossModule.
7492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7493 reload_cmds='$CC -r -o $output$reload_objs'
7494 hardcode_direct=no
7495 ;;
7496 motorola)
7497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7499 ;;
7500 esac
7501 runpath_var='LD_RUN_PATH'
7502 hardcode_shlibpath_var=no
7503 ;;
7504
7505 sysv4.3*)
7506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7507 hardcode_shlibpath_var=no
7508 export_dynamic_flag_spec='-Bexport'
7509 ;;
7510
7511 sysv4*MP*)
7512 if test -d /usr/nec; then
7513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7514 hardcode_shlibpath_var=no
7515 runpath_var=LD_RUN_PATH
7516 hardcode_runpath_var=yes
7517 ld_shlibs=yes
7518 fi
7519 ;;
7520
7521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7522 no_undefined_flag='${wl}-z,text'
7523 archive_cmds_need_lc=no
7524 hardcode_shlibpath_var=no
7525 runpath_var='LD_RUN_PATH'
7526
7527 if test "$GCC" = yes; then
7528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7530 else
7531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7533 fi
7534 ;;
7535
7536 sysv5* | sco3.2v5* | sco5v6*)
7537 # Note: We can NOT use -z defs as we might desire, because we do not
7538 # link with -lc, and that would cause any symbols used from libc to
7539 # always be unresolved, which means just about no library would
7540 # ever link correctly. If we're not using GNU ld we use -z text
7541 # though, which does catch some bad symbols but isn't as heavy-handed
7542 # as -z defs.
7543 no_undefined_flag='${wl}-z,text'
7544 allow_undefined_flag='${wl}-z,nodefs'
7545 archive_cmds_need_lc=no
7546 hardcode_shlibpath_var=no
7547 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7548 hardcode_libdir_separator=':'
7549 link_all_deplibs=yes
7550 export_dynamic_flag_spec='${wl}-Bexport'
7551 runpath_var='LD_RUN_PATH'
7552
7553 if test "$GCC" = yes; then
7554 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7556 else
7557 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7559 fi
7560 ;;
7561
7562 uts4*)
7563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564 hardcode_libdir_flag_spec='-L$libdir'
7565 hardcode_shlibpath_var=no
7566 ;;
7567
7568 *)
7569 ld_shlibs=no
7570 ;;
7571 esac
7572
7573 if test x$host_vendor = xsni; then
7574 case $host in
7575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7576 export_dynamic_flag_spec='${wl}-Blargedynsym'
7577 ;;
7578 esac
7579 fi
7580 fi
7581
7582echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7583echo "${ECHO_T}$ld_shlibs" >&6
7584test "$ld_shlibs" = no && can_build_shared=no
7585
7586with_gnu_ld=$with_gnu_ld
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602#
7603# Do we need to explicitly link libc?
7604#
7605case "x$archive_cmds_need_lc" in
7606x|xyes)
7607 # Assume -lc should be added
7608 archive_cmds_need_lc=yes
7609
7610 if test "$enable_shared" = yes && test "$GCC" = yes; then
7611 case $archive_cmds in
7612 *'~'*)
7613 # FIXME: we may have to deal with multi-command sequences.
7614 ;;
7615 '$CC '*)
7616 # Test whether the compiler implicitly links with -lc since on some
7617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7618 # to ld, don't add -lc before -lgcc.
7619 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7620echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7621 $RM conftest*
7622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7623
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } 2>conftest.err; then
7629 soname=conftest
7630 lib=conftest
7631 libobjs=conftest.$ac_objext
7632 deplibs=
7633 wl=$lt_prog_compiler_wl
7634 pic_flag=$lt_prog_compiler_pic
7635 compiler_flags=-v
7636 linker_flags=-v
7637 verstring=
7638 output_objdir=.
7639 libname=conftest
7640 lt_save_allow_undefined_flag=$allow_undefined_flag
7641 allow_undefined_flag=
7642 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7643 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }
7647 then
7648 archive_cmds_need_lc=no
7649 else
7650 archive_cmds_need_lc=yes
7651 fi
7652 allow_undefined_flag=$lt_save_allow_undefined_flag
7653 else
7654 cat conftest.err 1>&5
7655 fi
7656 $RM conftest*
7657 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7658echo "${ECHO_T}$archive_cmds_need_lc" >&6
7659 ;;
7660 esac
7661 fi
7662 ;;
7663esac
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7823withGCC=$GCC
7824if test "$withGCC" = yes; then
7825 case $host_os in
7826 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7827 *) lt_awk_arg="/^libraries:/" ;;
7828 esac
7829 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7830 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7831 # if the path contains ";" then we assume it to be the separator
7832 # otherwise default to the standard path separator (i.e. ":") - it is
7833 # assumed that no part of a normal pathname contains ";" but that should
7834 # okay in the real world where ";" in dirpaths is itself problematic.
7835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7836 else
7837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7838 fi
7839 # Ok, now we have the path, separated by spaces, we can step through it
7840 # and add multilib dir if necessary.
7841 lt_tmp_lt_search_path_spec=
7842 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7843 for lt_sys_path in $lt_search_path_spec; do
7844 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7846 else
7847 test -d "$lt_sys_path" && \
7848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7849 fi
7850 done
7851 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7852BEGIN {RS=" "; FS="/|\n";} {
7853 lt_foo="";
7854 lt_count=0;
7855 for (lt_i = NF; lt_i > 0; lt_i--) {
7856 if ($lt_i != "" && $lt_i != ".") {
7857 if ($lt_i == "..") {
7858 lt_count++;
7859 } else {
7860 if (lt_count == 0) {
7861 lt_foo="/" $lt_i lt_foo;
7862 } else {
7863 lt_count--;
7864 }
7865 }
7866 }
7867 }
7868 if (lt_foo != "") { lt_freq[lt_foo]++; }
7869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7870}'`
7871 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7872else
7873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7874fi
7875library_names_spec=
7876libname_spec='lib$name'
7877soname_spec=
7878shrext_cmds=".so"
7879postinstall_cmds=
7880postuninstall_cmds=
7881finish_cmds=
7882finish_eval=
7883shlibpath_var=
7884shlibpath_overrides_runpath=unknown
7885version_type=none
7886dynamic_linker="$host_os ld.so"
7887sys_lib_dlsearch_path_spec="/lib /usr/lib"
7888need_lib_prefix=unknown
7889hardcode_into_libs=no
7890
7891# when you set need_version to no, make sure it does not cause -set_version
7892# flags to be left without arguments
7893need_version=unknown
7894
7895case $host_os in
7896aix3*)
7897 version_type=linux
7898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7899 shlibpath_var=LIBPATH
7900
7901 # AIX 3 has no versioning support, so we append a major version to the name.
7902 soname_spec='${libname}${release}${shared_ext}$major'
7903 ;;
7904
7905aix4* | aix5*)
7906 version_type=linux
7907 need_lib_prefix=no
7908 need_version=no
7909 hardcode_into_libs=yes
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 supports IA64
7912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7913 shlibpath_var=LD_LIBRARY_PATH
7914 else
7915 # With GCC up to 2.95.x, collect2 would create an import file
7916 # for dependence libraries. The import file would start with
7917 # the line `#! .'. This would cause the generated library to
7918 # depend on `.', always an invalid library. This was fixed in
7919 # development snapshots of GCC prior to 3.0.
7920 case $host_os in
7921 aix4 | aix4.[01] | aix4.[01].*)
7922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7923 echo ' yes '
7924 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7925 :
7926 else
7927 can_build_shared=no
7928 fi
7929 ;;
7930 esac
7931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7932 # soname into executable. Probably we can add versioning support to
7933 # collect2, so additional links can be useful in future.
7934 if test "$aix_use_runtimelinking" = yes; then
7935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7936 # instead of lib<name>.a to let people know that these are not
7937 # typical AIX shared libraries.
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 else
7940 # We preserve .a as extension for shared libraries through AIX4.2
7941 # and later when we are not doing run time linking.
7942 library_names_spec='${libname}${release}.a $libname.a'
7943 soname_spec='${libname}${release}${shared_ext}$major'
7944 fi
7945 shlibpath_var=LIBPATH
7946 fi
7947 ;;
7948
7949amigaos*)
7950 if test "$host_cpu" = m68k; then
7951 library_names_spec='$libname.ixlibrary $libname.a'
7952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7953 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'
7954 else
7955 dynamic_linker=no
7956 fi
7957 ;;
7958
7959beos*)
7960 library_names_spec='${libname}${shared_ext}'
7961 dynamic_linker="$host_os ld.so"
7962 shlibpath_var=LIBRARY_PATH
7963 ;;
7964
7965bsdi[45]*)
7966 version_type=linux
7967 need_version=no
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969 soname_spec='${libname}${release}${shared_ext}$major'
7970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7974 # the default ld.so.conf also contains /usr/contrib/lib and
7975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7976 # libtool to hard-code these into programs
7977 ;;
7978
7979cygwin* | mingw* | pw32*)
7980 version_type=windows
7981 shrext_cmds=".dll"
7982 need_version=no
7983 need_lib_prefix=no
7984
7985 case $withGCC,$host_os in
7986 yes,cygwin* | yes,mingw* | yes,pw32*)
7987 library_names_spec='$libname.dll.a'
7988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7989 postinstall_cmds='base_file=`basename \${file}`~
7990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7991 dldir=$destdir/`dirname \$dlpath`~
7992 test -d \$dldir || mkdir -p \$dldir~
7993 $install_prog $dir/$dlname \$dldir/$dlname~
7994 chmod a+x \$dldir/$dlname~
7995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7996 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7997 fi'
7998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7999 dlpath=$dir/\$dldll~
8000 $RM \$dlpath'
8001 shlibpath_overrides_runpath=yes
8002
8003 case $host_os in
8004 cygwin*)
8005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8008 ;;
8009 mingw*)
8010 # MinGW DLLs use traditional 'lib' prefix
8011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8012 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8013 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8014 # It is most probably a Windows format PATH printed by
8015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8016 # path with ; separators, and with drive letters. We can handle the
8017 # drive letters (cygwin fileutils understands them), so leave them,
8018 # especially as we might pass files found there to a mingw objdump,
8019 # which wouldn't understand a cygwinified path. Ahh.
8020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8021 else
8022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8023 fi
8024 ;;
8025 pw32*)
8026 # pw32 DLLs use 'pw' prefix rather than 'lib'
8027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8028 ;;
8029 esac
8030 ;;
8031
8032 *)
8033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8034 ;;
8035 esac
8036 dynamic_linker='Win32 ld.exe'
8037 # FIXME: first we should search . and the directory the executable is in
8038 shlibpath_var=PATH
8039 ;;
8040
8041darwin* | rhapsody*)
8042 dynamic_linker="$host_os dyld"
8043 version_type=darwin
8044 need_lib_prefix=no
8045 need_version=no
8046 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8047 soname_spec='${libname}${release}${major}$shared_ext'
8048 shlibpath_overrides_runpath=yes
8049 shlibpath_var=DYLD_LIBRARY_PATH
8050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8051
8052 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8054 ;;
8055
8056dgux*)
8057 version_type=linux
8058 need_lib_prefix=no
8059 need_version=no
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8061 soname_spec='${libname}${release}${shared_ext}$major'
8062 shlibpath_var=LD_LIBRARY_PATH
8063 ;;
8064
8065freebsd1*)
8066 dynamic_linker=no
8067 ;;
8068
8069freebsd* | dragonfly*)
8070 # DragonFly does not have aout. When/if they implement a new
8071 # versioning mechanism, adjust this.
8072 if test -x /usr/bin/objformat; then
8073 objformat=`/usr/bin/objformat`
8074 else
8075 case $host_os in
8076 freebsd[123]*) objformat=aout ;;
8077 *) objformat=elf ;;
8078 esac
8079 fi
8080 version_type=freebsd-$objformat
8081 case $version_type in
8082 freebsd-elf*)
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8084 need_version=no
8085 need_lib_prefix=no
8086 ;;
8087 freebsd-*)
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8089 need_version=yes
8090 ;;
8091 esac
8092 shlibpath_var=LD_LIBRARY_PATH
8093 case $host_os in
8094 freebsd2*)
8095 shlibpath_overrides_runpath=yes
8096 ;;
8097 freebsd3.[01]* | freebsdelf3.[01]*)
8098 shlibpath_overrides_runpath=yes
8099 hardcode_into_libs=yes
8100 ;;
8101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8103 shlibpath_overrides_runpath=no
8104 hardcode_into_libs=yes
8105 ;;
8106 *) # from 4.6 on, and DragonFly
8107 shlibpath_overrides_runpath=yes
8108 hardcode_into_libs=yes
8109 ;;
8110 esac
8111 ;;
8112
8113gnu*)
8114 version_type=linux
8115 need_lib_prefix=no
8116 need_version=no
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 hardcode_into_libs=yes
8121 ;;
8122
8123hpux9* | hpux10* | hpux11*)
8124 # Give a soname corresponding to the major version so that dld.sl refuses to
8125 # link against other versions.
8126 version_type=sunos
8127 need_lib_prefix=no
8128 need_version=no
8129 case $host_cpu in
8130 ia64*)
8131 shrext_cmds='.so'
8132 hardcode_into_libs=yes
8133 dynamic_linker="$host_os dld.so"
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137 soname_spec='${libname}${release}${shared_ext}$major'
8138 if test "X$HPUX_IA64_MODE" = X32; then
8139 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8140 else
8141 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8142 fi
8143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8144 ;;
8145 hppa*64*)
8146 shrext_cmds='.sl'
8147 hardcode_into_libs=yes
8148 dynamic_linker="$host_os dld.sl"
8149 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8155 ;;
8156 *)
8157 shrext_cmds='.sl'
8158 dynamic_linker="$host_os dld.sl"
8159 shlibpath_var=SHLIB_PATH
8160 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 ;;
8164 esac
8165 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8166 postinstall_cmds='chmod 555 $lib'
8167 ;;
8168
8169interix[3-9]*)
8170 version_type=linux
8171 need_lib_prefix=no
8172 need_version=no
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8176 shlibpath_var=LD_LIBRARY_PATH
8177 shlibpath_overrides_runpath=no
8178 hardcode_into_libs=yes
8179 ;;
8180
8181irix5* | irix6* | nonstopux*)
8182 case $host_os in
8183 nonstopux*) version_type=nonstopux ;;
8184 *)
8185 if test "$lt_cv_prog_gnu_ld" = yes; then
8186 version_type=linux
8187 else
8188 version_type=irix
8189 fi ;;
8190 esac
8191 need_lib_prefix=no
8192 need_version=no
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8195 case $host_os in
8196 irix5* | nonstopux*)
8197 libsuff= shlibsuff=
8198 ;;
8199 *)
8200 case $LD in # libtool.m4 will add one of these switches to LD
8201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8202 libsuff= shlibsuff= libmagic=32-bit;;
8203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8204 libsuff=32 shlibsuff=N32 libmagic=N32;;
8205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8207 *) libsuff= shlibsuff= libmagic=never-match;;
8208 esac
8209 ;;
8210 esac
8211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8212 shlibpath_overrides_runpath=no
8213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8215 hardcode_into_libs=yes
8216 ;;
8217
8218# No shared lib support for Linux oldld, aout, or coff.
8219linux*oldld* | linux*aout* | linux*coff*)
8220 dynamic_linker=no
8221 ;;
8222
8223# This must be Linux ELF.
8224linux* | k*bsd*-gnu)
8225 version_type=linux
8226 need_lib_prefix=no
8227 need_version=no
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=no
8233 # Some binutils ld are patched to set DT_RUNPATH
8234 save_LDFLAGS=$LDFLAGS
8235 save_libdir=$libdir
8236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8238 if test x$gcc_no_link = xyes; then
8239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8240echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8241 { (exit 1); exit 1; }; }
8242fi
8243cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
8248/* end confdefs.h. */
8249
8250int
8251main ()
8252{
8253
8254 ;
8255 return 0;
8256}
8257_ACEOF
8258rm -f conftest.$ac_objext conftest$ac_exeext
8259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest$ac_exeext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8281 shlibpath_overrides_runpath=yes
8282fi
8283
8284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288fi
8289rm -f conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 LDFLAGS=$save_LDFLAGS
8292 libdir=$save_libdir
8293
8294 # This implies no fast_install, which is unacceptable.
8295 # Some rework will be needed to allow for fast_install
8296 # before this can be enabled.
8297 hardcode_into_libs=yes
8298
8299 # Append ld.so.conf contents to the search path
8300 if test -f /etc/ld.so.conf; then
8301 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8302 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8303 fi
8304
8305 # We used to test for /lib/ld.so.1 and disable shared libraries on
8306 # powerpc, because MkLinux only supported shared libraries with the
8307 # GNU dynamic linker. Since this was broken with cross compilers,
8308 # most powerpc-linux boxes support dynamic linking these days and
8309 # people can always --disable-shared, the test was removed, and we
8310 # assume the GNU/Linux dynamic linker is in use.
8311 dynamic_linker='GNU/Linux ld.so'
8312 ;;
8313
8314netbsd*)
8315 version_type=sunos
8316 need_lib_prefix=no
8317 need_version=no
8318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8321 dynamic_linker='NetBSD (a.out) ld.so'
8322 else
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 dynamic_linker='NetBSD ld.elf_so'
8326 fi
8327 shlibpath_var=LD_LIBRARY_PATH
8328 shlibpath_overrides_runpath=yes
8329 hardcode_into_libs=yes
8330 ;;
8331
8332newsos6)
8333 version_type=linux
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335 shlibpath_var=LD_LIBRARY_PATH
8336 shlibpath_overrides_runpath=yes
8337 ;;
8338
8339*nto* | *qnx*)
8340 version_type=qnx
8341 need_lib_prefix=no
8342 need_version=no
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344 soname_spec='${libname}${release}${shared_ext}$major'
8345 shlibpath_var=LD_LIBRARY_PATH
8346 shlibpath_overrides_runpath=no
8347 hardcode_into_libs=yes
8348 dynamic_linker='ldqnx.so'
8349 ;;
8350
8351openbsd*)
8352 version_type=sunos
8353 sys_lib_dlsearch_path_spec="/usr/lib"
8354 need_lib_prefix=no
8355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8356 case $host_os in
8357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8358 *) need_version=no ;;
8359 esac
8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8364 case $host_os in
8365 openbsd2.[89] | openbsd2.[89].*)
8366 shlibpath_overrides_runpath=no
8367 ;;
8368 *)
8369 shlibpath_overrides_runpath=yes
8370 ;;
8371 esac
8372 else
8373 shlibpath_overrides_runpath=yes
8374 fi
8375 ;;
8376
8377os2*)
8378 libname_spec='$name'
8379 shrext_cmds=".dll"
8380 need_lib_prefix=no
8381 library_names_spec='$libname${shared_ext} $libname.a'
8382 dynamic_linker='OS/2 ld.exe'
8383 shlibpath_var=LIBPATH
8384 ;;
8385
8386osf3* | osf4* | osf5*)
8387 version_type=osf
8388 need_lib_prefix=no
8389 need_version=no
8390 soname_spec='${libname}${release}${shared_ext}$major'
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 shlibpath_var=LD_LIBRARY_PATH
8393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8395 ;;
8396
8397rdos*)
8398 dynamic_linker=no
8399 ;;
8400
8401solaris*)
8402 version_type=linux
8403 need_lib_prefix=no
8404 need_version=no
8405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406 soname_spec='${libname}${release}${shared_ext}$major'
8407 shlibpath_var=LD_LIBRARY_PATH
8408 shlibpath_overrides_runpath=yes
8409 hardcode_into_libs=yes
8410 # ldd complains unless libraries are executable
8411 postinstall_cmds='chmod +x $lib'
8412 ;;
8413
8414sunos4*)
8415 version_type=sunos
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 shlibpath_overrides_runpath=yes
8420 if test "$with_gnu_ld" = yes; then
8421 need_lib_prefix=no
8422 fi
8423 need_version=yes
8424 ;;
8425
8426sysv4 | sysv4.3*)
8427 version_type=linux
8428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8429 soname_spec='${libname}${release}${shared_ext}$major'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 case $host_vendor in
8432 sni)
8433 shlibpath_overrides_runpath=no
8434 need_lib_prefix=no
8435 runpath_var=LD_RUN_PATH
8436 ;;
8437 siemens)
8438 need_lib_prefix=no
8439 ;;
8440 motorola)
8441 need_lib_prefix=no
8442 need_version=no
8443 shlibpath_overrides_runpath=no
8444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8445 ;;
8446 esac
8447 ;;
8448
8449sysv4*MP*)
8450 if test -d /usr/nec ;then
8451 version_type=linux
8452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8453 soname_spec='$libname${shared_ext}.$major'
8454 shlibpath_var=LD_LIBRARY_PATH
8455 fi
8456 ;;
8457
8458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8459 version_type=freebsd-elf
8460 need_lib_prefix=no
8461 need_version=no
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 shlibpath_var=LD_LIBRARY_PATH
8465 shlibpath_overrides_runpath=yes
8466 hardcode_into_libs=yes
8467 if test "$with_gnu_ld" = yes; then
8468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8469 else
8470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8471 case $host_os in
8472 sco3.2v5*)
8473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8474 ;;
8475 esac
8476 fi
8477 sys_lib_dlsearch_path_spec='/usr/lib'
8478 ;;
8479
8480tpf*)
8481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8482 version_type=linux
8483 need_lib_prefix=no
8484 need_version=no
8485 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 shlibpath_var=LD_LIBRARY_PATH
8487 shlibpath_overrides_runpath=no
8488 hardcode_into_libs=yes
8489 ;;
8490
8491uts4*)
8492 version_type=linux
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494 soname_spec='${libname}${release}${shared_ext}$major'
8495 shlibpath_var=LD_LIBRARY_PATH
8496 ;;
8497
8498*)
8499 dynamic_linker=no
8500 ;;
8501esac
8502echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8503echo "${ECHO_T}$dynamic_linker" >&6
8504test "$dynamic_linker" = no && can_build_shared=no
8505
8506variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8507if test "$GCC" = yes; then
8508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8509fi
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
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8598echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8599hardcode_action=
8600if test -n "$hardcode_libdir_flag_spec" ||
8601 test -n "$runpath_var" ||
8602 test "X$hardcode_automatic" = "Xyes" ; then
8603
8604 # We can hardcode non-existent directories.
8605 if test "$hardcode_direct" != no &&
8606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8607 # have to relink, otherwise we might link with an installed library
8608 # when we should be linking with a yet-to-be-installed one
8609 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8610 test "$hardcode_minus_L" != no; then
8611 # Linking always hardcodes the temporary library directory.
8612 hardcode_action=relink
8613 else
8614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8615 hardcode_action=immediate
8616 fi
8617else
8618 # We cannot hardcode anything, or else we can only hardcode existing
8619 # directories.
8620 hardcode_action=unsupported
8621fi
8622echo "$as_me:$LINENO: result: $hardcode_action" >&5
8623echo "${ECHO_T}$hardcode_action" >&6
8624
8625if test "$hardcode_action" = relink ||
8626 test "$inherit_rpath" = yes; then
8627 # Fast installation is not supported
8628 enable_fast_install=no
8629elif test "$shlibpath_overrides_runpath" = yes ||
8630 test "$enable_shared" = no; then
8631 # Fast installation is not necessary
8632 enable_fast_install=needless
8633fi
8634
8635
8636
8637
8638
8639
8640 if test "x$enable_dlopen" != xyes; then
8641 enable_dlopen=unknown
8642 enable_dlopen_self=unknown
8643 enable_dlopen_self_static=unknown
8644else
8645 lt_cv_dlopen=no
8646 lt_cv_dlopen_libs=
8647
8648 case $host_os in
8649 beos*)
8650 lt_cv_dlopen="load_add_on"
8651 lt_cv_dlopen_libs=
8652 lt_cv_dlopen_self=yes
8653 ;;
8654
8655 mingw* | pw32*)
8656 lt_cv_dlopen="LoadLibrary"
8657 lt_cv_dlopen_libs=
8658 ;;
8659
8660 cygwin*)
8661 lt_cv_dlopen="dlopen"
8662 lt_cv_dlopen_libs=
8663 ;;
8664
8665 darwin*)
8666 # if libdl is installed we need to link against it
8667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8668echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8669if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671else
8672 ac_check_lib_save_LIBS=$LIBS
8673LIBS="-ldl $LIBS"
8674if test x$gcc_no_link = xyes; then
8675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8676echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8677 { (exit 1); exit 1; }; }
8678fi
8679cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685
8686/* Override any gcc2 internal prototype to avoid an error. */
8687#ifdef __cplusplus
8688extern "C"
8689#endif
8690/* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692char dlopen ();
8693int
8694main ()
8695{
8696dlopen ();
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_lib_dl_dlopen=yes
8724else
8725 echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728ac_cv_lib_dl_dlopen=no
8729fi
8730rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732LIBS=$ac_check_lib_save_LIBS
8733fi
8734echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8735echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8736if test $ac_cv_lib_dl_dlopen = yes; then
8737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8738else
8739
8740 lt_cv_dlopen="dyld"
8741 lt_cv_dlopen_libs=
8742 lt_cv_dlopen_self=yes
8743
8744fi
8745
8746 ;;
8747
8748 *)
8749 echo "$as_me:$LINENO: checking for shl_load" >&5
8750echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8751if test "${ac_cv_func_shl_load+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753else
8754 if test x$gcc_no_link = xyes; then
8755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8756echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8757 { (exit 1); exit 1; }; }
8758fi
8759cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h. */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h. */
8765/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8767#define shl_load innocuous_shl_load
8768
8769/* System header to define __stub macros and hopefully few prototypes,
8770 which can conflict with char shl_load (); below.
8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8772 <limits.h> exists even on freestanding compilers. */
8773
8774#ifdef __STDC__
8775# include <limits.h>
8776#else
8777# include <assert.h>
8778#endif
8779
8780#undef shl_load
8781
8782/* Override any gcc2 internal prototype to avoid an error. */
8783#ifdef __cplusplus
8784extern "C"
8785{
8786#endif
8787/* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8789char shl_load ();
8790/* The GNU C library defines this for functions which it implements
8791 to always fail with ENOSYS. Some functions are actually named
8792 something starting with __ and the normal name is an alias. */
8793#if defined (__stub_shl_load) || defined (__stub___shl_load)
8794choke me
8795#else
8796char (*f) () = shl_load;
8797#endif
8798#ifdef __cplusplus
8799}
8800#endif
8801
8802int
8803main ()
8804{
8805return f != shl_load;
8806 ;
8807 return 0;
8808}
8809_ACEOF
8810rm -f conftest.$ac_objext conftest$ac_exeext
8811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_func_shl_load=yes
8833else
8834 echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
8837ac_cv_func_shl_load=no
8838fi
8839rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841fi
8842echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8843echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8844if test $ac_cv_func_shl_load = yes; then
8845 lt_cv_dlopen="shl_load"
8846else
8847 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8848echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8849if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851else
8852 ac_check_lib_save_LIBS=$LIBS
8853LIBS="-ldld $LIBS"
8854if test x$gcc_no_link = xyes; then
8855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8856echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8857 { (exit 1); exit 1; }; }
8858fi
8859cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865
8866/* Override any gcc2 internal prototype to avoid an error. */
8867#ifdef __cplusplus
8868extern "C"
8869#endif
8870/* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872char shl_load ();
8873int
8874main ()
8875{
8876shl_load ();
8877 ;
8878 return 0;
8879}
8880_ACEOF
8881rm -f conftest.$ac_objext conftest$ac_exeext
8882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_lib_dld_shl_load=yes
8904else
8905 echo "$as_me: failed program was:" >&5
8906sed 's/^/| /' conftest.$ac_ext >&5
8907
8908ac_cv_lib_dld_shl_load=no
8909fi
8910rm -f conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912LIBS=$ac_check_lib_save_LIBS
8913fi
8914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8915echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8916if test $ac_cv_lib_dld_shl_load = yes; then
8917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8918else
8919 echo "$as_me:$LINENO: checking for dlopen" >&5
8920echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8921if test "${ac_cv_func_dlopen+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924 if test x$gcc_no_link = xyes; then
8925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8926echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8927 { (exit 1); exit 1; }; }
8928fi
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8937#define dlopen innocuous_dlopen
8938
8939/* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char dlopen (); below.
8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 <limits.h> exists even on freestanding compilers. */
8943
8944#ifdef __STDC__
8945# include <limits.h>
8946#else
8947# include <assert.h>
8948#endif
8949
8950#undef dlopen
8951
8952/* Override any gcc2 internal prototype to avoid an error. */
8953#ifdef __cplusplus
8954extern "C"
8955{
8956#endif
8957/* We use char because int might match the return type of a gcc2
8958 builtin and then its argument prototype would still apply. */
8959char dlopen ();
8960/* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963#if defined (__stub_dlopen) || defined (__stub___dlopen)
8964choke me
8965#else
8966char (*f) () = dlopen;
8967#endif
8968#ifdef __cplusplus
8969}
8970#endif
8971
8972int
8973main ()
8974{
8975return f != dlopen;
8976 ;
8977 return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_func_dlopen=yes
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_cv_func_dlopen=no
9008fi
9009rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011fi
9012echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9013echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9014if test $ac_cv_func_dlopen = yes; then
9015 lt_cv_dlopen="dlopen"
9016else
9017 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9018echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9019if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 ac_check_lib_save_LIBS=$LIBS
9023LIBS="-ldl $LIBS"
9024if test x$gcc_no_link = xyes; then
9025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9026echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9027 { (exit 1); exit 1; }; }
9028fi
9029cat >conftest.$ac_ext <<_ACEOF
9030/* confdefs.h. */
9031_ACEOF
9032cat confdefs.h >>conftest.$ac_ext
9033cat >>conftest.$ac_ext <<_ACEOF
9034/* end confdefs.h. */
9035
9036/* Override any gcc2 internal prototype to avoid an error. */
9037#ifdef __cplusplus
9038extern "C"
9039#endif
9040/* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042char dlopen ();
9043int
9044main ()
9045{
9046dlopen ();
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051rm -f conftest.$ac_objext conftest$ac_exeext
9052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_lib_dl_dlopen=yes
9074else
9075 echo "$as_me: failed program was:" >&5
9076sed 's/^/| /' conftest.$ac_ext >&5
9077
9078ac_cv_lib_dl_dlopen=no
9079fi
9080rm -f conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082LIBS=$ac_check_lib_save_LIBS
9083fi
9084echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9085echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9086if test $ac_cv_lib_dl_dlopen = yes; then
9087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9088else
9089 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9090echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9091if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093else
9094 ac_check_lib_save_LIBS=$LIBS
9095LIBS="-lsvld $LIBS"
9096if test x$gcc_no_link = xyes; then
9097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9098echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9099 { (exit 1); exit 1; }; }
9100fi
9101cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
9107
9108/* Override any gcc2 internal prototype to avoid an error. */
9109#ifdef __cplusplus
9110extern "C"
9111#endif
9112/* We use char because int might match the return type of a gcc2
9113 builtin and then its argument prototype would still apply. */
9114char dlopen ();
9115int
9116main ()
9117{
9118dlopen ();
9119 ;
9120 return 0;
9121}
9122_ACEOF
9123rm -f conftest.$ac_objext conftest$ac_exeext
9124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_cv_lib_svld_dlopen=yes
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150ac_cv_lib_svld_dlopen=no
9151fi
9152rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154LIBS=$ac_check_lib_save_LIBS
9155fi
9156echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9157echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9158if test $ac_cv_lib_svld_dlopen = yes; then
9159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9160else
9161 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9162echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9163if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166 ac_check_lib_save_LIBS=$LIBS
9167LIBS="-ldld $LIBS"
9168if test x$gcc_no_link = xyes; then
a8aea176
NN
9169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9170echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9171 { (exit 1); exit 1; }; }
9172fi
9173cat >conftest.$ac_ext <<_ACEOF
9174/* confdefs.h. */
9175_ACEOF
9176cat confdefs.h >>conftest.$ac_ext
9177cat >>conftest.$ac_ext <<_ACEOF
9178/* end confdefs.h. */
0fd91e0a 9179
1cf3d07d
SE
9180/* Override any gcc2 internal prototype to avoid an error. */
9181#ifdef __cplusplus
9182extern "C"
9183#endif
9184/* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186char dld_link ();
a8aea176
NN
9187int
9188main ()
9189{
1cf3d07d 9190dld_link ();
a8aea176
NN
9191 ;
9192 return 0;
9193}
9194_ACEOF
9195rm -f conftest.$ac_objext conftest$ac_exeext
9196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
17210dff
TT
9204 { ac_try='test -z "$ac_c_werror_flag"
9205 || test ! -s conftest.err'
a8aea176
NN
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest$ac_exeext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
1cf3d07d 9217 ac_cv_lib_dld_dld_link=yes
0fd91e0a 9218else
a8aea176
NN
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
1cf3d07d 9222ac_cv_lib_dld_dld_link=no
025fd00e 9223fi
a8aea176
NN
9224rm -f conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9226LIBS=$ac_check_lib_save_LIBS
9227fi
9228echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9229echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9230if test $ac_cv_lib_dld_dld_link = yes; then
9231 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
0fd91e0a 9232fi
025fd00e 9233
dfac8a13 9234
1cf3d07d 9235fi
a8aea176 9236
a8aea176 9237
c45f211e 9238fi
dfac8a13 9239
dfac8a13 9240
dfac8a13
TT
9241fi
9242
9243
1cf3d07d 9244fi
dfac8a13 9245
dfac8a13 9246
1cf3d07d 9247fi
0fd91e0a 9248
1cf3d07d
SE
9249 ;;
9250 esac
dfac8a13 9251
1cf3d07d
SE
9252 if test "x$lt_cv_dlopen" != xno; then
9253 enable_dlopen=yes
9254 else
9255 enable_dlopen=no
9256 fi
a8aea176 9257
1cf3d07d
SE
9258 case $lt_cv_dlopen in
9259 dlopen)
9260 save_CPPFLAGS="$CPPFLAGS"
9261 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
a8aea176 9262
1cf3d07d
SE
9263 save_LDFLAGS="$LDFLAGS"
9264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
dfac8a13 9265
1cf3d07d
SE
9266 save_LIBS="$LIBS"
9267 LIBS="$lt_cv_dlopen_libs $LIBS"
dfac8a13 9268
1cf3d07d
SE
9269 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9270echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9271if test "${lt_cv_dlopen_self+set}" = set; then
a8aea176 9272 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 9273else
1cf3d07d
SE
9274 if test "$cross_compiling" = yes; then :
9275 lt_cv_dlopen_self=cross
a8aea176 9276else
1cf3d07d
SE
9277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9278 lt_status=$lt_dlunknown
9279 cat > conftest.$ac_ext <<_LT_EOF
82a6cadf 9280#line 9280 "configure"
1cf3d07d 9281#include "confdefs.h"
a8aea176 9282
1cf3d07d
SE
9283#if HAVE_DLFCN_H
9284#include <dlfcn.h>
9285#endif
a8aea176 9286
1cf3d07d 9287#include <stdio.h>
a8aea176 9288
1cf3d07d
SE
9289#ifdef RTLD_GLOBAL
9290# define LT_DLGLOBAL RTLD_GLOBAL
a8aea176 9291#else
1cf3d07d
SE
9292# ifdef DL_GLOBAL
9293# define LT_DLGLOBAL DL_GLOBAL
9294# else
9295# define LT_DLGLOBAL 0
9296# endif
9297#endif
9298
9299/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9300 find out it does not work in some platform. */
9301#ifndef LT_DLLAZY_OR_NOW
9302# ifdef RTLD_LAZY
9303# define LT_DLLAZY_OR_NOW RTLD_LAZY
9304# else
9305# ifdef DL_LAZY
9306# define LT_DLLAZY_OR_NOW DL_LAZY
9307# else
9308# ifdef RTLD_NOW
9309# define LT_DLLAZY_OR_NOW RTLD_NOW
9310# else
9311# ifdef DL_NOW
9312# define LT_DLLAZY_OR_NOW DL_NOW
9313# else
9314# define LT_DLLAZY_OR_NOW 0
9315# endif
9316# endif
9317# endif
9318# endif
9319#endif
9320
9321#ifdef __cplusplus
9322extern "C" void exit (int);
a8aea176 9323#endif
1cf3d07d
SE
9324
9325void fnord() { int i=42;}
9326int main ()
9327{
9328 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9329 int status = $lt_dlunknown;
9330
9331 if (self)
9332 {
9333 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9334 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9335 /* dlclose (self); */
9336 }
9337 else
9338 puts (dlerror ());
9339
9340 exit (status);
9341}
9342_LT_EOF
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>&5
a8aea176 9345 ac_status=$?
a8aea176 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9347 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9348 (./conftest; exit; ) >&5 2>/dev/null
9349 lt_status=$?
9350 case x$lt_status in
9351 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9352 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9353 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9354 esac
9355 else :
9356 # compilation failed
9357 lt_cv_dlopen_self=no
a8aea176 9358 fi
a8aea176 9359fi
1cf3d07d
SE
9360rm -fr conftest*
9361
a8aea176 9362
a8aea176 9363fi
1cf3d07d
SE
9364echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9365echo "${ECHO_T}$lt_cv_dlopen_self" >&6
a8aea176 9366
1cf3d07d
SE
9367 if test "x$lt_cv_dlopen_self" = xyes; then
9368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9369 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9370echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9371if test "${lt_cv_dlopen_self_static+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373else
9374 if test "$cross_compiling" = yes; then :
9375 lt_cv_dlopen_self_static=cross
9376else
9377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9378 lt_status=$lt_dlunknown
9379 cat > conftest.$ac_ext <<_LT_EOF
82a6cadf 9380#line 9380 "configure"
1cf3d07d
SE
9381#include "confdefs.h"
9382
9383#if HAVE_DLFCN_H
9384#include <dlfcn.h>
9385#endif
9386
9387#include <stdio.h>
9388
9389#ifdef RTLD_GLOBAL
9390# define LT_DLGLOBAL RTLD_GLOBAL
9391#else
9392# ifdef DL_GLOBAL
9393# define LT_DLGLOBAL DL_GLOBAL
9394# else
9395# define LT_DLGLOBAL 0
9396# endif
9397#endif
9398
9399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9400 find out it does not work in some platform. */
9401#ifndef LT_DLLAZY_OR_NOW
9402# ifdef RTLD_LAZY
9403# define LT_DLLAZY_OR_NOW RTLD_LAZY
9404# else
9405# ifdef DL_LAZY
9406# define LT_DLLAZY_OR_NOW DL_LAZY
9407# else
9408# ifdef RTLD_NOW
9409# define LT_DLLAZY_OR_NOW RTLD_NOW
9410# else
9411# ifdef DL_NOW
9412# define LT_DLLAZY_OR_NOW DL_NOW
9413# else
9414# define LT_DLLAZY_OR_NOW 0
9415# endif
9416# endif
9417# endif
9418# endif
9419#endif
9420
9421#ifdef __cplusplus
9422extern "C" void exit (int);
9423#endif
9424
9425void fnord() { int i=42;}
9426int main ()
9427{
9428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9429 int status = $lt_dlunknown;
9430
9431 if (self)
9432 {
9433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9435 /* dlclose (self); */
9436 }
9437 else
9438 puts (dlerror ());
9439
9440 exit (status);
9441}
9442_LT_EOF
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>&5
a8aea176 9445 ac_status=$?
a8aea176 9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9448 (./conftest; exit; ) >&5 2>/dev/null
9449 lt_status=$?
9450 case x$lt_status in
9451 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9452 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9453 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9454 esac
9455 else :
9456 # compilation failed
9457 lt_cv_dlopen_self_static=no
a8aea176 9458 fi
a8aea176 9459fi
1cf3d07d
SE
9460rm -fr conftest*
9461
a8aea176 9462
dfac8a13 9463fi
1cf3d07d
SE
9464echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9465echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9466 fi
a8aea176 9467
1cf3d07d
SE
9468 CPPFLAGS="$save_CPPFLAGS"
9469 LDFLAGS="$save_LDFLAGS"
9470 LIBS="$save_LIBS"
9471 ;;
9472 esac
9473
9474 case $lt_cv_dlopen_self in
9475 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9476 *) enable_dlopen_self=unknown ;;
9477 esac
9478
9479 case $lt_cv_dlopen_self_static in
9480 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9481 *) enable_dlopen_self_static=unknown ;;
9482 esac
9483fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501striplib=
9502old_striplib=
9503echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9504echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9505if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9506 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9507 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9508 echo "$as_me:$LINENO: result: yes" >&5
9509echo "${ECHO_T}yes" >&6
dfac8a13 9510else
1cf3d07d
SE
9511# FIXME - insert some real tests, host_os isn't really good enough
9512 case $host_os in
9513 darwin*)
9514 if test -n "$STRIP" ; then
9515 striplib="$STRIP -x"
9516 old_striplib="$STRIP -S"
9517 echo "$as_me:$LINENO: result: yes" >&5
9518echo "${ECHO_T}yes" >&6
9519 else
9520 echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
9522 fi
9523 ;;
9524 *)
9525 echo "$as_me:$LINENO: result: no" >&5
9526echo "${ECHO_T}no" >&6
9527 ;;
9528 esac
dfac8a13 9529fi
a8aea176 9530
1cf3d07d
SE
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 # Report which library types will actually be built
9543 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9544echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9545 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9546echo "${ECHO_T}$can_build_shared" >&6
9547
9548 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9549echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9550 test "$can_build_shared" = "no" && enable_shared=no
9551
9552 # On AIX, shared libraries and static libraries use the same namespace, and
9553 # are all built from PIC.
9554 case $host_os in
9555 aix3*)
9556 test "$enable_shared" = yes && enable_static=no
9557 if test -n "$RANLIB"; then
9558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9559 postinstall_cmds='$RANLIB $lib'
9560 fi
9561 ;;
9562
9563 aix4* | aix5*)
9564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9565 test "$enable_shared" = yes && enable_static=no
9566 fi
9567 ;;
9568 esac
9569 echo "$as_me:$LINENO: result: $enable_shared" >&5
9570echo "${ECHO_T}$enable_shared" >&6
9571
9572 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9573echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9574 # Make sure either enable_shared or enable_static is yes.
9575 test "$enable_shared" = yes || enable_static=yes
9576 echo "$as_me:$LINENO: result: $enable_static" >&5
9577echo "${ECHO_T}$enable_static" >&6
9578
9579
9580
9581
9582fi
a8aea176
NN
9583ac_ext=c
9584ac_cpp='$CPP $CPPFLAGS'
9585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 9588
1cf3d07d 9589CC="$lt_save_CC"
35241f18 9590
35241f18 9591
35241f18 9592
35241f18
CD
9593
9594
a8aea176 9595
dfac8a13 9596
dfac8a13 9597
1cf3d07d
SE
9598
9599
9600
9601
9602
9603 ac_config_commands="$ac_config_commands libtool"
9604
9605
9606
9607
9608# Only expand once:
9609
9610
9611
9612# Find CPP now so that any conditional tests below won't do it and
9613# thereby make the resulting definitions conditional.
9614ac_ext=c
9615ac_cpp='$CPP $CPPFLAGS'
9616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9620echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9621# On Suns, sometimes $CPP names a directory.
9622if test -n "$CPP" && test -d "$CPP"; then
9623 CPP=
9624fi
9625if test -z "$CPP"; then
9626 if test "${ac_cv_prog_CPP+set}" = set; then
a8aea176
NN
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628else
1cf3d07d
SE
9629 # Double quotes because CPP needs to be expanded
9630 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9631 do
9632 ac_preproc_ok=false
9633for ac_c_preproc_warn_flag in '' yes
9634do
9635 # Use a header file that comes with gcc, so configuring glibc
9636 # with a fresh cross-compiler works.
9637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638 # <limits.h> exists even on freestanding compilers.
9639 # On the NeXT, cc -E runs the code through the compiler's parser,
9640 # not just through cpp. "Syntax error" is here to catch this case.
a8aea176
NN
9641 cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h. */
1cf3d07d
SE
9647#ifdef __STDC__
9648# include <limits.h>
9649#else
9650# include <assert.h>
9651#endif
9652 Syntax error
a8aea176 9653_ACEOF
1cf3d07d
SE
9654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176
NN
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9661 (exit $ac_status); } >/dev/null; then
9662 if test -s conftest.err; then
9663 ac_cpp_err=$ac_c_preproc_warn_flag
9664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9665 else
9666 ac_cpp_err=
9667 fi
9668else
9669 ac_cpp_err=yes
9670fi
9671if test -z "$ac_cpp_err"; then
9672 :
c45f211e 9673else
a8aea176
NN
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
1cf3d07d
SE
9677 # Broken: fails on valid input.
9678continue
a8aea176 9679fi
1cf3d07d 9680rm -f conftest.err conftest.$ac_ext
a8aea176 9681
1cf3d07d
SE
9682 # OK, works on sane cases. Now check whether non-existent headers
9683 # can be detected and how.
a8aea176
NN
9684 cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
1cf3d07d 9690#include <ac_nonexistent.h>
a8aea176 9691_ACEOF
1cf3d07d
SE
9692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } >/dev/null; then
9700 if test -s conftest.err; then
9701 ac_cpp_err=$ac_c_preproc_warn_flag
9702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9703 else
9704 ac_cpp_err=
9705 fi
a8aea176 9706else
1cf3d07d 9707 ac_cpp_err=yes
dfac8a13 9708fi
1cf3d07d
SE
9709if test -z "$ac_cpp_err"; then
9710 # Broken: success on invalid input.
9711continue
9712else
9713 echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 9715
1cf3d07d
SE
9716 # Passes both tests.
9717ac_preproc_ok=:
9718break
c45f211e 9719fi
1cf3d07d 9720rm -f conftest.err conftest.$ac_ext
c45f211e 9721
1cf3d07d
SE
9722done
9723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9724rm -f conftest.err conftest.$ac_ext
9725if $ac_preproc_ok; then
9726 break
c45f211e 9727fi
a8aea176 9728
1cf3d07d
SE
9729 done
9730 ac_cv_prog_CPP=$CPP
a8aea176 9731
1cf3d07d
SE
9732fi
9733 CPP=$ac_cv_prog_CPP
a8aea176 9734else
1cf3d07d
SE
9735 ac_cv_prog_CPP=$CPP
9736fi
9737echo "$as_me:$LINENO: result: $CPP" >&5
9738echo "${ECHO_T}$CPP" >&6
9739ac_preproc_ok=false
9740for ac_c_preproc_warn_flag in '' yes
9741do
9742 # Use a header file that comes with gcc, so configuring glibc
9743 # with a fresh cross-compiler works.
9744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745 # <limits.h> exists even on freestanding compilers.
9746 # On the NeXT, cc -E runs the code through the compiler's parser,
9747 # not just through cpp. "Syntax error" is here to catch this case.
a8aea176
NN
9748 cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h. */
1cf3d07d
SE
9754#ifdef __STDC__
9755# include <limits.h>
a8aea176 9756#else
1cf3d07d 9757# include <assert.h>
a8aea176 9758#endif
1cf3d07d 9759 Syntax error
a8aea176 9760_ACEOF
1cf3d07d
SE
9761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176 9763 ac_status=$?
1cf3d07d
SE
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
a8aea176 9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9768 (exit $ac_status); } >/dev/null; then
9769 if test -s conftest.err; then
9770 ac_cpp_err=$ac_c_preproc_warn_flag
9771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9772 else
9773 ac_cpp_err=
9774 fi
9775else
9776 ac_cpp_err=yes
9777fi
9778if test -z "$ac_cpp_err"; then
a8aea176
NN
9779 :
9780else
1cf3d07d 9781 echo "$as_me: failed program was:" >&5
a8aea176
NN
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
1cf3d07d
SE
9784 # Broken: fails on valid input.
9785continue
a8aea176 9786fi
1cf3d07d 9787rm -f conftest.err conftest.$ac_ext
a8aea176 9788
1cf3d07d
SE
9789 # OK, works on sane cases. Now check whether non-existent headers
9790 # can be detected and how.
a8aea176
NN
9791 cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h. */
1cf3d07d 9797#include <ac_nonexistent.h>
a8aea176 9798_ACEOF
1cf3d07d
SE
9799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176
NN
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9806 (exit $ac_status); } >/dev/null; then
9807 if test -s conftest.err; then
9808 ac_cpp_err=$ac_c_preproc_warn_flag
9809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9810 else
9811 ac_cpp_err=
9812 fi
a8aea176 9813else
1cf3d07d 9814 ac_cpp_err=yes
a8aea176 9815fi
1cf3d07d
SE
9816if test -z "$ac_cpp_err"; then
9817 # Broken: success on invalid input.
9818continue
9819else
9820 echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 9822
1cf3d07d
SE
9823 # Passes both tests.
9824ac_preproc_ok=:
9825break
a8aea176 9826fi
1cf3d07d 9827rm -f conftest.err conftest.$ac_ext
a8aea176
NN
9828
9829done
1cf3d07d
SE
9830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9831rm -f conftest.err conftest.$ac_ext
9832if $ac_preproc_ok; then
9833 :
9834else
9835 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9836See \`config.log' for more details." >&5
9837echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9838See \`config.log' for more details." >&2;}
9839 { (exit 1); exit 1; }; }
9840fi
9841
9842ac_ext=c
9843ac_cpp='$CPP $CPPFLAGS'
9844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9846ac_compiler_gnu=$ac_cv_c_compiler_gnu
9847
9848
9849if test -n "$with_cross_host"; then
9850 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9851 # may not work correctly, because the compiler may not be able to
9852 # link executables.
9853
9854 # We assume newlib. This lets us hard-code the functions we know
9855 # we'll have.
9856 cat >>confdefs.h <<\_ACEOF
9857#define HAVE_MEMCPY 1
9858_ACEOF
9859
9860 cat >>confdefs.h <<\_ACEOF
9861#define HAVE_STRERROR 1
9862_ACEOF
a8aea176
NN
9863
9864
1cf3d07d
SE
9865 # We ignore --with-system-zlib in this case.
9866 target_all=libzgcj.la
9867else
9868 if test x$gcc_no_link = xyes; then
9869 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
9870 ac_cv_func_mmap_fixed_mapped=no
9871 fi
9872fi
9873if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
a8aea176
NN
9874
9875
9876for ac_header in stdlib.h unistd.h
9877do
9878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9879if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880 echo "$as_me:$LINENO: checking for $ac_header" >&5
9881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9882if eval "test \"\${$as_ac_Header+set}\" = set"; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884fi
9885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9887else
9888 # Is the header compilable?
9889echo "$as_me:$LINENO: checking $ac_header usability" >&5
9890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9891cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
9897$ac_includes_default
9898#include <$ac_header>
9899_ACEOF
9900rm -f conftest.$ac_objext
9901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902 (eval $ac_compile) 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
17210dff
TT
9909 { ac_try='test -z "$ac_c_werror_flag"
9910 || test ! -s conftest.err'
a8aea176
NN
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest.$ac_objext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_header_compiler=yes
9923else
9924 echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
9927ac_header_compiler=no
9928fi
9929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9931echo "${ECHO_T}$ac_header_compiler" >&6
9932
9933# Is the header present?
9934echo "$as_me:$LINENO: checking $ac_header presence" >&5
9935echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942#include <$ac_header>
9943_ACEOF
9944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } >/dev/null; then
9952 if test -s conftest.err; then
9953 ac_cpp_err=$ac_c_preproc_warn_flag
9954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9955 else
9956 ac_cpp_err=
9957 fi
9958else
9959 ac_cpp_err=yes
9960fi
9961if test -z "$ac_cpp_err"; then
9962 ac_header_preproc=yes
9963else
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967 ac_header_preproc=no
9968fi
9969rm -f conftest.err conftest.$ac_ext
9970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9971echo "${ECHO_T}$ac_header_preproc" >&6
9972
9973# So? What about this header?
9974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9975 yes:no: )
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9977echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9979echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9980 ac_header_preproc=yes
9981 ;;
9982 no:yes:* )
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9984echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9986echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9988echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9990echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9994echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9995 (
9996 cat <<\_ASBOX
9997## ------------------------------------------ ##
9998## Report this to the AC_PACKAGE_NAME lists. ##
9999## ------------------------------------------ ##
10000_ASBOX
10001 ) |
10002 sed "s/^/$as_me: WARNING: /" >&2
10003 ;;
10004esac
10005echo "$as_me:$LINENO: checking for $ac_header" >&5
10006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10007if eval "test \"\${$as_ac_Header+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 eval "$as_ac_Header=\$ac_header_preproc"
10011fi
10012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10013echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10014
10015fi
10016if test `eval echo '${'$as_ac_Header'}'` = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10019_ACEOF
10020
10021fi
10022
10023done
10024
10025
10026for ac_func in getpagesize
10027do
10028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10029echo "$as_me:$LINENO: checking for $ac_func" >&5
10030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10031if eval "test \"\${$as_ac_var+set}\" = set"; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033else
10034 if test x$gcc_no_link = xyes; then
10035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10036echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10037 { (exit 1); exit 1; }; }
10038fi
10039cat >conftest.$ac_ext <<_ACEOF
10040/* confdefs.h. */
10041_ACEOF
10042cat confdefs.h >>conftest.$ac_ext
10043cat >>conftest.$ac_ext <<_ACEOF
10044/* end confdefs.h. */
10045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047#define $ac_func innocuous_$ac_func
10048
10049/* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10053
10054#ifdef __STDC__
10055# include <limits.h>
10056#else
10057# include <assert.h>
10058#endif
10059
10060#undef $ac_func
10061
10062/* Override any gcc2 internal prototype to avoid an error. */
10063#ifdef __cplusplus
10064extern "C"
10065{
10066#endif
10067/* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069char $ac_func ();
10070/* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074choke me
10075#else
10076char (*f) () = $ac_func;
10077#endif
10078#ifdef __cplusplus
10079}
10080#endif
10081
10082int
10083main ()
10084{
10085return f != $ac_func;
10086 ;
10087 return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
17210dff
TT
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
a8aea176
NN
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10113else
10114 echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117eval "$as_ac_var=no"
10118fi
10119rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121fi
10122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127_ACEOF
10128
10129fi
10130done
10131
10132echo "$as_me:$LINENO: checking for working mmap" >&5
10133echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10134if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
10136else
10137 if test "$cross_compiling" = yes; then
10138 ac_cv_func_mmap_fixed_mapped=no
10139else
a8aea176
NN
10140 cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h. */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h. */
10146$ac_includes_default
10147/* malloc might have been renamed as rpl_malloc. */
10148#undef malloc
dfac8a13
TT
10149
10150/* Thanks to Mike Haertel and Jim Avera for this test.
10151 Here is a matrix of mmap possibilities:
10152 mmap private not fixed
10153 mmap private fixed at somewhere currently unmapped
10154 mmap private fixed at somewhere already mapped
10155 mmap shared not fixed
10156 mmap shared fixed at somewhere currently unmapped
10157 mmap shared fixed at somewhere already mapped
10158 For private mappings, we should verify that changes cannot be read()
10159 back from the file, nor mmap's back from the file at a different
10160 address. (There have been systems where private was not correctly
10161 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 10162 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
10163 like early versions of FreeBSD and possibly contemporary NetBSD.)
10164 For shared mappings, we should conversely verify that changes get
a8aea176 10165 propagated back to all the places they're supposed to be.
c45f211e 10166
dfac8a13
TT
10167 Grep wants private fixed already mapped.
10168 The main things grep needs to know about mmap are:
10169 * does it exist and is it safe to write into the mmap'd area
10170 * how to use it (BSD variants) */
a8aea176 10171
dfac8a13 10172#include <fcntl.h>
c45f211e 10173#include <sys/mman.h>
dfac8a13 10174
a8aea176
NN
10175#if !STDC_HEADERS && !HAVE_STDLIB_H
10176char *malloc ();
10177#endif
dfac8a13 10178
a8aea176
NN
10179/* This mess was copied from the GNU getpagesize.h. */
10180#if !HAVE_GETPAGESIZE
dfac8a13 10181/* Assume that all systems that can run configure have sys/param.h. */
a8aea176 10182# if !HAVE_SYS_PARAM_H
dfac8a13
TT
10183# define HAVE_SYS_PARAM_H 1
10184# endif
10185
10186# ifdef _SC_PAGESIZE
10187# define getpagesize() sysconf(_SC_PAGESIZE)
10188# else /* no _SC_PAGESIZE */
a8aea176 10189# if HAVE_SYS_PARAM_H
dfac8a13
TT
10190# include <sys/param.h>
10191# ifdef EXEC_PAGESIZE
10192# define getpagesize() EXEC_PAGESIZE
10193# else /* no EXEC_PAGESIZE */
10194# ifdef NBPG
10195# define getpagesize() NBPG * CLSIZE
10196# ifndef CLSIZE
10197# define CLSIZE 1
10198# endif /* no CLSIZE */
10199# else /* no NBPG */
10200# ifdef NBPC
10201# define getpagesize() NBPC
10202# else /* no NBPC */
10203# ifdef PAGESIZE
10204# define getpagesize() PAGESIZE
10205# endif /* PAGESIZE */
10206# endif /* no NBPC */
10207# endif /* no NBPG */
10208# endif /* no EXEC_PAGESIZE */
10209# else /* no HAVE_SYS_PARAM_H */
10210# define getpagesize() 8192 /* punt totally */
10211# endif /* no HAVE_SYS_PARAM_H */
10212# endif /* no _SC_PAGESIZE */
10213
10214#endif /* no HAVE_GETPAGESIZE */
10215
dfac8a13 10216int
a8aea176 10217main ()
dfac8a13 10218{
a8aea176
NN
10219 char *data, *data2, *data3;
10220 int i, pagesize;
10221 int fd;
10222
10223 pagesize = getpagesize ();
10224
10225 /* First, make a file with some known garbage in it. */
10226 data = (char *) malloc (pagesize);
10227 if (!data)
10228 exit (1);
10229 for (i = 0; i < pagesize; ++i)
10230 *(data + i) = rand ();
10231 umask (0);
10232 fd = creat ("conftest.mmap", 0600);
10233 if (fd < 0)
10234 exit (1);
10235 if (write (fd, data, pagesize) != pagesize)
10236 exit (1);
10237 close (fd);
10238
10239 /* Next, try to mmap the file at a fixed address which already has
10240 something else allocated at it. If we can, also make sure that
10241 we see the same garbage. */
10242 fd = open ("conftest.mmap", O_RDWR);
10243 if (fd < 0)
10244 exit (1);
10245 data2 = (char *) malloc (2 * pagesize);
10246 if (!data2)
10247 exit (1);
10248 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10251 exit (1);
10252 for (i = 0; i < pagesize; ++i)
10253 if (*(data + i) != *(data2 + i))
10254 exit (1);
10255
10256 /* Finally, make sure that changes to the mapped area do not
10257 percolate back to the file as seen by read(). (This is a bug on
10258 some variants of i386 svr4.0.) */
10259 for (i = 0; i < pagesize; ++i)
10260 *(data2 + i) = *(data2 + i) + 1;
10261 data3 = (char *) malloc (pagesize);
10262 if (!data3)
10263 exit (1);
10264 if (read (fd, data3, pagesize) != pagesize)
10265 exit (1);
10266 for (i = 0; i < pagesize; ++i)
10267 if (*(data + i) != *(data3 + i))
10268 exit (1);
10269 close (fd);
10270 exit (0);
c45f211e 10271}
a8aea176
NN
10272_ACEOF
10273rm -f conftest$ac_exeext
10274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
dfac8a13
TT
10284 ac_cv_func_mmap_fixed_mapped=yes
10285else
a8aea176
NN
10286 echo "$as_me: program exited with status $ac_status" >&5
10287echo "$as_me: failed program was:" >&5
10288sed 's/^/| /' conftest.$ac_ext >&5
10289
10290( exit $ac_status )
10291ac_cv_func_mmap_fixed_mapped=no
dfac8a13 10292fi
a8aea176 10293rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
dfac8a13 10294fi
dfac8a13 10295fi
a8aea176
NN
10296echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10297echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
dfac8a13 10298if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176
NN
10299
10300cat >>confdefs.h <<\_ACEOF
dfac8a13 10301#define HAVE_MMAP 1
a8aea176 10302_ACEOF
dfac8a13
TT
10303
10304fi
a8aea176 10305rm -f conftest.mmap
dfac8a13 10306
a8aea176
NN
10307fi
10308
10309
10310for ac_func in memcpy strerror
dfac8a13 10311do
a8aea176
NN
10312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313echo "$as_me:$LINENO: checking for $ac_func" >&5
10314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10315if eval "test \"\${$as_ac_var+set}\" = set"; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318 if test x$gcc_no_link = xyes; then
10319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10320echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10321 { (exit 1); exit 1; }; }
10322fi
10323cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h. */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h. */
10329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331#define $ac_func innocuous_$ac_func
10332
dfac8a13 10333/* System header to define __stub macros and hopefully few prototypes,
a8aea176
NN
10334 which can conflict with char $ac_func (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10337
10338#ifdef __STDC__
10339# include <limits.h>
10340#else
10341# include <assert.h>
10342#endif
dfac8a13 10343
a8aea176 10344#undef $ac_func
dfac8a13 10345
a8aea176
NN
10346/* Override any gcc2 internal prototype to avoid an error. */
10347#ifdef __cplusplus
10348extern "C"
10349{
10350#endif
10351/* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353char $ac_func ();
dfac8a13
TT
10354/* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10358choke me
10359#else
a8aea176
NN
10360char (*f) () = $ac_func;
10361#endif
10362#ifdef __cplusplus
10363}
dfac8a13
TT
10364#endif
10365
a8aea176
NN
10366int
10367main ()
10368{
10369return f != $ac_func;
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext conftest$ac_exeext
10375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
17210dff
TT
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
a8aea176
NN
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 eval "$as_ac_var=yes"
dfac8a13 10397else
a8aea176
NN
10398 echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401eval "$as_ac_var=no"
dfac8a13 10402fi
a8aea176
NN
10403rm -f conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
dfac8a13 10405fi
a8aea176
NN
10406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10408if test `eval echo '${'$as_ac_var'}'` = yes; then
10409 cat >>confdefs.h <<_ACEOF
10410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10411_ACEOF
dfac8a13 10412
dfac8a13
TT
10413fi
10414done
10415
79a9a529
TT
10416
10417 if test "$with_system_zlib" = yes; then
a8aea176
NN
10418 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10419echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
10420if test "${ac_cv_lib_z_deflate+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
79a9a529 10422else
a8aea176 10423 ac_check_lib_save_LIBS=$LIBS
79a9a529 10424LIBS="-lz $LIBS"
a8aea176
NN
10425if test x$gcc_no_link = xyes; then
10426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10427echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10428 { (exit 1); exit 1; }; }
10429fi
10430cat >conftest.$ac_ext <<_ACEOF
10431/* confdefs.h. */
10432_ACEOF
10433cat confdefs.h >>conftest.$ac_ext
10434cat >>conftest.$ac_ext <<_ACEOF
10435/* end confdefs.h. */
10436
79a9a529 10437/* Override any gcc2 internal prototype to avoid an error. */
a8aea176
NN
10438#ifdef __cplusplus
10439extern "C"
10440#endif
79a9a529 10441/* We use char because int might match the return type of a gcc2
a8aea176
NN
10442 builtin and then its argument prototype would still apply. */
10443char deflate ();
10444int
10445main ()
10446{
10447deflate ();
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452rm -f conftest.$ac_objext conftest$ac_exeext
10453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
17210dff
TT
10461 { ac_try='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
a8aea176
NN
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_lib_z_deflate=yes
79a9a529 10475else
a8aea176
NN
10476 echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
79a9a529 10478
a8aea176
NN
10479ac_cv_lib_z_deflate=no
10480fi
10481rm -f conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483LIBS=$ac_check_lib_save_LIBS
79a9a529 10484fi
a8aea176
NN
10485echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10486echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
10487if test $ac_cv_lib_z_deflate = yes; then
79a9a529
TT
10488 target_all=
10489else
a8aea176 10490 target_all=libzgcj.la
79a9a529
TT
10491fi
10492
10493 else
10494 target_all=libzgcj.la
10495 fi
10496fi
10497
10498
dfac8a13 10499
a8aea176
NN
10500
10501for ac_header in unistd.h
dfac8a13 10502do
a8aea176
NN
10503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504if eval "test \"\${$as_ac_Header+set}\" = set"; then
10505 echo "$as_me:$LINENO: checking for $ac_header" >&5
10506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10507if eval "test \"\${$as_ac_Header+set}\" = set"; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509fi
10510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dfac8a13 10512else
a8aea176
NN
10513 # Is the header compilable?
10514echo "$as_me:$LINENO: checking $ac_header usability" >&5
10515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10516cat >conftest.$ac_ext <<_ACEOF
10517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h. */
10522$ac_includes_default
10523#include <$ac_header>
10524_ACEOF
10525rm -f conftest.$ac_objext
10526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
17210dff
TT
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
a8aea176
NN
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_header_compiler=yes
10548else
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552ac_header_compiler=no
10553fi
10554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10556echo "${ECHO_T}$ac_header_compiler" >&6
10557
10558# Is the header present?
10559echo "$as_me:$LINENO: checking $ac_header presence" >&5
10560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10561cat >conftest.$ac_ext <<_ACEOF
10562/* confdefs.h. */
10563_ACEOF
10564cat confdefs.h >>conftest.$ac_ext
10565cat >>conftest.$ac_ext <<_ACEOF
10566/* end confdefs.h. */
10567#include <$ac_header>
10568_ACEOF
10569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } >/dev/null; then
10577 if test -s conftest.err; then
10578 ac_cpp_err=$ac_c_preproc_warn_flag
10579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10580 else
10581 ac_cpp_err=
10582 fi
10583else
10584 ac_cpp_err=yes
dfac8a13 10585fi
a8aea176
NN
10586if test -z "$ac_cpp_err"; then
10587 ac_header_preproc=yes
10588else
10589 echo "$as_me: failed program was:" >&5
10590sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 ac_header_preproc=no
10593fi
10594rm -f conftest.err conftest.$ac_ext
10595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10596echo "${ECHO_T}$ac_header_preproc" >&6
10597
10598# So? What about this header?
10599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10600 yes:no: )
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10605 ac_header_preproc=yes
10606 ;;
10607 no:yes:* )
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10620 (
10621 cat <<\_ASBOX
10622## ------------------------------------------ ##
10623## Report this to the AC_PACKAGE_NAME lists. ##
10624## ------------------------------------------ ##
10625_ASBOX
10626 ) |
10627 sed "s/^/$as_me: WARNING: /" >&2
10628 ;;
10629esac
10630echo "$as_me:$LINENO: checking for $ac_header" >&5
10631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10632if eval "test \"\${$as_ac_Header+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 10634else
a8aea176 10635 eval "$as_ac_Header=\$ac_header_preproc"
dfac8a13 10636fi
a8aea176
NN
10637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10639
10640fi
10641if test `eval echo '${'$as_ac_Header'}'` = yes; then
10642 cat >>confdefs.h <<_ACEOF
10643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644_ACEOF
10645
10646fi
10647
dfac8a13
TT
10648done
10649
10650
0ccf2c33
AO
10651if test -n "$with_cross_host" &&
10652 test x"$with_cross_host" != x"no"; then
10653 toolexecdir='$(exec_prefix)/$(target_alias)'
10654 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 10655else
0ccf2c33
AO
10656 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10657 toolexeclibdir='$(libdir)'
b48ed568 10658fi
905280ac
AO
10659if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
10660 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
10661 case $multiosdir in
10662 /.) multiosdir= ;; # Avoid trailing /.
10663 esac
905280ac
AO
10664else
10665 multiosdir=
10666fi
10667toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
10668
10669
10670
b48ed568 10671
e093c992
AG
10672
10673if test -n "$with_target_subdir"; then
10674 TARGET_LIBRARY_TRUE=
10675 TARGET_LIBRARY_FALSE='#'
10676else
10677 TARGET_LIBRARY_TRUE='#'
10678 TARGET_LIBRARY_FALSE=
10679fi
10680
9fabf579 10681
dfac8a13
TT
10682if test "${multilib}" = "yes"; then
10683 multilib_arg="--enable-multilib"
10684else
10685 multilib_arg=
10686fi
10687
a8aea176
NN
10688 ac_config_files="$ac_config_files Makefile"
10689
a8aea176 10690cat >confcache <<\_ACEOF
dfac8a13
TT
10691# This file is a shell script that caches the results of configure
10692# tests run on this system so they can be shared between configure
a8aea176
NN
10693# scripts and configure runs, see configure's option --config-cache.
10694# It is not useful on other systems. If it contains results you don't
10695# want to keep, you may remove or edit it.
dfac8a13 10696#
a8aea176
NN
10697# config.status only pays attention to the cache file if you give it
10698# the --recheck option to rerun configure.
dfac8a13 10699#
a8aea176
NN
10700# `ac_cv_env_foo' variables (set or unset) will be overridden when
10701# loading this file, other *unset* `ac_cv_foo' will be assigned the
10702# following values.
10703
10704_ACEOF
10705
dfac8a13
TT
10706# The following way of writing the cache mishandles newlines in values,
10707# but we know of no workaround that is simple, portable, and efficient.
10708# So, don't put newlines in cache variables' values.
10709# Ultrix sh set writes to stderr and can't be redirected directly,
10710# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
10711{
10712 (set) 2>&1 |
10713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10714 *ac_space=\ *)
10715 # `set' does not quote correctly, so add quotes (double-quote
10716 # substitution turns \\\\ into \\, and sed turns \\ into \).
10717 sed -n \
10718 "s/'/'\\\\''/g;
10719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10720 ;;
10721 *)
10722 # `set' quotes correctly as required by POSIX, so do not add quotes.
10723 sed -n \
10724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10725 ;;
10726 esac;
10727} |
10728 sed '
10729 t clear
10730 : clear
10731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10732 t end
10733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10734 : end' >>confcache
10735if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 10736 if test -w $cache_file; then
a8aea176
NN
10737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10738 cat confcache >$cache_file
dfac8a13
TT
10739 else
10740 echo "not updating unwritable cache $cache_file"
10741 fi
10742fi
10743rm -f confcache
10744
dfac8a13
TT
10745test "x$prefix" = xNONE && prefix=$ac_default_prefix
10746# Let make expand exec_prefix.
10747test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10748
a8aea176
NN
10749# VPATH may cause trouble with some makes, so we remove $(srcdir),
10750# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10751# trailing colons and then remove the whole line if VPATH becomes empty
10752# (actually we leave an empty line to preserve line numbers).
dfac8a13 10753if test "x$srcdir" = x.; then
a8aea176
NN
10754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10755s/:*\$(srcdir):*/:/;
10756s/:*\${srcdir}:*/:/;
10757s/:*@srcdir@:*/:/;
10758s/^\([^=]*=[ ]*\):*/\1/;
10759s/:*$//;
10760s/^[^=]*=[ ]*$//;
10761}'
c45f211e
TT
10762fi
10763
dfac8a13
TT
10764# Transform confdefs.h into DEFS.
10765# Protect against shell expansion while executing Makefile rules.
10766# Protect against Makefile macro expansion.
a8aea176
NN
10767#
10768# If the first sed substitution is executed (which looks for macros that
10769# take arguments), then we branch to the quote section. Otherwise,
10770# look for a macro that doesn't take arguments.
10771cat >confdef2opt.sed <<\_ACEOF
10772t clear
10773: clear
10774s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10775t quote
10776s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10777t quote
10778d
10779: quote
10780s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10781s,\[,\\&,g
10782s,\],\\&,g
10783s,\$,$$,g
10784p
10785_ACEOF
10786# We use echo to avoid assuming a particular line-breaking character.
10787# The extra dot is to prevent the shell from consuming trailing
10788# line-breaks from the sub-command output. A line-break within
10789# single-quotes doesn't work because, if this script is created in a
10790# platform that uses two characters for line-breaks (e.g., DOS), tr
10791# would break.
10792ac_LF_and_DOT=`echo; echo .`
10793DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10794rm -f confdef2opt.sed
10795
10796
10797ac_libobjs=
10798ac_ltlibobjs=
10799for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10800 # 1. Remove the extension, and $U if already installed.
10801 ac_i=`echo "$ac_i" |
10802 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10803 # 2. Add them.
10804 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10805 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10806done
10807LIBOBJS=$ac_libobjs
dfac8a13 10808
a8aea176 10809LTLIBOBJS=$ac_ltlibobjs
dfac8a13 10810
dfac8a13 10811
9fabf579
KC
10812if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10813 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10814Usually this means the macro was only invoked conditionally." >&5
10815echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10816Usually this means the macro was only invoked conditionally." >&2;}
10817 { (exit 1); exit 1; }; }
10818fi
10819if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10820 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10821Usually this means the macro was only invoked conditionally." >&5
10822echo "$as_me: error: conditional \"AMDEP\" was never defined.
10823Usually this means the macro was only invoked conditionally." >&2;}
10824 { (exit 1); exit 1; }; }
10825fi
10826if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10828Usually this means the macro was only invoked conditionally." >&5
10829echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10830Usually this means the macro was only invoked conditionally." >&2;}
10831 { (exit 1); exit 1; }; }
10832fi
10833if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
10834 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
10835Usually this means the macro was only invoked conditionally." >&5
10836echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
10837Usually this means the macro was only invoked conditionally." >&2;}
10838 { (exit 1); exit 1; }; }
10839fi
a8aea176
NN
10840
10841: ${CONFIG_STATUS=./config.status}
10842ac_clean_files_save=$ac_clean_files
10843ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10844{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10845echo "$as_me: creating $CONFIG_STATUS" >&6;}
10846cat >$CONFIG_STATUS <<_ACEOF
10847#! $SHELL
10848# Generated by $as_me.
dfac8a13 10849# Run this file to recreate the current configuration.
dfac8a13 10850# Compiler output produced by configure, useful for debugging
a8aea176
NN
10851# configure, is in config.log if it exists.
10852
10853debug=false
10854ac_cs_recheck=false
10855ac_cs_silent=false
10856SHELL=\${CONFIG_SHELL-$SHELL}
10857_ACEOF
10858
10859cat >>$CONFIG_STATUS <<\_ACEOF
10860## --------------------- ##
10861## M4sh Initialization. ##
10862## --------------------- ##
10863
10864# Be Bourne compatible
10865if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10866 emulate sh
10867 NULLCMD=:
10868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10869 # is contrary to our usage. Disable this feature.
10870 alias -g '${1+"$@"}'='"$@"'
10871elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10872 set -o posix
10873fi
10874DUALCASE=1; export DUALCASE # for MKS sh
10875
10876# Support unset when possible.
10877if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10878 as_unset=unset
10879else
10880 as_unset=false
10881fi
dfac8a13 10882
a8aea176
NN
10883
10884# Work around bugs in pre-3.0 UWIN ksh.
10885$as_unset ENV MAIL MAILPATH
10886PS1='$ '
10887PS2='> '
10888PS4='+ '
10889
10890# NLS nuisances.
10891for as_var in \
10892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10894 LC_TELEPHONE LC_TIME
dfac8a13 10895do
a8aea176
NN
10896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10897 eval $as_var=C; export $as_var
10898 else
10899 $as_unset $as_var
10900 fi
dfac8a13
TT
10901done
10902
a8aea176
NN
10903# Required to use basename.
10904if expr a : '\(a\)' >/dev/null 2>&1; then
10905 as_expr=expr
10906else
10907 as_expr=false
10908fi
dfac8a13 10909
a8aea176
NN
10910if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10911 as_basename=basename
10912else
10913 as_basename=false
10914fi
10915
10916
10917# Name of the executable.
10918as_me=`$as_basename "$0" ||
10919$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10920 X"$0" : 'X\(//\)$' \| \
10921 X"$0" : 'X\(/\)$' \| \
10922 . : '\(.\)' 2>/dev/null ||
10923echo X/"$0" |
10924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10925 /^X\/\(\/\/\)$/{ s//\1/; q; }
10926 /^X\/\(\/\).*/{ s//\1/; q; }
10927 s/.*/./; q'`
10928
10929
10930# PATH needs CR, and LINENO needs CR and PATH.
10931# Avoid depending upon Character Ranges.
10932as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10933as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10934as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10935as_cr_digits='0123456789'
10936as_cr_alnum=$as_cr_Letters$as_cr_digits
10937
10938# The user is always right.
10939if test "${PATH_SEPARATOR+set}" != set; then
10940 echo "#! /bin/sh" >conf$$.sh
10941 echo "exit 0" >>conf$$.sh
10942 chmod +x conf$$.sh
10943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10944 PATH_SEPARATOR=';'
10945 else
10946 PATH_SEPARATOR=:
10947 fi
10948 rm -f conf$$.sh
10949fi
dfac8a13 10950
dfac8a13 10951
a8aea176
NN
10952 as_lineno_1=$LINENO
10953 as_lineno_2=$LINENO
10954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10955 test "x$as_lineno_1" != "x$as_lineno_2" &&
10956 test "x$as_lineno_3" = "x$as_lineno_2" || {
10957 # Find who we are. Look in the path if we contain no path at all
10958 # relative or not.
10959 case $0 in
10960 *[\\/]* ) as_myself=$0 ;;
10961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962for as_dir in $PATH
10963do
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10967done
dfac8a13 10968
a8aea176
NN
10969 ;;
10970 esac
10971 # We did not find ourselves, most probably we were run as `sh COMMAND'
10972 # in which case we are not to be found in the path.
10973 if test "x$as_myself" = x; then
10974 as_myself=$0
dfac8a13 10975 fi
a8aea176
NN
10976 if test ! -f "$as_myself"; then
10977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10978echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10979 { (exit 1); exit 1; }; }
dfac8a13 10980 fi
a8aea176
NN
10981 case $CONFIG_SHELL in
10982 '')
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10985do
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for as_base in sh bash ksh sh5; do
10989 case $as_dir in
10990 /*)
10991 if ("$as_dir/$as_base" -c '
10992 as_lineno_1=$LINENO
10993 as_lineno_2=$LINENO
10994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10995 test "x$as_lineno_1" != "x$as_lineno_2" &&
10996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10999 CONFIG_SHELL=$as_dir/$as_base
11000 export CONFIG_SHELL
11001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11002 fi;;
11003 esac
11004 done
dfac8a13 11005done
a8aea176
NN
11006;;
11007 esac
dfac8a13 11008
a8aea176
NN
11009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11010 # uniformly replaced by the line number. The first 'sed' inserts a
11011 # line-number line before each line; the second 'sed' does the real
11012 # work. The second script uses 'N' to pair each line-number line
11013 # with the numbered line, and appends trailing '-' during
11014 # substitution so that $LINENO is not a special case at line end.
11015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11017 sed '=' <$as_myself |
11018 sed '
11019 N
11020 s,$,-,
11021 : loop
11022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11023 t loop
11024 s,-$,,
11025 s,^['$as_cr_digits']*\n,,
11026 ' >$as_me.lineno &&
11027 chmod +x $as_me.lineno ||
11028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11029echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11030 { (exit 1); exit 1; }; }
11031
11032 # Don't try to exec as it changes $[0], causing all sort of problems
11033 # (the dirname of $[0] is not the place where we might find the
11034 # original and so on. Autoconf is especially sensible to this).
11035 . ./$as_me.lineno
11036 # Exit status is that of the last command.
11037 exit
11038}
dfac8a13 11039
dfac8a13 11040
a8aea176
NN
11041case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11042 *c*,-n*) ECHO_N= ECHO_C='
11043' ECHO_T=' ' ;;
11044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11046esac
dfac8a13 11047
a8aea176
NN
11048if expr a : '\(a\)' >/dev/null 2>&1; then
11049 as_expr=expr
11050else
11051 as_expr=false
11052fi
11053
11054rm -f conf$$ conf$$.exe conf$$.file
11055echo >conf$$.file
11056if ln -s conf$$.file conf$$ 2>/dev/null; then
11057 # We could just check for DJGPP; but this test a) works b) is more generic
11058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11059 if test -f conf$$.exe; then
11060 # Don't use ln at all; we don't have any links
11061 as_ln_s='cp -p'
dfac8a13 11062 else
a8aea176 11063 as_ln_s='ln -s'
dfac8a13 11064 fi
a8aea176
NN
11065elif ln conf$$.file conf$$ 2>/dev/null; then
11066 as_ln_s=ln
11067else
11068 as_ln_s='cp -p'
11069fi
11070rm -f conf$$ conf$$.exe conf$$.file
dfac8a13 11071
a8aea176
NN
11072if mkdir -p . 2>/dev/null; then
11073 as_mkdir_p=:
11074else
11075 test -d ./-p && rmdir ./-p
11076 as_mkdir_p=false
11077fi
11078
11079as_executable_p="test -f"
dfac8a13 11080
a8aea176
NN
11081# Sed expression to map a string onto a valid CPP name.
11082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11083
11084# Sed expression to map a string onto a valid variable name.
11085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11086
11087
11088# IFS
11089# We need space, tab and new line, in precisely that order.
11090as_nl='
11091'
11092IFS=" $as_nl"
11093
11094# CDPATH.
11095$as_unset CDPATH
11096
11097exec 6>&1
11098
11099# Open the log real soon, to keep \$[0] and so on meaningful, and to
11100# report actual input values of CONFIG_FILES etc. instead of their
11101# values after options handling. Logging --version etc. is OK.
11102exec 5>>config.log
11103{
11104 echo
11105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11106## Running $as_me. ##
11107_ASBOX
11108} >&5
11109cat >&5 <<_CSEOF
11110
11111This file was extended by $as_me, which was
11112generated by GNU Autoconf 2.59. Invocation command line was
11113
11114 CONFIG_FILES = $CONFIG_FILES
11115 CONFIG_HEADERS = $CONFIG_HEADERS
11116 CONFIG_LINKS = $CONFIG_LINKS
11117 CONFIG_COMMANDS = $CONFIG_COMMANDS
11118 $ $0 $@
11119
11120_CSEOF
11121echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11122echo >&5
11123_ACEOF
11124
11125# Files that config.status was made for.
11126if test -n "$ac_config_files"; then
11127 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11128fi
11129
11130if test -n "$ac_config_headers"; then
11131 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11132fi
11133
11134if test -n "$ac_config_links"; then
11135 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11136fi
11137
11138if test -n "$ac_config_commands"; then
11139 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11140fi
11141
11142cat >>$CONFIG_STATUS <<\_ACEOF
11143
11144ac_cs_usage="\
11145\`$as_me' instantiates files from templates according to the
11146current configuration.
11147
11148Usage: $0 [OPTIONS] [FILE]...
11149
11150 -h, --help print this help, then exit
11151 -V, --version print version number, then exit
11152 -q, --quiet do not print progress messages
11153 -d, --debug don't remove temporary files
11154 --recheck update $as_me by reconfiguring in the same conditions
11155 --file=FILE[:TEMPLATE]
11156 instantiate the configuration file FILE
11157
11158Configuration files:
11159$config_files
11160
11161Configuration commands:
11162$config_commands
11163
11164Report bugs to <bug-autoconf@gnu.org>."
11165_ACEOF
11166
11167cat >>$CONFIG_STATUS <<_ACEOF
11168ac_cs_version="\\
11169config.status
11170configured by $0, generated by GNU Autoconf 2.59,
11171 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11172
11173Copyright (C) 2003 Free Software Foundation, Inc.
11174This config.status script is free software; the Free Software Foundation
11175gives unlimited permission to copy, distribute and modify it."
11176srcdir=$srcdir
11177INSTALL="$INSTALL"
11178_ACEOF
11179
11180cat >>$CONFIG_STATUS <<\_ACEOF
11181# If no file are specified by the user, then we need to provide default
11182# value. By we need to know if files were specified by the user.
11183ac_need_defaults=:
11184while test $# != 0
11185do
11186 case $1 in
11187 --*=*)
11188 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11189 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11190 ac_shift=:
11191 ;;
11192 -*)
11193 ac_option=$1
11194 ac_optarg=$2
11195 ac_shift=shift
11196 ;;
11197 *) # This is not an option, so the user has probably given explicit
11198 # arguments.
11199 ac_option=$1
11200 ac_need_defaults=false;;
dfac8a13
TT
11201 esac
11202
a8aea176
NN
11203 case $ac_option in
11204 # Handling of the options.
11205_ACEOF
11206cat >>$CONFIG_STATUS <<\_ACEOF
11207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11208 ac_cs_recheck=: ;;
11209 --version | --vers* | -V )
11210 echo "$ac_cs_version"; exit 0 ;;
11211 --he | --h)
11212 # Conflict between --help and --header
11213 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11214Try \`$0 --help' for more information." >&5
11215echo "$as_me: error: ambiguous option: $1
11216Try \`$0 --help' for more information." >&2;}
11217 { (exit 1); exit 1; }; };;
11218 --help | --hel | -h )
11219 echo "$ac_cs_usage"; exit 0 ;;
11220 --debug | --d* | -d )
11221 debug=: ;;
11222 --file | --fil | --fi | --f )
11223 $ac_shift
11224 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11225 ac_need_defaults=false;;
11226 --header | --heade | --head | --hea )
11227 $ac_shift
11228 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11229 ac_need_defaults=false;;
11230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11232 ac_cs_silent=: ;;
11233
11234 # This is an error.
11235 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11236Try \`$0 --help' for more information." >&5
11237echo "$as_me: error: unrecognized option: $1
11238Try \`$0 --help' for more information." >&2;}
11239 { (exit 1); exit 1; }; } ;;
11240
11241 *) ac_config_targets="$ac_config_targets $1" ;;
11242
dfac8a13 11243 esac
a8aea176
NN
11244 shift
11245done
dfac8a13 11246
a8aea176
NN
11247ac_configure_extra_args=
11248
11249if $ac_cs_silent; then
11250 exec 6>/dev/null
11251 ac_configure_extra_args="$ac_configure_extra_args --silent"
11252fi
11253
11254_ACEOF
11255cat >>$CONFIG_STATUS <<_ACEOF
11256if \$ac_cs_recheck; then
11257 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11258 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11259fi
11260
11261_ACEOF
11262
11263cat >>$CONFIG_STATUS <<_ACEOF
11264#
11265# INIT-COMMANDS section.
11266#
dfac8a13 11267
076e5443
PB
11268
11269srcdir="$srcdir"
11270host="$host"
11271target="$target"
11272with_multisubdir="$with_multisubdir"
11273with_multisrctop="$with_multisrctop"
11274with_target_subdir="$with_target_subdir"
dfac8a13 11275ac_configure_args="${multilib_arg} ${ac_configure_args}"
076e5443 11276multi_basedir="$multi_basedir"
dfac8a13 11277CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
076e5443
PB
11278CC="$CC"
11279AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a8aea176 11280
1cf3d07d
SE
11281
11282# The HP-UX ksh and POSIX shell print the target directory to stdout
11283# if CDPATH is set.
11284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11285
11286sed_quote_subst='$sed_quote_subst'
11287double_quote_subst='$double_quote_subst'
11288delay_variable_subst='$delay_variable_subst'
11289macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11290macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11291enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11292enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11293pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11294enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11295host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11296host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11297host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11298build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11299build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11300build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11301SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11302Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11303GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11304EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11305FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11306LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11307NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11308LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11309max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11310ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11311exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11312lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11313lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11314lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11315reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11316reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11317deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11318file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11319AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11320AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11321STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11322RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11323old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11324old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11325old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11326CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11327CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11328compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11329GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11330lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11331lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11332lt_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"`'
11333objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11334SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11335ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11336MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11337lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11338lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11339lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11340lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11341lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11342need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11343libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11344shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11345extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11346archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11347enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11348export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11349whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11350compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11351old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11352old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11353archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11354archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11355module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11356module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11357with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11358allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11359no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11360hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11361hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11362hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11363hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11364hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11365hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11366hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11367hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11368inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11369link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11370fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11371always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11372export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11373exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11374include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11375prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11376file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11377variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11378need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11379need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11380version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11381runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11382shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11383shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11384libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11385library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11386soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11387postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11388postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11389finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11390finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11391hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11392sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11393sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11394hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11395enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11396enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11397enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11398old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11399striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11400
11401LTCC='$LTCC'
11402LTCFLAGS='$LTCFLAGS'
11403compiler='$compiler_DEFAULT'
11404
11405# Quote evaled strings.
11406for var in SED \
11407GREP \
11408EGREP \
11409FGREP \
11410LD \
11411NM \
11412LN_S \
11413lt_SP2NL \
11414lt_NL2SP \
11415reload_flag \
11416deplibs_check_method \
11417file_magic_cmd \
11418AR \
11419AR_FLAGS \
11420STRIP \
11421RANLIB \
11422CC \
11423CFLAGS \
11424compiler \
11425lt_cv_sys_global_symbol_pipe \
11426lt_cv_sys_global_symbol_to_cdecl \
11427lt_cv_sys_global_symbol_to_c_name_address \
11428SHELL \
11429ECHO \
11430lt_prog_compiler_no_builtin_flag \
11431lt_prog_compiler_wl \
11432lt_prog_compiler_pic \
11433lt_prog_compiler_static \
11434lt_cv_prog_compiler_c_o \
11435need_locks \
11436shrext_cmds \
11437export_dynamic_flag_spec \
11438whole_archive_flag_spec \
11439compiler_needs_object \
11440with_gnu_ld \
11441allow_undefined_flag \
11442no_undefined_flag \
11443hardcode_libdir_flag_spec \
11444hardcode_libdir_flag_spec_ld \
11445hardcode_libdir_separator \
11446fix_srcfile_path \
11447exclude_expsyms \
11448include_expsyms \
11449file_list_spec \
11450variables_saved_for_relink \
11451libname_spec \
11452library_names_spec \
11453soname_spec \
11454finish_eval \
11455old_striplib \
11456striplib; do
11457 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11458 *[\\\\\\\`\\"\\\$]*)
11459 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11460 ;;
11461 *)
11462 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11463 ;;
11464 esac
11465done
11466
11467# Double-quote double-evaled strings.
11468for var in reload_cmds \
11469old_postinstall_cmds \
11470old_postuninstall_cmds \
11471old_archive_cmds \
11472extract_expsyms_cmds \
11473old_archive_from_new_cmds \
11474old_archive_from_expsyms_cmds \
11475archive_cmds \
11476archive_expsym_cmds \
11477module_cmds \
11478module_expsym_cmds \
11479export_symbols_cmds \
11480prelink_cmds \
11481postinstall_cmds \
11482postuninstall_cmds \
11483finish_cmds \
11484sys_lib_search_path_spec \
11485sys_lib_dlsearch_path_spec; do
11486 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11487 *[\\\\\\\`\\"\\\$]*)
11488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11489 ;;
11490 *)
11491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11492 ;;
11493 esac
11494done
11495
11496# Fix-up fallback echo if it was mangled by the above quoting rules.
11497case \$lt_ECHO in
11498*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11499 ;;
11500esac
11501
11502ac_aux_dir='$ac_aux_dir'
11503xsi_shell='$xsi_shell'
11504lt_shell_append='$lt_shell_append'
11505
11506# See if we are running on zsh, and set the options which allow our
11507# commands through without removal of \ escapes INIT.
11508if test -n "\${ZSH_VERSION+set}" ; then
11509 setopt NO_GLOB_SUBST
11510fi
11511
11512
11513 PACKAGE='$PACKAGE'
11514 VERSION='$VERSION'
11515 TIMESTAMP='$TIMESTAMP'
11516 RM='$RM'
11517 ofile='$ofile'
11518
11519
11520
11521
a8aea176
NN
11522_ACEOF
11523
11524
11525
11526cat >>$CONFIG_STATUS <<\_ACEOF
11527for ac_config_target in $ac_config_targets
11528do
11529 case "$ac_config_target" in
11530 # Handling of arguments.
11531 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
076e5443 11532 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9fabf579 11533 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 11534 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
a8aea176
NN
11535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11536echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11537 { (exit 1); exit 1; }; };;
11538 esac
11539done
11540
11541# If the user did not use the arguments to specify the items to instantiate,
11542# then the envvar interface is used. Set only those that are not.
11543# We use the long form for the default assignment because of an extremely
11544# bizarre bug on SunOS 4.1.3.
11545if $ac_need_defaults; then
11546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11548fi
11549
11550# Have a temporary directory for convenience. Make it in the build tree
11551# simply because there is no reason to put it here, and in addition,
11552# creating and moving files from /tmp can sometimes cause problems.
11553# Create a temporary directory, and hook for its removal unless debugging.
11554$debug ||
11555{
11556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11557 trap '{ (exit 1); exit 1; }' 1 2 13 15
11558}
11559
11560# Create a (secure) tmp directory for tmp files.
11561
11562{
11563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11564 test -n "$tmp" && test -d "$tmp"
11565} ||
11566{
11567 tmp=./confstat$$-$RANDOM
11568 (umask 077 && mkdir $tmp)
11569} ||
11570{
11571 echo "$me: cannot create a temporary directory in ." >&2
11572 { (exit 1); exit 1; }
11573}
11574
11575_ACEOF
11576
11577cat >>$CONFIG_STATUS <<_ACEOF
11578
11579#
11580# CONFIG_FILES section.
11581#
11582
11583# No need to generate the scripts if there are no CONFIG_FILES.
11584# This happens for instance when ./config.status config.h
11585if test -n "\$CONFIG_FILES"; then
11586 # Protect against being on the right side of a sed subst in config.status.
11587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11589s,@SHELL@,$SHELL,;t t
11590s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11591s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11592s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11593s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11594s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11595s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11596s,@exec_prefix@,$exec_prefix,;t t
11597s,@prefix@,$prefix,;t t
11598s,@program_transform_name@,$program_transform_name,;t t
11599s,@bindir@,$bindir,;t t
11600s,@sbindir@,$sbindir,;t t
11601s,@libexecdir@,$libexecdir,;t t
11602s,@datadir@,$datadir,;t t
11603s,@sysconfdir@,$sysconfdir,;t t
11604s,@sharedstatedir@,$sharedstatedir,;t t
11605s,@localstatedir@,$localstatedir,;t t
11606s,@libdir@,$libdir,;t t
11607s,@includedir@,$includedir,;t t
11608s,@oldincludedir@,$oldincludedir,;t t
11609s,@infodir@,$infodir,;t t
11610s,@mandir@,$mandir,;t t
11611s,@build_alias@,$build_alias,;t t
11612s,@host_alias@,$host_alias,;t t
11613s,@target_alias@,$target_alias,;t t
11614s,@DEFS@,$DEFS,;t t
11615s,@ECHO_C@,$ECHO_C,;t t
11616s,@ECHO_N@,$ECHO_N,;t t
11617s,@ECHO_T@,$ECHO_T,;t t
11618s,@LIBS@,$LIBS,;t t
076e5443 11619s,@multi_basedir@,$multi_basedir,;t t
a8aea176
NN
11620s,@build@,$build,;t t
11621s,@build_cpu@,$build_cpu,;t t
11622s,@build_vendor@,$build_vendor,;t t
11623s,@build_os@,$build_os,;t t
11624s,@host@,$host,;t t
11625s,@host_cpu@,$host_cpu,;t t
11626s,@host_vendor@,$host_vendor,;t t
11627s,@host_os@,$host_os,;t t
11628s,@target@,$target,;t t
11629s,@target_cpu@,$target_cpu,;t t
11630s,@target_vendor@,$target_vendor,;t t
11631s,@target_os@,$target_os,;t t
11632s,@mkinstalldirs@,$mkinstalldirs,;t t
11633s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11634s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11635s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9fabf579 11636s,@CYGPATH_W@,$CYGPATH_W,;t t
a8aea176
NN
11637s,@PACKAGE@,$PACKAGE,;t t
11638s,@VERSION@,$VERSION,;t t
11639s,@ACLOCAL@,$ACLOCAL,;t t
11640s,@AUTOCONF@,$AUTOCONF,;t t
11641s,@AUTOMAKE@,$AUTOMAKE,;t t
11642s,@AUTOHEADER@,$AUTOHEADER,;t t
11643s,@MAKEINFO@,$MAKEINFO,;t t
9fabf579
KC
11644s,@install_sh@,$install_sh,;t t
11645s,@STRIP@,$STRIP,;t t
11646s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11647s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 11648s,@mkdir_p@,$mkdir_p,;t t
9fabf579 11649s,@AWK@,$AWK,;t t
a8aea176 11650s,@SET_MAKE@,$SET_MAKE,;t t
9fabf579 11651s,@am__leading_dot@,$am__leading_dot,;t t
17210dff
TT
11652s,@AMTAR@,$AMTAR,;t t
11653s,@am__tar@,$am__tar,;t t
11654s,@am__untar@,$am__untar,;t t
a8aea176
NN
11655s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11656s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11657s,@MAINT@,$MAINT,;t t
11658s,@COMPPATH@,$COMPPATH,;t t
11659s,@CC@,$CC,;t t
a8aea176
NN
11660s,@ac_ct_CC@,$ac_ct_CC,;t t
11661s,@EXEEXT@,$EXEEXT,;t t
11662s,@OBJEXT@,$OBJEXT,;t t
9fabf579
KC
11663s,@DEPDIR@,$DEPDIR,;t t
11664s,@am__include@,$am__include,;t t
11665s,@am__quote@,$am__quote,;t t
11666s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11667s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11668s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11669s,@CCDEPMODE@,$CCDEPMODE,;t t
11670s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11671s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
076e5443 11672s,@CFLAGS@,$CFLAGS,;t t
1cf3d07d
SE
11673s,@LIBTOOL@,$LIBTOOL,;t t
11674s,@SED@,$SED,;t t
11675s,@EGREP@,$EGREP,;t t
11676s,@FGREP@,$FGREP,;t t
11677s,@GREP@,$GREP,;t t
11678s,@LD@,$LD,;t t
11679s,@DUMPBIN@,$DUMPBIN,;t t
11680s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11681s,@NM@,$NM,;t t
a8aea176 11682s,@LN_S@,$LN_S,;t t
1cf3d07d
SE
11683s,@AR@,$AR,;t t
11684s,@ac_ct_AR@,$ac_ct_AR,;t t
a8aea176
NN
11685s,@RANLIB@,$RANLIB,;t t
11686s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d 11687s,@lt_ECHO@,$lt_ECHO,;t t
a8aea176 11688s,@CPP@,$CPP,;t t
076e5443 11689s,@CPPFLAGS@,$CPPFLAGS,;t t
a8aea176
NN
11690s,@target_all@,$target_all,;t t
11691s,@toolexecdir@,$toolexecdir,;t t
11692s,@toolexeclibdir@,$toolexeclibdir,;t t
11693s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
11694s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
11695s,@LIBOBJS@,$LIBOBJS,;t t
11696s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11697CEOF
11698
11699_ACEOF
11700
11701 cat >>$CONFIG_STATUS <<\_ACEOF
11702 # Split the substitutions into bite-sized pieces for seds with
11703 # small command number limits, like on Digital OSF/1 and HP-UX.
11704 ac_max_sed_lines=48
11705 ac_sed_frag=1 # Number of current file.
11706 ac_beg=1 # First line for current file.
11707 ac_end=$ac_max_sed_lines # Line after last line for current file.
11708 ac_more_lines=:
11709 ac_sed_cmds=
11710 while $ac_more_lines; do
11711 if test $ac_beg -gt 1; then
11712 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11713 else
11714 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11715 fi
11716 if test ! -s $tmp/subs.frag; then
11717 ac_more_lines=false
11718 else
11719 # The purpose of the label and of the branching condition is to
11720 # speed up the sed processing (if there are no `@' at all, there
11721 # is no need to browse any of the substitutions).
11722 # These are the two extra sed commands mentioned above.
11723 (echo ':t
11724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11725 if test -z "$ac_sed_cmds"; then
11726 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11727 else
11728 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11729 fi
11730 ac_sed_frag=`expr $ac_sed_frag + 1`
11731 ac_beg=$ac_end
11732 ac_end=`expr $ac_end + $ac_max_sed_lines`
11733 fi
11734 done
11735 if test -z "$ac_sed_cmds"; then
11736 ac_sed_cmds=cat
11737 fi
11738fi # test -n "$CONFIG_FILES"
11739
11740_ACEOF
11741cat >>$CONFIG_STATUS <<\_ACEOF
11742for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11744 case $ac_file in
11745 - | *:- | *:-:* ) # input from stdin
11746 cat >$tmp/stdin
11747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11751 * ) ac_file_in=$ac_file.in ;;
11752 esac
11753
11754 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11755 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11757 X"$ac_file" : 'X\(//\)[^/]' \| \
11758 X"$ac_file" : 'X\(//\)$' \| \
11759 X"$ac_file" : 'X\(/\)' \| \
11760 . : '\(.\)' 2>/dev/null ||
11761echo X"$ac_file" |
11762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11764 /^X\(\/\/\)$/{ s//\1/; q; }
11765 /^X\(\/\).*/{ s//\1/; q; }
11766 s/.*/./; q'`
11767 { if $as_mkdir_p; then
11768 mkdir -p "$ac_dir"
11769 else
11770 as_dir="$ac_dir"
11771 as_dirs=
11772 while test ! -d "$as_dir"; do
11773 as_dirs="$as_dir $as_dirs"
11774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11776 X"$as_dir" : 'X\(//\)[^/]' \| \
11777 X"$as_dir" : 'X\(//\)$' \| \
11778 X"$as_dir" : 'X\(/\)' \| \
11779 . : '\(.\)' 2>/dev/null ||
11780echo X"$as_dir" |
11781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11783 /^X\(\/\/\)$/{ s//\1/; q; }
11784 /^X\(\/\).*/{ s//\1/; q; }
11785 s/.*/./; q'`
11786 done
11787 test ! -n "$as_dirs" || mkdir $as_dirs
11788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11789echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11790 { (exit 1); exit 1; }; }; }
11791
11792 ac_builddir=.
11793
11794if test "$ac_dir" != .; then
11795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11796 # A "../" for each directory in $ac_dir_suffix.
11797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11798else
11799 ac_dir_suffix= ac_top_builddir=
11800fi
11801
11802case $srcdir in
11803 .) # No --srcdir option. We are building in place.
11804 ac_srcdir=.
11805 if test -z "$ac_top_builddir"; then
11806 ac_top_srcdir=.
11807 else
11808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11809 fi ;;
11810 [\\/]* | ?:[\\/]* ) # Absolute path.
11811 ac_srcdir=$srcdir$ac_dir_suffix;
11812 ac_top_srcdir=$srcdir ;;
11813 *) # Relative path.
11814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11816esac
11817
11818# Do not use `cd foo && pwd` to compute absolute paths, because
11819# the directories may not exist.
11820case `pwd` in
11821.) ac_abs_builddir="$ac_dir";;
11822*)
11823 case "$ac_dir" in
11824 .) ac_abs_builddir=`pwd`;;
11825 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11826 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11827 esac;;
11828esac
11829case $ac_abs_builddir in
11830.) ac_abs_top_builddir=${ac_top_builddir}.;;
11831*)
11832 case ${ac_top_builddir}. in
11833 .) ac_abs_top_builddir=$ac_abs_builddir;;
11834 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11835 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11836 esac;;
11837esac
11838case $ac_abs_builddir in
11839.) ac_abs_srcdir=$ac_srcdir;;
11840*)
11841 case $ac_srcdir in
11842 .) ac_abs_srcdir=$ac_abs_builddir;;
11843 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11844 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11845 esac;;
11846esac
11847case $ac_abs_builddir in
11848.) ac_abs_top_srcdir=$ac_top_srcdir;;
11849*)
11850 case $ac_top_srcdir in
11851 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11852 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11853 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11854 esac;;
11855esac
11856
11857
11858 case $INSTALL in
11859 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11860 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11861 esac
11862
17210dff
TT
11863 if test x"$ac_file" != x-; then
11864 { echo "$as_me:$LINENO: creating $ac_file" >&5
11865echo "$as_me: creating $ac_file" >&6;}
11866 rm -f "$ac_file"
11867 fi
a8aea176
NN
11868 # Let's still pretend it is `configure' which instantiates (i.e., don't
11869 # use $as_me), people would be surprised to read:
11870 # /* config.h. Generated by config.status. */
11871 if test x"$ac_file" = x-; then
11872 configure_input=
11873 else
11874 configure_input="$ac_file. "
11875 fi
11876 configure_input=$configure_input"Generated from `echo $ac_file_in |
11877 sed 's,.*/,,'` by configure."
11878
11879 # First look for the input files in the build tree, otherwise in the
11880 # src tree.
11881 ac_file_inputs=`IFS=:
11882 for f in $ac_file_in; do
11883 case $f in
11884 -) echo $tmp/stdin ;;
11885 [\\/$]*)
11886 # Absolute (can't be DOS-style, as IFS=:)
11887 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11888echo "$as_me: error: cannot find input file: $f" >&2;}
11889 { (exit 1); exit 1; }; }
11890 echo "$f";;
11891 *) # Relative
11892 if test -f "$f"; then
11893 # Build tree
11894 echo "$f"
11895 elif test -f "$srcdir/$f"; then
11896 # Source tree
11897 echo "$srcdir/$f"
11898 else
11899 # /dev/null tree
11900 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11901echo "$as_me: error: cannot find input file: $f" >&2;}
11902 { (exit 1); exit 1; }; }
11903 fi;;
11904 esac
11905 done` || { (exit 1); exit 1; }
a8aea176
NN
11906_ACEOF
11907cat >>$CONFIG_STATUS <<_ACEOF
11908 sed "$ac_vpsub
11909$extrasub
11910_ACEOF
11911cat >>$CONFIG_STATUS <<\_ACEOF
11912:t
11913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11914s,@configure_input@,$configure_input,;t t
11915s,@srcdir@,$ac_srcdir,;t t
11916s,@abs_srcdir@,$ac_abs_srcdir,;t t
11917s,@top_srcdir@,$ac_top_srcdir,;t t
11918s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11919s,@builddir@,$ac_builddir,;t t
11920s,@abs_builddir@,$ac_abs_builddir,;t t
11921s,@top_builddir@,$ac_top_builddir,;t t
11922s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11923s,@INSTALL@,$ac_INSTALL,;t t
11924" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11925 rm -f $tmp/stdin
11926 if test x"$ac_file" != x-; then
11927 mv $tmp/out $ac_file
11928 else
11929 cat $tmp/out
11930 rm -f $tmp/out
11931 fi
11932
11933done
11934_ACEOF
11935cat >>$CONFIG_STATUS <<\_ACEOF
11936
11937#
11938# CONFIG_COMMANDS section.
11939#
11940for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11941 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11942 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11943 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11944$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11945 X"$ac_dest" : 'X\(//\)[^/]' \| \
11946 X"$ac_dest" : 'X\(//\)$' \| \
11947 X"$ac_dest" : 'X\(/\)' \| \
11948 . : '\(.\)' 2>/dev/null ||
11949echo X"$ac_dest" |
11950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11952 /^X\(\/\/\)$/{ s//\1/; q; }
11953 /^X\(\/\).*/{ s//\1/; q; }
11954 s/.*/./; q'`
11955 { if $as_mkdir_p; then
11956 mkdir -p "$ac_dir"
11957 else
11958 as_dir="$ac_dir"
11959 as_dirs=
11960 while test ! -d "$as_dir"; do
11961 as_dirs="$as_dir $as_dirs"
11962 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964 X"$as_dir" : 'X\(//\)[^/]' \| \
11965 X"$as_dir" : 'X\(//\)$' \| \
11966 X"$as_dir" : 'X\(/\)' \| \
11967 . : '\(.\)' 2>/dev/null ||
11968echo X"$as_dir" |
11969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11971 /^X\(\/\/\)$/{ s//\1/; q; }
11972 /^X\(\/\).*/{ s//\1/; q; }
11973 s/.*/./; q'`
11974 done
11975 test ! -n "$as_dirs" || mkdir $as_dirs
11976 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11977echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11978 { (exit 1); exit 1; }; }; }
11979
11980 ac_builddir=.
11981
11982if test "$ac_dir" != .; then
11983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11984 # A "../" for each directory in $ac_dir_suffix.
11985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11986else
11987 ac_dir_suffix= ac_top_builddir=
11988fi
11989
11990case $srcdir in
11991 .) # No --srcdir option. We are building in place.
11992 ac_srcdir=.
11993 if test -z "$ac_top_builddir"; then
11994 ac_top_srcdir=.
11995 else
11996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11997 fi ;;
11998 [\\/]* | ?:[\\/]* ) # Absolute path.
11999 ac_srcdir=$srcdir$ac_dir_suffix;
12000 ac_top_srcdir=$srcdir ;;
12001 *) # Relative path.
12002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12004esac
12005
12006# Do not use `cd foo && pwd` to compute absolute paths, because
12007# the directories may not exist.
12008case `pwd` in
12009.) ac_abs_builddir="$ac_dir";;
12010*)
12011 case "$ac_dir" in
12012 .) ac_abs_builddir=`pwd`;;
12013 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12014 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12015 esac;;
12016esac
12017case $ac_abs_builddir in
12018.) ac_abs_top_builddir=${ac_top_builddir}.;;
12019*)
12020 case ${ac_top_builddir}. in
12021 .) ac_abs_top_builddir=$ac_abs_builddir;;
12022 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12023 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12024 esac;;
12025esac
12026case $ac_abs_builddir in
12027.) ac_abs_srcdir=$ac_srcdir;;
12028*)
12029 case $ac_srcdir in
12030 .) ac_abs_srcdir=$ac_abs_builddir;;
12031 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12032 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12033 esac;;
12034esac
12035case $ac_abs_builddir in
12036.) ac_abs_top_srcdir=$ac_top_srcdir;;
12037*)
12038 case $ac_top_srcdir in
12039 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12040 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12041 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12042 esac;;
12043esac
12044
12045
12046 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12047echo "$as_me: executing $ac_dest commands" >&6;}
12048 case $ac_dest in
076e5443
PB
12049 default-1 )
12050# Only add multilib support code if we just rebuilt the top-level
12051# Makefile.
12052case " $CONFIG_FILES " in
12053 *" Makefile "*)
12054 ac_file=Makefile . ${multi_basedir}/config-ml.in
12055 ;;
12056esac ;;
9fabf579
KC
12057 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12058 # Strip MF so we end up with the name of the file.
12059 mf=`echo "$mf" | sed -e 's/:.*$//'`
12060 # Check whether this is an Automake generated Makefile or not.
12061 # We used to match only the files named `Makefile.in', but
12062 # some people rename them; so instead we look at the file content.
12063 # Grep'ing the first line is not enough: some people post-process
12064 # each Makefile.in and add a new line on top of each file to say so.
12065 # So let's grep whole file.
12066 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12067 dirpart=`(dirname "$mf") 2>/dev/null ||
12068$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069 X"$mf" : 'X\(//\)[^/]' \| \
12070 X"$mf" : 'X\(//\)$' \| \
12071 X"$mf" : 'X\(/\)' \| \
12072 . : '\(.\)' 2>/dev/null ||
12073echo X"$mf" |
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076 /^X\(\/\/\)$/{ s//\1/; q; }
12077 /^X\(\/\).*/{ s//\1/; q; }
12078 s/.*/./; q'`
12079 else
12080 continue
12081 fi
17210dff
TT
12082 # Extract the definition of DEPDIR, am__include, and am__quote
12083 # from the Makefile without running `make'.
076e5443 12084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9fabf579 12085 test -z "$DEPDIR" && continue
17210dff
TT
12086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12087 test -z "am__include" && continue
12088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9fabf579 12089 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 12090 U=`sed -n 's/^U = //p' < "$mf"`
17210dff
TT
12091 # Find all dependency output files, they are included files with
12092 # $(DEPDIR) in their names. We invoke sed twice because it is the
12093 # simplest approach to changing $(DEPDIR) to its actual value in the
12094 # expansion.
12095 for file in `sed -n "
12096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9fabf579
KC
12097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12098 # Make sure the directory exists.
12099 test -f "$dirpart/$file" && continue
12100 fdir=`(dirname "$file") 2>/dev/null ||
12101$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102 X"$file" : 'X\(//\)[^/]' \| \
12103 X"$file" : 'X\(//\)$' \| \
12104 X"$file" : 'X\(/\)' \| \
12105 . : '\(.\)' 2>/dev/null ||
12106echo X"$file" |
12107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12109 /^X\(\/\/\)$/{ s//\1/; q; }
12110 /^X\(\/\).*/{ s//\1/; q; }
12111 s/.*/./; q'`
12112 { if $as_mkdir_p; then
12113 mkdir -p $dirpart/$fdir
12114 else
12115 as_dir=$dirpart/$fdir
12116 as_dirs=
12117 while test ! -d "$as_dir"; do
12118 as_dirs="$as_dir $as_dirs"
12119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12121 X"$as_dir" : 'X\(//\)[^/]' \| \
12122 X"$as_dir" : 'X\(//\)$' \| \
12123 X"$as_dir" : 'X\(/\)' \| \
12124 . : '\(.\)' 2>/dev/null ||
12125echo X"$as_dir" |
12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12128 /^X\(\/\/\)$/{ s//\1/; q; }
12129 /^X\(\/\).*/{ s//\1/; q; }
12130 s/.*/./; q'`
12131 done
12132 test ! -n "$as_dirs" || mkdir $as_dirs
12133 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12134echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12135 { (exit 1); exit 1; }; }; }
12136
12137 # echo "creating $dirpart/$file"
12138 echo '# dummy' > "$dirpart/$file"
12139 done
12140done
1cf3d07d
SE
12141 ;;
12142 libtool )
12143
12144 # See if we are running on zsh, and set the options which allow our
12145 # commands through without removal of \ escapes.
12146 if test -n "${ZSH_VERSION+set}" ; then
12147 setopt NO_GLOB_SUBST
12148 fi
12149
12150 cfgfile="${ofile}T"
12151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12152 $RM "$cfgfile"
12153
12154 cat <<_LT_EOF >> "$cfgfile"
12155#! $SHELL
12156
12157# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12158# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12159# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12160# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12161#
12162# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12163# 2006, 2007 Free Software Foundation, Inc.
12164#
12165# This file is part of GNU Libtool:
12166# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12167#
12168# This program is free software; you can redistribute it and/or modify
12169# it under the terms of the GNU General Public License as published by
12170# the Free Software Foundation; either version 2 of the License, or
12171# (at your option) any later version.
12172#
12173# This program is distributed in the hope that it will be useful, but
12174# WITHOUT ANY WARRANTY; without even the implied warranty of
12175# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12176# General Public License for more details.
12177#
12178# You should have received a copy of the GNU General Public License
12179# along with this program; if not, a copy can be downloaded from
12180# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12181# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12182# MA 02110-1301, USA.
12183#
12184# As a special exception to the GNU General Public License, if you
12185# distribute this file as part of a program that contains a
12186# configuration script generated by Autoconf, you may include it under
12187# the same distribution terms that you use for the rest of that program.
12188
12189
12190# The names of the tagged configurations supported by this script.
12191available_tags=""
12192
12193# ### BEGIN LIBTOOL CONFIG
12194
12195# Which release of libtool.m4 was used?
12196macro_version=$macro_version
12197macro_revision=$macro_revision
12198
12199# Whether or not to build shared libraries.
12200build_libtool_libs=$enable_shared
12201
12202# Whether or not to build static libraries.
12203build_old_libs=$enable_static
12204
12205# What type of objects to build.
12206pic_mode=$pic_mode
12207
12208# Whether or not to optimize for fast installation.
12209fast_install=$enable_fast_install
12210
12211# The host system.
12212host_alias=$host_alias
12213host=$host
12214host_os=$host_os
12215
12216# The build system.
12217build_alias=$build_alias
12218build=$build
12219build_os=$build_os
12220
12221# A sed program that does not truncate output.
12222SED=$lt_SED
12223
12224# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12225Xsed="\$SED -e 1s/^X//"
12226
12227# A grep program that handles long lines.
12228GREP=$lt_GREP
12229
12230# An ERE matcher.
12231EGREP=$lt_EGREP
12232
12233# A literal string matcher.
12234FGREP=$lt_FGREP
12235
12236# A BSD- or MS-compatible name lister.
12237NM=$lt_NM
12238
12239# Whether we need soft or hard links.
12240LN_S=$lt_LN_S
12241
12242# What is the maximum length of a command?
12243max_cmd_len=$max_cmd_len
12244
12245# Object file suffix (normally "o").
12246objext=$ac_objext
12247
12248# Executable file suffix (normally "").
12249exeext=$exeext
12250
12251# whether the shell understands "unset".
12252lt_unset=$lt_unset
12253
12254# turn spaces into newlines.
12255SP2NL=$lt_lt_SP2NL
12256
12257# turn newlines into spaces.
12258NL2SP=$lt_lt_NL2SP
12259
12260# How to create reloadable object files.
12261reload_flag=$lt_reload_flag
12262reload_cmds=$lt_reload_cmds
12263
12264# Method to check whether dependent libraries are shared objects.
12265deplibs_check_method=$lt_deplibs_check_method
12266
12267# Command to use when deplibs_check_method == "file_magic".
12268file_magic_cmd=$lt_file_magic_cmd
12269
12270# The archiver.
12271AR=$lt_AR
12272AR_FLAGS=$lt_AR_FLAGS
12273
12274# A symbol stripping program.
12275STRIP=$lt_STRIP
12276
12277# Commands used to install an old-style archive.
12278RANLIB=$lt_RANLIB
12279old_postinstall_cmds=$lt_old_postinstall_cmds
12280old_postuninstall_cmds=$lt_old_postuninstall_cmds
12281
12282# A C compiler.
12283LTCC=$lt_CC
12284
12285# LTCC compiler flags.
12286LTCFLAGS=$lt_CFLAGS
12287
12288# Take the output of nm and produce a listing of raw symbols and C names.
12289global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12290
12291# Transform the output of nm in a proper C declaration.
12292global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12293
12294# Transform the output of nm in a C name address pair.
12295global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12296
12297# The name of the directory that contains temporary libtool files.
12298objdir=$objdir
12299
12300# Shell to use when invoking shell scripts.
12301SHELL=$lt_SHELL
12302
12303# An echo program that does not interpret backslashes.
12304ECHO=$lt_ECHO
12305
12306# Used to examine libraries when file_magic_cmd begins with "file".
12307MAGIC_CMD=$MAGIC_CMD
12308
12309# Must we lock files when doing compilation?
12310need_locks=$lt_need_locks
12311
12312# Old archive suffix (normally "a").
12313libext=$libext
12314
12315# Shared library suffix (normally ".so").
12316shrext_cmds=$lt_shrext_cmds
12317
12318# The commands to extract the exported symbol list from a shared archive.
12319extract_expsyms_cmds=$lt_extract_expsyms_cmds
12320
12321# Variables whose values should be saved in libtool wrapper scripts and
12322# restored at link time.
12323variables_saved_for_relink=$lt_variables_saved_for_relink
12324
12325# Do we need the "lib" prefix for modules?
12326need_lib_prefix=$need_lib_prefix
12327
12328# Do we need a version for libraries?
12329need_version=$need_version
12330
12331# Library versioning type.
12332version_type=$version_type
12333
12334# Shared library runtime path variable.
12335runpath_var=$runpath_var
12336
12337# Shared library path variable.
12338shlibpath_var=$shlibpath_var
12339
12340# Is shlibpath searched before the hard-coded library search path?
12341shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12342
12343# Format of library name prefix.
12344libname_spec=$lt_libname_spec
12345
12346# List of archive names. First name is the real one, the rest are links.
12347# The last name is the one that the linker finds with -lNAME
12348library_names_spec=$lt_library_names_spec
12349
12350# The coded name of the library, if different from the real name.
12351soname_spec=$lt_soname_spec
12352
12353# Command to use after installation of a shared archive.
12354postinstall_cmds=$lt_postinstall_cmds
12355
12356# Command to use after uninstallation of a shared archive.
12357postuninstall_cmds=$lt_postuninstall_cmds
12358
12359# Commands used to finish a libtool library installation in a directory.
12360finish_cmds=$lt_finish_cmds
12361
12362# As "finish_cmds", except a single script fragment to be evaled but
12363# not shown.
12364finish_eval=$lt_finish_eval
12365
12366# Whether we should hardcode library paths into libraries.
12367hardcode_into_libs=$hardcode_into_libs
12368
12369# Compile-time system search path for libraries.
12370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12371
12372# Run-time system search path for libraries.
12373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12374
12375# Whether dlopen is supported.
12376dlopen_support=$enable_dlopen
12377
12378# Whether dlopen of programs is supported.
12379dlopen_self=$enable_dlopen_self
12380
12381# Whether dlopen of statically linked programs is supported.
12382dlopen_self_static=$enable_dlopen_self_static
12383
12384# Commands to strip libraries.
12385old_striplib=$lt_old_striplib
12386striplib=$lt_striplib
12387
12388
12389# The linker used to build libraries.
12390LD=$lt_LD
12391
12392# Commands used to build an old-style archive.
12393old_archive_cmds=$lt_old_archive_cmds
12394
12395# A language specific compiler.
12396CC=$lt_compiler
12397
12398# Is the compiler the GNU compiler?
12399with_gcc=$GCC
12400
12401# Compiler flag to turn off builtin functions.
12402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12403
12404# How to pass a linker flag through the compiler.
12405wl=$lt_lt_prog_compiler_wl
12406
12407# Additional compiler flags for building library objects.
12408pic_flag=$lt_lt_prog_compiler_pic
12409
12410# Compiler flag to prevent dynamic linking.
12411link_static_flag=$lt_lt_prog_compiler_static
12412
12413# Does compiler simultaneously support -c and -o options?
12414compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12415
12416# Whether or not to add -lc for building shared libraries.
12417build_libtool_need_lc=$archive_cmds_need_lc
12418
12419# Whether or not to disallow shared libs when runtime libs are static.
12420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12421
12422# Compiler flag to allow reflexive dlopens.
12423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12424
12425# Compiler flag to generate shared objects directly from archives.
12426whole_archive_flag_spec=$lt_whole_archive_flag_spec
12427
12428# Whether the compiler copes with passing no objects directly.
12429compiler_needs_object=$lt_compiler_needs_object
12430
12431# Create an old-style archive from a shared archive.
12432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12433
12434# Create a temporary old-style archive to link instead of a shared archive.
12435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12436
12437# Commands used to build a shared archive.
12438archive_cmds=$lt_archive_cmds
12439archive_expsym_cmds=$lt_archive_expsym_cmds
12440
12441# Commands used to build a loadable module if different from building
12442# a shared archive.
12443module_cmds=$lt_module_cmds
12444module_expsym_cmds=$lt_module_expsym_cmds
12445
12446# Whether we are building with GNU ld or not.
12447with_gnu_ld=$lt_with_gnu_ld
12448
12449# Flag that allows shared libraries with undefined symbols to be built.
12450allow_undefined_flag=$lt_allow_undefined_flag
12451
12452# Flag that enforces no undefined symbols.
12453no_undefined_flag=$lt_no_undefined_flag
12454
12455# Flag to hardcode \$libdir into a binary during linking.
12456# This must work even if \$libdir does not exist
12457hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12458
12459# If ld is used when linking, flag to hardcode \$libdir into a binary
12460# during linking. This must work even if \$libdir does not exist.
12461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12462
12463# Whether we need a single "-rpath" flag with a separated argument.
12464hardcode_libdir_separator=$lt_hardcode_libdir_separator
12465
12466# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12467# DIR into the resulting binary.
12468hardcode_direct=$hardcode_direct
12469
12470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12471# DIR into the resulting binary and the resulting library dependency is
12472# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12473# library is relocated.
12474hardcode_direct_absolute=$hardcode_direct_absolute
12475
12476# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12477# into the resulting binary.
12478hardcode_minus_L=$hardcode_minus_L
12479
12480# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12481# into the resulting binary.
12482hardcode_shlibpath_var=$hardcode_shlibpath_var
12483
12484# Set to "yes" if building a shared library automatically hardcodes DIR
12485# into the library and all subsequent libraries and executables linked
12486# against it.
12487hardcode_automatic=$hardcode_automatic
12488
12489# Set to yes if linker adds runtime paths of dependent libraries
12490# to runtime path list.
12491inherit_rpath=$inherit_rpath
12492
12493# Whether libtool must link a program against all its dependency libraries.
12494link_all_deplibs=$link_all_deplibs
12495
12496# Fix the shell variable \$srcfile for the compiler.
12497fix_srcfile_path=$lt_fix_srcfile_path
12498
12499# Set to "yes" if exported symbols are required.
12500always_export_symbols=$always_export_symbols
12501
12502# The commands to list exported symbols.
12503export_symbols_cmds=$lt_export_symbols_cmds
12504
12505# Symbols that should not be listed in the preloaded symbols.
12506exclude_expsyms=$lt_exclude_expsyms
12507
12508# Symbols that must always be exported.
12509include_expsyms=$lt_include_expsyms
12510
12511# Commands necessary for linking programs (against libraries) with templates.
12512prelink_cmds=$lt_prelink_cmds
12513
12514# Specify filename containing input files.
12515file_list_spec=$lt_file_list_spec
12516
12517# How to hardcode a shared library path into an executable.
12518hardcode_action=$hardcode_action
12519
12520# ### END LIBTOOL CONFIG
12521
12522_LT_EOF
12523
12524 case $host_os in
12525 aix3*)
12526 cat <<\_LT_EOF >> "$cfgfile"
12527# AIX sometimes has problems with the GCC collect2 program. For some
12528# reason, if we set the COLLECT_NAMES environment variable, the problems
12529# vanish in a puff of smoke.
12530if test "X${COLLECT_NAMES+set}" != Xset; then
12531 COLLECT_NAMES=
12532 export COLLECT_NAMES
12533fi
12534_LT_EOF
12535 ;;
12536 esac
12537
12538
12539ltmain="$ac_aux_dir/ltmain.sh"
12540
12541
12542 # We use sed instead of cat because bash on DJGPP gets confused if
12543 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12544 # text mode, it properly converts lines to CR/LF. This bash problem
12545 # is reportedly fixed, but why not run on old versions too?
12546 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12547 || (rm -f "$cfgfile"; exit 1)
12548
12549 case $xsi_shell in
12550 yes)
12551 cat << \_LT_EOF >> "$cfgfile"
12552# func_dirname file append nondir_replacement
12553# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12554# otherwise set result to NONDIR_REPLACEMENT.
12555func_dirname ()
12556{
12557 case ${1} in
12558 */*) func_dirname_result="${1%/*}${2}" ;;
12559 * ) func_dirname_result="${3}" ;;
12560 esac
12561}
12562
12563# func_basename file
12564func_basename ()
12565{
12566 func_basename_result="${1##*/}"
12567}
12568
12569# func_stripname prefix suffix name
12570# strip PREFIX and SUFFIX off of NAME.
12571# PREFIX and SUFFIX must not contain globbing or regex special
12572# characters, hashes, percent signs, but SUFFIX may contain a leading
12573# dot (in which case that matches only a dot).
12574func_stripname ()
12575{
12576 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12577 # positional parameters, so assign one to ordinary parameter first.
12578 func_stripname_result=${3}
12579 func_stripname_result=${func_stripname_result#"${1}"}
12580 func_stripname_result=${func_stripname_result%"${2}"}
12581}
12582
12583# func_opt_split
12584func_opt_split ()
12585{
12586 func_opt_split_opt=${1%%=*}
12587 func_opt_split_arg=${1#*=}
12588}
12589
12590# func_lo2o object
12591func_lo2o ()
12592{
12593 case ${1} in
12594 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12595 *) func_lo2o_result=${1} ;;
12596 esac
12597}
12598_LT_EOF
12599 ;;
12600 *) # Bourne compatible functions.
12601 cat << \_LT_EOF >> "$cfgfile"
12602# func_dirname file append nondir_replacement
12603# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12604# otherwise set result to NONDIR_REPLACEMENT.
12605func_dirname ()
12606{
12607 # Extract subdirectory from the argument.
12608 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12609 if test "X$func_dirname_result" = "X${1}"; then
12610 func_dirname_result="${3}"
12611 else
12612 func_dirname_result="$func_dirname_result${2}"
12613 fi
12614}
12615
12616# func_basename file
12617func_basename ()
12618{
12619 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12620}
12621
12622# func_stripname prefix suffix name
12623# strip PREFIX and SUFFIX off of NAME.
12624# PREFIX and SUFFIX must not contain globbing or regex special
12625# characters, hashes, percent signs, but SUFFIX may contain a leading
12626# dot (in which case that matches only a dot).
12627# func_strip_suffix prefix name
12628func_stripname ()
12629{
12630 case ${2} in
12631 .*) func_stripname_result=`$ECHO "X${3}" \
12632 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12633 *) func_stripname_result=`$ECHO "X${3}" \
12634 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12635 esac
12636}
12637
12638# sed scripts:
12639my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12640my_sed_long_arg='1s/^-[^=]*=//'
12641
12642# func_opt_split
12643func_opt_split ()
12644{
12645 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12646 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12647}
12648
12649# func_lo2o object
12650func_lo2o ()
12651{
12652 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12653}
12654_LT_EOF
12655esac
12656
12657case $lt_shell_append in
12658 yes)
12659 cat << \_LT_EOF >> "$cfgfile"
12660
12661# func_append var value
12662# Append VALUE to the end of shell variable VAR.
12663func_append ()
12664{
12665 eval "$1+=\$2"
12666}
12667_LT_EOF
12668 ;;
12669 *)
12670 cat << \_LT_EOF >> "$cfgfile"
12671
12672# func_append var value
12673# Append VALUE to the end of shell variable VAR.
12674func_append ()
12675{
12676 eval "$1=\$$1\$2"
12677}
12678_LT_EOF
12679 ;;
12680 esac
12681
12682
12683 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12684 || (rm -f "$cfgfile"; exit 1)
12685
12686 mv -f "$cfgfile" "$ofile" ||
12687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12688 chmod +x "$ofile"
12689
9fabf579 12690 ;;
a8aea176
NN
12691 esac
12692done
12693_ACEOF
12694
12695cat >>$CONFIG_STATUS <<\_ACEOF
12696
12697{ (exit 0); exit 0; }
12698_ACEOF
dfac8a13 12699chmod +x $CONFIG_STATUS
a8aea176
NN
12700ac_clean_files=$ac_clean_files_save
12701
12702
12703# configure is writing to config.log, and then calls config.status.
12704# config.status does its own redirection, appending to config.log.
12705# Unfortunately, on DOS this fails, as config.log is still kept open
12706# by configure, so config.status won't be able to write to it; its
12707# output is simply discarded. So we exec the FD to /dev/null,
12708# effectively closing config.log, so it can be properly (re)opened and
12709# appended to by config.status. When coming back to configure, we
12710# need to make the FD available again.
12711if test "$no_create" != yes; then
12712 ac_cs_success=:
12713 ac_config_status_args=
12714 test "$silent" = yes &&
12715 ac_config_status_args="$ac_config_status_args --quiet"
12716 exec 5>/dev/null
12717 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12718 exec 5>>config.log
12719 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12720 # would make configure fail if this is the last instruction.
12721 $ac_cs_success || { (exit 1); exit 1; }
12722fi
c45f211e 12723