* gdb.texinfo (GDB/MI Simple Examples): Added 'disp' field to the
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
979273e3
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}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
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
d7040cdb
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
979273e3
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`
252b5132 397
979273e3
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
979273e3
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="z8k-dis.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
45d42143 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
979273e3 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
979273e3
NN
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
979273e3 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
979273e3
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.
252b5132
RH
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
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
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
979273e3 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
979273e3 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
979273e3 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 526 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
979273e3
NN
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
979273e3 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
979273e3 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
979273e3
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" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
979273e3 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
979273e3
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"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
979273e3 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
979273e3 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
979273e3
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 ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
979273e3 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
979273e3 589 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 606 libdir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 613 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 627 mandir=$ac_optarg ;;
252b5132
RH
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 \
979273e3 634 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
979273e3 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 653 prefix=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 660 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 667 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 684 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 694 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
979273e3 710 site=$ac_optarg ;;
1fe1f39c 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 715 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
979273e3
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
979273e3 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
979273e3
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; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
979273e3
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
979273e3 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
979273e3 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
979273e3
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" ;;
252b5132
RH
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=*)
979273e3 766 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 773 x_libraries=$ac_optarg ;;
252b5132 774
979273e3
NN
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
979273e3
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
252b5132 790 *)
979273e3
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}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
979273e3
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; }; }
252b5132 805fi
252b5132 806
979273e3
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
252b5132 817
979273e3
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
252b5132 821do
979273e3
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; }; };;
252b5132
RH
827 esac
828done
829
979273e3
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
252b5132 847
979273e3
NN
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
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.
979273e3
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'`
252b5132
RH
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
979273e3
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
979273e3
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
979273e3
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
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
979273e3
NN
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
979273e3 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
979273e3
NN
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
979273e3 937Defaults for the options are specified in brackets.
ac48eca1 938
979273e3
NN
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
979273e3
NN
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
979273e3 964For better control, use the options below.
ac48eca1 965
979273e3
NN
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
ac48eca1 980
979273e3 981 cat <<\_ACEOF
252b5132 982
979273e3
NN
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
979273e3
NN
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
979273e3 995if test -n "$ac_init_help"; then
252b5132 996
979273e3 997 cat <<\_ACEOF
252b5132 998
979273e3
NN
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
979273e3
NN
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1015 --enable-maintainer-mode enable make rules and dependencies not useful
1016 (and sometimes confusing) to the casual installer
979273e3
NN
1017 --enable-install-libbfd controls installation of libbfd and related headers
1018 --disable-nls do not use Native Language Support
1019 --enable-cgen-maint=dir build cgen generated files
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1027
979273e3
NN
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
a2d91340 1036
979273e3
NN
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
a2d91340
AC
1041fi
1042
979273e3
NN
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
a2d91340 1057
979273e3
NN
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
a2d91340 1065 fi ;;
979273e3
NN
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a2d91340
AC
1072esac
1073
979273e3
NN
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
a2d91340 1084esac
979273e3
NN
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
a2d91340
AC
1111esac
1112
979273e3
NN
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
8ae85421 1128 cd $ac_popdir
979273e3
NN
1129 done
1130fi
a2d91340 1131
979273e3
NN
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
252b5132 1135
979273e3
NN
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
2c73f9d8 1146
979273e3
NN
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1149
979273e3 1150 $ $0 $@
252b5132 1151
979273e3
NN
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
252b5132 1185
979273e3 1186} >&5
75798298 1187
979273e3 1188cat >&5 <<_ACEOF
252b5132 1189
252b5132 1190
979273e3
NN
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442done
1443if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477ac_aux_dir=
1478for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479 if test -f $ac_dir/install-sh; then
1480 ac_aux_dir=$ac_dir
1481 ac_install_sh="$ac_aux_dir/install-sh -c"
1482 break
1483 elif test -f $ac_dir/install.sh; then
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/install.sh -c"
1486 break
1487 elif test -f $ac_dir/shtool; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/shtool install -c"
1490 break
1491 fi
1492done
1493if test -z "$ac_aux_dir"; then
1494 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496 { (exit 1); exit 1; }; }
1497fi
1498ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501
1502# Make sure we can run config.sub.
1503$ac_config_sub sun4 >/dev/null 2>&1 ||
1504 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506 { (exit 1); exit 1; }; }
1507
1508echo "$as_me:$LINENO: checking build system type" >&5
1509echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510if test "${ac_cv_build+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512else
1513 ac_cv_build_alias=$build_alias
1514test -z "$ac_cv_build_alias" &&
1515 ac_cv_build_alias=`$ac_config_guess`
1516test -z "$ac_cv_build_alias" &&
1517 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519 { (exit 1); exit 1; }; }
1520ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525fi
1526echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527echo "${ECHO_T}$ac_cv_build" >&6
1528build=$ac_cv_build
1529build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534echo "$as_me:$LINENO: checking host system type" >&5
1535echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539 ac_cv_host_alias=$host_alias
1540test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1546
1547fi
1548echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549echo "${ECHO_T}$ac_cv_host" >&6
1550host=$ac_cv_host
1551host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
1555
1556echo "$as_me:$LINENO: checking target system type" >&5
1557echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 ac_cv_target_alias=$target_alias
1562test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571echo "${ECHO_T}$ac_cv_target" >&6
1572target=$ac_cv_target
1573target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578# The aliases save the names the user supplied, while $host etc.
1579# will get canonicalized.
1580test -n "$target_alias" &&
1581 test "$program_prefix$program_suffix$program_transform_name" = \
1582 NONENONEs,x,x, &&
1583 program_prefix=${target_alias}-
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589if test -n "$ac_tool_prefix"; then
1590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1591set dummy ${ac_tool_prefix}gcc; ac_word=$2
1592echo "$as_me:$LINENO: checking for $ac_word" >&5
1593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1599else
1600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601for as_dir in $PATH
1602do
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 break 2
1610 fi
1611done
1612done
1613
1614fi
1615fi
1616CC=$ac_cv_prog_CC
1617if test -n "$CC"; then
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619echo "${ECHO_T}$CC" >&6
1620else
1621 echo "$as_me:$LINENO: result: no" >&5
1622echo "${ECHO_T}no" >&6
1623fi
1624
1625fi
1626if test -z "$ac_cv_prog_CC"; then
1627 ac_ct_CC=$CC
1628 # Extract the first word of "gcc", so it can be a program name with args.
1629set dummy gcc; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 if test -n "$ac_ct_CC"; then
1636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641 IFS=$as_save_IFS
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_ac_ct_CC="gcc"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 break 2
1648 fi
1649done
1650done
1651
1652fi
1653fi
1654ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655if test -n "$ac_ct_CC"; then
1656 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657echo "${ECHO_T}$ac_ct_CC" >&6
1658else
1659 echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663 CC=$ac_ct_CC
1664else
1665 CC="$ac_cv_prog_CC"
1666fi
1667
1668if test -z "$CC"; then
1669 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1671set dummy ${ac_tool_prefix}cc; ac_word=$2
1672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC="${ac_tool_prefix}cc"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1690 fi
1691done
1692done
1693
1694fi
1695fi
1696CC=$ac_cv_prog_CC
1697if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699echo "${ECHO_T}$CC" >&6
1700else
1701 echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705fi
1706if test -z "$ac_cv_prog_CC"; then
1707 ac_ct_CC=$CC
1708 # Extract the first word of "cc", so it can be a program name with args.
1709set dummy cc; ac_word=$2
1710echo "$as_me:$LINENO: checking for $ac_word" >&5
1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715 if test -n "$ac_ct_CC"; then
1716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717else
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_ac_ct_CC="cc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1728 fi
1729done
1730done
1731
1732fi
1733fi
1734ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735if test -n "$ac_ct_CC"; then
1736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737echo "${ECHO_T}$ac_ct_CC" >&6
1738else
1739 echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741fi
1742
1743 CC=$ac_ct_CC
1744else
1745 CC="$ac_cv_prog_CC"
1746fi
1747
1748fi
1749if test -z "$CC"; then
1750 # Extract the first word of "cc", so it can be a program name with args.
1751set dummy cc; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_prog_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757 if test -n "$CC"; then
1758 ac_cv_prog_CC="$CC" # Let the user override the test.
1759else
1760 ac_prog_rejected=no
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1769 ac_prog_rejected=yes
1770 continue
1771 fi
1772 ac_cv_prog_CC="cc"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 break 2
1775 fi
1776done
1777done
1778
1779if test $ac_prog_rejected = yes; then
1780 # We found a bogon in the path, so make sure we never use it.
1781 set dummy $ac_cv_prog_CC
1782 shift
1783 if test $# != 0; then
1784 # We chose a different compiler from the bogus one.
1785 # However, it has the same basename, so the bogon will be chosen
1786 # first if we set CC to just the basename; use the full file name.
1787 shift
1788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1789 fi
1790fi
1791fi
1792fi
1793CC=$ac_cv_prog_CC
1794if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796echo "${ECHO_T}$CC" >&6
1797else
1798 echo "$as_me:$LINENO: result: no" >&5
1799echo "${ECHO_T}no" >&6
1800fi
1801
1802fi
1803if test -z "$CC"; then
1804 if test -n "$ac_tool_prefix"; then
1805 for ac_prog in cl
1806 do
1807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833CC=$ac_cv_prog_CC
1834if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836echo "${ECHO_T}$CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 test -n "$CC" && break
1843 done
1844fi
1845if test -z "$CC"; then
1846 ac_ct_CC=$CC
1847 for ac_prog in cl
1848do
1849 # Extract the first word of "$ac_prog", so it can be a program name with args.
1850set dummy $ac_prog; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$ac_ct_CC"; then
1857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_CC="$ac_prog"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876if test -n "$ac_ct_CC"; then
1877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878echo "${ECHO_T}$ac_ct_CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884 test -n "$ac_ct_CC" && break
1885done
1886
1887 CC=$ac_ct_CC
1888fi
1889
1890fi
1891
1892
1893test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: no acceptable C compiler found in \$PATH
1896See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1898
1899# Provide some information about the compiler.
1900echo "$as_me:$LINENO:" \
1901 "checking for C compiler version" >&5
1902ac_compiler=`set X $ac_compile; echo $2`
1903{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1904 (eval $ac_compiler --version </dev/null >&5) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }
1908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1909 (eval $ac_compiler -v </dev/null >&5) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }
1913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1914 (eval $ac_compiler -V </dev/null >&5) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918
1919cat >conftest.$ac_ext <<_ACEOF
1920/* confdefs.h. */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h. */
1925
1926int
1927main ()
1928{
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934ac_clean_files_save=$ac_clean_files
1935ac_clean_files="$ac_clean_files a.out a.exe b.out"
1936# Try to create an executable without -o first, disregard a.out.
1937# It will help us diagnose broken compilers, and finding out an intuition
1938# of exeext.
1939echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1940echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1941ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943 (eval $ac_link_default) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 # Find the output, starting from the most likely. This scheme is
1948# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1949# resort.
1950
1951# Be careful to initialize this variable, since it used to be cached.
1952# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1953ac_cv_exeext=
1954# b.out is created by i960 compilers.
1955for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956do
1957 test -f "$ac_file" || continue
1958 case $ac_file in
1959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960 ;;
1961 conftest.$ac_ext )
1962 # This is the source file.
1963 ;;
1964 [ab].out )
1965 # We found the default executable, but exeext='' is most
1966 # certainly right.
1967 break;;
1968 *.* )
1969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970 # FIXME: I believe we export ac_cv_exeext for Libtool,
1971 # but it would be cool to find out if it's true. Does anybody
1972 # maintain Libtool? --akim.
1973 export ac_cv_exeext
1974 break;;
1975 * )
1976 break;;
1977 esac
1978done
1979else
1980 echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: C compiler cannot create executables
1986See \`config.log' for more details." >&2;}
1987 { (exit 77); exit 77; }; }
1988fi
1989
1990ac_exeext=$ac_cv_exeext
1991echo "$as_me:$LINENO: result: $ac_file" >&5
1992echo "${ECHO_T}$ac_file" >&6
1993
1994# Check the compiler produces executables we can run. If not, either
1995# the compiler is broken, or we cross compile.
1996echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999# If not cross compiling, check that we can run a simple program.
2000if test "$cross_compiling" != yes; then
2001 if { ac_try='./$ac_file'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 cross_compiling=no
2008 else
2009 if test "$cross_compiling" = maybe; then
2010 cross_compiling=yes
2011 else
2012 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013If you meant to cross compile, use \`--host'.
2014See \`config.log' for more details." >&5
2015echo "$as_me: error: cannot run C compiled programs.
2016If you meant to cross compile, use \`--host'.
2017See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2019 fi
2020 fi
2021fi
2022echo "$as_me:$LINENO: result: yes" >&5
2023echo "${ECHO_T}yes" >&6
2024
2025rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026ac_clean_files=$ac_clean_files_save
2027# Check the compiler produces executables we can run. If not, either
2028# the compiler is broken, or we cross compile.
2029echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032echo "${ECHO_T}$cross_compiling" >&6
2033
2034echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037 (eval $ac_link) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2043# work properly (i.e., refer to `conftest.exe'), while it won't with
2044# `rm'.
2045for ac_file in conftest.exe conftest conftest.*; do
2046 test -f "$ac_file" || continue
2047 case $ac_file in
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 export ac_cv_exeext
2051 break;;
2052 * ) break;;
2053 esac
2054done
2055else
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059See \`config.log' for more details." >&2;}
2060 { (exit 1); exit 1; }; }
2061fi
2062
2063rm -f conftest$ac_cv_exeext
2064echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067rm -f conftest.$ac_ext
2068EXEEXT=$ac_cv_exeext
2069ac_exeext=$EXEEXT
2070echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h. */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h. */
2081
2082int
2083main ()
2084{
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090rm -f conftest.o conftest.obj
2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; then
2096 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2097 case $ac_file in
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2100 break;;
2101 esac
2102done
2103else
2104 echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: cannot compute suffix of object files: cannot compile
2110See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2112fi
2113
2114rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117echo "${ECHO_T}$ac_cv_objext" >&6
2118OBJEXT=$ac_cv_objext
2119ac_objext=$OBJEXT
2120echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 cat >conftest.$ac_ext <<_ACEOF
2126/* confdefs.h. */
2127_ACEOF
2128cat confdefs.h >>conftest.$ac_ext
2129cat >>conftest.$ac_ext <<_ACEOF
2130/* end confdefs.h. */
2131
2132int
2133main ()
2134{
2135#ifndef __GNUC__
2136 choke me
2137#endif
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>conftest.er1
2146 ac_status=$?
2147 grep -v '^ *+' conftest.er1 >conftest.err
2148 rm -f conftest.er1
2149 cat conftest.err >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
8ae85421
AM
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
979273e3
NN
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 ac_compiler_gnu=yes
2166else
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170ac_compiler_gnu=no
2171fi
2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173ac_cv_c_compiler_gnu=$ac_compiler_gnu
2174
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2177echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2178GCC=`test $ac_compiler_gnu = yes && echo yes`
2179ac_test_CFLAGS=${CFLAGS+set}
2180ac_save_CFLAGS=$CFLAGS
2181CFLAGS="-g"
2182echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2184if test "${ac_cv_prog_cc_g+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187 cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h. */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h. */
2193
2194int
2195main ()
2196{
2197
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2205 ac_status=$?
2206 grep -v '^ *+' conftest.er1 >conftest.err
2207 rm -f conftest.er1
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
8ae85421
AM
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
979273e3
NN
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 ac_cv_prog_cc_g=yes
2225else
2226 echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229ac_cv_prog_cc_g=no
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2234echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2235if test "$ac_test_CFLAGS" = set; then
2236 CFLAGS=$ac_save_CFLAGS
2237elif test $ac_cv_prog_cc_g = yes; then
2238 if test "$GCC" = yes; then
2239 CFLAGS="-g -O2"
2240 else
2241 CFLAGS="-g"
2242 fi
2243else
2244 if test "$GCC" = yes; then
2245 CFLAGS="-O2"
2246 else
2247 CFLAGS=
2248 fi
2249fi
2250echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2251echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2252if test "${ac_cv_prog_cc_stdc+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255 ac_cv_prog_cc_stdc=no
2256ac_save_CC=$CC
2257cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h. */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h. */
2263#include <stdarg.h>
2264#include <stdio.h>
2265#include <sys/types.h>
2266#include <sys/stat.h>
2267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2268struct buf { int x; };
2269FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270static char *e (p, i)
2271 char **p;
2272 int i;
2273{
2274 return p[i];
2275}
2276static char *f (char * (*g) (char **, int), char **p, ...)
2277{
2278 char *s;
2279 va_list v;
2280 va_start (v,p);
2281 s = g (p, va_arg (v,int));
2282 va_end (v);
2283 return s;
2284}
2285
2286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2287 function prototypes and stuff, but not '\xHH' hex character constants.
2288 These don't provoke an error unfortunately, instead are silently treated
2289 as 'x'. The following induces an error, until -std1 is added to get
2290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2291 array size at least. It's necessary to write '\x00'==0 to get something
2292 that's true only with -std1. */
2293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2294
2295int test (int i, double x);
2296struct s1 {int (*f) (int a);};
2297struct s2 {int (*f) (double a);};
2298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2299int argc;
2300char **argv;
2301int
2302main ()
2303{
2304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309# Don't try gcc -ansi; that turns off useful extensions and
2310# breaks some systems' header files.
2311# AIX -qlanglvl=ansi
2312# Ultrix and OSF/1 -std1
2313# HP-UX 10.20 and later -Ae
2314# HP-UX older versions -Aa -D_HPUX_SOURCE
2315# SVR4 -Xc -D__EXTENSIONS__
2316for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2317do
2318 CC="$ac_save_CC $ac_arg"
2319 rm -f conftest.$ac_objext
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2322 ac_status=$?
2323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
8ae85421
AM
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
979273e3
NN
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 ac_cv_prog_cc_stdc=$ac_arg
2342break
2343else
2344 echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347fi
2348rm -f conftest.err conftest.$ac_objext
2349done
2350rm -f conftest.$ac_ext conftest.$ac_objext
2351CC=$ac_save_CC
2352
2353fi
2354
2355case "x$ac_cv_prog_cc_stdc" in
2356 x|xno)
2357 echo "$as_me:$LINENO: result: none needed" >&5
2358echo "${ECHO_T}none needed" >&6 ;;
2359 *)
2360 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362 CC="$CC $ac_cv_prog_cc_stdc" ;;
2363esac
2364
2365# Some people use a C++ compiler to compile C. Since we use `exit',
2366# in C++ we need to declare it. In case someone uses the same compiler
2367# for both compiling C and C++ we need to have the C++ compiler decide
2368# the declaration of exit, since it's the most demanding environment.
2369cat >conftest.$ac_ext <<_ACEOF
2370#ifndef __cplusplus
2371 choke me
2372#endif
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
8ae85421
AM
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
979273e3
NN
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 for ac_declaration in \
2397 '' \
2398 'extern "C" void std::exit (int) throw (); using std::exit;' \
2399 'extern "C" void std::exit (int); using std::exit;' \
2400 'extern "C" void exit (int) throw ();' \
2401 'extern "C" void exit (int);' \
2402 'void exit (int);'
2403do
2404 cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h. */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h. */
2410$ac_declaration
2411#include <stdlib.h>
2412int
2413main ()
2414{
2415exit (42);
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2423 ac_status=$?
2424 grep -v '^ *+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
8ae85421
AM
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
979273e3
NN
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 :
2443else
2444 echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447continue
2448fi
2449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 cat >conftest.$ac_ext <<_ACEOF
2451/* confdefs.h. */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h. */
2456$ac_declaration
2457int
2458main ()
2459{
2460exit (42);
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
8ae85421
AM
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
979273e3
NN
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 break
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494done
2495rm -f conftest*
2496if test -n "$ac_declaration"; then
2497 echo '#ifdef __cplusplus' >>confdefs.h
2498 echo $ac_declaration >>confdefs.h
2499 echo '#endif' >>confdefs.h
2500fi
2501
2502else
2503 echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506fi
2507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
8ae85421
AM
2515echo "$as_me:$LINENO: checking for library containing strerror" >&5
2516echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2517if test "${ac_cv_search_strerror+set}" = set; then
979273e3
NN
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
8ae85421
AM
2520 ac_func_search_save_LIBS=$LIBS
2521ac_cv_search_strerror=no
979273e3
NN
2522cat >conftest.$ac_ext <<_ACEOF
2523/* confdefs.h. */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h. */
2528
2529/* Override any gcc2 internal prototype to avoid an error. */
2530#ifdef __cplusplus
2531extern "C"
2532#endif
2533/* We use char because int might match the return type of a gcc2
2534 builtin and then its argument prototype would still apply. */
2535char strerror ();
2536int
2537main ()
2538{
2539strerror ();
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544rm -f conftest.$ac_objext conftest$ac_exeext
2545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
8ae85421
AM
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
979273e3
NN
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); }; } &&
2560 { ac_try='test -s conftest$ac_exeext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
8ae85421 2566 ac_cv_search_strerror="none required"
979273e3
NN
2567else
2568 echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
979273e3
NN
2571fi
2572rm -f conftest.err conftest.$ac_objext \
2573 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
2574if test "$ac_cv_search_strerror" = no; then
2575 for ac_lib in cposix; do
2576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2577 cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
2583
2584/* Override any gcc2 internal prototype to avoid an error. */
2585#ifdef __cplusplus
2586extern "C"
2587#endif
2588/* We use char because int might match the return type of a gcc2
2589 builtin and then its argument prototype would still apply. */
2590char strerror ();
2591int
2592main ()
2593{
2594strerror ();
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext conftest$ac_exeext
2600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601 (eval $ac_link) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest$ac_exeext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_search_strerror="-l$ac_lib"
2622break
2623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
979273e3 2627fi
8ae85421
AM
2628rm -f conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2630 done
979273e3 2631fi
8ae85421
AM
2632LIBS=$ac_func_search_save_LIBS
2633fi
2634echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2635echo "${ECHO_T}$ac_cv_search_strerror" >&6
2636if test "$ac_cv_search_strerror" != no; then
2637 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
979273e3 2638
8ae85421 2639fi
979273e3
NN
2640
2641
2642# We currently only use the version number for the name of any shared
2643# library. For user convenience, we always use the same version
2644# number that BFD is using.
2645BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2646
8ae85421 2647am__api_version="1.9"
979273e3
NN
2648# Find a good install program. We prefer a C program (faster),
2649# so one script is as good as another. But avoid the broken or
2650# incompatible versions:
2651# SysV /etc/install, /usr/sbin/install
2652# SunOS /usr/etc/install
2653# IRIX /sbin/install
2654# AIX /bin/install
2655# AmigaOS /C/install, which installs bootblocks on floppy discs
2656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2659# OS/2's system install, which has a completely different semantic
252b5132 2660# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2661# Reject install programs that cannot install multiple files.
979273e3
NN
2662echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2663echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2664if test -z "$INSTALL"; then
979273e3
NN
2665if test "${ac_cv_path_install+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2667else
979273e3
NN
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 # Account for people who put trailing slashes in PATH elements.
2674case $as_dir/ in
2675 ./ | .// | /cC/* | \
2676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2677 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2678 /usr/ucb/* ) ;;
2679 *)
2680 # OSF1 and SCO ODT 3.0 have their own names for install.
2681 # Don't use installbsd from OSF since it installs stuff as root
2682 # by default.
2683 for ac_prog in ginstall scoinst install; do
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2686 if test $ac_prog = install &&
979273e3 2687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2688 # AIX install. It has an incompatible calling convention.
2689 :
979273e3
NN
2690 elif test $ac_prog = install &&
2691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692 # program-specific install script used by HP pwplus--don't use.
2693 :
252b5132 2694 else
58c85be7
RW
2695 rm -rf conftest.one conftest.two conftest.dir
2696 echo one > conftest.one
2697 echo two > conftest.two
2698 mkdir conftest.dir
2699 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2700 test -s conftest.one && test -s conftest.two &&
2701 test -s conftest.dir/conftest.one &&
2702 test -s conftest.dir/conftest.two
2703 then
2704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2705 break 3
2706 fi
252b5132
RH
2707 fi
2708 fi
2709 done
979273e3
NN
2710 done
2711 ;;
2712esac
2713done
2714
58c85be7 2715rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2716
2717fi
2718 if test "${ac_cv_path_install+set}" = set; then
979273e3 2719 INSTALL=$ac_cv_path_install
252b5132 2720 else
58c85be7
RW
2721 # As a last resort, use the slow shell script. Don't cache a
2722 # value for INSTALL within a source directory, because that will
252b5132 2723 # break other packages using the cache if that directory is
58c85be7 2724 # removed, or if the value is a relative name.
979273e3 2725 INSTALL=$ac_install_sh
252b5132
RH
2726 fi
2727fi
979273e3
NN
2728echo "$as_me:$LINENO: result: $INSTALL" >&5
2729echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2730
2731# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2732# It thinks the first close brace ends the variable substitution.
2733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2734
979273e3 2735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2736
2737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738
979273e3
NN
2739echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2740echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2741# Just in case
2742sleep 1
8ae85421 2743echo timestamp > conftest.file
252b5132
RH
2744# Do `set' in a subshell so we don't clobber the current shell's
2745# arguments. Must try -L first in case configure is actually a
2746# symlink; some systems play weird games with the mod time of symlinks
2747# (eg FreeBSD returns the mod time of the symlink's containing
2748# directory).
2749if (
8ae85421 2750 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2751 if test "$*" = "X"; then
2752 # -L didn't work.
8ae85421 2753 set X `ls -t $srcdir/configure conftest.file`
252b5132 2754 fi
8ae85421
AM
2755 rm -f conftest.file
2756 if test "$*" != "X $srcdir/configure conftest.file" \
2757 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2758
2759 # If neither matched, then we have a broken ls. This can happen
2760 # if, for instance, CONFIG_SHELL is bash and it inherits a
2761 # broken ls alias from the environment. This has actually
2762 # happened. Such a system could not be considered "sane".
979273e3
NN
2763 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2764alias in your environment" >&5
2765echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2766alias in your environment" >&2;}
2767 { (exit 1); exit 1; }; }
252b5132
RH
2768 fi
2769
8ae85421 2770 test "$2" = conftest.file
252b5132
RH
2771 )
2772then
2773 # Ok.
2774 :
2775else
979273e3
NN
2776 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2777Check your system clock" >&5
2778echo "$as_me: error: newly created file is older than distributed files!
2779Check your system clock" >&2;}
2780 { (exit 1); exit 1; }; }
252b5132 2781fi
979273e3
NN
2782echo "$as_me:$LINENO: result: yes" >&5
2783echo "${ECHO_T}yes" >&6
252b5132 2784test "$program_prefix" != NONE &&
979273e3 2785 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2786# Use a double $ so make ignores it.
2787test "$program_suffix" != NONE &&
979273e3
NN
2788 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2789# Double any \ or $. echo might interpret backslashes.
2790# By default was `s,x,x', remove it if useless.
2791cat <<\_ACEOF >conftest.sed
2792s/[\\$]/&&/g;s/;s,x,x,$//
2793_ACEOF
2794program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2795rm conftest.sed
2796
8ae85421
AM
2797# expand $ac_aux_dir to an absolute path
2798am_aux_dir=`cd $ac_aux_dir && pwd`
2799
2800test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2801# Use eval to expand $SHELL
2802if eval "$MISSING --run true"; then
2803 am_missing_run="$MISSING --run "
2804else
2805 am_missing_run=
2806 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2807echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2808fi
2809
2810if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2811 # We used to keeping the `.' as first argument, in order to
2812 # allow $(mkdir_p) to be used without argument. As in
2813 # $(mkdir_p) $(somedir)
2814 # where $(somedir) is conditionally defined. However this is wrong
2815 # for two reasons:
2816 # 1. if the package is installed by a user who cannot write `.'
2817 # make install will fail,
2818 # 2. the above comment should most certainly read
2819 # $(mkdir_p) $(DESTDIR)$(somedir)
2820 # so it does not work when $(somedir) is undefined and
2821 # $(DESTDIR) is not.
2822 # To support the latter case, we have to write
2823 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2824 # so the `.' trick is pointless.
2825 mkdir_p='mkdir -p --'
2826else
2827 # On NextStep and OpenStep, the `mkdir' command does not
2828 # recognize any option. It will interpret all options as
2829 # directories to create, and then abort because `.' already
2830 # exists.
2831 for d in ./-p ./--version;
2832 do
2833 test -d $d && rmdir $d
2834 done
2835 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2836 if test -f "$ac_aux_dir/mkinstalldirs"; then
2837 mkdir_p='$(mkinstalldirs)'
2838 else
2839 mkdir_p='$(install_sh) -d'
2840 fi
2841fi
2842
2843for ac_prog in gawk mawk nawk awk
2844do
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846set dummy $ac_prog; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_AWK+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852 if test -n "$AWK"; then
2853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_AWK="$ac_prog"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866done
2867done
2868
2869fi
2870fi
2871AWK=$ac_cv_prog_AWK
2872if test -n "$AWK"; then
2873 echo "$as_me:$LINENO: result: $AWK" >&5
2874echo "${ECHO_T}$AWK" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880 test -n "$AWK" && break
2881done
2882
979273e3
NN
2883echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2885set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2886if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 cat >conftest.make <<\_ACEOF
252b5132 2890all:
979273e3
NN
2891 @echo 'ac_maketemp="$(MAKE)"'
2892_ACEOF
252b5132 2893# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2894eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2895if test -n "$ac_maketemp"; then
2896 eval ac_cv_prog_make_${ac_make}_set=yes
2897else
2898 eval ac_cv_prog_make_${ac_make}_set=no
2899fi
979273e3 2900rm -f conftest.make
252b5132
RH
2901fi
2902if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2903 echo "$as_me:$LINENO: result: yes" >&5
2904echo "${ECHO_T}yes" >&6
252b5132
RH
2905 SET_MAKE=
2906else
979273e3
NN
2907 echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
252b5132
RH
2909 SET_MAKE="MAKE=${MAKE-make}"
2910fi
2911
8ae85421
AM
2912rm -rf .tst 2>/dev/null
2913mkdir .tst 2>/dev/null
2914if test -d .tst; then
2915 am__leading_dot=.
2916else
2917 am__leading_dot=_
2918fi
2919rmdir .tst 2>/dev/null
2920
2921DEPDIR="${am__leading_dot}deps"
2922
2923 ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926am_make=${MAKE-make}
2927cat > confinc << 'END'
2928am__doit:
2929 @echo done
2930.PHONY: am__doit
2931END
2932# If we don't find an include directive, just comment out the code.
2933echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2934echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935am__include="#"
2936am__quote=
2937_am_result=none
2938# First try GNU make style include.
2939echo "include confinc" > confmf
2940# We grep out `Entering directory' and `Leaving directory'
2941# messages which can occur if `w' ends up in MAKEFLAGS.
2942# In particular we don't look at `^make:' because GNU make might
2943# be invoked under some other name (usually "gmake"), in which
2944# case it prints its new name instead of `make'.
2945if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946 am__include=include
2947 am__quote=
2948 _am_result=GNU
2949fi
2950# Now try BSD make style include.
2951if test "$am__include" = "#"; then
2952 echo '.include "confinc"' > confmf
2953 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2954 am__include=.include
2955 am__quote="\""
2956 _am_result=BSD
2957 fi
2958fi
2959
2960
2961echo "$as_me:$LINENO: result: $_am_result" >&5
2962echo "${ECHO_T}$_am_result" >&6
2963rm -f confinc confmf
2964
2965# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966if test "${enable_dependency_tracking+set}" = set; then
2967 enableval="$enable_dependency_tracking"
2968
2969fi;
2970if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
2973fi
2974
2975
2976if test "x$enable_dependency_tracking" != xno; then
2977 AMDEP_TRUE=
2978 AMDEP_FALSE='#'
2979else
2980 AMDEP_TRUE='#'
2981 AMDEP_FALSE=
2982fi
252b5132 2983
252b5132 2984
252b5132 2985
8ae85421
AM
2986# test to see if srcdir already configured
2987if test "`cd $srcdir && pwd`" != "`pwd`" &&
2988 test -f $srcdir/config.status; then
979273e3
NN
2989 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2990echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2991 { (exit 1); exit 1; }; }
252b5132 2992fi
979273e3 2993
8ae85421
AM
2994# test whether we have cygpath
2995if test -z "$CYGPATH_W"; then
2996 if (cygpath --version) >/dev/null 2>/dev/null; then
2997 CYGPATH_W='cygpath -w'
2998 else
2999 CYGPATH_W=echo
3000 fi
3001fi
3002
3003
3004# Define the identity of the package.
3005 PACKAGE=opcodes
3006 VERSION=${BFD_VERSION}
3007
3008
979273e3 3009cat >>confdefs.h <<_ACEOF
252b5132 3010#define PACKAGE "$PACKAGE"
979273e3 3011_ACEOF
252b5132 3012
979273e3
NN
3013
3014cat >>confdefs.h <<_ACEOF
252b5132 3015#define VERSION "$VERSION"
979273e3 3016_ACEOF
252b5132 3017
8ae85421 3018# Some tools Automake needs.
252b5132 3019
8ae85421 3020ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3021
8ae85421
AM
3022
3023AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3024
3025
3026AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3027
3028
3029AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3030
3031
3032MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033
3034install_sh=${install_sh-"$am_aux_dir/install-sh"}
3035
3036# Installed binaries are usually stripped using `strip' when the user
3037# run `make install-strip'. However `strip' might not be the right
3038# tool to use in cross-compilation environments, therefore Automake
3039# will honor the `STRIP' environment variable to overrule this program.
3040if test "$cross_compiling" != no; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}strip; ac_word=$2
3044echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046if test "${ac_cv_prog_STRIP+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 if test -n "$STRIP"; then
3050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064done
3065
3066fi
3067fi
3068STRIP=$ac_cv_prog_STRIP
3069if test -n "$STRIP"; then
3070 echo "$as_me:$LINENO: result: $STRIP" >&5
3071echo "${ECHO_T}$STRIP" >&6
252b5132 3072else
8ae85421
AM
3073 echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
252b5132
RH
3075fi
3076
8ae85421
AM
3077fi
3078if test -z "$ac_cv_prog_STRIP"; then
3079 ac_ct_STRIP=$STRIP
3080 # Extract the first word of "strip", so it can be a program name with args.
3081set dummy strip; ac_word=$2
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 if test -n "$ac_ct_STRIP"; then
3088 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_STRIP="strip"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
3104 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3105fi
3106fi
3107ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3108if test -n "$ac_ct_STRIP"; then
3109 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3110echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3111else
8ae85421
AM
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
252b5132
RH
3114fi
3115
8ae85421 3116 STRIP=$ac_ct_STRIP
252b5132 3117else
8ae85421 3118 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3119fi
3120
8ae85421
AM
3121fi
3122INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3123
3124# We need awk for the "check" target. The system "awk" is bad on
3125# some platforms.
3126# Always define AMTAR for backward compatibility.
3127
3128AMTAR=${AMTAR-"${am_missing_run}tar"}
3129
3130am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3131
3132
3133
3134
3135depcc="$CC" am_compiler_list=
3136
3137echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3138echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3139if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3141else
8ae85421
AM
3142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3143 # We make a subdir and do the tests there. Otherwise we can end up
3144 # making bogus files that we don't know about and never remove. For
3145 # instance it was reported that on HP-UX the gcc test will end up
3146 # making a dummy file named `D' -- because `-MD' means `put the output
3147 # in D'.
3148 mkdir conftest.dir
3149 # Copy depcomp to subdir because otherwise we won't find it if we're
3150 # using a relative directory.
3151 cp "$am_depcomp" conftest.dir
3152 cd conftest.dir
3153 # We will build objects and dependencies in a subdirectory because
3154 # it helps to detect inapplicable dependency modes. For instance
3155 # both Tru64's cc and ICC support -MD to output dependencies as a
3156 # side effect of compilation, but ICC will put the dependencies in
3157 # the current directory while Tru64 will put them in the object
3158 # directory.
3159 mkdir sub
3160
3161 am_cv_CC_dependencies_compiler_type=none
3162 if test "$am_compiler_list" = ""; then
3163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3164 fi
3165 for depmode in $am_compiler_list; do
3166 # Setup a source with many dependencies, because some compilers
3167 # like to wrap large dependency lists on column 80 (with \), and
3168 # we should not choose a depcomp mode which is confused by this.
3169 #
3170 # We need to recreate these files for each test, as the compiler may
3171 # overwrite some of them when testing with obscure command lines.
3172 # This happens at least with the AIX C compiler.
3173 : > sub/conftest.c
3174 for i in 1 2 3 4 5 6; do
3175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3176 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3177 # Solaris 8's {/usr,}/bin/sh.
3178 touch sub/conftst$i.h
3179 done
3180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3181
3182 case $depmode in
3183 nosideeffect)
3184 # after this tag, mechanisms are not by side-effect, so they'll
3185 # only be used when explicitly requested
3186 if test "x$enable_dependency_tracking" = xyes; then
3187 continue
3188 else
3189 break
3190 fi
3191 ;;
3192 none) break ;;
3193 esac
3194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3195 # mode. It turns out that the SunPro C++ compiler does not properly
3196 # handle `-M -o', and we need to detect this.
3197 if depmode=$depmode \
3198 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3200 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3201 >/dev/null 2>conftest.err &&
3202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3203 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3205 # icc doesn't choke on unknown options, it will just issue warnings
3206 # or remarks (even with -Werror). So we grep stderr for any message
3207 # that says an option was ignored or not supported.
3208 # When given -MP, icc 7.0 and 7.1 complain thusly:
3209 # icc: Command line warning: ignoring option '-M'; no argument required
3210 # The diagnosis changed in icc 8.0:
3211 # icc: Command line remark: option '-MP' not supported
3212 if (grep 'ignoring option' conftest.err ||
3213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3214 am_cv_CC_dependencies_compiler_type=$depmode
3215 break
3216 fi
3217 fi
3218 done
3219
3220 cd ..
3221 rm -rf conftest.dir
3222else
3223 am_cv_CC_dependencies_compiler_type=none
3224fi
3225
252b5132 3226fi
8ae85421
AM
3227echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3228echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3229CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3230
3231
252b5132 3232
8ae85421
AM
3233if
3234 test "x$enable_dependency_tracking" != xno \
3235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3236 am__fastdepCC_TRUE=
3237 am__fastdepCC_FALSE='#'
252b5132 3238else
8ae85421
AM
3239 am__fastdepCC_TRUE='#'
3240 am__fastdepCC_FALSE=
252b5132
RH
3241fi
3242
3243
3244
8ae85421 3245
dabbade6
L
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3251if test -n "$ac_tool_prefix"; then
dabbade6
L
3252 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}gcc; ac_word=$2
979273e3
NN
3254echo "$as_me:$LINENO: checking for $ac_word" >&5
3255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3256if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3257 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3258else
dabbade6
L
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3261else
979273e3
NN
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3269 ac_cv_prog_CC="${ac_tool_prefix}gcc"
979273e3
NN
3270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273done
3274done
3275
252b5132
RH
3276fi
3277fi
dabbade6
L
3278CC=$ac_cv_prog_CC
3279if test -n "$CC"; then
3280 echo "$as_me:$LINENO: result: $CC" >&5
3281echo "${ECHO_T}$CC" >&6
252b5132 3282else
979273e3
NN
3283 echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
3285fi
3286
252b5132 3287fi
dabbade6
L
3288if test -z "$ac_cv_prog_CC"; then
3289 ac_ct_CC=$CC
3290 # Extract the first word of "gcc", so it can be a program name with args.
3291set dummy gcc; ac_word=$2
979273e3
NN
3292echo "$as_me:$LINENO: checking for $ac_word" >&5
3293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3294if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3
NN
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
dabbade6
L
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3307 ac_cv_prog_ac_ct_CC="gcc"
979273e3
NN
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311done
3312done
252b5132 3313
979273e3
NN
3314fi
3315fi
dabbade6
L
3316ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317if test -n "$ac_ct_CC"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3319echo "${ECHO_T}$ac_ct_CC" >&6
979273e3
NN
3320else
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
252b5132 3324
dabbade6 3325 CC=$ac_ct_CC
979273e3 3326else
dabbade6 3327 CC="$ac_cv_prog_CC"
979273e3 3328fi
252b5132 3329
dabbade6
L
3330if test -z "$CC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3333set dummy ${ac_tool_prefix}cc; ac_word=$2
979273e3
NN
3334echo "$as_me:$LINENO: checking for $ac_word" >&5
3335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3336if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3337 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3338else
dabbade6
L
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3341else
979273e3
NN
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3349 ac_cv_prog_CC="${ac_tool_prefix}cc"
979273e3
NN
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354done
3355
252b5132
RH
3356fi
3357fi
dabbade6
L
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360 echo "$as_me:$LINENO: result: $CC" >&5
3361echo "${ECHO_T}$CC" >&6
252b5132 3362else
979273e3
NN
3363 echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
252b5132
RH
3365fi
3366
979273e3 3367fi
dabbade6
L
3368if test -z "$ac_cv_prog_CC"; then
3369 ac_ct_CC=$CC
3370 # Extract the first word of "cc", so it can be a program name with args.
3371set dummy cc; ac_word=$2
979273e3
NN
3372echo "$as_me:$LINENO: checking for $ac_word" >&5
3373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3 3375 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3376else
dabbade6
L
3377 if test -n "$ac_ct_CC"; then
3378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3379else
979273e3
NN
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3387 ac_cv_prog_ac_ct_CC="cc"
979273e3
NN
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391done
3392done
3393
252b5132
RH
3394fi
3395fi
dabbade6
L
3396ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397if test -n "$ac_ct_CC"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3399echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3400else
979273e3
NN
3401 echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
252b5132
RH
3403fi
3404
dabbade6 3405 CC=$ac_ct_CC
252b5132 3406else
dabbade6 3407 CC="$ac_cv_prog_CC"
252b5132
RH
3408fi
3409
dabbade6
L
3410fi
3411if test -z "$CC"; then
3412 # Extract the first word of "cc", so it can be a program name with args.
3413set dummy cc; ac_word=$2
3414echo "$as_me:$LINENO: checking for $ac_word" >&5
3415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416if test "${ac_cv_prog_CC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421else
3422 ac_prog_rejected=no
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3431 ac_prog_rejected=yes
3432 continue
3433 fi
3434 ac_cv_prog_CC="cc"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438done
3439done
252b5132 3440
dabbade6
L
3441if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy $ac_cv_prog_CC
3444 shift
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3449 shift
3450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3451 fi
3452fi
3453fi
3454fi
3455CC=$ac_cv_prog_CC
3456if test -n "$CC"; then
3457 echo "$as_me:$LINENO: result: $CC" >&5
3458echo "${ECHO_T}$CC" >&6
252b5132 3459else
dabbade6
L
3460 echo "$as_me:$LINENO: result: no" >&5
3461echo "${ECHO_T}no" >&6
3462fi
252b5132 3463
dabbade6
L
3464fi
3465if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog in cl
3468 do
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3471echo "$as_me:$LINENO: checking for $ac_word" >&5
3472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491done
d7040cdb 3492
dabbade6
L
3493fi
3494fi
3495CC=$ac_cv_prog_CC
3496if test -n "$CC"; then
3497 echo "$as_me:$LINENO: result: $CC" >&5
3498echo "${ECHO_T}$CC" >&6
3499else
3500 echo "$as_me:$LINENO: result: no" >&5
3501echo "${ECHO_T}no" >&6
3502fi
d7040cdb 3503
dabbade6
L
3504 test -n "$CC" && break
3505 done
3506fi
3507if test -z "$CC"; then
3508 ac_ct_CC=$CC
3509 for ac_prog in cl
3510do
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512set dummy $ac_prog; ac_word=$2
3513echo "$as_me:$LINENO: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="$ac_prog"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533done
d7040cdb 3534
dabbade6
L
3535fi
3536fi
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540echo "${ECHO_T}$ac_ct_CC" >&6
3541else
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
3544fi
d7040cdb 3545
dabbade6
L
3546 test -n "$ac_ct_CC" && break
3547done
d7040cdb 3548
dabbade6
L
3549 CC=$ac_ct_CC
3550fi
d7040cdb 3551
dabbade6 3552fi
d7040cdb
SE
3553
3554
dabbade6
L
3555test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3556See \`config.log' for more details." >&5
3557echo "$as_me: error: no acceptable C compiler found in \$PATH
3558See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
d7040cdb 3560
dabbade6
L
3561# Provide some information about the compiler.
3562echo "$as_me:$LINENO:" \
3563 "checking for C compiler version" >&5
3564ac_compiler=`set X $ac_compile; echo $2`
3565{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3566 (eval $ac_compiler --version </dev/null >&5) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }
3570{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3571 (eval $ac_compiler -v </dev/null >&5) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3576 (eval $ac_compiler -V </dev/null >&5) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }
d7040cdb 3580
dabbade6
L
3581echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3583if test "${ac_cv_c_compiler_gnu+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3585else
dabbade6
L
3586 cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
d7040cdb 3592
dabbade6
L
3593int
3594main ()
3595{
3596#ifndef __GNUC__
3597 choke me
3598#endif
d7040cdb 3599
dabbade6
L
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_compiler_gnu=yes
d7040cdb 3627else
dabbade6
L
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3630
dabbade6
L
3631ac_compiler_gnu=no
3632fi
3633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3635
dabbade6
L
3636fi
3637echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3638echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3639GCC=`test $ac_compiler_gnu = yes && echo yes`
3640ac_test_CFLAGS=${CFLAGS+set}
3641ac_save_CFLAGS=$CFLAGS
3642CFLAGS="-g"
3643echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3644echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3645if test "${ac_cv_prog_cc_g+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3647else
dabbade6
L
3648 cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
d7040cdb 3654
dabbade6
L
3655int
3656main ()
3657{
d7040cdb 3658
dabbade6
L
3659 ;
3660 return 0;
3661}
3662_ACEOF
3663rm -f conftest.$ac_objext
3664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_prog_cc_g=yes
3686else
3687 echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3689
dabbade6
L
3690ac_cv_prog_cc_g=no
3691fi
3692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693fi
3694echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3695echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3696if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3700 CFLAGS="-g -O2"
3701 else
3702 CFLAGS="-g"
3703 fi
3704else
3705 if test "$GCC" = yes; then
3706 CFLAGS="-O2"
3707 else
3708 CFLAGS=
3709 fi
3710fi
3711echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3712echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3713if test "${ac_cv_prog_cc_stdc+set}" = set; then
d7040cdb
SE
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
dabbade6
L
3716 ac_cv_prog_cc_stdc=no
3717ac_save_CC=$CC
3718cat >conftest.$ac_ext <<_ACEOF
3719/* confdefs.h. */
3720_ACEOF
3721cat confdefs.h >>conftest.$ac_ext
3722cat >>conftest.$ac_ext <<_ACEOF
3723/* end confdefs.h. */
3724#include <stdarg.h>
3725#include <stdio.h>
3726#include <sys/types.h>
3727#include <sys/stat.h>
3728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3729struct buf { int x; };
3730FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731static char *e (p, i)
3732 char **p;
3733 int i;
3734{
3735 return p[i];
3736}
3737static char *f (char * (*g) (char **, int), char **p, ...)
3738{
3739 char *s;
3740 va_list v;
3741 va_start (v,p);
3742 s = g (p, va_arg (v,int));
3743 va_end (v);
3744 return s;
3745}
d7040cdb 3746
dabbade6
L
3747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3748 function prototypes and stuff, but not '\xHH' hex character constants.
3749 These don't provoke an error unfortunately, instead are silently treated
3750 as 'x'. The following induces an error, until -std1 is added to get
3751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3752 array size at least. It's necessary to write '\x00'==0 to get something
3753 that's true only with -std1. */
3754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3755
dabbade6
L
3756int test (int i, double x);
3757struct s1 {int (*f) (int a);};
3758struct s2 {int (*f) (double a);};
3759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3760int argc;
3761char **argv;
3762int
3763main ()
3764{
3765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770# Don't try gcc -ansi; that turns off useful extensions and
3771# breaks some systems' header files.
3772# AIX -qlanglvl=ansi
3773# Ultrix and OSF/1 -std1
3774# HP-UX 10.20 and later -Ae
3775# HP-UX older versions -Aa -D_HPUX_SOURCE
3776# SVR4 -Xc -D__EXTENSIONS__
3777for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778do
3779 CC="$ac_save_CC $ac_arg"
3780 rm -f conftest.$ac_objext
3781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -z "$ac_c_werror_flag"
3790 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_prog_cc_stdc=$ac_arg
3803break
d7040cdb 3804else
dabbade6
L
3805 echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3807
d7040cdb 3808fi
dabbade6
L
3809rm -f conftest.err conftest.$ac_objext
3810done
3811rm -f conftest.$ac_ext conftest.$ac_objext
3812CC=$ac_save_CC
d7040cdb 3813
dabbade6 3814fi
d7040cdb 3815
dabbade6
L
3816case "x$ac_cv_prog_cc_stdc" in
3817 x|xno)
3818 echo "$as_me:$LINENO: result: none needed" >&5
3819echo "${ECHO_T}none needed" >&6 ;;
252b5132 3820 *)
dabbade6
L
3821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3822echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3823 CC="$CC $ac_cv_prog_cc_stdc" ;;
3824esac
252b5132 3825
dabbade6
L
3826# Some people use a C++ compiler to compile C. Since we use `exit',
3827# in C++ we need to declare it. In case someone uses the same compiler
3828# for both compiling C and C++ we need to have the C++ compiler decide
3829# the declaration of exit, since it's the most demanding environment.
3830cat >conftest.$ac_ext <<_ACEOF
3831#ifndef __cplusplus
3832 choke me
3833#endif
3834_ACEOF
3835rm -f conftest.$ac_objext
3836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 for ac_declaration in \
3858 '' \
3859 'extern "C" void std::exit (int) throw (); using std::exit;' \
3860 'extern "C" void std::exit (int); using std::exit;' \
3861 'extern "C" void exit (int) throw ();' \
3862 'extern "C" void exit (int);' \
3863 'void exit (int);'
3864do
3865 cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
3871$ac_declaration
3872#include <stdlib.h>
3873int
3874main ()
3875{
3876exit (42);
3877 ;
3878 return 0;
3879}
3880_ACEOF
3881rm -f conftest.$ac_objext
3882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag"
3891 || test ! -s conftest.err'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 :
252b5132 3904else
dabbade6
L
3905 echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908continue
252b5132 3909fi
dabbade6
L
3910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3911 cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
3917$ac_declaration
3918int
3919main ()
3920{
3921exit (42);
3922 ;
3923 return 0;
3924}
3925_ACEOF
3926rm -f conftest.$ac_objext
3927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_c_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 break
252b5132 3949else
dabbade6
L
3950 echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3952
dabbade6
L
3953fi
3954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955done
3956rm -f conftest*
3957if test -n "$ac_declaration"; then
3958 echo '#ifdef __cplusplus' >>confdefs.h
3959 echo $ac_declaration >>confdefs.h
3960 echo '#endif' >>confdefs.h
3961fi
ac48eca1 3962
dabbade6
L
3963else
3964 echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3966
dabbade6
L
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969ac_ext=c
3970ac_cpp='$CPP $CPPFLAGS'
3971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3974
3975
dabbade6
L
3976cat >>confdefs.h <<\_ACEOF
3977#define _GNU_SOURCE 1
3978_ACEOF
d7040cdb
SE
3979
3980
3981
dabbade6
L
3982if test -n "$ac_tool_prefix"; then
3983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3984set dummy ${ac_tool_prefix}ar; ac_word=$2
3985echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987if test "${ac_cv_prog_AR+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990 if test -n "$AR"; then
3991 ac_cv_prog_AR="$AR" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_AR="${ac_tool_prefix}ar"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004done
4005done
d7040cdb 4006
dabbade6
L
4007fi
4008fi
4009AR=$ac_cv_prog_AR
4010if test -n "$AR"; then
4011 echo "$as_me:$LINENO: result: $AR" >&5
4012echo "${ECHO_T}$AR" >&6
4013else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016fi
d7040cdb 4017
dabbade6
L
4018fi
4019if test -z "$ac_cv_prog_AR"; then
4020 ac_ct_AR=$AR
4021 # Extract the first word of "ar", so it can be a program name with args.
4022set dummy ar; ac_word=$2
4023echo "$as_me:$LINENO: checking for $ac_word" >&5
4024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
979273e3 4026 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4027else
dabbade6
L
4028 if test -n "$ac_ct_AR"; then
4029 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 4030else
dabbade6
L
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_ac_ct_AR="ar"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
d7040cdb 4041 fi
dabbade6
L
4042done
4043done
4044
252b5132
RH
4045fi
4046fi
dabbade6
L
4047ac_ct_AR=$ac_cv_prog_ac_ct_AR
4048if test -n "$ac_ct_AR"; then
4049 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4050echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 4051else
dabbade6
L
4052 echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054fi
4055
4056 AR=$ac_ct_AR
4057else
4058 AR="$ac_cv_prog_AR"
4059fi
4060
4061if test -n "$ac_tool_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4063set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d7040cdb
SE
4064echo "$as_me:$LINENO: checking for $ac_word" >&5
4065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4066if test "${ac_cv_prog_RANLIB+set}" = set; then
d7040cdb
SE
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
dabbade6
L
4069 if test -n "$RANLIB"; then
4070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d7040cdb
SE
4071else
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d7040cdb
SE
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083done
4084done
4085
4086fi
4087fi
dabbade6
L
4088RANLIB=$ac_cv_prog_RANLIB
4089if test -n "$RANLIB"; then
4090 echo "$as_me:$LINENO: result: $RANLIB" >&5
4091echo "${ECHO_T}$RANLIB" >&6
d7040cdb
SE
4092else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095fi
4096
d7040cdb 4097fi
dabbade6
L
4098if test -z "$ac_cv_prog_RANLIB"; then
4099 ac_ct_RANLIB=$RANLIB
4100 # Extract the first word of "ranlib", so it can be a program name with args.
4101set dummy ranlib; ac_word=$2
d7040cdb
SE
4102echo "$as_me:$LINENO: checking for $ac_word" >&5
4103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4104if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb
SE
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
dabbade6
L
4107 if test -n "$ac_ct_RANLIB"; then
4108 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d7040cdb
SE
4109else
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4117 ac_cv_prog_ac_ct_RANLIB="ranlib"
d7040cdb
SE
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121done
4122done
4123
dabbade6 4124 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb
SE
4125fi
4126fi
dabbade6
L
4127ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4128if test -n "$ac_ct_RANLIB"; then
4129 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4130echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb
SE
4131else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134fi
4135
dabbade6
L
4136 RANLIB=$ac_ct_RANLIB
4137else
4138 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
4139fi
4140
4141
dabbade6
L
4142# Check whether --enable-shared or --disable-shared was given.
4143if test "${enable_shared+set}" = set; then
4144 enableval="$enable_shared"
4145 p=${PACKAGE-default}
4146 case $enableval in
4147 yes) enable_shared=yes ;;
4148 no) enable_shared=no ;;
4149 *)
4150 enable_shared=no
4151 # Look at the argument we got. We use all the common list separators.
4152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4153 for pkg in $enableval; do
4154 IFS="$lt_save_ifs"
4155 if test "X$pkg" = "X$p"; then
4156 enable_shared=yes
4157 fi
4158 done
4159 IFS="$lt_save_ifs"
4160 ;;
4161 esac
4162else
4163 enable_shared=no
4164fi;
d7040cdb
SE
4165
4166
4167
4168
4169
4170
d7040cdb 4171
d7040cdb 4172
d7040cdb 4173
d7040cdb 4174
d7040cdb 4175
dabbade6
L
4176macro_version='2.1a'
4177macro_revision='1.2435'
d7040cdb 4178
d7040cdb 4179
d7040cdb 4180
d7040cdb 4181
d7040cdb 4182
d7040cdb 4183
d7040cdb
SE
4184
4185
4186
4187
4188
4189
dabbade6 4190ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4191
dabbade6 4192# Set options
d7040cdb 4193
dabbade6 4194enable_dlopen=no
d7040cdb
SE
4195
4196
dabbade6 4197enable_win32_dll=no
d7040cdb
SE
4198
4199
dabbade6
L
4200
4201# Check whether --enable-static or --disable-static was given.
4202if test "${enable_static+set}" = set; then
4203 enableval="$enable_static"
4204 p=${PACKAGE-default}
4205 case $enableval in
4206 yes) enable_static=yes ;;
4207 no) enable_static=no ;;
4208 *)
4209 enable_static=no
4210 # Look at the argument we got. We use all the common list separators.
4211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4212 for pkg in $enableval; do
4213 IFS="$lt_save_ifs"
4214 if test "X$pkg" = "X$p"; then
4215 enable_static=yes
4216 fi
4217 done
4218 IFS="$lt_save_ifs"
4219 ;;
4220 esac
d7040cdb 4221else
dabbade6
L
4222 enable_static=yes
4223fi;
d7040cdb
SE
4224
4225
4226
4227
4228
d7040cdb
SE
4229
4230
4231
4232
dabbade6
L
4233# Check whether --with-pic or --without-pic was given.
4234if test "${with_pic+set}" = set; then
4235 withval="$with_pic"
4236 pic_mode="$withval"
4237else
4238 pic_mode=default
4239fi;
d7040cdb 4240
dabbade6 4241test -z "$pic_mode" && pic_mode=default
d7040cdb
SE
4242
4243
4244
4245
d7040cdb
SE
4246
4247
4248
dabbade6
L
4249# Check whether --enable-fast-install or --disable-fast-install was given.
4250if test "${enable_fast_install+set}" = set; then
4251 enableval="$enable_fast_install"
4252 p=${PACKAGE-default}
4253 case $enableval in
4254 yes) enable_fast_install=yes ;;
4255 no) enable_fast_install=no ;;
4256 *)
4257 enable_fast_install=no
4258 # Look at the argument we got. We use all the common list separators.
4259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4260 for pkg in $enableval; do
4261 IFS="$lt_save_ifs"
4262 if test "X$pkg" = "X$p"; then
4263 enable_fast_install=yes
4264 fi
4265 done
4266 IFS="$lt_save_ifs"
4267 ;;
4268 esac
4269else
4270 enable_fast_install=yes
4271fi;
4272
252b5132 4273
d7040cdb
SE
4274
4275
4276
4277
4278
4279
dabbade6
L
4280echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4281echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4282if test "${lt_cv_path_SED+set}" = set; then
979273e3 4283 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4284else
dabbade6
L
4285 # Loop through the user's path and test for sed and gsed.
4286# Then use that list of sed's as ones to test for truncation.
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for lt_ac_prog in sed gsed; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4295 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4296 fi
4297 done
4298 done
4299done
4300IFS=$as_save_IFS
4301lt_ac_max=0
4302lt_ac_count=0
4303# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4304# along with /bin/sed that truncates output.
4305for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4306 test ! -f $lt_ac_sed && continue
4307 cat /dev/null > conftest.in
4308 lt_ac_count=0
4309 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4310 # Check for GNU sed and select it if it is found.
4311 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4312 lt_cv_path_SED=$lt_ac_sed
4313 break
4314 fi
4315 while true; do
4316 cat conftest.in conftest.in >conftest.tmp
4317 mv conftest.tmp conftest.in
4318 cp conftest.in conftest.nl
4319 echo >>conftest.nl
4320 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4321 cmp -s conftest.out conftest.nl || break
4322 # 10000 chars as input seems more than enough
4323 test $lt_ac_count -gt 10 && break
4324 lt_ac_count=`expr $lt_ac_count + 1`
4325 if test $lt_ac_count -gt $lt_ac_max; then
4326 lt_ac_max=$lt_ac_count
4327 lt_cv_path_SED=$lt_ac_sed
4328 fi
4329 done
4330done
ac48eca1 4331
dabbade6 4332fi
ac48eca1 4333
dabbade6 4334SED=$lt_cv_path_SED
ac48eca1 4335
dabbade6
L
4336echo "$as_me:$LINENO: result: $SED" >&5
4337echo "${ECHO_T}$SED" >&6
ac48eca1 4338
dabbade6
L
4339test -z "$SED" && SED=sed
4340Xsed="$SED -e 1s/^X//"
d7040cdb 4341
ac48eca1 4342
87e6d782 4343
ac48eca1 4344
ac48eca1 4345
d7040cdb 4346
d7040cdb 4347
ac48eca1 4348
ac48eca1 4349
ac48eca1 4350
87e6d782 4351
dabbade6
L
4352echo "$as_me:$LINENO: checking for egrep" >&5
4353echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4354if test "${ac_cv_prog_egrep+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4358 then ac_cv_prog_egrep='grep -E'
4359 else ac_cv_prog_egrep='egrep'
4360 fi
4361fi
4362echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4363echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4364 EGREP=$ac_cv_prog_egrep
ac48eca1 4365
ac48eca1 4366
dabbade6
L
4367echo "$as_me:$LINENO: checking for fgrep" >&5
4368echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4369if test "${ac_cv_prog_fgrep+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4373 then ac_cv_prog_fgrep='grep -F'
4374 else ac_cv_prog_fgrep='fgrep'
4375 fi
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4378echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4379 FGREP=$ac_cv_prog_fgrep
ac48eca1 4380
6be7c12c 4381
dabbade6 4382test -z "$GREP" && GREP=grep
d7040cdb 4383
d7040cdb 4384
d7040cdb 4385
ac48eca1
AO
4386
4387
4388
ac48eca1 4389
ac48eca1 4390
ac48eca1 4391
ac48eca1 4392
ac48eca1 4393
ac48eca1 4394
ac48eca1 4395
ac48eca1 4396
ac48eca1 4397
ac48eca1 4398
dabbade6
L
4399
4400
4401
4402# Check whether --with-gnu-ld or --without-gnu-ld was given.
4403if test "${with_gnu_ld+set}" = set; then
4404 withval="$with_gnu_ld"
4405 test "$withval" = no || with_gnu_ld=yes
4406else
4407 with_gnu_ld=no
4408fi;
4409ac_prog=ld
4410if test "$GCC" = yes; then
4411 # Check if gcc -print-prog-name=ld gives a path.
4412 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4413echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4414 case $host in
4415 *-*-mingw*)
4416 # gcc leaves a trailing carriage return which upsets mingw
4417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4418 *)
4419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4420 esac
4421 case $ac_prog in
4422 # Accept absolute paths.
4423 [\\/]* | ?:[\\/]*)
4424 re_direlt='/[^/][^/]*/\.\./'
4425 # Canonicalize the pathname of ld
4426 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4427 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4428 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4429 done
4430 test -z "$LD" && LD="$ac_prog"
4431 ;;
4432 "")
4433 # If it fails, then pretend we aren't using GCC.
4434 ac_prog=ld
4435 ;;
4436 *)
4437 # If it is relative, then search for the first ld in PATH.
4438 with_gnu_ld=unknown
4439 ;;
4440 esac
4441elif test "$with_gnu_ld" = yes; then
4442 echo "$as_me:$LINENO: checking for GNU ld" >&5
4443echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4444else
4445 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4446echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4447fi
4448if test "${lt_cv_path_LD+set}" = set; then
979273e3 4449 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4450else
dabbade6
L
4451 if test -z "$LD"; then
4452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453 for ac_dir in $PATH; do
4454 IFS="$lt_save_ifs"
4455 test -z "$ac_dir" && ac_dir=.
4456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4457 lt_cv_path_LD="$ac_dir/$ac_prog"
4458 # Check to see if the program is GNU ld. I'd rather use --version,
4459 # but apparently some variants of GNU ld only accept -v.
4460 # Break only if it was the GNU/non-GNU ld that we prefer.
4461 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4462 *GNU* | *'with BFD'*)
4463 test "$with_gnu_ld" != no && break
4464 ;;
4465 *)
4466 test "$with_gnu_ld" != yes && break
4467 ;;
4468 esac
4469 fi
4470 done
4471 IFS="$lt_save_ifs"
ac48eca1 4472else
dabbade6 4473 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
4474fi
4475fi
dabbade6
L
4476
4477LD="$lt_cv_path_LD"
4478if test -n "$LD"; then
4479 echo "$as_me:$LINENO: result: $LD" >&5
4480echo "${ECHO_T}$LD" >&6
ac48eca1 4481else
979273e3
NN
4482 echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
ac48eca1 4484fi
dabbade6
L
4485test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4486echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4487 { (exit 1); exit 1; }; }
4488echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4489echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4490if test "${lt_cv_prog_gnu_ld+set}" = set; then
979273e3 4491 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4492else
dabbade6
L
4493 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4494case `$LD -v 2>&1 </dev/null` in
4495*GNU* | *'with BFD'*)
4496 lt_cv_prog_gnu_ld=yes
4497 ;;
4498*)
4499 lt_cv_prog_gnu_ld=no
4500 ;;
4501esac
ac48eca1 4502fi
dabbade6
L
4503echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4504echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4505with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
dabbade6
L
4516echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4517echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4518if test "${lt_cv_path_NM+set}" = set; then
979273e3 4519 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4520else
dabbade6
L
4521 if test -n "$NM"; then
4522 # Let the user override the test.
4523 lt_cv_path_NM="$NM"
ac48eca1 4524else
dabbade6
L
4525 lt_nm_to_check="${ac_tool_prefix}nm"
4526 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4527 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 4528 fi
dabbade6
L
4529 for lt_tmp_nm in $lt_nm_to_check; do
4530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4531 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4532 IFS="$lt_save_ifs"
4533 test -z "$ac_dir" && ac_dir=.
4534 tmp_nm="$ac_dir/$lt_tmp_nm"
4535 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4536 # Check to see if the nm accepts a BSD-compat flag.
4537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4538 # nm: unknown option "B" ignored
4539 # Tru64's nm complains that /dev/null is an invalid object file
4540 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4541 */dev/null* | *'Invalid file or object type'*)
4542 lt_cv_path_NM="$tmp_nm -B"
4543 break
4544 ;;
4545 *)
4546 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4547 */dev/null*)
4548 lt_cv_path_NM="$tmp_nm -p"
4549 break
4550 ;;
4551 *)
4552 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4553 continue # so that we can try to find one that supports BSD flags
4554 ;;
4555 esac
4556 ;;
4557 esac
4558 fi
4559 done
4560 IFS="$lt_save_ifs"
4561 done
4562 : ${lt_cv_path_NM=no}
ac48eca1
AO
4563fi
4564fi
dabbade6
L
4565echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4566echo "${ECHO_T}$lt_cv_path_NM" >&6
4567if test "$lt_cv_path_NM" != "no"; then
4568 NM="$lt_cv_path_NM"
ac48eca1 4569else
dabbade6
L
4570 # Didn't find any BSD compatible name lister, look for dumpbin.
4571 if test -n "$ac_tool_prefix"; then
4572 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4573 do
4574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4575set dummy $ac_tool_prefix$ac_prog; ac_word=$2
979273e3
NN
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4578if test "${ac_cv_prog_DUMPBIN+set}" = set; then
979273e3 4579 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4580else
dabbade6
L
4581 if test -n "$DUMPBIN"; then
4582 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 4583else
979273e3
NN
4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4591 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
979273e3
NN
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595done
4596done
4597
ac48eca1
AO
4598fi
4599fi
dabbade6
L
4600DUMPBIN=$ac_cv_prog_DUMPBIN
4601if test -n "$DUMPBIN"; then
4602 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4603echo "${ECHO_T}$DUMPBIN" >&6
ac48eca1 4604else
979273e3
NN
4605 echo "$as_me:$LINENO: result: no" >&5
4606echo "${ECHO_T}no" >&6
ac48eca1
AO
4607fi
4608
dabbade6
L
4609 test -n "$DUMPBIN" && break
4610 done
ac48eca1 4611fi
dabbade6
L
4612if test -z "$DUMPBIN"; then
4613 ac_ct_DUMPBIN=$DUMPBIN
4614 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4615do
4616 # Extract the first word of "$ac_prog", so it can be a program name with args.
4617set dummy $ac_prog; ac_word=$2
d7040cdb
SE
4618echo "$as_me:$LINENO: checking for $ac_word" >&5
4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 4620if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
d7040cdb 4621 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4622else
dabbade6
L
4623 if test -n "$ac_ct_DUMPBIN"; then
4624 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 4633 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7040cdb
SE
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
252b5132 4636 fi
d7040cdb
SE
4637done
4638done
252b5132 4639
d7040cdb
SE
4640fi
4641fi
dabbade6
L
4642ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4643if test -n "$ac_ct_DUMPBIN"; then
4644 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4645echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
d7040cdb
SE
4646else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649fi
4867be41 4650
dabbade6 4651 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 4652done
dabbade6 4653test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
32fba81d 4654
dabbade6 4655 DUMPBIN=$ac_ct_DUMPBIN
d7040cdb 4656fi
979273e3
NN
4657
4658
dabbade6
L
4659 if test "$DUMPBIN" != ":"; then
4660 NM="$DUMPBIN"
4661 fi
4662fi
4663test -z "$NM" && NM=nm
ac48eca1 4664
252b5132 4665
252b5132 4666
979273e3 4667
ac48eca1 4668
d7040cdb 4669
dabbade6
L
4670echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4671echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4672if test "${lt_cv_nm_interface+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675 lt_cv_nm_interface="BSD nm"
4676 echo "int some_variable = 0;" > conftest.$ac_ext
58c85be7 4677 (eval echo "\"\$as_me:4677: $ac_compile\"" >&5)
dabbade6
L
4678 (eval "$ac_compile" 2>conftest.err)
4679 cat conftest.err >&5
58c85be7 4680 (eval echo "\"\$as_me:4680: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
4681 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4682 cat conftest.err >&5
58c85be7 4683 (eval echo "\"\$as_me:4683: output\"" >&5)
dabbade6
L
4684 cat conftest.out >&5
4685 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4686 lt_cv_nm_interface="MS dumpbin"
4687 fi
4688 rm -f conftest*
4689fi
4690echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4691echo "${ECHO_T}$lt_cv_nm_interface" >&6
d7040cdb 4692
dabbade6
L
4693echo "$as_me:$LINENO: checking whether ln -s works" >&5
4694echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4695LN_S=$as_ln_s
4696if test "$LN_S" = "ln -s"; then
4697 echo "$as_me:$LINENO: result: yes" >&5
4698echo "${ECHO_T}yes" >&6
4699else
4700 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4701echo "${ECHO_T}no, using $LN_S" >&6
4702fi
4703
4704# find the maximum length of command line arguments
4705echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4706echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4707if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710 i=0
4711 teststring="ABCD"
4712
4713 case $build_os in
4714 msdosdjgpp*)
4715 # On DJGPP, this test can blow up pretty badly due to problems in libc
4716 # (any single argument exceeding 2000 bytes causes a buffer overrun
4717 # during glob expansion). Even if it were fixed, the result of this
4718 # check would be larger than it should be.
4719 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4720 ;;
4721
4722 gnu*)
4723 # Under GNU Hurd, this test is not required because there is
4724 # no limit to the length of command line arguments.
4725 # Libtool will interpret -1 as no limit whatsoever
4726 lt_cv_sys_max_cmd_len=-1;
4727 ;;
4728
4729 cygwin* | mingw*)
4730 # On Win9x/ME, this test blows up -- it succeeds, but takes
4731 # about 5 minutes as the teststring grows exponentially.
4732 # Worse, since 9x/ME are not pre-emptively multitasking,
4733 # you end up with a "frozen" computer, even though with patience
4734 # the test eventually succeeds (with a max line length of 256k).
4735 # Instead, let's just punt: use the minimum linelength reported by
4736 # all of the supported platforms: 8192 (on NT/2K/XP).
4737 lt_cv_sys_max_cmd_len=8192;
4738 ;;
4739
4740 amigaos*)
4741 # On AmigaOS with pdksh, this test takes hours, literally.
4742 # So we just punt and use a minimum line length of 8192.
4743 lt_cv_sys_max_cmd_len=8192;
4744 ;;
4745
4746 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4747 # This has been around since 386BSD, at least. Likely further.
4748 if test -x /sbin/sysctl; then
4749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4750 elif test -x /usr/sbin/sysctl; then
4751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4752 else
4753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4754 fi
4755 # And add a safety zone
4756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4758 ;;
4759
4760 interix*)
4761 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4762 lt_cv_sys_max_cmd_len=196608
4763 ;;
4764
4765 osf*)
4766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4768 # nice to cause kernel panics so lets avoid the loop below.
4769 # First set a reasonable default.
4770 lt_cv_sys_max_cmd_len=16384
4771 #
4772 if test -x /sbin/sysconfig; then
4773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4774 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4775 esac
4776 fi
4777 ;;
4778 sco3.2v5*)
4779 lt_cv_sys_max_cmd_len=102400
4780 ;;
4781 sysv5* | sco5v6* | sysv4.2uw2*)
4782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4783 if test -n "$kargmax"; then
4784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4785 else
4786 lt_cv_sys_max_cmd_len=32768
4787 fi
d7040cdb
SE
4788 ;;
4789 *)
dabbade6
L
4790 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4791 if test -n $lt_cv_sys_max_cmd_len; then
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4794 else
4795 # Make teststring a little bigger before we do anything with it.
4796 # a 1K string should be a reasonable start.
4797 for i in 1 2 3 4 5 6 7 8 ; do
4798 teststring=$teststring$teststring
4799 done
4800 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4801 # If test is not a shell built-in, we'll probably end up computing a
4802 # maximum length that is only half of the actual maximum length, but
4803 # we can't tell.
4804 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4805 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4806 test $i != 17 # 1/2 MB should be enough
4807 do
4808 i=`expr $i + 1`
4809 teststring=$teststring$teststring
4810 done
4811 # Only check the string length outside the loop.
4812 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4813 teststring=
4814 # Add a significant safety factor because C++ compilers can tack on
4815 # massive amounts of additional arguments before passing them to the
4816 # linker. It appears as though 1/2 is a usable value.
4817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4818 fi
d7040cdb
SE
4819 ;;
4820 esac
252b5132 4821
dabbade6 4822fi
252b5132 4823
dabbade6
L
4824if test -n $lt_cv_sys_max_cmd_len ; then
4825 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4826echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4827else
4828 echo "$as_me:$LINENO: result: none" >&5
4829echo "${ECHO_T}none" >&6
4830fi
4831max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4832
252b5132 4833
979273e3 4834
979273e3 4835
252b5132 4836
252b5132 4837
252b5132 4838
dabbade6
L
4839: ${CP="cp -f"}
4840: ${MV="mv -f"}
4841: ${RM="rm -f"}
252b5132 4842
dabbade6
L
4843echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4844echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4845# Try some XSI features
4846xsi_shell=no
4847( _lt_dummy="a/b/c"
4848 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4849 = c,a/b,, ) >/dev/null 2>&1 \
4850 && xsi_shell=yes
4851echo "$as_me:$LINENO: result: $xsi_shell" >&5
4852echo "${ECHO_T}$xsi_shell" >&6
252b5132 4853
252b5132 4854
dabbade6
L
4855echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4856echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4857lt_shell_append=no
4858( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4859 >/dev/null 2>&1 \
4860 && lt_shell_append=yes
4861echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4862echo "${ECHO_T}$lt_shell_append" >&6
252b5132 4863
ac48eca1 4864
dabbade6
L
4865if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4866 lt_unset=unset
4867else
4868 lt_unset=false
4869fi
979273e3
NN
4870
4871
4872
4873
ac48eca1 4874
dabbade6
L
4875# test EBCDIC or ASCII
4876case `echo X|tr X '\101'` in
4877 A) # ASCII based system
4878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4879 lt_SP2NL='tr \040 \012'
4880 lt_NL2SP='tr \015\012 \040\040'
4881 ;;
4882 *) # EBCDIC based system
4883 lt_SP2NL='tr \100 \n'
4884 lt_NL2SP='tr \r\n \100\100'
4885 ;;
4886esac
9e9b66a9 4887
1ad12f97 4888
1ad12f97 4889
9e9b66a9 4890
1ad12f97 4891
a541e3ce 4892
9e9b66a9 4893
a2d91340
AC
4894
4895
dabbade6
L
4896echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4897echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4898if test "${lt_cv_ld_reload_flag+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901 lt_cv_ld_reload_flag='-r'
4902fi
4903echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4904echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4905reload_flag=$lt_cv_ld_reload_flag
4906case $reload_flag in
4907"" | " "*) ;;
4908*) reload_flag=" $reload_flag" ;;
4909esac
4910reload_cmds='$LD$reload_flag -o $output$reload_objs'
4911case $host_os in
4912 darwin*)
4913 if test "$GCC" = yes; then
4914 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4915 else
4916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4917 fi
4918 ;;
4919esac
9e9b66a9
AM
4920
4921
4922
252b5132 4923
252b5132 4924
252b5132 4925
252b5132 4926
252b5132 4927
d7040cdb
SE
4928
4929
dabbade6
L
4930echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4931echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4932if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb 4933 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4934else
dabbade6
L
4935 lt_cv_file_magic_cmd='$MAGIC_CMD'
4936lt_cv_file_magic_test_file=
4937lt_cv_deplibs_check_method='unknown'
4938# Need to set the preceding variable on all platforms that support
4939# interlibrary dependencies.
4940# 'none' -- dependencies not supported.
4941# `unknown' -- same as none, but documents that we really don't know.
4942# 'pass_all' -- all dependencies passed with no checks.
4943# 'test_compile' -- check by making test program.
4944# 'file_magic [[regex]]' -- check by looking for files in library path
4945# which responds to the $file_magic_cmd with a given extended regex.
4946# If you have `file' or equivalent on your system and you're not sure
4947# whether `pass_all' will *always* work, you probably want this one.
8ae85421 4948
dabbade6 4949case $host_os in
50e7d84b 4950aix[4-9]*)
dabbade6
L
4951 lt_cv_deplibs_check_method=pass_all
4952 ;;
979273e3 4953
dabbade6
L
4954beos*)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
24443139 4957
dabbade6
L
4958bsdi[45]*)
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4960 lt_cv_file_magic_cmd='/usr/bin/file -L'
4961 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 4962 ;;
dabbade6
L
4963
4964cygwin*)
4965 # func_win32_libid is a shell function defined in ltmain.sh
4966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4967 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 4968 ;;
dabbade6
L
4969
4970mingw* | pw32*)
4971 # Base MSYS/MinGW do not provide the 'file' command needed by
4972 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4973 # unless we find 'file', for example because we are cross-compiling.
4974 if ( file / ) >/dev/null 2>&1; then
4975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4976 lt_cv_file_magic_cmd='func_win32_libid'
4977 else
4978 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4979 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
4980 fi
4981 ;;
dabbade6
L
4982
4983darwin* | rhapsody*)
4984 lt_cv_deplibs_check_method=pass_all
d7040cdb 4985 ;;
dabbade6
L
4986
4987freebsd* | dragonfly*)
4988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4989 case $host_cpu in
4990 i*86 )
4991 # Not sure whether the presence of OpenBSD here was a mistake.
4992 # Let's accept both of them until this is cleared up.
4993 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4994 lt_cv_file_magic_cmd=/usr/bin/file
4995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4996 ;;
4997 esac
4998 else
4999 lt_cv_deplibs_check_method=pass_all
5000 fi
d7040cdb 5001 ;;
dabbade6
L
5002
5003gnu*)
5004 lt_cv_deplibs_check_method=pass_all
d7040cdb 5005 ;;
dabbade6
L
5006
5007hpux10.20* | hpux11*)
5008 lt_cv_file_magic_cmd=/usr/bin/file
5009 case $host_cpu in
5010 ia64*)
5011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5013 ;;
5014 hppa*64*)
5015 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]'
5016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5017 ;;
5018 *)
5019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5020 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5021 ;;
5022 esac
d7040cdb 5023 ;;
24443139 5024
dabbade6
L
5025interix[3-9]*)
5026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5028 ;;
24443139 5029
dabbade6
L
5030irix5* | irix6* | nonstopux*)
5031 case $LD in
5032 *-32|*"-32 ") libmagic=32-bit;;
5033 *-n32|*"-n32 ") libmagic=N32;;
5034 *-64|*"-64 ") libmagic=64-bit;;
5035 *) libmagic=never-match;;
5036 esac
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
8ae85421 5039
dabbade6
L
5040# This must be Linux ELF.
5041linux* | k*bsd*-gnu)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
24443139 5044
dabbade6
L
5045netbsd*)
5046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5048 else
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5050 fi
d7040cdb 5051 ;;
24443139 5052
dabbade6
L
5053newos6*)
5054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5055 lt_cv_file_magic_cmd=/usr/bin/file
5056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5057 ;;
d7040cdb 5058
dabbade6
L
5059*nto* | *qnx*)
5060 lt_cv_deplibs_check_method=pass_all
5061 ;;
d7040cdb 5062
dabbade6
L
5063openbsd*)
5064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 5066 else
dabbade6 5067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 5068 fi
dabbade6 5069 ;;
24443139 5070
dabbade6
L
5071osf3* | osf4* | osf5*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
24443139 5074
dabbade6
L
5075rdos*)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
81172ff2 5078
dabbade6
L
5079solaris*)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
81172ff2 5082
dabbade6
L
5083sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5084 lt_cv_deplibs_check_method=pass_all
5085 ;;
252b5132 5086
dabbade6
L
5087sysv4 | sysv4.3*)
5088 case $host_vendor in
5089 motorola)
5090 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]'
5091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5092 ;;
5093 ncr)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096 sequent)
5097 lt_cv_file_magic_cmd='/bin/file'
5098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5099 ;;
5100 sni)
5101 lt_cv_file_magic_cmd='/bin/file'
5102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5103 lt_cv_file_magic_test_file=/lib/libc.so
5104 ;;
5105 siemens)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108 pc)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111 esac
5112 ;;
252b5132 5113
dabbade6
L
5114tpf*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117esac
979273e3 5118
dabbade6
L
5119fi
5120echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5121echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5122file_magic_cmd=$lt_cv_file_magic_cmd
5123deplibs_check_method=$lt_cv_deplibs_check_method
5124test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5125
979273e3 5126
979273e3 5127
dabbade6
L
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5139set dummy ${ac_tool_prefix}ar; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_AR+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 if test -n "$AR"; then
5146 ac_cv_prog_AR="$AR" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_AR="${ac_tool_prefix}ar"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
252b5132 5158 fi
979273e3 5159done
dabbade6 5160done
979273e3 5161
dabbade6
L
5162fi
5163fi
5164AR=$ac_cv_prog_AR
5165if test -n "$AR"; then
5166 echo "$as_me:$LINENO: result: $AR" >&5
5167echo "${ECHO_T}$AR" >&6
5168else
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
979273e3 5171fi
d7040cdb 5172
252b5132 5173fi
dabbade6
L
5174if test -z "$ac_cv_prog_AR"; then
5175 ac_ct_AR=$AR
5176 # Extract the first word of "ar", so it can be a program name with args.
5177set dummy ar; ac_word=$2
5178echo "$as_me:$LINENO: checking for $ac_word" >&5
5179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 5182else
dabbade6
L
5183 if test -n "$ac_ct_AR"; then
5184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_ac_ct_AR="ar"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197done
5198done
5199
5200 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5201fi
5202fi
5203ac_ct_AR=$ac_cv_prog_ac_ct_AR
5204if test -n "$ac_ct_AR"; then
5205 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5206echo "${ECHO_T}$ac_ct_AR" >&6
5207else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
252b5132
RH
5210fi
5211
dabbade6
L
5212 AR=$ac_ct_AR
5213else
5214 AR="$ac_cv_prog_AR"
5215fi
252b5132 5216
dabbade6
L
5217test -z "$AR" && AR=ar
5218test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 5219
979273e3 5220
979273e3 5221
979273e3 5222
252b5132 5223
979273e3 5224
979273e3 5225
252b5132 5226
979273e3 5227
979273e3 5228
979273e3 5229
dabbade6
L
5230if test -n "$ac_tool_prefix"; then
5231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}strip; ac_word=$2
5233echo "$as_me:$LINENO: checking for $ac_word" >&5
5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235if test "${ac_cv_prog_STRIP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 if test -n "$STRIP"; then
5239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252done
5253done
979273e3 5254
dabbade6
L
5255fi
5256fi
5257STRIP=$ac_cv_prog_STRIP
5258if test -n "$STRIP"; then
5259 echo "$as_me:$LINENO: result: $STRIP" >&5
5260echo "${ECHO_T}$STRIP" >&6
5261else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264fi
979273e3 5265
dabbade6
L
5266fi
5267if test -z "$ac_cv_prog_STRIP"; then
5268 ac_ct_STRIP=$STRIP
5269 # Extract the first word of "strip", so it can be a program name with args.
5270set dummy strip; ac_word=$2
5271echo "$as_me:$LINENO: checking for $ac_word" >&5
5272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276 if test -n "$ac_ct_STRIP"; then
5277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_ac_ct_STRIP="strip"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290done
5291done
979273e3 5292
dabbade6
L
5293 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5294fi
5295fi
5296ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5297if test -n "$ac_ct_STRIP"; then
5298 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5299echo "${ECHO_T}$ac_ct_STRIP" >&6
5300else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
979273e3 5304
dabbade6
L
5305 STRIP=$ac_ct_STRIP
5306else
5307 STRIP="$ac_cv_prog_STRIP"
5308fi
979273e3 5309
dabbade6 5310test -z "$STRIP" && STRIP=:
979273e3 5311
d7040cdb 5312
979273e3 5313
d7040cdb 5314
979273e3 5315
979273e3 5316
dabbade6
L
5317if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5319set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5320echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322if test "${ac_cv_prog_RANLIB+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 5324else
dabbade6
L
5325 if test -n "$RANLIB"; then
5326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339done
5340done
979273e3 5341
979273e3 5342fi
979273e3 5343fi
dabbade6
L
5344RANLIB=$ac_cv_prog_RANLIB
5345if test -n "$RANLIB"; then
5346 echo "$as_me:$LINENO: result: $RANLIB" >&5
5347echo "${ECHO_T}$RANLIB" >&6
5348else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351fi
d7040cdb 5352
d7040cdb 5353fi
dabbade6
L
5354if test -z "$ac_cv_prog_RANLIB"; then
5355 ac_ct_RANLIB=$RANLIB
5356 # Extract the first word of "ranlib", so it can be a program name with args.
5357set dummy ranlib; ac_word=$2
5358echo "$as_me:$LINENO: checking for $ac_word" >&5
5359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
979273e3
NN
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
dabbade6
L
5363 if test -n "$ac_ct_RANLIB"; then
5364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
d7040cdb 5368do
dabbade6
L
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_RANLIB="ranlib"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
979273e3 5376 fi
dabbade6
L
5377done
5378done
5379
5380 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
979273e3 5381fi
dabbade6
L
5382fi
5383ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5384if test -n "$ac_ct_RANLIB"; then
5385 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5386echo "${ECHO_T}$ac_ct_RANLIB" >&6
979273e3 5387else
dabbade6
L
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
d7040cdb 5390fi
d7040cdb 5391
dabbade6 5392 RANLIB=$ac_ct_RANLIB
d7040cdb 5393else
dabbade6 5394 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5395fi
979273e3 5396
dabbade6 5397test -z "$RANLIB" && RANLIB=:
979273e3 5398
252b5132 5399
252b5132 5400
d7040cdb 5401
d7040cdb 5402
d7040cdb 5403
dabbade6
L
5404# Determine commands to create old-style static archives.
5405old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5406old_postinstall_cmds='chmod 644 $oldlib'
5407old_postuninstall_cmds=
d7040cdb 5408
dabbade6
L
5409if test -n "$RANLIB"; then
5410 case $host_os in
5411 openbsd*)
5412 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5413 ;;
5414 *)
5415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5416 ;;
5417 esac
5418 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
5419fi
5420
d7040cdb
SE
5421
5422
d7040cdb 5423
d7040cdb 5424
252b5132 5425
d7040cdb 5426
d7040cdb 5427
d7040cdb
SE
5428
5429
5430
d7040cdb 5431
d7040cdb 5432
d7040cdb 5433
252b5132 5434
d7040cdb
SE
5435
5436
5437
d7040cdb 5438
d7040cdb
SE
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
dabbade6
L
5454# If no C compiler was specified, use CC.
5455LTCC=${LTCC-"$CC"}
d7040cdb 5456
dabbade6
L
5457# If no C compiler flags were specified, use CFLAGS.
5458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5459
dabbade6
L
5460# Allow CC to be a program name with arguments.
5461compiler=$CC
d7040cdb
SE
5462
5463
dabbade6
L
5464# Check for command to grab the raw symbol name followed by C symbol from nm.
5465echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5466echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5467if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
d7040cdb 5470
dabbade6
L
5471# These are sane defaults that work on at least a few old systems.
5472# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5473
dabbade6
L
5474# Character class describing NM global symbol codes.
5475symcode='[BCDEGRST]'
d7040cdb 5476
dabbade6
L
5477# Regexp to match symbols that can be accessed directly from C.
5478sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5479
dabbade6
L
5480# Define system-specific variables.
5481case $host_os in
5482aix*)
5483 symcode='[BCDT]'
5484 ;;
5485cygwin* | mingw* | pw32*)
5486 symcode='[ABCDGISTW]'
5487 ;;
5488hpux*)
5489 if test "$host_cpu" = ia64; then
5490 symcode='[ABCDEGRST]'
5491 fi
5492 ;;
5493irix* | nonstopux*)
5494 symcode='[BCDEGRST]'
5495 ;;
5496osf*)
5497 symcode='[BCDEGQRST]'
5498 ;;
5499solaris*)
5500 symcode='[BDRT]'
5501 ;;
5502sco3.2v5*)
5503 symcode='[DT]'
5504 ;;
5505sysv4.2uw2*)
5506 symcode='[DT]'
5507 ;;
5508sysv5* | sco5v6* | unixware* | OpenUNIX*)
5509 symcode='[ABDT]'
5510 ;;
5511sysv4)
5512 symcode='[DFNSTU]'
5513 ;;
5514esac
5515
5516# If we're using GNU nm, then use its standard symbol codes.
5517case `$NM -V 2>&1` in
5518*GNU* | *'with BFD'*)
5519 symcode='[ABCDGIRSTW]' ;;
5520esac
d7040cdb 5521
dabbade6
L
5522# Transform an extracted symbol line into a proper C declaration.
5523# Some systems (esp. on ia64) link data and code symbols differently,
5524# so use this general approach.
5525lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5526
dabbade6
L
5527# Transform an extracted symbol line into symbol name and symbol address
5528lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5529
dabbade6
L
5530# Handle CRLF in mingw tool chain
5531opt_cr=
5532case $build_os in
5533mingw*)
5534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5535 ;;
5536esac
5537
5538# Try without a prefix underscore, then with it.
5539for ac_symprfx in "" "_"; do
d7040cdb 5540
dabbade6
L
5541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5542 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5543
dabbade6
L
5544 # Write the raw and C identifiers.
5545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5546 # Fake it for dumpbin and say T for any non-static function
5547 # and D for any global variable.
5548 # Also find C++ and __fastcall symbols from MSVC++,
5549 # which start with @ or ?.
5550 lt_cv_sys_global_symbol_pipe="$AWK '"\
5551" {last_section=section; section=\$ 3};"\
5552" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5553" \$ 0!~/External *\|/{next};"\
5554" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5555" {if(hide[section]) next};"\
5556" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5557" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5558" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5559" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5560" ' prfx=^$ac_symprfx"
5561 else
5562 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5563 fi
d7040cdb 5564
dabbade6
L
5565 # Check to see that the pipe works correctly.
5566 pipe_works=no
d7040cdb 5567
dabbade6
L
5568 rm -f conftest*
5569 cat > conftest.$ac_ext <<_LT_EOF
5570#ifdef __cplusplus
5571extern "C" {
5572#endif
5573char nm_test_var;
5574void nm_test_func(void);
5575void nm_test_func(void){}
5576#ifdef __cplusplus
5577}
5578#endif
5579int main(){nm_test_var='a';nm_test_func();return(0);}
5580_LT_EOF
d7040cdb 5581
dabbade6
L
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 # Now try to grab the symbols.
5588 nlist=conftest.nm
5589 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && test -s "$nlist"; then
5594 # Try sorting and uniquifying the output.
5595 if sort "$nlist" | uniq > "$nlist"T; then
5596 mv -f "$nlist"T "$nlist"
5597 else
5598 rm -f "$nlist"T
5599 fi
d7040cdb 5600
dabbade6
L
5601 # Make sure that we snagged all the symbols we need.
5602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5604 cat <<_LT_EOF > conftest.$ac_ext
5605#ifdef __cplusplus
5606extern "C" {
5607#endif
d7040cdb 5608
dabbade6
L
5609_LT_EOF
5610 # Now generate the symbol file.
5611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5612
dabbade6 5613 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5614
dabbade6
L
5615/* The mapping between symbol names and symbols. */
5616const struct {
5617 const char *name;
5618 void *address;
5619}
5620lt__PROGRAM__LTX_preloaded_symbols[] =
5621{
5622 { "@PROGRAM@", (void *) 0 },
5623_LT_EOF
5624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5625 cat <<\_LT_EOF >> conftest.$ac_ext
5626 {0, (void *) 0}
5627};
d7040cdb 5628
dabbade6
L
5629/* This works around a problem in FreeBSD linker */
5630#ifdef FREEBSD_WORKAROUND
5631static const void *lt_preloaded_setup() {
5632 return lt__PROGRAM__LTX_preloaded_symbols;
5633}
5634#endif
d7040cdb 5635
dabbade6
L
5636#ifdef __cplusplus
5637}
5638#endif
5639_LT_EOF
5640 # Now try linking the two files.
5641 mv conftest.$ac_objext conftstm.$ac_objext
5642 lt_save_LIBS="$LIBS"
5643 lt_save_CFLAGS="$CFLAGS"
5644 LIBS="conftstm.$ac_objext"
5645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647 (eval $ac_link) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5651 pipe_works=yes
5652 fi
5653 LIBS="$lt_save_LIBS"
5654 CFLAGS="$lt_save_CFLAGS"
5655 else
5656 echo "cannot find nm_test_func in $nlist" >&5
5657 fi
5658 else
5659 echo "cannot find nm_test_var in $nlist" >&5
5660 fi
5661 else
5662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5663 fi
5664 else
5665 echo "$progname: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5667 fi
5668 rm -f conftest* conftst*
d7040cdb 5669
dabbade6
L
5670 # Do not use the global_symbol_pipe unless it works.
5671 if test "$pipe_works" = yes; then
5672 break
5673 else
5674 lt_cv_sys_global_symbol_pipe=
5675 fi
5676done
d7040cdb 5677
d7040cdb
SE
5678fi
5679
dabbade6
L
5680if test -z "$lt_cv_sys_global_symbol_pipe"; then
5681 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 5682fi
dabbade6
L
5683if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5684 echo "$as_me:$LINENO: result: failed" >&5
5685echo "${ECHO_T}failed" >&6
5686else
5687 echo "$as_me:$LINENO: result: ok" >&5
5688echo "${ECHO_T}ok" >&6
d7040cdb 5689fi
d7040cdb
SE
5690
5691
d7040cdb
SE
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
dabbade6
L
5707# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5708if test "${enable_libtool_lock+set}" = set; then
5709 enableval="$enable_libtool_lock"
d7040cdb 5710
dabbade6
L
5711fi;
5712test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5713
dabbade6
L
5714# Some flags need to be propagated to the compiler or linker for good
5715# libtool support.
5716case $host in
5717ia64-*-hpux*)
5718 # Find out which ABI we are using.
5719 echo 'int i;' > conftest.$ac_ext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721 (eval $ac_compile) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; then
5725 case `/usr/bin/file conftest.$ac_objext` in
5726 *ELF-32*)
5727 HPUX_IA64_MODE="32"
5728 ;;
5729 *ELF-64*)
5730 HPUX_IA64_MODE="64"
5731 ;;
5732 esac
d7040cdb 5733 fi
dabbade6 5734 rm -rf conftest*
d7040cdb 5735 ;;
dabbade6
L
5736*-*-irix6*)
5737 # Find out which ABI we are using.
58c85be7 5738 echo '#line 5738 "configure"' > conftest.$ac_ext
dabbade6
L
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; then
5744 if test "$lt_cv_prog_gnu_ld" = yes; then
5745 case `/usr/bin/file conftest.$ac_objext` in
5746 *32-bit*)
5747 LD="${LD-ld} -melf32bsmip"
5748 ;;
5749 *N32*)
5750 LD="${LD-ld} -melf32bmipn32"
5751 ;;
5752 *64-bit*)
5753 LD="${LD-ld} -melf64bmip"
5754 ;;
5755 esac
5756 else
5757 case `/usr/bin/file conftest.$ac_objext` in
5758 *32-bit*)
5759 LD="${LD-ld} -32"
5760 ;;
5761 *N32*)
5762 LD="${LD-ld} -n32"
5763 ;;
5764 *64-bit*)
5765 LD="${LD-ld} -64"
5766 ;;
5767 esac
5768 fi
5769 fi
5770 rm -rf conftest*
d7040cdb 5771 ;;
d7040cdb 5772
dabbade6
L
5773x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5774s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5775 # Find out which ABI we are using.
5776 echo 'int i;' > conftest.$ac_ext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; then
5782 case `/usr/bin/file conftest.o` in
5783 *32-bit*)
5784 case $host in
5785 x86_64-*kfreebsd*-gnu)
5786 LD="${LD-ld} -m elf_i386_fbsd"
5787 ;;
5788 x86_64-*linux*)
5789 LD="${LD-ld} -m elf_i386"
5790 ;;
5791 ppc64-*linux*|powerpc64-*linux*)
5792 LD="${LD-ld} -m elf32ppclinux"
5793 ;;
5794 s390x-*linux*)
5795 LD="${LD-ld} -m elf_s390"
5796 ;;
5797 sparc64-*linux*)
5798 LD="${LD-ld} -m elf32_sparc"
5799 ;;
d7040cdb 5800 esac
dabbade6
L
5801 ;;
5802 *64-bit*)
5803 case $host in
5804 x86_64-*kfreebsd*-gnu)
5805 LD="${LD-ld} -m elf_x86_64_fbsd"
5806 ;;
5807 x86_64-*linux*)
5808 LD="${LD-ld} -m elf_x86_64"
5809 ;;
5810 ppc*-*linux*|powerpc*-*linux*)
5811 LD="${LD-ld} -m elf64ppc"
5812 ;;
5813 s390*-*linux*|s390*-*tpf*)
5814 LD="${LD-ld} -m elf64_s390"
5815 ;;
5816 sparc*-*linux*)
5817 LD="${LD-ld} -m elf64_sparc"
5818 ;;
5819 esac
5820 ;;
5821 esac
5822 fi
5823 rm -rf conftest*
d7040cdb 5824 ;;
d7040cdb 5825
dabbade6
L
5826*-*-sco3.2v5*)
5827 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5828 SAVE_CFLAGS="$CFLAGS"
5829 CFLAGS="$CFLAGS -belf"
5830 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5831echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5832if test "${lt_cv_cc_needs_belf+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5834else
dabbade6
L
5835 ac_ext=c
5836ac_cpp='$CPP $CPPFLAGS'
5837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5840
dabbade6
L
5841 cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
d7040cdb 5847
dabbade6
L
5848int
5849main ()
5850{
d7040cdb 5851
dabbade6
L
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856rm -f conftest.$ac_objext conftest$ac_exeext
5857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858 (eval $ac_link) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest$ac_exeext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 lt_cv_cc_needs_belf=yes
5879else
5880 echo "$as_me: failed program was:" >&5
5881sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5882
dabbade6
L
5883lt_cv_cc_needs_belf=no
5884fi
5885rm -f conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5887 ac_ext=c
5888ac_cpp='$CPP $CPPFLAGS'
5889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5892
d7040cdb 5893fi
dabbade6
L
5894echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5895echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5896 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5897 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5898 CFLAGS="$SAVE_CFLAGS"
d7040cdb 5899 fi
dabbade6
L
5900 ;;
5901sparc*-*solaris*)
5902 # Find out which ABI we are using.
5903 echo 'int i;' > conftest.$ac_ext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; then
5909 case `/usr/bin/file conftest.o` in
5910 *64-bit*)
5911 case $lt_cv_prog_gnu_ld in
5912 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5913 *) LD="${LD-ld} -64" ;;
5914 esac
5915 ;;
5916 esac
d7040cdb 5917 fi
dabbade6 5918 rm -rf conftest*
d7040cdb
SE
5919 ;;
5920esac
5921
dabbade6 5922need_locks="$enable_libtool_lock"
d7040cdb 5923
d7040cdb
SE
5924ac_ext=c
5925ac_cpp='$CPP $CPPFLAGS'
5926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928ac_compiler_gnu=$ac_cv_c_compiler_gnu
dabbade6
L
5929echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5930echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5931# On Suns, sometimes $CPP names a directory.
5932if test -n "$CPP" && test -d "$CPP"; then
5933 CPP=
5934fi
5935if test -z "$CPP"; then
5936 if test "${ac_cv_prog_CPP+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939 # Double quotes because CPP needs to be expanded
5940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5941 do
5942 ac_preproc_ok=false
5943for ac_c_preproc_warn_flag in '' yes
5944do
5945 # Use a header file that comes with gcc, so configuring glibc
5946 # with a fresh cross-compiler works.
5947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5948 # <limits.h> exists even on freestanding compilers.
5949 # On the NeXT, cc -E runs the code through the compiler's parser,
5950 # not just through cpp. "Syntax error" is here to catch this case.
5951 cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h. */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h. */
5957#ifdef __STDC__
5958# include <limits.h>
5959#else
5960# include <assert.h>
5961#endif
5962 Syntax error
5963_ACEOF
5964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } >/dev/null; then
5972 if test -s conftest.err; then
5973 ac_cpp_err=$ac_c_preproc_warn_flag
5974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5975 else
5976 ac_cpp_err=
5977 fi
5978else
5979 ac_cpp_err=yes
5980fi
5981if test -z "$ac_cpp_err"; then
5982 :
5983else
5984 echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5986
dabbade6
L
5987 # Broken: fails on valid input.
5988continue
5989fi
5990rm -f conftest.err conftest.$ac_ext
d7040cdb 5991
dabbade6
L
5992 # OK, works on sane cases. Now check whether non-existent headers
5993 # can be detected and how.
5994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h. */
6000#include <ac_nonexistent.h>
6001_ACEOF
6002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null; then
6010 if test -s conftest.err; then
6011 ac_cpp_err=$ac_c_preproc_warn_flag
6012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6013 else
6014 ac_cpp_err=
6015 fi
6016else
6017 ac_cpp_err=yes
6018fi
6019if test -z "$ac_cpp_err"; then
6020 # Broken: success on invalid input.
6021continue
6022else
6023 echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6025
dabbade6
L
6026 # Passes both tests.
6027ac_preproc_ok=:
6028break
6029fi
6030rm -f conftest.err conftest.$ac_ext
d7040cdb 6031
dabbade6
L
6032done
6033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6034rm -f conftest.err conftest.$ac_ext
6035if $ac_preproc_ok; then
6036 break
6037fi
d7040cdb 6038
dabbade6
L
6039 done
6040 ac_cv_prog_CPP=$CPP
d7040cdb 6041
dabbade6
L
6042fi
6043 CPP=$ac_cv_prog_CPP
6044else
6045 ac_cv_prog_CPP=$CPP
6046fi
6047echo "$as_me:$LINENO: result: $CPP" >&5
6048echo "${ECHO_T}$CPP" >&6
6049ac_preproc_ok=false
6050for ac_c_preproc_warn_flag in '' yes
6051do
6052 # Use a header file that comes with gcc, so configuring glibc
6053 # with a fresh cross-compiler works.
6054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055 # <limits.h> exists even on freestanding compilers.
6056 # On the NeXT, cc -E runs the code through the compiler's parser,
6057 # not just through cpp. "Syntax error" is here to catch this case.
6058 cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
6064#ifdef __STDC__
6065# include <limits.h>
6066#else
6067# include <assert.h>
6068#endif
6069 Syntax error
6070_ACEOF
6071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } >/dev/null; then
6079 if test -s conftest.err; then
6080 ac_cpp_err=$ac_c_preproc_warn_flag
6081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6082 else
6083 ac_cpp_err=
6084 fi
6085else
6086 ac_cpp_err=yes
6087fi
6088if test -z "$ac_cpp_err"; then
6089 :
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6093
dabbade6
L
6094 # Broken: fails on valid input.
6095continue
6096fi
6097rm -f conftest.err conftest.$ac_ext
d7040cdb 6098
dabbade6
L
6099 # OK, works on sane cases. Now check whether non-existent headers
6100 # can be detected and how.
6101 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107#include <ac_nonexistent.h>
6108_ACEOF
6109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } >/dev/null; then
6117 if test -s conftest.err; then
6118 ac_cpp_err=$ac_c_preproc_warn_flag
6119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6120 else
6121 ac_cpp_err=
6122 fi
6123else
6124 ac_cpp_err=yes
6125fi
6126if test -z "$ac_cpp_err"; then
6127 # Broken: success on invalid input.
6128continue
6129else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6132
dabbade6
L
6133 # Passes both tests.
6134ac_preproc_ok=:
6135break
6136fi
6137rm -f conftest.err conftest.$ac_ext
d7040cdb 6138
dabbade6
L
6139done
6140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6141rm -f conftest.err conftest.$ac_ext
6142if $ac_preproc_ok; then
6143 :
6144else
6145 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6146See \`config.log' for more details." >&5
6147echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6148See \`config.log' for more details." >&2;}
6149 { (exit 1); exit 1; }; }
6150fi
d7040cdb 6151
dabbade6
L
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6157
d7040cdb 6158
dabbade6
L
6159echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6160echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6161if test "${ac_cv_header_stdc+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h. */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h. */
6170#include <stdlib.h>
6171#include <stdarg.h>
6172#include <string.h>
6173#include <float.h>
d7040cdb 6174
dabbade6
L
6175int
6176main ()
6177{
d7040cdb 6178
dabbade6
L
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext
6184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_header_stdc=yes
d7040cdb 6206else
dabbade6
L
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6209
dabbade6 6210ac_cv_header_stdc=no
d7040cdb 6211fi
dabbade6 6212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6213
dabbade6
L
6214if test $ac_cv_header_stdc = yes; then
6215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6216 cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h. */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h. */
6222#include <string.h>
6223
6224_ACEOF
6225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 $EGREP "memchr" >/dev/null 2>&1; then
6227 :
d7040cdb 6228else
dabbade6 6229 ac_cv_header_stdc=no
d7040cdb 6230fi
dabbade6 6231rm -f conftest*
d7040cdb
SE
6232
6233fi
6234
dabbade6
L
6235if test $ac_cv_header_stdc = yes; then
6236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6237 cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
6243#include <stdlib.h>
d7040cdb 6244
dabbade6
L
6245_ACEOF
6246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247 $EGREP "free" >/dev/null 2>&1; then
6248 :
6249else
6250 ac_cv_header_stdc=no
6251fi
6252rm -f conftest*
d7040cdb 6253
dabbade6 6254fi
d7040cdb 6255
dabbade6
L
6256if test $ac_cv_header_stdc = yes; then
6257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6258 if test "$cross_compiling" = yes; then
6259 :
6260else
6261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267#include <ctype.h>
6268#if ((' ' & 0x0FF) == 0x020)
6269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6271#else
6272# define ISLOWER(c) \
6273 (('a' <= (c) && (c) <= 'i') \
6274 || ('j' <= (c) && (c) <= 'r') \
6275 || ('s' <= (c) && (c) <= 'z'))
6276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6277#endif
d7040cdb 6278
dabbade6
L
6279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6280int
6281main ()
6282{
6283 int i;
6284 for (i = 0; i < 256; i++)
6285 if (XOR (islower (i), ISLOWER (i))
6286 || toupper (i) != TOUPPER (i))
6287 exit(2);
6288 exit (0);
6289}
6290_ACEOF
6291rm -f conftest$ac_exeext
6292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 :
6303else
6304 echo "$as_me: program exited with status $ac_status" >&5
6305echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6307
dabbade6
L
6308( exit $ac_status )
6309ac_cv_header_stdc=no
6310fi
6311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6312fi
6313fi
6314fi
6315echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6316echo "${ECHO_T}$ac_cv_header_stdc" >&6
6317if test $ac_cv_header_stdc = yes; then
d7040cdb 6318
dabbade6
L
6319cat >>confdefs.h <<\_ACEOF
6320#define STDC_HEADERS 1
6321_ACEOF
d7040cdb 6322
dabbade6 6323fi
d7040cdb 6324
dabbade6 6325# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6326
d7040cdb 6327
d7040cdb 6328
d7040cdb 6329
d7040cdb 6330
d7040cdb 6331
d7040cdb 6332
d7040cdb 6333
d7040cdb 6334
dabbade6
L
6335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6336 inttypes.h stdint.h unistd.h
6337do
6338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6339echo "$as_me:$LINENO: checking for $ac_header" >&5
6340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6341if eval "test \"\${$as_ac_Header+set}\" = set"; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h. */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h. */
6350$ac_includes_default
d7040cdb 6351
dabbade6
L
6352#include <$ac_header>
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 eval "$as_ac_Header=yes"
6377else
6378 echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6380
dabbade6
L
6381eval "$as_ac_Header=no"
6382fi
6383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384fi
6385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390_ACEOF
d7040cdb 6391
dabbade6 6392fi
d7040cdb 6393
dabbade6 6394done
d7040cdb 6395
d7040cdb 6396
d7040cdb 6397
dabbade6
L
6398for ac_header in dlfcn.h
6399do
6400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401echo "$as_me:$LINENO: checking for $ac_header" >&5
6402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406 cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h. */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h. */
6412$ac_includes_default
d7040cdb 6413
dabbade6
L
6414#include <$ac_header>
6415_ACEOF
6416rm -f conftest.$ac_objext
6417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 eval "$as_ac_Header=yes"
6439else
6440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6442
dabbade6
L
6443eval "$as_ac_Header=no"
6444fi
6445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6446fi
6447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6449if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450 cat >>confdefs.h <<_ACEOF
6451#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452_ACEOF
d7040cdb 6453
dabbade6 6454fi
d7040cdb 6455
dabbade6 6456done
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
dabbade6
L
6460# This can be used to rebuild libtool when needed
6461LIBTOOL_DEPS="$ltmain"
d7040cdb 6462
dabbade6
L
6463# Always use our own libtool.
6464LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6465
d7040cdb 6466
d7040cdb 6467
d7040cdb
SE
6468
6469
6470
6471
6472
6473
d7040cdb 6474
d7040cdb 6475
d7040cdb 6476
d7040cdb
SE
6477
6478
6479
6480
6481
6482
d7040cdb 6483
d7040cdb 6484
d7040cdb
SE
6485
6486
6487
6488
6489
dabbade6 6490test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6491
6492
d7040cdb 6493
d7040cdb 6494
d7040cdb
SE
6495
6496
6497
6498
6499
6500
dabbade6
L
6501
6502
6503
6504
6505if test -n "${ZSH_VERSION+set}" ; then
6506 setopt NO_GLOB_SUBST
6507fi
6508
6509echo "$as_me:$LINENO: checking for objdir" >&5
6510echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6511if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
dabbade6
L
6514 rm -f .libs 2>/dev/null
6515mkdir .libs 2>/dev/null
6516if test -d .libs; then
6517 lt_cv_objdir=.libs
6518else
6519 # MS-DOS does not allow filenames that begin with a dot.
6520 lt_cv_objdir=_libs
d7040cdb 6521fi
dabbade6
L
6522rmdir .libs 2>/dev/null
6523fi
6524echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6525echo "${ECHO_T}$lt_cv_objdir" >&6
6526objdir=$lt_cv_objdir
d7040cdb
SE
6527
6528
6529
6530
d7040cdb 6531
dabbade6
L
6532cat >>confdefs.h <<_ACEOF
6533#define LT_OBJDIR "$lt_cv_objdir/"
6534_ACEOF
d7040cdb
SE
6535
6536
6537
6538
6539
d7040cdb 6540
d7040cdb 6541
d7040cdb 6542
d7040cdb 6543
d7040cdb 6544
d7040cdb 6545
d7040cdb 6546
d7040cdb 6547
d7040cdb 6548
d7040cdb 6549
d7040cdb 6550
d7040cdb 6551
dabbade6
L
6552case $host_os in
6553aix3*)
6554 # AIX sometimes has problems with the GCC collect2 program. For some
6555 # reason, if we set the COLLECT_NAMES environment variable, the problems
6556 # vanish in a puff of smoke.
6557 if test "X${COLLECT_NAMES+set}" != Xset; then
6558 COLLECT_NAMES=
6559 export COLLECT_NAMES
6560 fi
6561 ;;
6562esac
d7040cdb 6563
dabbade6
L
6564# Sed substitution that helps us do robust quoting. It backslashifies
6565# metacharacters that are still active within double-quoted strings.
6566sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6567
dabbade6
L
6568# Same as above, but do not quote variable references.
6569double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6570
dabbade6
L
6571# Sed substitution to delay expansion of an escaped shell variable in a
6572# double_quote_subst'ed string.
6573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6574
dabbade6
L
6575# Sed substitution to delay expansion of an escaped single quote.
6576delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6577
dabbade6
L
6578# Sed substitution to avoid accidental globbing in evaled expressions
6579no_glob_subst='s/\*/\\\*/g'
d7040cdb 6580
dabbade6
L
6581# Global variables:
6582ofile=libtool
6583can_build_shared=yes
d7040cdb 6584
dabbade6
L
6585# All known linkers require a `.a' archive for static linking (except MSVC,
6586# which needs '.lib').
6587libext=a
d7040cdb 6588
dabbade6 6589with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6590
dabbade6
L
6591old_CC="$CC"
6592old_CFLAGS="$CFLAGS"
d7040cdb 6593
dabbade6
L
6594# Set sane defaults for various variables
6595test -z "$CC" && CC=cc
6596test -z "$LTCC" && LTCC=$CC
6597test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6598test -z "$LD" && LD=ld
6599test -z "$ac_objext" && ac_objext=o
6600
6601for cc_temp in $compiler""; do
6602 case $cc_temp in
6603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6605 \-*) ;;
6606 *) break;;
6607 esac
6608done
6609cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6610
6611
6612# Only perform the check for file, if the check method requires it
6613test -z "$MAGIC_CMD" && MAGIC_CMD=file
6614case $deplibs_check_method in
6615file_magic*)
6616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6617 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6618echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 case $MAGIC_CMD in
6623[\\/*] | ?:[\\/]*)
6624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6625 ;;
6626*)
6627 lt_save_MAGIC_CMD="$MAGIC_CMD"
6628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6630 for ac_dir in $ac_dummy; do
6631 IFS="$lt_save_ifs"
6632 test -z "$ac_dir" && ac_dir=.
6633 if test -f $ac_dir/${ac_tool_prefix}file; then
6634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6635 if test -n "$file_magic_test_file"; then
6636 case $deplibs_check_method in
6637 "file_magic "*)
6638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6641 $EGREP "$file_magic_regex" > /dev/null; then
6642 :
d7040cdb 6643 else
dabbade6 6644 cat <<_LT_EOF 1>&2
d7040cdb 6645
dabbade6
L
6646*** Warning: the command libtool uses to detect shared libraries,
6647*** $file_magic_cmd, produces output that libtool cannot recognize.
6648*** The result is that libtool may fail to recognize shared libraries
6649*** as such. This will affect the creation of libtool libraries that
6650*** depend on shared libraries, but programs linked with such libtool
6651*** libraries will work regardless of this problem. Nevertheless, you
6652*** may want to report the problem to your system manager and/or to
6653*** bug-libtool@gnu.org
d7040cdb 6654
dabbade6
L
6655_LT_EOF
6656 fi ;;
6657 esac
d7040cdb 6658 fi
dabbade6 6659 break
d7040cdb 6660 fi
dabbade6
L
6661 done
6662 IFS="$lt_save_ifs"
6663 MAGIC_CMD="$lt_save_MAGIC_CMD"
6664 ;;
6665esac
6666fi
d7040cdb 6667
dabbade6
L
6668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669if test -n "$MAGIC_CMD"; then
6670 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6671echo "${ECHO_T}$MAGIC_CMD" >&6
6672else
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
6675fi
d7040cdb 6676
d7040cdb 6677
d7040cdb 6678
d7040cdb 6679
d7040cdb 6680
dabbade6
L
6681if test -z "$lt_cv_path_MAGIC_CMD"; then
6682 if test -n "$ac_tool_prefix"; then
6683 echo "$as_me:$LINENO: checking for file" >&5
6684echo $ECHO_N "checking for file... $ECHO_C" >&6
6685if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 case $MAGIC_CMD in
6689[\\/*] | ?:[\\/]*)
6690 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6691 ;;
6692*)
6693 lt_save_MAGIC_CMD="$MAGIC_CMD"
6694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6696 for ac_dir in $ac_dummy; do
6697 IFS="$lt_save_ifs"
6698 test -z "$ac_dir" && ac_dir=.
6699 if test -f $ac_dir/file; then
6700 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6701 if test -n "$file_magic_test_file"; then
6702 case $deplibs_check_method in
6703 "file_magic "*)
6704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6707 $EGREP "$file_magic_regex" > /dev/null; then
6708 :
d7040cdb 6709 else
dabbade6 6710 cat <<_LT_EOF 1>&2
d7040cdb 6711
dabbade6
L
6712*** Warning: the command libtool uses to detect shared libraries,
6713*** $file_magic_cmd, produces output that libtool cannot recognize.
6714*** The result is that libtool may fail to recognize shared libraries
6715*** as such. This will affect the creation of libtool libraries that
6716*** depend on shared libraries, but programs linked with such libtool
6717*** libraries will work regardless of this problem. Nevertheless, you
6718*** may want to report the problem to your system manager and/or to
6719*** bug-libtool@gnu.org
d7040cdb 6720
dabbade6
L
6721_LT_EOF
6722 fi ;;
6723 esac
6724 fi
6725 break
6726 fi
6727 done
6728 IFS="$lt_save_ifs"
6729 MAGIC_CMD="$lt_save_MAGIC_CMD"
6730 ;;
6731esac
d7040cdb 6732fi
dabbade6
L
6733
6734MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6735if test -n "$MAGIC_CMD"; then
6736 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6737echo "${ECHO_T}$MAGIC_CMD" >&6
d7040cdb 6738else
dabbade6
L
6739 echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6
6741fi
6742
d7040cdb 6743
dabbade6
L
6744 else
6745 MAGIC_CMD=:
6746 fi
d7040cdb 6747fi
d7040cdb 6748
dabbade6
L
6749 fi
6750 ;;
6751esac
d7040cdb 6752
dabbade6 6753# Use C for the default configuration in the libtool script
d7040cdb 6754
dabbade6
L
6755lt_save_CC="$CC"
6756ac_ext=c
6757ac_cpp='$CPP $CPPFLAGS'
6758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6761
d7040cdb 6762
dabbade6
L
6763# Source file extension for C test sources.
6764ac_ext=c
d7040cdb 6765
dabbade6
L
6766# Object file extension for compiled C test sources.
6767objext=o
6768objext=$objext
6769
6770# Code to be used in simple compile tests
6771lt_simple_compile_test_code="int some_variable = 0;"
6772
6773# Code to be used in simple link tests
6774lt_simple_link_test_code='int main(){return(0);}'
6775
6776
6777
6778
6779
6780
6781
6782# If no C compiler was specified, use CC.
6783LTCC=${LTCC-"$CC"}
6784
6785# If no C compiler flags were specified, use CFLAGS.
6786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6787
6788# Allow CC to be a program name with arguments.
6789compiler=$CC
6790
6791# Save the default compiler, since it gets overwritten when the other
6792# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6793compiler_DEFAULT=$CC
6794
6795# save warnings/boilerplate of simple test code
6796ac_outfile=conftest.$ac_objext
6797echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6799_lt_compiler_boilerplate=`cat conftest.err`
6800$RM conftest*
6801
6802ac_outfile=conftest.$ac_objext
6803echo "$lt_simple_link_test_code" >conftest.$ac_ext
6804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6805_lt_linker_boilerplate=`cat conftest.err`
6806$RM conftest*
6807
6808
6809## CAVEAT EMPTOR:
6810## There is no encapsulation within the following macros, do not change
6811## the running order or otherwise move them around unless you know exactly
6812## what you are doing...
6813if test -n "$compiler"; then
6814
6815lt_prog_compiler_no_builtin_flag=
6816
6817if test "$GCC" = yes; then
6818 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6819
6820 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6821echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6822if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825 lt_cv_prog_compiler_rtti_exceptions=no
6826 ac_outfile=conftest.$ac_objext
6827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6828 lt_compiler_flag="-fno-rtti -fno-exceptions"
6829 # Insert the option either (1) after the last *FLAGS variable, or
6830 # (2) before a word containing "conftest.", or (3) at the end.
6831 # Note that $ac_compile itself does not contain backslashes and begins
6832 # with a dollar sign (not a hyphen), so the echo should work correctly.
6833 # The option is referenced via a variable to avoid confusing sed.
6834 lt_compile=`echo "$ac_compile" | $SED \
6835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6837 -e 's:$: $lt_compiler_flag:'`
58c85be7 6838 (eval echo "\"\$as_me:6838: $lt_compile\"" >&5)
dabbade6
L
6839 (eval "$lt_compile" 2>conftest.err)
6840 ac_status=$?
6841 cat conftest.err >&5
58c85be7 6842 echo "$as_me:6842: \$? = $ac_status" >&5
dabbade6
L
6843 if (exit $ac_status) && test -s "$ac_outfile"; then
6844 # The compiler can only warn and ignore the option if not recognized
6845 # So say no if there are warnings other than the usual output.
6846 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6849 lt_cv_prog_compiler_rtti_exceptions=yes
6850 fi
6851 fi
6852 $RM conftest*
6853
6854fi
6855echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6856echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6857
6858if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6860else
6861 :
6862fi
6863
6864fi
6865
6866
6867
6868
6869
6870
6871 lt_prog_compiler_wl=
6872lt_prog_compiler_pic=
6873lt_prog_compiler_static=
6874
6875echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6876echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6877
6878 if test "$GCC" = yes; then
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_static='-static'
6881
6882 case $host_os in
6883 aix*)
6884 # All AIX code is PIC.
6885 if test "$host_cpu" = ia64; then
6886 # AIX 5 now supports IA64 processor
6887 lt_prog_compiler_static='-Bstatic'
6888 fi
6889 ;;
d7040cdb
SE
6890
6891 amigaos*)
6892 if test "$host_cpu" = m68k; then
dabbade6
L
6893 # FIXME: we need at least 68020 code to build shared libraries, but
6894 # adding the `-m68020' flag to GCC prevents building anything better,
6895 # like `-m68040'.
6896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 6897 fi
d7040cdb
SE
6898 ;;
6899
dabbade6
L
6900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6901 # PIC is the default for these OSes.
d7040cdb
SE
6902 ;;
6903
dabbade6
L
6904 mingw* | cygwin* | pw32* | os2*)
6905 # This hack is so that the source file can tell whether it is being
6906 # built for inclusion in a dll (and should export symbols for example).
6907 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6908 # (--disable-auto-import) libraries
6909 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6910 ;;
6911
6912 darwin* | rhapsody*)
dabbade6
L
6913 # PIC is the default on this platform
6914 # Common symbols not allowed in MH_DYLIB files
6915 lt_prog_compiler_pic='-fno-common'
6916 ;;
6917
6918 hpux*)
6919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6920 # not for PA HP-UX.
6921 case $host_cpu in
6922 hppa*64*|ia64*)
6923 # +Z the default
d7040cdb 6924 ;;
dabbade6
L
6925 *)
6926 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
6927 ;;
6928 esac
dabbade6 6929 ;;
d7040cdb 6930
dabbade6
L
6931 interix[3-9]*)
6932 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6933 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
6934 ;;
6935
dabbade6
L
6936 msdosdjgpp*)
6937 # Just because we use GCC doesn't mean we suddenly get shared libraries
6938 # on systems that don't support them.
6939 lt_prog_compiler_can_build_shared=no
6940 enable_shared=no
d7040cdb
SE
6941 ;;
6942
dabbade6
L
6943 *nto* | *qnx*)
6944 # QNX uses GNU C++, but need to define -shared option too, otherwise
6945 # it will coredump.
6946 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6947 ;;
6948
dabbade6
L
6949 sysv4*MP*)
6950 if test -d /usr/nec; then
6951 lt_prog_compiler_pic=-Kconform_pic
6952 fi
d7040cdb
SE
6953 ;;
6954
dabbade6
L
6955 *)
6956 lt_prog_compiler_pic='-fPIC'
d7040cdb 6957 ;;
dabbade6
L
6958 esac
6959 else
6960 # PORTME Check for flag to pass linker flags through the system compiler.
6961 case $host_os in
6962 aix*)
6963 lt_prog_compiler_wl='-Wl,'
6964 if test "$host_cpu" = ia64; then
6965 # AIX 5 now supports IA64 processor
6966 lt_prog_compiler_static='-Bstatic'
d7040cdb 6967 else
dabbade6 6968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 6969 fi
dabbade6
L
6970 ;;
6971 darwin*)
6972 # PIC is the default on this platform
6973 # Common symbols not allowed in MH_DYLIB files
6974 case $cc_basename in
6975 xlc*)
6976 lt_prog_compiler_pic='-qnocommon'
6977 lt_prog_compiler_wl='-Wl,'
6978 ;;
6979 esac
6980 ;;
d7040cdb 6981
dabbade6
L
6982 mingw* | cygwin* | pw32* | os2*)
6983 # This hack is so that the source file can tell whether it is being
6984 # built for inclusion in a dll (and should export symbols for example).
6985 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6986 ;;
6987
dabbade6
L
6988 hpux9* | hpux10* | hpux11*)
6989 lt_prog_compiler_wl='-Wl,'
6990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6991 # not for PA HP-UX.
6992 case $host_cpu in
6993 hppa*64*|ia64*)
6994 # +Z the default
6995 ;;
6996 *)
6997 lt_prog_compiler_pic='+Z'
6998 ;;
6999 esac
7000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7001 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7002 ;;
7003
dabbade6
L
7004 irix5* | irix6* | nonstopux*)
7005 lt_prog_compiler_wl='-Wl,'
7006 # PIC (with -KPIC) is the default.
7007 lt_prog_compiler_static='-non_shared'
7008 ;;
d7040cdb 7009
dabbade6
L
7010 linux* | k*bsd*-gnu)
7011 case $cc_basename in
7012 icc* | ecc*)
7013 lt_prog_compiler_wl='-Wl,'
7014 lt_prog_compiler_pic='-KPIC'
7015 lt_prog_compiler_static='-static'
7016 ;;
7017 pgcc* | pgf77* | pgf90* | pgf95*)
7018 # Portland Group compilers (*not* the Pentium gcc compiler,
7019 # which looks to be a dead project)
7020 lt_prog_compiler_wl='-Wl,'
7021 lt_prog_compiler_pic='-fpic'
7022 lt_prog_compiler_static='-Bstatic'
7023 ;;
7024 ccc*)
7025 lt_prog_compiler_wl='-Wl,'
7026 # All Alpha code is PIC.
7027 lt_prog_compiler_static='-non_shared'
7028 ;;
7029 *)
7030 case `$CC -V 2>&1 | sed 5q` in
7031 *Sun\ C*)
7032 # Sun C 5.9
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 lt_prog_compiler_wl='-Wl,'
d7040cdb 7036 ;;
dabbade6
L
7037 *Sun\ F*)
7038 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7039 lt_prog_compiler_pic='-KPIC'
7040 lt_prog_compiler_static='-Bstatic'
7041 lt_prog_compiler_wl=''
d7040cdb
SE
7042 ;;
7043 esac
dabbade6
L
7044 ;;
7045 esac
d7040cdb
SE
7046 ;;
7047
dabbade6
L
7048 newsos6)
7049 lt_prog_compiler_pic='-KPIC'
7050 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7051 ;;
7052
dabbade6
L
7053 *nto* | *qnx*)
7054 # QNX uses GNU C++, but need to define -shared option too, otherwise
7055 # it will coredump.
7056 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7057 ;;
7058
dabbade6
L
7059 osf3* | osf4* | osf5*)
7060 lt_prog_compiler_wl='-Wl,'
7061 # All OSF/1 code is PIC.
7062 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7063 ;;
7064
dabbade6
L
7065 rdos*)
7066 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7067 ;;
7068
7069 solaris*)
dabbade6
L
7070 lt_prog_compiler_pic='-KPIC'
7071 lt_prog_compiler_static='-Bstatic'
7072 case $cc_basename in
7073 f77* | f90* | f95*)
7074 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 7075 *)
dabbade6 7076 lt_prog_compiler_wl='-Wl,';;
d7040cdb 7077 esac
d7040cdb
SE
7078 ;;
7079
7080 sunos4*)
dabbade6
L
7081 lt_prog_compiler_wl='-Qoption ld '
7082 lt_prog_compiler_pic='-PIC'
7083 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7084 ;;
7085
dabbade6
L
7086 sysv4 | sysv4.2uw2* | sysv4.3*)
7087 lt_prog_compiler_wl='-Wl,'
7088 lt_prog_compiler_pic='-KPIC'
7089 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7090 ;;
7091
7092 sysv4*MP*)
dabbade6
L
7093 if test -d /usr/nec ;then
7094 lt_prog_compiler_pic='-Kconform_pic'
7095 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7096 fi
7097 ;;
7098
dabbade6
L
7099 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7103 ;;
7104
dabbade6
L
7105 unicos*)
7106 lt_prog_compiler_wl='-Wl,'
7107 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7108 ;;
7109
7110 uts4*)
dabbade6
L
7111 lt_prog_compiler_pic='-pic'
7112 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7113 ;;
7114
7115 *)
dabbade6 7116 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7117 ;;
7118 esac
d7040cdb
SE
7119 fi
7120
dabbade6
L
7121case $host_os in
7122 # For platforms which do not support PIC, -DPIC is meaningless:
7123 *djgpp*)
7124 lt_prog_compiler_pic=
7125 ;;
7126 *)
7127 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7128 ;;
7129esac
7130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7131echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7132
7133
7134
7135
7136
7137
7138#
dabbade6 7139# Check to make sure the PIC flag actually works.
d7040cdb 7140#
dabbade6
L
7141if test -n "$lt_prog_compiler_pic"; then
7142 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7143echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7144if test "${lt_prog_compiler_pic_works+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 lt_prog_compiler_pic_works=no
7148 ac_outfile=conftest.$ac_objext
7149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7150 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7151 # Insert the option either (1) after the last *FLAGS variable, or
7152 # (2) before a word containing "conftest.", or (3) at the end.
7153 # Note that $ac_compile itself does not contain backslashes and begins
7154 # with a dollar sign (not a hyphen), so the echo should work correctly.
7155 # The option is referenced via a variable to avoid confusing sed.
7156 lt_compile=`echo "$ac_compile" | $SED \
7157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7159 -e 's:$: $lt_compiler_flag:'`
58c85be7 7160 (eval echo "\"\$as_me:7160: $lt_compile\"" >&5)
dabbade6
L
7161 (eval "$lt_compile" 2>conftest.err)
7162 ac_status=$?
7163 cat conftest.err >&5
58c85be7 7164 echo "$as_me:7164: \$? = $ac_status" >&5
dabbade6
L
7165 if (exit $ac_status) && test -s "$ac_outfile"; then
7166 # The compiler can only warn and ignore the option if not recognized
7167 # So say no if there are warnings other than the usual output.
7168 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7171 lt_prog_compiler_pic_works=yes
7172 fi
7173 fi
7174 $RM conftest*
d7040cdb 7175
dabbade6
L
7176fi
7177echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7178echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7179
dabbade6
L
7180if test x"$lt_prog_compiler_pic_works" = xyes; then
7181 case $lt_prog_compiler_pic in
7182 "" | " "*) ;;
7183 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7184 esac
7185else
7186 lt_prog_compiler_pic=
7187 lt_prog_compiler_can_build_shared=no
7188fi
d7040cdb 7189
dabbade6 7190fi
d7040cdb
SE
7191
7192
7193
7194
7195
7196
dabbade6
L
7197#
7198# Check to make sure the static flag actually works.
7199#
7200wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7201echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7202echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7203if test "${lt_prog_compiler_static_works+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206 lt_prog_compiler_static_works=no
7207 save_LDFLAGS="$LDFLAGS"
7208 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7209 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7210 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7211 # The linker can only warn and ignore the option if not recognized
7212 # So say no if there are warnings
7213 if test -s conftest.err; then
7214 # Append any errors to the config.log.
7215 cat conftest.err 1>&5
7216 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7218 if diff conftest.exp conftest.er2 >/dev/null; then
7219 lt_prog_compiler_static_works=yes
7220 fi
7221 else
7222 lt_prog_compiler_static_works=yes
7223 fi
7224 fi
7225 $RM conftest*
7226 LDFLAGS="$save_LDFLAGS"
d7040cdb 7227
dabbade6
L
7228fi
7229echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7230echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7231
dabbade6
L
7232if test x"$lt_prog_compiler_static_works" = xyes; then
7233 :
7234else
7235 lt_prog_compiler_static=
7236fi
d7040cdb
SE
7237
7238
7239
7240
7241
7242
7243
dabbade6
L
7244 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7245echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7246if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 lt_cv_prog_compiler_c_o=no
7250 $RM -r conftest 2>/dev/null
7251 mkdir conftest
7252 cd conftest
7253 mkdir out
7254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7255
dabbade6
L
7256 lt_compiler_flag="-o out/conftest2.$ac_objext"
7257 # Insert the option either (1) after the last *FLAGS variable, or
7258 # (2) before a word containing "conftest.", or (3) at the end.
7259 # Note that $ac_compile itself does not contain backslashes and begins
7260 # with a dollar sign (not a hyphen), so the echo should work correctly.
7261 lt_compile=`echo "$ac_compile" | $SED \
7262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7264 -e 's:$: $lt_compiler_flag:'`
58c85be7 7265 (eval echo "\"\$as_me:7265: $lt_compile\"" >&5)
dabbade6
L
7266 (eval "$lt_compile" 2>out/conftest.err)
7267 ac_status=$?
7268 cat out/conftest.err >&5
58c85be7 7269 echo "$as_me:7269: \$? = $ac_status" >&5
dabbade6
L
7270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7271 then
7272 # The compiler can only warn and ignore the option if not recognized
7273 # So say no if there are warnings
7274 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7277 lt_cv_prog_compiler_c_o=yes
7278 fi
7279 fi
7280 chmod u+w . 2>&5
7281 $RM conftest*
7282 # SGI C++ compiler will create directory out/ii_files/ for
7283 # template instantiation
7284 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7285 $RM out/* && rmdir out
7286 cd ..
7287 $RM -r conftest
7288 $RM conftest*
d7040cdb 7289
dabbade6
L
7290fi
7291echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7292echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7293
7294
7295
7296
7297
7298
dabbade6
L
7299 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7300echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7301if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 lt_cv_prog_compiler_c_o=no
7305 $RM -r conftest 2>/dev/null
7306 mkdir conftest
7307 cd conftest
7308 mkdir out
7309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7310
dabbade6
L
7311 lt_compiler_flag="-o out/conftest2.$ac_objext"
7312 # Insert the option either (1) after the last *FLAGS variable, or
7313 # (2) before a word containing "conftest.", or (3) at the end.
7314 # Note that $ac_compile itself does not contain backslashes and begins
7315 # with a dollar sign (not a hyphen), so the echo should work correctly.
7316 lt_compile=`echo "$ac_compile" | $SED \
7317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7319 -e 's:$: $lt_compiler_flag:'`
58c85be7 7320 (eval echo "\"\$as_me:7320: $lt_compile\"" >&5)
dabbade6
L
7321 (eval "$lt_compile" 2>out/conftest.err)
7322 ac_status=$?
7323 cat out/conftest.err >&5
58c85be7 7324 echo "$as_me:7324: \$? = $ac_status" >&5
dabbade6
L
7325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7326 then
7327 # The compiler can only warn and ignore the option if not recognized
7328 # So say no if there are warnings
7329 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7332 lt_cv_prog_compiler_c_o=yes
7333 fi
7334 fi
7335 chmod u+w . 2>&5
7336 $RM conftest*
7337 # SGI C++ compiler will create directory out/ii_files/ for
7338 # template instantiation
7339 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7340 $RM out/* && rmdir out
7341 cd ..
7342 $RM -r conftest
7343 $RM conftest*
d7040cdb 7344
dabbade6
L
7345fi
7346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7347echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7348
7349
7350
7351
dabbade6
L
7352hard_links="nottested"
7353if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7354 # do not overwrite the value of need_locks provided by the user
7355 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7356echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7357 hard_links=yes
7358 $RM conftest*
7359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7360 touch conftest.a
7361 ln conftest.a conftest.b 2>&5 || hard_links=no
7362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7363 echo "$as_me:$LINENO: result: $hard_links" >&5
7364echo "${ECHO_T}$hard_links" >&6
7365 if test "$hard_links" = no; then
7366 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7367echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7368 need_locks=warn
7369 fi
7370else
7371 need_locks=no
7372fi
d7040cdb
SE
7373
7374
7375
7376
7377
7378
dabbade6
L
7379 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7380echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7381
dabbade6
L
7382 runpath_var=
7383 allow_undefined_flag=
7384 always_export_symbols=no
7385 archive_cmds=
7386 archive_expsym_cmds=
7387 compiler_needs_object=no
7388 enable_shared_with_static_runtimes=no
7389 export_dynamic_flag_spec=
7390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7391 hardcode_automatic=no
7392 hardcode_direct=no
7393 hardcode_direct_absolute=no
7394 hardcode_libdir_flag_spec=
7395 hardcode_libdir_flag_spec_ld=
7396 hardcode_libdir_separator=
7397 hardcode_minus_L=no
7398 hardcode_shlibpath_var=unsupported
7399 inherit_rpath=no
7400 link_all_deplibs=unknown
7401 module_cmds=
7402 module_expsym_cmds=
7403 old_archive_from_new_cmds=
7404 old_archive_from_expsyms_cmds=
7405 thread_safe_flag_spec=
7406 whole_archive_flag_spec=
7407 # include_expsyms should be a list of space-separated symbols to be *always*
7408 # included in the symbol list
7409 include_expsyms=
7410 # exclude_expsyms can be an extended regexp of symbols to exclude
7411 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7412 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7413 # as well as any symbol that contains `d'.
7414 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7415 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7416 # platforms (ab)use it in PIC code, but their linkers get confused if
7417 # the symbol is explicitly referenced. Since portable code cannot
7418 # rely on this symbol name, it's probably fine to never include it in
7419 # preloaded symbol tables.
7420 extract_expsyms_cmds=
d7040cdb 7421
dabbade6
L
7422 case $host_os in
7423 cygwin* | mingw* | pw32*)
7424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7425 # When not using gcc, we currently assume that we are using
7426 # Microsoft Visual C++.
7427 if test "$GCC" != yes; then
7428 with_gnu_ld=no
7429 fi
7430 ;;
7431 interix*)
7432 # we just hope/assume this is gcc and not c89 (= MSVC++)
7433 with_gnu_ld=yes
7434 ;;
7435 openbsd*)
7436 with_gnu_ld=no
7437 ;;
7438 esac
d7040cdb 7439
dabbade6
L
7440 ld_shlibs=yes
7441 if test "$with_gnu_ld" = yes; then
7442 # If archive_cmds runs LD, not CC, wlarc should be empty
7443 wlarc='${wl}'
d7040cdb 7444
dabbade6
L
7445 # Set some defaults for GNU ld with shared library support. These
7446 # are reset later if shared libraries are not supported. Putting them
7447 # here allows them to be overridden if necessary.
7448 runpath_var=LD_RUN_PATH
7449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7450 export_dynamic_flag_spec='${wl}--export-dynamic'
7451 # ancient GNU ld didn't support --whole-archive et. al.
7452 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7454 else
7455 whole_archive_flag_spec=
7456 fi
7457 supports_anon_versioning=no
7458 case `$LD -v 2>&1` in
7459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7462 *\ 2.11.*) ;; # other 2.11 versions
7463 *) supports_anon_versioning=yes ;;
7464 esac
d7040cdb 7465
dabbade6
L
7466 # See if GNU ld supports shared libraries.
7467 case $host_os in
50e7d84b 7468 aix[3-9]*)
dabbade6
L
7469 # On AIX/PPC, the GNU linker is very broken
7470 if test "$host_cpu" != ia64; then
7471 ld_shlibs=no
7472 cat <<_LT_EOF 1>&2
d7040cdb 7473
dabbade6
L
7474*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7475*** to be unable to reliably create shared libraries on AIX.
7476*** Therefore, libtool is disabling shared libraries support. If you
7477*** really care for shared libraries, you may want to modify your PATH
7478*** so that a non-GNU linker is found, and then restart.
d7040cdb 7479
dabbade6
L
7480_LT_EOF
7481 fi
7482 ;;
d7040cdb 7483
dabbade6
L
7484 amigaos*)
7485 if test "$host_cpu" = m68k; then
7486 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)'
7487 hardcode_libdir_flag_spec='-L$libdir'
7488 hardcode_minus_L=yes
7489 fi
d7040cdb 7490
dabbade6
L
7491 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7492 # that the semantics of dynamic libraries on AmigaOS, at least up
7493 # to version 4, is to share data among multiple programs linked
7494 # with the same dynamic library. Since this doesn't match the
7495 # behavior of shared libraries on other platforms, we can't use
7496 # them.
7497 ld_shlibs=no
7498 ;;
d7040cdb 7499
dabbade6
L
7500 beos*)
7501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7502 allow_undefined_flag=unsupported
7503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7504 # support --undefined. This deserves some investigation. FIXME
7505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7506 else
7507 ld_shlibs=no
7508 fi
7509 ;;
d7040cdb 7510
dabbade6
L
7511 cygwin* | mingw* | pw32*)
7512 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7513 # as there is no search path for DLLs.
7514 hardcode_libdir_flag_spec='-L$libdir'
7515 allow_undefined_flag=unsupported
7516 always_export_symbols=no
7517 enable_shared_with_static_runtimes=yes
7518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7519
dabbade6
L
7520 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7522 # If the export-symbols file already is a .def file (1st line
7523 # is EXPORTS), use it as is; otherwise, prepend...
7524 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7525 cp $export_symbols $output_objdir/$soname.def;
7526 else
7527 echo EXPORTS > $output_objdir/$soname.def;
7528 cat $export_symbols >> $output_objdir/$soname.def;
7529 fi~
7530 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7531 else
7532 ld_shlibs=no
7533 fi
7534 ;;
d7040cdb 7535
dabbade6
L
7536 interix[3-9]*)
7537 hardcode_direct=no
7538 hardcode_shlibpath_var=no
7539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7540 export_dynamic_flag_spec='${wl}-E'
7541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7542 # Instead, shared libraries are loaded at an image base (0x10000000 by
7543 # default) and relocated if they conflict, which is a slow very memory
7544 # consuming and fragmenting process. To avoid this, we pick a random,
7545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7548 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'
7549 ;;
d7040cdb 7550
dabbade6
L
7551 gnu* | linux* | tpf* | k*bsd*-gnu)
7552 tmp_diet=no
7553 if test "$host_os" = linux-dietlibc; then
7554 case $cc_basename in
7555 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7556 esac
7557 fi
7558 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7559 && test "$tmp_diet" = no
7560 then
7561 tmp_addflag=
7562 case $cc_basename,$host_cpu in
7563 pgcc*) # Portland Group C compiler
7564 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'
7565 tmp_addflag=' $pic_flag'
7566 ;;
7567 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7568 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'
7569 tmp_addflag=' $pic_flag -Mnomain' ;;
7570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7571 tmp_addflag=' -i_dynamic' ;;
7572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7573 tmp_addflag=' -i_dynamic -nofor_main' ;;
7574 ifc* | ifort*) # Intel Fortran compiler
7575 tmp_addflag=' -nofor_main' ;;
7576 esac
7577 case `$CC -V 2>&1 | sed 5q` in
7578 *Sun\ C*) # Sun C 5.9
7579 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'
7580 compiler_needs_object=yes
7581 tmp_sharedflag='-G' ;;
7582 *Sun\ F*) # Sun Fortran 8.3
7583 tmp_sharedflag='-G' ;;
7584 *)
7585 tmp_sharedflag='-shared' ;;
7586 esac
7587 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7588
dabbade6
L
7589 if test "x$supports_anon_versioning" = xyes; then
7590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7592 echo "local: *; };" >> $output_objdir/$libname.ver~
7593 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7594 fi
7595 else
7596 ld_shlibs=no
7597 fi
7598 ;;
d7040cdb 7599
dabbade6
L
7600 netbsd*)
7601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7602 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7603 wlarc=
7604 else
7605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7607 fi
7608 ;;
d7040cdb 7609
dabbade6
L
7610 solaris*)
7611 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7612 ld_shlibs=no
7613 cat <<_LT_EOF 1>&2
d7040cdb 7614
dabbade6
L
7615*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7616*** create shared libraries on Solaris systems. Therefore, libtool
7617*** is disabling shared libraries support. We urge you to upgrade GNU
7618*** binutils to release 2.9.1 or newer. Another option is to modify
7619*** your PATH or compiler configuration so that the native linker is
7620*** used, and then restart.
d7040cdb 7621
dabbade6
L
7622_LT_EOF
7623 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7626 else
7627 ld_shlibs=no
7628 fi
7629 ;;
d7040cdb 7630
dabbade6
L
7631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7632 case `$LD -v 2>&1` in
7633 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7634 ld_shlibs=no
7635 cat <<_LT_EOF 1>&2
d7040cdb 7636
dabbade6
L
7637*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7638*** reliably create shared libraries on SCO systems. Therefore, libtool
7639*** is disabling shared libraries support. We urge you to upgrade GNU
7640*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7641*** your PATH or compiler configuration so that the native linker is
7642*** used, and then restart.
d7040cdb 7643
dabbade6
L
7644_LT_EOF
7645 ;;
7646 *)
7647 # For security reasons, it is highly recommended that you always
7648 # use absolute paths for naming shared libraries, and exclude the
7649 # DT_RUNPATH tag from executables and libraries. But doing so
7650 # requires that you compile everything twice, which is a pain.
7651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7655 else
7656 ld_shlibs=no
7657 fi
7658 ;;
7659 esac
7660 ;;
d7040cdb 7661
dabbade6
L
7662 sunos4*)
7663 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7664 wlarc=
7665 hardcode_direct=yes
7666 hardcode_shlibpath_var=no
7667 ;;
d7040cdb 7668
dabbade6
L
7669 *)
7670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7673 else
7674 ld_shlibs=no
7675 fi
7676 ;;
7677 esac
d7040cdb 7678
dabbade6
L
7679 if test "$ld_shlibs" = no; then
7680 runpath_var=
7681 hardcode_libdir_flag_spec=
7682 export_dynamic_flag_spec=
7683 whole_archive_flag_spec=
7684 fi
7685 else
7686 # PORTME fill in a description of your system's linker (not GNU ld)
7687 case $host_os in
7688 aix3*)
7689 allow_undefined_flag=unsupported
7690 always_export_symbols=yes
7691 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'
7692 # Note: this linker hardcodes the directories in LIBPATH if there
7693 # are no directories specified by -L.
7694 hardcode_minus_L=yes
7695 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7696 # Neither direct hardcoding nor static linking is supported with a
7697 # broken collect2.
7698 hardcode_direct=unsupported
7699 fi
7700 ;;
d7040cdb 7701
50e7d84b 7702 aix[4-9]*)
dabbade6
L
7703 if test "$host_cpu" = ia64; then
7704 # On IA64, the linker does run time linking by default, so we don't
7705 # have to do anything special.
7706 aix_use_runtimelinking=no
7707 exp_sym_flag='-Bexport'
7708 no_entry_flag=""
7709 else
7710 # If we're using GNU nm, then we don't want the "-C" option.
7711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7712 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7713 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'
7714 else
7715 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'
7716 fi
7717 aix_use_runtimelinking=no
d7040cdb 7718
dabbade6
L
7719 # Test if we are trying to use run time linking or normal
7720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7721 # need to do runtime linking.
50e7d84b 7722 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
7723 for ld_flag in $LDFLAGS; do
7724 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7725 aix_use_runtimelinking=yes
7726 break
7727 fi
7728 done
7729 ;;
7730 esac
d7040cdb 7731
dabbade6
L
7732 exp_sym_flag='-bexport'
7733 no_entry_flag='-bnoentry'
7734 fi
d7040cdb 7735
dabbade6
L
7736 # When large executables or shared objects are built, AIX ld can
7737 # have problems creating the table of contents. If linking a library
7738 # or program results in "error TOC overflow" add -mminimal-toc to
7739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7741
dabbade6
L
7742 archive_cmds=''
7743 hardcode_direct=yes
7744 hardcode_direct_absolute=yes
7745 hardcode_libdir_separator=':'
7746 link_all_deplibs=yes
7747 file_list_spec='${wl}-f,'
d7040cdb 7748
dabbade6
L
7749 if test "$GCC" = yes; then
7750 case $host_os in aix4.[012]|aix4.[012].*)
7751 # We only want to do this on AIX 4.2 and lower, the check
7752 # below for broken collect2 doesn't work under 4.3+
7753 collect2name=`${CC} -print-prog-name=collect2`
7754 if test -f "$collect2name" &&
7755 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7756 then
7757 # We have reworked collect2
7758 :
7759 else
7760 # We have old collect2
7761 hardcode_direct=unsupported
7762 # It fails to find uninstalled libraries when the uninstalled
7763 # path is not listed in the libpath. Setting hardcode_minus_L
7764 # to unsupported forces relinking
7765 hardcode_minus_L=yes
7766 hardcode_libdir_flag_spec='-L$libdir'
7767 hardcode_libdir_separator=
7768 fi
7769 ;;
7770 esac
7771 shared_flag='-shared'
7772 if test "$aix_use_runtimelinking" = yes; then
7773 shared_flag="$shared_flag "'${wl}-G'
7774 fi
7775 else
7776 # not using gcc
7777 if test "$host_cpu" = ia64; then
7778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7779 # chokes on -Wl,-G. The following line is correct:
7780 shared_flag='-G'
7781 else
7782 if test "$aix_use_runtimelinking" = yes; then
7783 shared_flag='${wl}-G'
7784 else
7785 shared_flag='${wl}-bM:SRE'
7786 fi
7787 fi
7788 fi
d7040cdb 7789
dabbade6
L
7790 # It seems that -bexpall does not export symbols beginning with
7791 # underscore (_), so it is better to generate a list of symbols to export.
7792 always_export_symbols=yes
7793 if test "$aix_use_runtimelinking" = yes; then
7794 # Warning - without using the other runtime loading flags (-brtl),
7795 # -berok will link without error, but may produce a broken library.
7796 allow_undefined_flag='-berok'
7797 # Determine the default libpath from the value encoded in an
7798 # empty executable.
7799 cat >conftest.$ac_ext <<_ACEOF
7800/* confdefs.h. */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h. */
d7040cdb 7805
dabbade6
L
7806int
7807main ()
7808{
d7040cdb 7809
dabbade6
L
7810 ;
7811 return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext conftest$ac_exeext
7815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
d7040cdb 7836
dabbade6
L
7837lt_aix_libpath_sed='
7838 /Import File Strings/,/^$/ {
7839 /^0/ {
7840 s/^0 *\(.*\)$/\1/
7841 p
7842 }
7843 }'
7844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7845# Check for a 64-bit object if we didn't find anything.
7846if test -z "$aix_libpath"; then
7847 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7848fi
7849else
7850 echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7852
dabbade6
L
7853fi
7854rm -f conftest.err conftest.$ac_objext \
7855 conftest$ac_exeext conftest.$ac_ext
7856if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7857
dabbade6
L
7858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7859 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"
7860 else
7861 if test "$host_cpu" = ia64; then
7862 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7863 allow_undefined_flag="-z nodefs"
7864 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"
7865 else
7866 # Determine the default libpath from the value encoded in an
7867 # empty executable.
7868 cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h. */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h. */
d7040cdb 7874
dabbade6
L
7875int
7876main ()
7877{
d7040cdb 7878
dabbade6
L
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883rm -f conftest.$ac_objext conftest$ac_exeext
7884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
d7040cdb 7905
dabbade6
L
7906lt_aix_libpath_sed='
7907 /Import File Strings/,/^$/ {
7908 /^0/ {
7909 s/^0 *\(.*\)$/\1/
7910 p
7911 }
7912 }'
7913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7914# Check for a 64-bit object if we didn't find anything.
7915if test -z "$aix_libpath"; then
7916 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7917fi
7918else
7919 echo "$as_me: failed program was:" >&5
7920sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7921
dabbade6
L
7922fi
7923rm -f conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7926
dabbade6
L
7927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7928 # Warning - without using the other run time loading flags,
7929 # -berok will link without error, but may produce a broken library.
7930 no_undefined_flag=' ${wl}-bernotok'
7931 allow_undefined_flag=' ${wl}-berok'
7932 # Exported symbols can be pulled into shared objects from archives
7933 whole_archive_flag_spec='$convenience'
7934 archive_cmds_need_lc=yes
7935 # This is similar to how AIX traditionally builds its shared libraries.
7936 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'
7937 fi
7938 fi
7939 ;;
d7040cdb 7940
dabbade6
L
7941 amigaos*)
7942 if test "$host_cpu" = m68k; then
7943 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)'
7944 hardcode_libdir_flag_spec='-L$libdir'
7945 hardcode_minus_L=yes
7946 fi
7947 # see comment about different semantics on the GNU ld section
7948 ld_shlibs=no
7949 ;;
d7040cdb 7950
dabbade6
L
7951 bsdi[45]*)
7952 export_dynamic_flag_spec=-rdynamic
7953 ;;
d7040cdb 7954
dabbade6
L
7955 cygwin* | mingw* | pw32*)
7956 # When not using gcc, we currently assume that we are using
7957 # Microsoft Visual C++.
7958 # hardcode_libdir_flag_spec is actually meaningless, as there is
7959 # no search path for DLLs.
7960 hardcode_libdir_flag_spec=' '
7961 allow_undefined_flag=unsupported
7962 # Tell ltmain to make .lib files, not .a files.
7963 libext=lib
7964 # Tell ltmain to make .dll files, not .so files.
7965 shrext_cmds=".dll"
7966 # FIXME: Setting linknames here is a bad hack.
7967 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7968 # The linker will automatically build a .lib file if we build a DLL.
7969 old_archive_from_new_cmds='true'
7970 # FIXME: Should let the user specify the lib program.
7971 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7972 fix_srcfile_path='`cygpath -w "$srcfile"`'
7973 enable_shared_with_static_runtimes=yes
7974 ;;
d7040cdb 7975
dabbade6
L
7976 darwin* | rhapsody*)
7977 case $host_os in
7978 rhapsody* | darwin1.[012])
7979 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7980 ;;
7981 *) # Darwin 1.3 on
7982 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7983 10.[012])
7984 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7985 ;;
7986 10.*)
7987 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7988 ;;
7989 esac
7990 ;;
7991 esac
7992 archive_cmds_need_lc=no
7993 hardcode_direct=no
7994 hardcode_automatic=yes
7995 hardcode_shlibpath_var=unsupported
7996 whole_archive_flag_spec=''
7997 link_all_deplibs=yes
7998 if test "$GCC" = yes ; then
7999 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002 lt_cv_apple_cc_single_mod=no
8003 if test -z "${LT_MULTI_MODULE}"; then
8004 # By default we will add the -single_module flag. You can override
8005 # by either setting the environment variable LT_MULTI_MODULE
8006 # non-empty at configure time, or by adding -multi-module to the
8007 # link flags.
8008 echo "int foo(void){return 1;}" > conftest.c
8009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8010 -dynamiclib ${wl}-single_module conftest.c
8011 if test -f libconftest.dylib; then
8012 lt_cv_apple_cc_single_mod=yes
8013 rm libconftest.dylib
8014 fi
8015 rm conftest.$ac_ext
8016 fi
8017fi
d7040cdb 8018
dabbade6
L
8019 output_verbose_link_cmd=echo
8020 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8021 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8022 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}'
8023 else
8024 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8025 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}'
8026 fi
8027 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8028 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}'
8029 else
8030 case $cc_basename in
8031 xlc*)
8032 output_verbose_link_cmd=echo
8033 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8034 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8036 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}'
8037 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}'
8038 ;;
8039 *)
8040 ld_shlibs=no
8041 ;;
8042 esac
8043 fi
8044 ;;
d7040cdb 8045
dabbade6
L
8046 dgux*)
8047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_shlibpath_var=no
8050 ;;
d7040cdb 8051
dabbade6
L
8052 freebsd1*)
8053 ld_shlibs=no
8054 ;;
d7040cdb 8055
dabbade6
L
8056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8057 # support. Future versions do this automatically, but an explicit c++rt0.o
8058 # does not break anything, and helps significantly (at the cost of a little
8059 # extra space).
8060 freebsd2.2*)
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8062 hardcode_libdir_flag_spec='-R$libdir'
8063 hardcode_direct=yes
8064 hardcode_shlibpath_var=no
8065 ;;
d7040cdb 8066
dabbade6
L
8067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8068 freebsd2*)
8069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8070 hardcode_direct=yes
8071 hardcode_minus_L=yes
8072 hardcode_shlibpath_var=no
8073 ;;
d7040cdb 8074
dabbade6
L
8075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8076 freebsd* | dragonfly*)
8077 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8078 hardcode_libdir_flag_spec='-R$libdir'
8079 hardcode_direct=yes
8080 hardcode_shlibpath_var=no
8081 ;;
d7040cdb 8082
dabbade6
L
8083 hpux9*)
8084 if test "$GCC" = yes; then
8085 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'
8086 else
8087 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'
8088 fi
8089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090 hardcode_libdir_separator=:
8091 hardcode_direct=yes
d7040cdb 8092
dabbade6
L
8093 # hardcode_minus_L: Not really in the search PATH,
8094 # but as the default location of the library.
8095 hardcode_minus_L=yes
8096 export_dynamic_flag_spec='${wl}-E'
8097 ;;
d7040cdb 8098
dabbade6
L
8099 hpux10*)
8100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8102 else
8103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8104 fi
8105 if test "$with_gnu_ld" = no; then
8106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8107 hardcode_libdir_flag_spec_ld='+b $libdir'
8108 hardcode_libdir_separator=:
8109 hardcode_direct=yes
8110 hardcode_direct_absolute=yes
8111 export_dynamic_flag_spec='${wl}-E'
8112 # hardcode_minus_L: Not really in the search PATH,
8113 # but as the default location of the library.
8114 hardcode_minus_L=yes
8115 fi
8116 ;;
d7040cdb 8117
dabbade6
L
8118 hpux11*)
8119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8120 case $host_cpu in
8121 hppa*64*)
8122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123 ;;
8124 ia64*)
8125 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8126 ;;
8127 *)
8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129 ;;
8130 esac
8131 else
8132 case $host_cpu in
8133 hppa*64*)
8134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 ;;
8136 ia64*)
8137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8138 ;;
8139 *)
8140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8141 ;;
8142 esac
8143 fi
8144 if test "$with_gnu_ld" = no; then
8145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8146 hardcode_libdir_separator=:
d7040cdb 8147
dabbade6
L
8148 case $host_cpu in
8149 hppa*64*|ia64*)
8150 hardcode_direct=no
8151 hardcode_shlibpath_var=no
8152 ;;
8153 *)
8154 hardcode_direct=yes
8155 hardcode_direct_absolute=yes
8156 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8157
dabbade6
L
8158 # hardcode_minus_L: Not really in the search PATH,
8159 # but as the default location of the library.
8160 hardcode_minus_L=yes
8161 ;;
8162 esac
8163 fi
8164 ;;
d7040cdb 8165
dabbade6
L
8166 irix5* | irix6* | nonstopux*)
8167 if test "$GCC" = yes; then
8168 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'
8169 # Try to use the -exported_symbol ld option, if it does not
8170 # work, assume that -exports_file does not work either and
8171 # implicitly export all symbols.
8172 save_LDFLAGS="$LDFLAGS"
8173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8174 cat >conftest.$ac_ext <<_ACEOF
8175int foo(void) {}
8176_ACEOF
8177rm -f conftest.$ac_objext conftest$ac_exeext
8178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 (eval $ac_link) 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest$ac_exeext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 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'
d7040cdb 8200
d7040cdb 8201else
dabbade6
L
8202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
d7040cdb 8205fi
dabbade6
L
8206rm -f conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS="$save_LDFLAGS"
8209 else
8210 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'
8211 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'
8212 fi
8213 archive_cmds_need_lc='no'
8214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 hardcode_libdir_separator=:
8216 inherit_rpath=yes
8217 link_all_deplibs=yes
8218 ;;
d7040cdb 8219
dabbade6
L
8220 netbsd*)
8221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8223 else
8224 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8225 fi
8226 hardcode_libdir_flag_spec='-R$libdir'
8227 hardcode_direct=yes
8228 hardcode_shlibpath_var=no
8229 ;;
d7040cdb 8230
dabbade6
L
8231 newsos6)
8232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_direct=yes
8234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8235 hardcode_libdir_separator=:
8236 hardcode_shlibpath_var=no
8237 ;;
d7040cdb 8238
dabbade6
L
8239 *nto* | *qnx*)
8240 ;;
d7040cdb 8241
dabbade6
L
8242 openbsd*)
8243 hardcode_direct=yes
8244 hardcode_shlibpath_var=no
8245 hardcode_direct_absolute=yes
8246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8248 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8250 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8251 else
dabbade6
L
8252 case $host_os in
8253 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8255 hardcode_libdir_flag_spec='-R$libdir'
8256 ;;
8257 *)
8258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8260 ;;
8261 esac
d7040cdb
SE
8262 fi
8263 ;;
d7040cdb 8264
dabbade6
L
8265 os2*)
8266 hardcode_libdir_flag_spec='-L$libdir'
8267 hardcode_minus_L=yes
8268 allow_undefined_flag=unsupported
8269 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'
8270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8271 ;;
d7040cdb 8272
dabbade6
L
8273 osf3*)
8274 if test "$GCC" = yes; then
8275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8276 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'
8277 else
8278 allow_undefined_flag=' -expect_unresolved \*'
8279 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'
8280 fi
8281 archive_cmds_need_lc='no'
8282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283 hardcode_libdir_separator=:
8284 ;;
d7040cdb 8285
dabbade6
L
8286 osf4* | osf5*) # as osf3* with the addition of -msym flag
8287 if test "$GCC" = yes; then
8288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8289 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'
8290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8291 else
8292 allow_undefined_flag=' -expect_unresolved \*'
8293 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'
8294 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~
8295 $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'
d7040cdb 8296
dabbade6
L
8297 # Both c and cxx compiler support -rpath directly
8298 hardcode_libdir_flag_spec='-rpath $libdir'
8299 fi
8300 archive_cmds_need_lc='no'
8301 hardcode_libdir_separator=:
8302 ;;
d7040cdb 8303
dabbade6
L
8304 solaris*)
8305 no_undefined_flag=' -z defs'
8306 if test "$GCC" = yes; then
8307 wlarc='${wl}'
8308 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8310 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8311 else
8312 case `$CC -V 2>&1` in
8313 *"Compilers 5.0"*)
8314 wlarc=''
8315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8318 ;;
8319 *)
8320 wlarc='${wl}'
8321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8324 ;;
8325 esac
8326 fi
8327 hardcode_libdir_flag_spec='-R$libdir'
8328 hardcode_shlibpath_var=no
8329 case $host_os in
8330 solaris2.[0-5] | solaris2.[0-5].*) ;;
8331 *)
8332 # The compiler driver will combine and reorder linker options,
8333 # but understands `-z linker_flag'. GCC discards it without `$wl',
8334 # but is careful enough not to reorder.
8335 # Supported since Solaris 2.6 (maybe 2.5.1?)
8336 if test "$GCC" = yes; then
8337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8338 else
8339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8340 fi
8341 ;;
8342 esac
8343 link_all_deplibs=yes
d7040cdb 8344 ;;
dabbade6
L
8345
8346 sunos4*)
8347 if test "x$host_vendor" = xsequent; then
8348 # Use $CC to link under sequent, because it throws in some extra .o
8349 # files that make .init and .fini sections work.
8350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8351 else
dabbade6 8352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8353 fi
dabbade6
L
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_direct=yes
8356 hardcode_minus_L=yes
8357 hardcode_shlibpath_var=no
d7040cdb 8358 ;;
dabbade6
L
8359
8360 sysv4)
8361 case $host_vendor in
8362 sni)
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_direct=yes # is this really true???
8365 ;;
8366 siemens)
8367 ## LD is ld it makes a PLAMLIB
8368 ## CC just makes a GrossModule.
8369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8370 reload_cmds='$CC -r -o $output$reload_objs'
8371 hardcode_direct=no
8372 ;;
8373 motorola)
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8376 ;;
8377 esac
8378 runpath_var='LD_RUN_PATH'
8379 hardcode_shlibpath_var=no
d7040cdb 8380 ;;
d7040cdb 8381
dabbade6
L
8382 sysv4.3*)
8383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384 hardcode_shlibpath_var=no
8385 export_dynamic_flag_spec='-Bexport'
8386 ;;
d7040cdb 8387
dabbade6
L
8388 sysv4*MP*)
8389 if test -d /usr/nec; then
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_shlibpath_var=no
8392 runpath_var=LD_RUN_PATH
8393 hardcode_runpath_var=yes
8394 ld_shlibs=yes
8395 fi
8396 ;;
d7040cdb 8397
dabbade6
L
8398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8399 no_undefined_flag='${wl}-z,text'
8400 archive_cmds_need_lc=no
8401 hardcode_shlibpath_var=no
8402 runpath_var='LD_RUN_PATH'
d7040cdb 8403
dabbade6
L
8404 if test "$GCC" = yes; then
8405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8407 else
8408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8410 fi
8411 ;;
d7040cdb 8412
dabbade6
L
8413 sysv5* | sco3.2v5* | sco5v6*)
8414 # Note: We can NOT use -z defs as we might desire, because we do not
8415 # link with -lc, and that would cause any symbols used from libc to
8416 # always be unresolved, which means just about no library would
8417 # ever link correctly. If we're not using GNU ld we use -z text
8418 # though, which does catch some bad symbols but isn't as heavy-handed
8419 # as -z defs.
8420 no_undefined_flag='${wl}-z,text'
8421 allow_undefined_flag='${wl}-z,nodefs'
8422 archive_cmds_need_lc=no
8423 hardcode_shlibpath_var=no
8424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8425 hardcode_libdir_separator=':'
8426 link_all_deplibs=yes
8427 export_dynamic_flag_spec='${wl}-Bexport'
8428 runpath_var='LD_RUN_PATH'
d7040cdb 8429
dabbade6
L
8430 if test "$GCC" = yes; then
8431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 else
8434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436 fi
d7040cdb 8437 ;;
d7040cdb 8438
dabbade6
L
8439 uts4*)
8440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441 hardcode_libdir_flag_spec='-L$libdir'
8442 hardcode_shlibpath_var=no
8443 ;;
d7040cdb 8444
dabbade6
L
8445 *)
8446 ld_shlibs=no
8447 ;;
8448 esac
8449
8450 if test x$host_vendor = xsni; then
8451 case $host in
8452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8453 export_dynamic_flag_spec='${wl}-Blargedynsym'
8454 ;;
8455 esac
d7040cdb 8456 fi
dabbade6 8457 fi
d7040cdb 8458
dabbade6
L
8459echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8460echo "${ECHO_T}$ld_shlibs" >&6
8461test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8462
dabbade6 8463with_gnu_ld=$with_gnu_ld
d7040cdb 8464
d7040cdb 8465
d7040cdb 8466
d7040cdb 8467
d7040cdb 8468
d7040cdb 8469
d7040cdb 8470
d7040cdb 8471
d7040cdb 8472
d7040cdb 8473
d7040cdb 8474
d7040cdb 8475
d7040cdb 8476
d7040cdb 8477
d7040cdb 8478
dabbade6
L
8479#
8480# Do we need to explicitly link libc?
8481#
8482case "x$archive_cmds_need_lc" in
8483x|xyes)
8484 # Assume -lc should be added
8485 archive_cmds_need_lc=yes
d7040cdb 8486
dabbade6
L
8487 if test "$enable_shared" = yes && test "$GCC" = yes; then
8488 case $archive_cmds in
8489 *'~'*)
8490 # FIXME: we may have to deal with multi-command sequences.
8491 ;;
8492 '$CC '*)
8493 # Test whether the compiler implicitly links with -lc since on some
8494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8495 # to ld, don't add -lc before -lgcc.
8496 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8497echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8498 $RM conftest*
8499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8500
dabbade6
L
8501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502 (eval $ac_compile) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } 2>conftest.err; then
8506 soname=conftest
8507 lib=conftest
8508 libobjs=conftest.$ac_objext
8509 deplibs=
8510 wl=$lt_prog_compiler_wl
8511 pic_flag=$lt_prog_compiler_pic
8512 compiler_flags=-v
8513 linker_flags=-v
8514 verstring=
8515 output_objdir=.
8516 libname=conftest
8517 lt_save_allow_undefined_flag=$allow_undefined_flag
8518 allow_undefined_flag=
8519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }
8524 then
8525 archive_cmds_need_lc=no
8526 else
8527 archive_cmds_need_lc=yes
8528 fi
8529 allow_undefined_flag=$lt_save_allow_undefined_flag
8530 else
8531 cat conftest.err 1>&5
8532 fi
8533 $RM conftest*
8534 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8535echo "${ECHO_T}$archive_cmds_need_lc" >&6
8536 ;;
8537 esac
d7040cdb 8538 fi
d7040cdb 8539 ;;
dabbade6 8540esac
d7040cdb 8541
d7040cdb 8542
d7040cdb 8543
d7040cdb 8544
d7040cdb 8545
d7040cdb 8546
d7040cdb 8547
d7040cdb
SE
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
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
d7040cdb 8635
d7040cdb 8636
d7040cdb
SE
8637
8638
8639
8640
8641
8642
d7040cdb 8643
d7040cdb 8644
d7040cdb 8645
d7040cdb 8646
d7040cdb 8647
d7040cdb 8648
d7040cdb 8649
d7040cdb 8650
d7040cdb 8651
d7040cdb 8652
d7040cdb 8653
d7040cdb 8654
d7040cdb 8655
d7040cdb 8656
d7040cdb 8657
d7040cdb 8658
d7040cdb 8659
d7040cdb 8660
d7040cdb 8661
d7040cdb 8662
d7040cdb 8663
d7040cdb 8664
d7040cdb 8665
d7040cdb 8666
dabbade6
L
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8699echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8700withGCC=$GCC
8701if test "$withGCC" = yes; then
8702 case $host_os in
8703 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8704 *) lt_awk_arg="/^libraries:/" ;;
8705 esac
8706 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8707 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8708 # if the path contains ";" then we assume it to be the separator
8709 # otherwise default to the standard path separator (i.e. ":") - it is
8710 # assumed that no part of a normal pathname contains ";" but that should
8711 # okay in the real world where ";" in dirpaths is itself problematic.
8712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8713 else
8714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8715 fi
8716 # Ok, now we have the path, separated by spaces, we can step through it
8717 # and add multilib dir if necessary.
8718 lt_tmp_lt_search_path_spec=
8719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8720 for lt_sys_path in $lt_search_path_spec; do
8721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8723 else
8724 test -d "$lt_sys_path" && \
8725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8726 fi
8727 done
8728 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8729BEGIN {RS=" "; FS="/|\n";} {
8730 lt_foo="";
8731 lt_count=0;
8732 for (lt_i = NF; lt_i > 0; lt_i--) {
8733 if ($lt_i != "" && $lt_i != ".") {
8734 if ($lt_i == "..") {
8735 lt_count++;
8736 } else {
8737 if (lt_count == 0) {
8738 lt_foo="/" $lt_i lt_foo;
8739 } else {
8740 lt_count--;
8741 }
8742 }
8743 }
8744 }
8745 if (lt_foo != "") { lt_freq[lt_foo]++; }
8746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8747}'`
8748 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8749else
dabbade6
L
8750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8751fi
8752library_names_spec=
8753libname_spec='lib$name'
8754soname_spec=
8755shrext_cmds=".so"
8756postinstall_cmds=
8757postuninstall_cmds=
8758finish_cmds=
8759finish_eval=
8760shlibpath_var=
8761shlibpath_overrides_runpath=unknown
8762version_type=none
8763dynamic_linker="$host_os ld.so"
8764sys_lib_dlsearch_path_spec="/lib /usr/lib"
8765need_lib_prefix=unknown
8766hardcode_into_libs=no
8767
8768# when you set need_version to no, make sure it does not cause -set_version
8769# flags to be left without arguments
8770need_version=unknown
8771
8772case $host_os in
8773aix3*)
8774 version_type=linux
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8776 shlibpath_var=LIBPATH
8777
8778 # AIX 3 has no versioning support, so we append a major version to the name.
8779 soname_spec='${libname}${release}${shared_ext}$major'
8780 ;;
8781
50e7d84b 8782aix[4-9]*)
dabbade6
L
8783 version_type=linux
8784 need_lib_prefix=no
8785 need_version=no
8786 hardcode_into_libs=yes
8787 if test "$host_cpu" = ia64; then
8788 # AIX 5 supports IA64
8789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8790 shlibpath_var=LD_LIBRARY_PATH
8791 else
8792 # With GCC up to 2.95.x, collect2 would create an import file
8793 # for dependence libraries. The import file would start with
8794 # the line `#! .'. This would cause the generated library to
8795 # depend on `.', always an invalid library. This was fixed in
8796 # development snapshots of GCC prior to 3.0.
8797 case $host_os in
8798 aix4 | aix4.[01] | aix4.[01].*)
8799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8800 echo ' yes '
8801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8802 :
8803 else
8804 can_build_shared=no
8805 fi
8806 ;;
8807 esac
8808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8809 # soname into executable. Probably we can add versioning support to
8810 # collect2, so additional links can be useful in future.
8811 if test "$aix_use_runtimelinking" = yes; then
8812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8813 # instead of lib<name>.a to let people know that these are not
8814 # typical AIX shared libraries.
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 else
8817 # We preserve .a as extension for shared libraries through AIX4.2
8818 # and later when we are not doing run time linking.
8819 library_names_spec='${libname}${release}.a $libname.a'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 fi
8822 shlibpath_var=LIBPATH
8823 fi
8824 ;;
8825
8826amigaos*)
8827 if test "$host_cpu" = m68k; then
8828 library_names_spec='$libname.ixlibrary $libname.a'
8829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8830 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'
8831 else
8832 dynamic_linker=no
8833 fi
8834 ;;
8835
8836beos*)
8837 library_names_spec='${libname}${shared_ext}'
8838 dynamic_linker="$host_os ld.so"
8839 shlibpath_var=LIBRARY_PATH
8840 ;;
8841
8842bsdi[45]*)
8843 version_type=linux
8844 need_version=no
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8851 # the default ld.so.conf also contains /usr/contrib/lib and
8852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8853 # libtool to hard-code these into programs
8854 ;;
8855
8856cygwin* | mingw* | pw32*)
8857 version_type=windows
8858 shrext_cmds=".dll"
8859 need_version=no
8860 need_lib_prefix=no
8861
8862 case $withGCC,$host_os in
8863 yes,cygwin* | yes,mingw* | yes,pw32*)
8864 library_names_spec='$libname.dll.a'
8865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8866 postinstall_cmds='base_file=`basename \${file}`~
8867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8868 dldir=$destdir/`dirname \$dlpath`~
8869 test -d \$dldir || mkdir -p \$dldir~
8870 $install_prog $dir/$dlname \$dldir/$dlname~
8871 chmod a+x \$dldir/$dlname~
8872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8874 fi'
8875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8876 dlpath=$dir/\$dldll~
8877 $RM \$dlpath'
8878 shlibpath_overrides_runpath=yes
8879
8880 case $host_os in
8881 cygwin*)
8882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8885 ;;
8886 mingw*)
8887 # MinGW DLLs use traditional 'lib' prefix
8888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8889 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8891 # It is most probably a Windows format PATH printed by
8892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8893 # path with ; separators, and with drive letters. We can handle the
8894 # drive letters (cygwin fileutils understands them), so leave them,
8895 # especially as we might pass files found there to a mingw objdump,
8896 # which wouldn't understand a cygwinified path. Ahh.
8897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 else
8899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 fi
8901 ;;
8902 pw32*)
8903 # pw32 DLLs use 'pw' prefix rather than 'lib'
8904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8905 ;;
8906 esac
8907 ;;
8908
8909 *)
8910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8911 ;;
8912 esac
8913 dynamic_linker='Win32 ld.exe'
8914 # FIXME: first we should search . and the directory the executable is in
8915 shlibpath_var=PATH
8916 ;;
8917
8918darwin* | rhapsody*)
8919 dynamic_linker="$host_os dyld"
8920 version_type=darwin
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8924 soname_spec='${libname}${release}${major}$shared_ext'
8925 shlibpath_overrides_runpath=yes
8926 shlibpath_var=DYLD_LIBRARY_PATH
8927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8928
8929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8931 ;;
8932
8933dgux*)
8934 version_type=linux
8935 need_lib_prefix=no
8936 need_version=no
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 ;;
8941
8942freebsd1*)
8943 dynamic_linker=no
8944 ;;
8945
8946freebsd* | dragonfly*)
8947 # DragonFly does not have aout. When/if they implement a new
8948 # versioning mechanism, adjust this.
8949 if test -x /usr/bin/objformat; then
8950 objformat=`/usr/bin/objformat`
8951 else
8952 case $host_os in
8953 freebsd[123]*) objformat=aout ;;
8954 *) objformat=elf ;;
8955 esac
8956 fi
8957 version_type=freebsd-$objformat
8958 case $version_type in
8959 freebsd-elf*)
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8961 need_version=no
8962 need_lib_prefix=no
8963 ;;
8964 freebsd-*)
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8966 need_version=yes
8967 ;;
8968 esac
8969 shlibpath_var=LD_LIBRARY_PATH
8970 case $host_os in
8971 freebsd2*)
8972 shlibpath_overrides_runpath=yes
8973 ;;
8974 freebsd3.[01]* | freebsdelf3.[01]*)
8975 shlibpath_overrides_runpath=yes
8976 hardcode_into_libs=yes
8977 ;;
8978 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8979 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8980 shlibpath_overrides_runpath=no
8981 hardcode_into_libs=yes
8982 ;;
8983 *) # from 4.6 on, and DragonFly
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8986 ;;
8987 esac
8988 ;;
8989
8990gnu*)
8991 version_type=linux
8992 need_lib_prefix=no
8993 need_version=no
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 hardcode_into_libs=yes
8998 ;;
8999
9000hpux9* | hpux10* | hpux11*)
9001 # Give a soname corresponding to the major version so that dld.sl refuses to
9002 # link against other versions.
9003 version_type=sunos
9004 need_lib_prefix=no
9005 need_version=no
9006 case $host_cpu in
9007 ia64*)
9008 shrext_cmds='.so'
9009 hardcode_into_libs=yes
9010 dynamic_linker="$host_os dld.so"
9011 shlibpath_var=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 if test "X$HPUX_IA64_MODE" = X32; then
9016 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9017 else
9018 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9019 fi
9020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9021 ;;
9022 hppa*64*)
9023 shrext_cmds='.sl'
9024 hardcode_into_libs=yes
9025 dynamic_linker="$host_os dld.sl"
9026 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9032 ;;
9033 *)
9034 shrext_cmds='.sl'
9035 dynamic_linker="$host_os dld.sl"
9036 shlibpath_var=SHLIB_PATH
9037 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 ;;
9041 esac
9042 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9043 postinstall_cmds='chmod 555 $lib'
9044 ;;
9045
9046interix[3-9]*)
9047 version_type=linux
9048 need_lib_prefix=no
9049 need_version=no
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=no
9055 hardcode_into_libs=yes
9056 ;;
9057
9058irix5* | irix6* | nonstopux*)
9059 case $host_os in
9060 nonstopux*) version_type=nonstopux ;;
9061 *)
9062 if test "$lt_cv_prog_gnu_ld" = yes; then
9063 version_type=linux
9064 else
9065 version_type=irix
9066 fi ;;
9067 esac
9068 need_lib_prefix=no
9069 need_version=no
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9072 case $host_os in
9073 irix5* | nonstopux*)
9074 libsuff= shlibsuff=
9075 ;;
9076 *)
9077 case $LD in # libtool.m4 will add one of these switches to LD
9078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9079 libsuff= shlibsuff= libmagic=32-bit;;
9080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9081 libsuff=32 shlibsuff=N32 libmagic=N32;;
9082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9084 *) libsuff= shlibsuff= libmagic=never-match;;
9085 esac
9086 ;;
9087 esac
9088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9089 shlibpath_overrides_runpath=no
9090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9092 hardcode_into_libs=yes
9093 ;;
9094
9095# No shared lib support for Linux oldld, aout, or coff.
9096linux*oldld* | linux*aout* | linux*coff*)
9097 dynamic_linker=no
9098 ;;
9099
9100# This must be Linux ELF.
9101linux* | k*bsd*-gnu)
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=no
9110 # Some binutils ld are patched to set DT_RUNPATH
9111 save_LDFLAGS=$LDFLAGS
9112 save_libdir=$libdir
9113 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9114 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9115 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9116/* confdefs.h. */
9117_ACEOF
9118cat confdefs.h >>conftest.$ac_ext
9119cat >>conftest.$ac_ext <<_ACEOF
9120/* end confdefs.h. */
9121
d7040cdb
SE
9122int
9123main ()
9124{
dabbade6 9125
d7040cdb
SE
9126 ;
9127 return 0;
9128}
9129_ACEOF
9130rm -f conftest.$ac_objext conftest$ac_exeext
9131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag"
9140 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } &&
9146 { ac_try='test -s conftest$ac_exeext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
dabbade6
L
9152 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9153 shlibpath_overrides_runpath=yes
9154fi
9155
d7040cdb
SE
9156else
9157 echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
d7040cdb
SE
9160fi
9161rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9163 LDFLAGS=$save_LDFLAGS
9164 libdir=$save_libdir
9165
9166 # This implies no fast_install, which is unacceptable.
9167 # Some rework will be needed to allow for fast_install
9168 # before this can be enabled.
9169 hardcode_into_libs=yes
9170
9171 # Append ld.so.conf contents to the search path
9172 if test -f /etc/ld.so.conf; then
9173 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' ' '`
9174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9175 fi
9176
9177 # We used to test for /lib/ld.so.1 and disable shared libraries on
9178 # powerpc, because MkLinux only supported shared libraries with the
9179 # GNU dynamic linker. Since this was broken with cross compilers,
9180 # most powerpc-linux boxes support dynamic linking these days and
9181 # people can always --disable-shared, the test was removed, and we
9182 # assume the GNU/Linux dynamic linker is in use.
9183 dynamic_linker='GNU/Linux ld.so'
9184 ;;
9185
9186netbsd*)
9187 version_type=sunos
9188 need_lib_prefix=no
9189 need_version=no
9190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9194 else
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9198 fi
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 ;;
9203
9204newsos6)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 ;;
9210
9211*nto* | *qnx*)
9212 version_type=qnx
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=no
9219 hardcode_into_libs=yes
9220 dynamic_linker='ldqnx.so'
9221 ;;
9222
9223openbsd*)
9224 version_type=sunos
9225 sys_lib_dlsearch_path_spec="/usr/lib"
9226 need_lib_prefix=no
9227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9228 case $host_os in
9229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9230 *) need_version=no ;;
9231 esac
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9236 case $host_os in
9237 openbsd2.[89] | openbsd2.[89].*)
9238 shlibpath_overrides_runpath=no
9239 ;;
9240 *)
9241 shlibpath_overrides_runpath=yes
9242 ;;
9243 esac
9244 else
9245 shlibpath_overrides_runpath=yes
9246 fi
9247 ;;
9248
9249os2*)
9250 libname_spec='$name'
9251 shrext_cmds=".dll"
9252 need_lib_prefix=no
9253 library_names_spec='$libname${shared_ext} $libname.a'
9254 dynamic_linker='OS/2 ld.exe'
9255 shlibpath_var=LIBPATH
9256 ;;
9257
9258osf3* | osf4* | osf5*)
9259 version_type=osf
9260 need_lib_prefix=no
9261 need_version=no
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9267 ;;
9268
9269rdos*)
9270 dynamic_linker=no
9271 ;;
9272
9273solaris*)
9274 version_type=linux
9275 need_lib_prefix=no
9276 need_version=no
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 shlibpath_overrides_runpath=yes
9281 hardcode_into_libs=yes
9282 # ldd complains unless libraries are executable
9283 postinstall_cmds='chmod +x $lib'
9284 ;;
9285
9286sunos4*)
9287 version_type=sunos
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=yes
9292 if test "$with_gnu_ld" = yes; then
9293 need_lib_prefix=no
9294 fi
9295 need_version=yes
9296 ;;
9297
9298sysv4 | sysv4.3*)
9299 version_type=linux
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 case $host_vendor in
9304 sni)
9305 shlibpath_overrides_runpath=no
9306 need_lib_prefix=no
9307 runpath_var=LD_RUN_PATH
9308 ;;
9309 siemens)
9310 need_lib_prefix=no
9311 ;;
9312 motorola)
9313 need_lib_prefix=no
9314 need_version=no
9315 shlibpath_overrides_runpath=no
9316 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9317 ;;
9318 esac
9319 ;;
9320
9321sysv4*MP*)
9322 if test -d /usr/nec ;then
9323 version_type=linux
9324 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9325 soname_spec='$libname${shared_ext}.$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 fi
9328 ;;
9329
9330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9331 version_type=freebsd-elf
9332 need_lib_prefix=no
9333 need_version=no
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9335 soname_spec='${libname}${release}${shared_ext}$major'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 shlibpath_overrides_runpath=yes
9338 hardcode_into_libs=yes
9339 if test "$with_gnu_ld" = yes; then
9340 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9341 else
9342 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9343 case $host_os in
9344 sco3.2v5*)
9345 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9346 ;;
9347 esac
9348 fi
9349 sys_lib_dlsearch_path_spec='/usr/lib'
9350 ;;
9351
9352tpf*)
9353 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9354 version_type=linux
9355 need_lib_prefix=no
9356 need_version=no
9357 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 shlibpath_overrides_runpath=no
9360 hardcode_into_libs=yes
9361 ;;
9362
9363uts4*)
9364 version_type=linux
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 ;;
d7040cdb 9369
dabbade6
L
9370*)
9371 dynamic_linker=no
9372 ;;
9373esac
9374echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9375echo "${ECHO_T}$dynamic_linker" >&6
9376test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 9377
dabbade6
L
9378variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9379if test "$GCC" = yes; then
9380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9381fi
d7040cdb 9382
d7040cdb 9383
d7040cdb
SE
9384
9385
d7040cdb
SE
9386
9387
d7040cdb
SE
9388
9389
d7040cdb
SE
9390
9391
d7040cdb
SE
9392
9393
d7040cdb 9394
d7040cdb 9395
d7040cdb 9396
d7040cdb 9397
d7040cdb 9398
d7040cdb 9399
d7040cdb 9400
d7040cdb 9401
d7040cdb 9402
d7040cdb 9403
d7040cdb 9404
d7040cdb 9405
d7040cdb 9406
d7040cdb 9407
d7040cdb
SE
9408
9409
d7040cdb 9410
d7040cdb 9411
d7040cdb 9412
d7040cdb 9413
d7040cdb 9414
d7040cdb 9415
d7040cdb 9416
d7040cdb 9417
d7040cdb 9418
d7040cdb
SE
9419
9420
d7040cdb 9421
d7040cdb 9422
d7040cdb 9423
d7040cdb
SE
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
d7040cdb
SE
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
d7040cdb 9453
d7040cdb 9454
dabbade6
L
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9470echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9471hardcode_action=
9472if test -n "$hardcode_libdir_flag_spec" ||
9473 test -n "$runpath_var" ||
9474 test "X$hardcode_automatic" = "Xyes" ; then
9475
9476 # We can hardcode non-existent directories.
9477 if test "$hardcode_direct" != no &&
9478 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9479 # have to relink, otherwise we might link with an installed library
9480 # when we should be linking with a yet-to-be-installed one
9481 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9482 test "$hardcode_minus_L" != no; then
9483 # Linking always hardcodes the temporary library directory.
9484 hardcode_action=relink
9485 else
9486 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9487 hardcode_action=immediate
9488 fi
9489else
9490 # We cannot hardcode anything, or else we can only hardcode existing
9491 # directories.
9492 hardcode_action=unsupported
9493fi
9494echo "$as_me:$LINENO: result: $hardcode_action" >&5
9495echo "${ECHO_T}$hardcode_action" >&6
9496
9497if test "$hardcode_action" = relink ||
9498 test "$inherit_rpath" = yes; then
9499 # Fast installation is not supported
9500 enable_fast_install=no
9501elif test "$shlibpath_overrides_runpath" = yes ||
9502 test "$enable_shared" = no; then
9503 # Fast installation is not necessary
9504 enable_fast_install=needless
9505fi
9506
9507
9508
9509
9510
9511
9512 if test "x$enable_dlopen" != xyes; then
9513 enable_dlopen=unknown
9514 enable_dlopen_self=unknown
9515 enable_dlopen_self_static=unknown
9516else
9517 lt_cv_dlopen=no
9518 lt_cv_dlopen_libs=
9519
d7040cdb 9520 case $host_os in
dabbade6
L
9521 beos*)
9522 lt_cv_dlopen="load_add_on"
9523 lt_cv_dlopen_libs=
9524 lt_cv_dlopen_self=yes
d7040cdb
SE
9525 ;;
9526
dabbade6
L
9527 mingw* | pw32*)
9528 lt_cv_dlopen="LoadLibrary"
9529 lt_cv_dlopen_libs=
d7040cdb 9530 ;;
d7040cdb 9531
dabbade6
L
9532 cygwin*)
9533 lt_cv_dlopen="dlopen"
9534 lt_cv_dlopen_libs=
9535 ;;
d7040cdb 9536
dabbade6
L
9537 darwin*)
9538 # if libdl is installed we need to link against it
9539 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9540echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9541if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543else
9544 ac_check_lib_save_LIBS=$LIBS
9545LIBS="-ldl $LIBS"
9546cat >conftest.$ac_ext <<_ACEOF
9547/* confdefs.h. */
9548_ACEOF
9549cat confdefs.h >>conftest.$ac_ext
9550cat >>conftest.$ac_ext <<_ACEOF
9551/* end confdefs.h. */
d7040cdb 9552
dabbade6
L
9553/* Override any gcc2 internal prototype to avoid an error. */
9554#ifdef __cplusplus
9555extern "C"
9556#endif
9557/* We use char because int might match the return type of a gcc2
9558 builtin and then its argument prototype would still apply. */
9559char dlopen ();
9560int
9561main ()
9562{
9563dlopen ();
9564 ;
9565 return 0;
9566}
9567_ACEOF
9568rm -f conftest.$ac_objext conftest$ac_exeext
9569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570 (eval $ac_link) 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -z "$ac_c_werror_flag"
9578 || test ! -s conftest.err'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try='test -s conftest$ac_exeext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 (eval $ac_try) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_cv_lib_dl_dlopen=yes
9591else
9592 echo "$as_me: failed program was:" >&5
9593sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9594
dabbade6 9595ac_cv_lib_dl_dlopen=no
d7040cdb 9596fi
dabbade6
L
9597rm -f conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599LIBS=$ac_check_lib_save_LIBS
9600fi
9601echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9602echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9603if test $ac_cv_lib_dl_dlopen = yes; then
9604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9605else
d7040cdb 9606
dabbade6
L
9607 lt_cv_dlopen="dyld"
9608 lt_cv_dlopen_libs=
9609 lt_cv_dlopen_self=yes
d7040cdb 9610
dabbade6 9611fi
d7040cdb 9612
dabbade6 9613 ;;
d7040cdb 9614
dabbade6
L
9615 *)
9616 echo "$as_me:$LINENO: checking for shl_load" >&5
9617echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9618if test "${ac_cv_func_shl_load+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620else
9621 cat >conftest.$ac_ext <<_ACEOF
9622/* confdefs.h. */
9623_ACEOF
9624cat confdefs.h >>conftest.$ac_ext
9625cat >>conftest.$ac_ext <<_ACEOF
9626/* end confdefs.h. */
9627/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629#define shl_load innocuous_shl_load
d7040cdb 9630
dabbade6
L
9631/* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char shl_load (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
d7040cdb 9635
dabbade6
L
9636#ifdef __STDC__
9637# include <limits.h>
9638#else
9639# include <assert.h>
9640#endif
d7040cdb 9641
dabbade6 9642#undef shl_load
d7040cdb 9643
dabbade6
L
9644/* Override any gcc2 internal prototype to avoid an error. */
9645#ifdef __cplusplus
9646extern "C"
9647{
9648#endif
9649/* We use char because int might match the return type of a gcc2
9650 builtin and then its argument prototype would still apply. */
9651char shl_load ();
9652/* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655#if defined (__stub_shl_load) || defined (__stub___shl_load)
9656choke me
9657#else
9658char (*f) () = shl_load;
9659#endif
9660#ifdef __cplusplus
9661}
9662#endif
d7040cdb 9663
dabbade6
L
9664int
9665main ()
9666{
9667return f != shl_load;
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
9673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_cv_func_shl_load=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9698
dabbade6
L
9699ac_cv_func_shl_load=no
9700fi
9701rm -f conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703fi
9704echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9705echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9706if test $ac_cv_func_shl_load = yes; then
9707 lt_cv_dlopen="shl_load"
9708else
9709 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9710echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9711if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714 ac_check_lib_save_LIBS=$LIBS
9715LIBS="-ldld $LIBS"
9716cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
d7040cdb 9722
dabbade6
L
9723/* Override any gcc2 internal prototype to avoid an error. */
9724#ifdef __cplusplus
9725extern "C"
9726#endif
9727/* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729char shl_load ();
9730int
9731main ()
9732{
9733shl_load ();
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext conftest$ac_exeext
9739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag"
9748 || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_lib_dld_shl_load=yes
9761else
9762 echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9764
dabbade6
L
9765ac_cv_lib_dld_shl_load=no
9766fi
9767rm -f conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769LIBS=$ac_check_lib_save_LIBS
9770fi
9771echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9772echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9773if test $ac_cv_lib_dld_shl_load = yes; then
9774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9775else
9776 echo "$as_me:$LINENO: checking for dlopen" >&5
9777echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9778if test "${ac_cv_func_dlopen+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 cat >conftest.$ac_ext <<_ACEOF
9782/* confdefs.h. */
9783_ACEOF
9784cat confdefs.h >>conftest.$ac_ext
9785cat >>conftest.$ac_ext <<_ACEOF
9786/* end confdefs.h. */
9787/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9789#define dlopen innocuous_dlopen
d7040cdb 9790
dabbade6
L
9791/* System header to define __stub macros and hopefully few prototypes,
9792 which can conflict with char dlopen (); below.
9793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9794 <limits.h> exists even on freestanding compilers. */
d7040cdb 9795
dabbade6
L
9796#ifdef __STDC__
9797# include <limits.h>
9798#else
9799# include <assert.h>
9800#endif
d7040cdb 9801
dabbade6 9802#undef dlopen
d7040cdb 9803
dabbade6
L
9804/* Override any gcc2 internal prototype to avoid an error. */
9805#ifdef __cplusplus
9806extern "C"
9807{
9808#endif
9809/* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811char dlopen ();
9812/* The GNU C library defines this for functions which it implements
9813 to always fail with ENOSYS. Some functions are actually named
9814 something starting with __ and the normal name is an alias. */
9815#if defined (__stub_dlopen) || defined (__stub___dlopen)
9816choke me
9817#else
9818char (*f) () = dlopen;
9819#endif
9820#ifdef __cplusplus
9821}
9822#endif
d7040cdb 9823
dabbade6
L
9824int
9825main ()
9826{
9827return f != dlopen;
9828 ;
9829 return 0;
9830}
9831_ACEOF
9832rm -f conftest.$ac_objext conftest$ac_exeext
9833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag"
9842 || test ! -s conftest.err'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest$ac_exeext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_func_dlopen=yes
9855else
9856 echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9858
dabbade6
L
9859ac_cv_func_dlopen=no
9860fi
9861rm -f conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863fi
9864echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9865echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9866if test $ac_cv_func_dlopen = yes; then
9867 lt_cv_dlopen="dlopen"
9868else
9869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9871if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873else
9874 ac_check_lib_save_LIBS=$LIBS
9875LIBS="-ldl $LIBS"
9876cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h. */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
9881/* end confdefs.h. */
d7040cdb 9882
dabbade6
L
9883/* Override any gcc2 internal prototype to avoid an error. */
9884#ifdef __cplusplus
9885extern "C"
9886#endif
9887/* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889char dlopen ();
9890int
9891main ()
9892{
9893dlopen ();
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898rm -f conftest.$ac_objext conftest$ac_exeext
9899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_lib_dl_dlopen=yes
9921else
9922 echo "$as_me: failed program was:" >&5
9923sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9924
dabbade6
L
9925ac_cv_lib_dl_dlopen=no
9926fi
9927rm -f conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929LIBS=$ac_check_lib_save_LIBS
9930fi
9931echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9932echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9933if test $ac_cv_lib_dl_dlopen = yes; then
9934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9935else
9936 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9937echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9938if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941 ac_check_lib_save_LIBS=$LIBS
9942LIBS="-lsvld $LIBS"
9943cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h. */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h. */
d7040cdb 9949
dabbade6
L
9950/* Override any gcc2 internal prototype to avoid an error. */
9951#ifdef __cplusplus
9952extern "C"
9953#endif
9954/* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9956char dlopen ();
9957int
9958main ()
9959{
9960dlopen ();
9961 ;
9962 return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext conftest$ac_exeext
9966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag"
9975 || test ! -s conftest.err'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_lib_svld_dlopen=yes
9988else
9989 echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9991
dabbade6
L
9992ac_cv_lib_svld_dlopen=no
9993fi
9994rm -f conftest.err conftest.$ac_objext \
9995 conftest$ac_exeext conftest.$ac_ext
9996LIBS=$ac_check_lib_save_LIBS
9997fi
9998echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9999echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10000if test $ac_cv_lib_svld_dlopen = yes; then
10001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10002else
10003 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10004echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10005if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008 ac_check_lib_save_LIBS=$LIBS
10009LIBS="-ldld $LIBS"
10010cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
d7040cdb 10016
dabbade6
L
10017/* Override any gcc2 internal prototype to avoid an error. */
10018#ifdef __cplusplus
10019extern "C"
10020#endif
10021/* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10023char dld_link ();
10024int
10025main ()
10026{
10027dld_link ();
10028 ;
10029 return 0;
10030}
10031_ACEOF
10032rm -f conftest.$ac_objext conftest$ac_exeext
10033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag"
10042 || test ! -s conftest.err'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest$ac_exeext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lib_dld_dld_link=yes
10055else
10056 echo "$as_me: failed program was:" >&5
10057sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10058
dabbade6 10059ac_cv_lib_dld_dld_link=no
d7040cdb 10060fi
dabbade6
L
10061rm -f conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063LIBS=$ac_check_lib_save_LIBS
d7040cdb 10064fi
dabbade6
L
10065echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10066echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10067if test $ac_cv_lib_dld_dld_link = yes; then
10068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
d7040cdb
SE
10069fi
10070
d7040cdb 10071
d7040cdb
SE
10072fi
10073
10074
dabbade6 10075fi
d7040cdb
SE
10076
10077
dabbade6 10078fi
d7040cdb
SE
10079
10080
d7040cdb
SE
10081fi
10082
979273e3 10083
252b5132 10084fi
252b5132 10085
dabbade6
L
10086 ;;
10087 esac
252b5132 10088
dabbade6
L
10089 if test "x$lt_cv_dlopen" != xno; then
10090 enable_dlopen=yes
10091 else
10092 enable_dlopen=no
10093 fi
1c0d3aa6 10094
dabbade6
L
10095 case $lt_cv_dlopen in
10096 dlopen)
10097 save_CPPFLAGS="$CPPFLAGS"
10098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 10099
dabbade6
L
10100 save_LDFLAGS="$LDFLAGS"
10101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 10102
dabbade6
L
10103 save_LIBS="$LIBS"
10104 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 10105
dabbade6
L
10106 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10107echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10108if test "${lt_cv_dlopen_self+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10110else
dabbade6
L
10111 if test "$cross_compiling" = yes; then :
10112 lt_cv_dlopen_self=cross
d7040cdb 10113else
dabbade6
L
10114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10115 lt_status=$lt_dlunknown
10116 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10117#line 10117 "configure"
dabbade6 10118#include "confdefs.h"
20e95c23 10119
dabbade6
L
10120#if HAVE_DLFCN_H
10121#include <dlfcn.h>
10122#endif
20e95c23 10123
dabbade6 10124#include <stdio.h>
20e95c23 10125
dabbade6
L
10126#ifdef RTLD_GLOBAL
10127# define LT_DLGLOBAL RTLD_GLOBAL
10128#else
10129# ifdef DL_GLOBAL
10130# define LT_DLGLOBAL DL_GLOBAL
10131# else
10132# define LT_DLGLOBAL 0
10133# endif
10134#endif
20e95c23 10135
dabbade6
L
10136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10137 find out it does not work in some platform. */
10138#ifndef LT_DLLAZY_OR_NOW
10139# ifdef RTLD_LAZY
10140# define LT_DLLAZY_OR_NOW RTLD_LAZY
10141# else
10142# ifdef DL_LAZY
10143# define LT_DLLAZY_OR_NOW DL_LAZY
10144# else
10145# ifdef RTLD_NOW
10146# define LT_DLLAZY_OR_NOW RTLD_NOW
10147# else
10148# ifdef DL_NOW
10149# define LT_DLLAZY_OR_NOW DL_NOW
10150# else
10151# define LT_DLLAZY_OR_NOW 0
10152# endif
10153# endif
10154# endif
10155# endif
10156#endif
20e95c23 10157
dabbade6
L
10158#ifdef __cplusplus
10159extern "C" void exit (int);
10160#endif
979273e3 10161
dabbade6
L
10162void fnord() { int i=42;}
10163int main ()
10164{
10165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10166 int status = $lt_dlunknown;
20e95c23 10167
dabbade6
L
10168 if (self)
10169 {
10170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10172 /* dlclose (self); */
10173 }
10174 else
10175 puts (dlerror ());
d7040cdb 10176
dabbade6
L
10177 exit (status);
10178}
10179_LT_EOF
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10185 (./conftest; exit; ) >&5 2>/dev/null
10186 lt_status=$?
10187 case x$lt_status in
10188 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10189 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10190 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10191 esac
10192 else :
10193 # compilation failed
10194 lt_cv_dlopen_self=no
10195 fi
d7040cdb 10196fi
dabbade6
L
10197rm -fr conftest*
10198
252b5132 10199
d7040cdb 10200fi
dabbade6
L
10201echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10202echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d7040cdb 10203
dabbade6
L
10204 if test "x$lt_cv_dlopen_self" = xyes; then
10205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10206 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10207echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10208if test "${lt_cv_dlopen_self_static+set}" = set; then
979273e3 10209 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10210else
dabbade6
L
10211 if test "$cross_compiling" = yes; then :
10212 lt_cv_dlopen_self_static=cross
d7040cdb 10213else
dabbade6
L
10214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10215 lt_status=$lt_dlunknown
10216 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10217#line 10217 "configure"
dabbade6 10218#include "confdefs.h"
252b5132 10219
dabbade6
L
10220#if HAVE_DLFCN_H
10221#include <dlfcn.h>
10222#endif
252b5132 10223
dabbade6 10224#include <stdio.h>
d7040cdb 10225
dabbade6
L
10226#ifdef RTLD_GLOBAL
10227# define LT_DLGLOBAL RTLD_GLOBAL
10228#else
10229# ifdef DL_GLOBAL
10230# define LT_DLGLOBAL DL_GLOBAL
10231# else
10232# define LT_DLGLOBAL 0
10233# endif
10234#endif
20e95c23 10235
dabbade6
L
10236/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10237 find out it does not work in some platform. */
10238#ifndef LT_DLLAZY_OR_NOW
10239# ifdef RTLD_LAZY
10240# define LT_DLLAZY_OR_NOW RTLD_LAZY
10241# else
10242# ifdef DL_LAZY
10243# define LT_DLLAZY_OR_NOW DL_LAZY
10244# else
10245# ifdef RTLD_NOW
10246# define LT_DLLAZY_OR_NOW RTLD_NOW
10247# else
10248# ifdef DL_NOW
10249# define LT_DLLAZY_OR_NOW DL_NOW
10250# else
10251# define LT_DLLAZY_OR_NOW 0
10252# endif
10253# endif
10254# endif
10255# endif
10256#endif
979273e3 10257
dabbade6
L
10258#ifdef __cplusplus
10259extern "C" void exit (int);
10260#endif
20e95c23 10261
dabbade6
L
10262void fnord() { int i=42;}
10263int main ()
10264{
10265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10266 int status = $lt_dlunknown;
d7040cdb 10267
dabbade6
L
10268 if (self)
10269 {
10270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10271 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10272 /* dlclose (self); */
10273 }
10274 else
10275 puts (dlerror ());
d7040cdb 10276
dabbade6
L
10277 exit (status);
10278}
10279_LT_EOF
10280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281 (eval $ac_link) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10285 (./conftest; exit; ) >&5 2>/dev/null
10286 lt_status=$?
10287 case x$lt_status in
10288 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10289 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10290 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10291 esac
10292 else :
10293 # compilation failed
10294 lt_cv_dlopen_self_static=no
10295 fi
20e95c23 10296fi
dabbade6 10297rm -fr conftest*
979273e3 10298
d7040cdb
SE
10299
10300fi
dabbade6
L
10301echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10302echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10303 fi
10304
10305 CPPFLAGS="$save_CPPFLAGS"
10306 LDFLAGS="$save_LDFLAGS"
10307 LIBS="$save_LIBS"
10308 ;;
10309 esac
10310
10311 case $lt_cv_dlopen_self in
10312 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10313 *) enable_dlopen_self=unknown ;;
10314 esac
10315
10316 case $lt_cv_dlopen_self_static in
10317 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10318 *) enable_dlopen_self_static=unknown ;;
10319 esac
d7040cdb 10320fi
dabbade6
L
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338striplib=
10339old_striplib=
10340echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10341echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10342if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10345 echo "$as_me:$LINENO: result: yes" >&5
10346echo "${ECHO_T}yes" >&6
d7040cdb 10347else
dabbade6
L
10348# FIXME - insert some real tests, host_os isn't really good enough
10349 case $host_os in
10350 darwin*)
10351 if test -n "$STRIP" ; then
10352 striplib="$STRIP -x"
10353 old_striplib="$STRIP -S"
10354 echo "$as_me:$LINENO: result: yes" >&5
10355echo "${ECHO_T}yes" >&6
10356 else
10357 echo "$as_me:$LINENO: result: no" >&5
10358echo "${ECHO_T}no" >&6
10359 fi
10360 ;;
10361 *)
10362 echo "$as_me:$LINENO: result: no" >&5
d7040cdb 10363echo "${ECHO_T}no" >&6
dabbade6
L
10364 ;;
10365 esac
d7040cdb 10366fi
20e95c23 10367
979273e3 10368
dabbade6
L
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379 # Report which library types will actually be built
10380 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10381echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10382 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10383echo "${ECHO_T}$can_build_shared" >&6
10384
10385 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10386echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10387 test "$can_build_shared" = "no" && enable_shared=no
10388
10389 # On AIX, shared libraries and static libraries use the same namespace, and
10390 # are all built from PIC.
10391 case $host_os in
10392 aix3*)
10393 test "$enable_shared" = yes && enable_static=no
10394 if test -n "$RANLIB"; then
10395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10396 postinstall_cmds='$RANLIB $lib'
10397 fi
10398 ;;
10399
50e7d84b 10400 aix[4-9]*)
dabbade6
L
10401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10402 test "$enable_shared" = yes && enable_static=no
10403 fi
10404 ;;
10405 esac
10406 echo "$as_me:$LINENO: result: $enable_shared" >&5
10407echo "${ECHO_T}$enable_shared" >&6
10408
10409 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10410echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10411 # Make sure either enable_shared or enable_static is yes.
10412 test "$enable_shared" = yes || enable_static=yes
10413 echo "$as_me:$LINENO: result: $enable_static" >&5
10414echo "${ECHO_T}$enable_static" >&6
10415
10416
10417
d7040cdb 10418
252b5132 10419fi
dabbade6
L
10420ac_ext=c
10421ac_cpp='$CPP $CPPFLAGS'
10422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10424ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 10425
dabbade6 10426CC="$lt_save_CC"
20e95c23 10427
20e95c23 10428
d7040cdb 10429
d7040cdb 10430
d7040cdb 10431
20e95c23 10432
dabbade6
L
10433
10434
10435
10436
10437
10438
10439
10440 ac_config_commands="$ac_config_commands libtool"
10441
10442
10443
10444
10445# Only expand once:
10446
10447
10448
10449# Check whether --enable-targets or --disable-targets was given.
10450if test "${enable_targets+set}" = set; then
10451 enableval="$enable_targets"
10452 case "${enableval}" in
10453 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10454echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10455 { (exit 1); exit 1; }; }
10456 ;;
10457 no) enable_targets= ;;
10458 *) enable_targets=$enableval ;;
10459esac
10460fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10461if test "${enable_commonbfdlib+set}" = set; then
10462 enableval="$enable_commonbfdlib"
10463 case "${enableval}" in
10464 yes) commonbfdlib=true ;;
10465 no) commonbfdlib=false ;;
10466 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
10467echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
10468 { (exit 1); exit 1; }; } ;;
10469esac
10470fi;
10471
10472GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10473
10474# Check whether --enable-werror or --disable-werror was given.
10475if test "${enable_werror+set}" = set; then
10476 enableval="$enable_werror"
10477 case "${enableval}" in
10478 yes | y) ERROR_ON_WARNING="yes" ;;
10479 no | n) ERROR_ON_WARNING="no" ;;
10480 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10481echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10482 { (exit 1); exit 1; }; } ;;
10483 esac
10484fi;
10485
bb8541b9
L
10486# Enable -Wno-format by default when using gcc on mingw
10487case "${host}" in
10488 *-*-mingw32*)
10489 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10490 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10491 fi
10492 ;;
10493 *) ;;
10494esac
10495
dabbade6
L
10496# Enable -Werror by default when using gcc
10497if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10498 ERROR_ON_WARNING=yes
d7040cdb 10499fi
20e95c23 10500
dabbade6
L
10501NO_WERROR=
10502if test "${ERROR_ON_WARNING}" = yes ; then
10503 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10504 NO_WERROR="-Wno-error"
20e95c23 10505fi
d7040cdb 10506
dabbade6
L
10507if test "${GCC}" = yes ; then
10508 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10509fi
d7040cdb 10510
dabbade6
L
10511# Check whether --enable-build-warnings or --disable-build-warnings was given.
10512if test "${enable_build_warnings+set}" = set; then
10513 enableval="$enable_build_warnings"
10514 case "${enableval}" in
10515 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10516 no) if test "${GCC}" = yes ; then
10517 WARN_CFLAGS="-w"
10518 fi;;
10519 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10520 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10521 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10522 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10523 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10524esac
10525fi;
979273e3 10526
dabbade6
L
10527if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10528 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 10529fi
dabbade6
L
10530
10531
10532
10533
10534
10535 ac_config_headers="$ac_config_headers config.h:config.in"
10536
10537
10538if test -z "$target" ; then
10539 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10540echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10541 { (exit 1); exit 1; }; }
d7040cdb 10542fi
dabbade6
L
10543
10544echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10545echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10546 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10547if test "${enable_maintainer_mode+set}" = set; then
10548 enableval="$enable_maintainer_mode"
10549 USE_MAINTAINER_MODE=$enableval
d7040cdb 10550else
dabbade6
L
10551 USE_MAINTAINER_MODE=no
10552fi;
10553 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10554echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d7040cdb 10555
d7040cdb 10556
dabbade6
L
10557if test $USE_MAINTAINER_MODE = yes; then
10558 MAINTAINER_MODE_TRUE=
10559 MAINTAINER_MODE_FALSE='#'
252b5132 10560else
dabbade6
L
10561 MAINTAINER_MODE_TRUE='#'
10562 MAINTAINER_MODE_FALSE=
252b5132 10563fi
d7040cdb 10564
dabbade6
L
10565 MAINT=$MAINTAINER_MODE_TRUE
10566
10567
10568 case ${build_alias} in
10569 "") build_noncanonical=${build} ;;
10570 *) build_noncanonical=${build_alias} ;;
10571esac
10572
10573 case ${host_alias} in
10574 "") host_noncanonical=${build_noncanonical} ;;
10575 *) host_noncanonical=${host_alias} ;;
10576esac
979273e3 10577
dabbade6
L
10578 case ${target_alias} in
10579 "") target_noncanonical=${host_noncanonical} ;;
10580 *) target_noncanonical=${target_alias} ;;
d7040cdb 10581esac
252b5132 10582
dabbade6
L
10583echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10584echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10585 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10586if test "${enable_install_libbfd+set}" = set; then
10587 enableval="$enable_install_libbfd"
10588 install_libbfd_p=$enableval
979273e3 10589else
dabbade6
L
10590 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10591 install_libbfd_p=yes
10592 else
10593 install_libbfd_p=no
10594 fi
10595fi;
10596 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10597echo "${ECHO_T}$install_libbfd_p" >&6
979273e3 10598
d7040cdb 10599
dabbade6
L
10600if test $install_libbfd_p = yes; then
10601 INSTALL_LIBBFD_TRUE=
10602 INSTALL_LIBBFD_FALSE='#'
10603else
10604 INSTALL_LIBBFD_TRUE='#'
10605 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
10606fi
10607
dabbade6 10608 # Need _noncanonical variables for this.
979273e3 10609
d7040cdb
SE
10610
10611
dabbade6
L
10612
10613 # libbfd.a is a host library containing target dependent code
10614 bfdlibdir='$(libdir)'
10615 bfdincludedir='$(includedir)'
10616 if test "${host}" != "${target}"; then
10617 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10618 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10619 fi
10620
10621
10622
10623
10624
10625
10626# host-specific stuff:
10627
d7040cdb
SE
10628ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10629# If we haven't got the data from the intl directory,
10630# assume NLS is disabled.
10631USE_NLS=no
10632LIBINTL=
10633LIBINTL_DEP=
10634INCINTL=
10635XGETTEXT=
10636GMSGFMT=
10637POSUB=
10638
10639if test -f ../intl/config.intl; then
10640 . ../intl/config.intl
10641fi
10642echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10643echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10644if test x"$USE_NLS" != xyes; then
10645 echo "$as_me:$LINENO: result: no" >&5
10646echo "${ECHO_T}no" >&6
10647else
10648 echo "$as_me:$LINENO: result: yes" >&5
10649echo "${ECHO_T}yes" >&6
10650
10651cat >>confdefs.h <<\_ACEOF
10652#define ENABLE_NLS 1
10653_ACEOF
10654
10655
10656 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10657echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10658 # Look for .po and .gmo files in the source directory.
10659 CATALOGS=
10660 XLINGUAS=
10661 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10662 # If there aren't any .gmo files the shell will give us the
10663 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10664 # weeded out.
10665 case "$cat" in *\**)
10666 continue;;
10667 esac
10668 # The quadruple backslash is collapsed to a double backslash
10669 # by the backticks, then collapsed again by the double quotes,
10670 # leaving us with one backslash in the sed expression (right
10671 # before the dot that mustn't act as a wildcard).
10672 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10673 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10674 # The user is allowed to set LINGUAS to a list of languages to
10675 # install catalogs for. If it's empty that means "all of them."
10676 if test "x$LINGUAS" = x; then
10677 CATALOGS="$CATALOGS $cat"
10678 XLINGUAS="$XLINGUAS $lang"
10679 else
10680 case "$LINGUAS" in *$lang*)
10681 CATALOGS="$CATALOGS $cat"
10682 XLINGUAS="$XLINGUAS $lang"
10683 ;;
10684 esac
10685 fi
10686 done
10687 LINGUAS="$XLINGUAS"
10688 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10689echo "${ECHO_T}$LINGUAS" >&6
10690
10691
10692 DATADIRNAME=share
10693
10694 INSTOBJEXT=.mo
10695
10696 GENCAT=gencat
10697
10698 CATOBJEXT=.gmo
10699
10700fi
10701
10702 MKINSTALLDIRS=
10703 if test -n "$ac_aux_dir"; then
10704 case "$ac_aux_dir" in
10705 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10706 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10707 esac
10708 fi
10709 if test -z "$MKINSTALLDIRS"; then
10710 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10711 fi
10712
10713
10714
10715 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10716echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10717 # Check whether --enable-nls or --disable-nls was given.
10718if test "${enable_nls+set}" = set; then
10719 enableval="$enable_nls"
10720 USE_NLS=$enableval
10721else
10722 USE_NLS=yes
10723fi;
10724 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10725echo "${ECHO_T}$USE_NLS" >&6
10726
10727
10728
10729
10730
10731
10732# Prepare PATH_SEPARATOR.
10733# The user is always right.
10734if test "${PATH_SEPARATOR+set}" != set; then
10735 echo "#! /bin/sh" >conf$$.sh
10736 echo "exit 0" >>conf$$.sh
10737 chmod +x conf$$.sh
10738 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10739 PATH_SEPARATOR=';'
10740 else
10741 PATH_SEPARATOR=:
10742 fi
10743 rm -f conf$$.sh
10744fi
979273e3 10745
d7040cdb
SE
10746# Find out how to test for executable files. Don't use a zero-byte file,
10747# as systems may use methods other than mode bits to determine executability.
10748cat >conf$$.file <<_ASEOF
10749#! /bin/sh
10750exit 0
10751_ASEOF
10752chmod +x conf$$.file
10753if test -x conf$$.file >/dev/null 2>&1; then
10754 ac_executable_p="test -x"
252b5132 10755else
d7040cdb 10756 ac_executable_p="test -f"
252b5132 10757fi
d7040cdb 10758rm -f conf$$.file
252b5132 10759
d7040cdb
SE
10760# Extract the first word of "msgfmt", so it can be a program name with args.
10761set dummy msgfmt; ac_word=$2
10762echo "$as_me:$LINENO: checking for $ac_word" >&5
10763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10764if test "${ac_cv_path_MSGFMT+set}" = set; then
979273e3 10765 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10766else
d7040cdb
SE
10767 case "$MSGFMT" in
10768 [\\/]* | ?:[\\/]*)
10769 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10770 ;;
10771 *)
10772 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10773 for ac_dir in $PATH; do
10774 IFS="$ac_save_IFS"
10775 test -z "$ac_dir" && ac_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10778 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10779 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10780 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10781 break 2
10782 fi
10783 fi
10784 done
10785 done
10786 IFS="$ac_save_IFS"
10787 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10788 ;;
10789esac
10790fi
10791MSGFMT="$ac_cv_path_MSGFMT"
10792if test "$MSGFMT" != ":"; then
10793 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10794echo "${ECHO_T}$MSGFMT" >&6
10795else
10796 echo "$as_me:$LINENO: result: no" >&5
10797echo "${ECHO_T}no" >&6
252b5132
RH
10798fi
10799
d7040cdb
SE
10800 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10801set dummy gmsgfmt; ac_word=$2
10802echo "$as_me:$LINENO: checking for $ac_word" >&5
10803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10804if test "${ac_cv_path_GMSGFMT+set}" = set; then
20e95c23
DJ
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
d7040cdb
SE
10807 case $GMSGFMT in
10808 [\\/]* | ?:[\\/]*)
10809 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10810 ;;
10811 *)
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813for as_dir in $PATH
10814do
10815 IFS=$as_save_IFS
10816 test -z "$as_dir" && as_dir=.
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10819 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10821 break 2
10822 fi
10823done
10824done
252b5132 10825
d7040cdb
SE
10826 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10827 ;;
10828esac
10829fi
10830GMSGFMT=$ac_cv_path_GMSGFMT
20e95c23 10831
d7040cdb
SE
10832if test -n "$GMSGFMT"; then
10833 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10834echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10835else
d7040cdb
SE
10836 echo "$as_me:$LINENO: result: no" >&5
10837echo "${ECHO_T}no" >&6
252b5132
RH
10838fi
10839
10840
20e95c23 10841
d7040cdb
SE
10842# Prepare PATH_SEPARATOR.
10843# The user is always right.
10844if test "${PATH_SEPARATOR+set}" != set; then
10845 echo "#! /bin/sh" >conf$$.sh
10846 echo "exit 0" >>conf$$.sh
10847 chmod +x conf$$.sh
10848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10849 PATH_SEPARATOR=';'
10850 else
10851 PATH_SEPARATOR=:
10852 fi
10853 rm -f conf$$.sh
252b5132
RH
10854fi
10855
d7040cdb
SE
10856# Find out how to test for executable files. Don't use a zero-byte file,
10857# as systems may use methods other than mode bits to determine executability.
10858cat >conf$$.file <<_ASEOF
10859#! /bin/sh
10860exit 0
10861_ASEOF
10862chmod +x conf$$.file
10863if test -x conf$$.file >/dev/null 2>&1; then
10864 ac_executable_p="test -x"
10865else
10866 ac_executable_p="test -f"
10867fi
10868rm -f conf$$.file
20e95c23 10869
d7040cdb
SE
10870# Extract the first word of "xgettext", so it can be a program name with args.
10871set dummy xgettext; ac_word=$2
10872echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874if test "${ac_cv_path_XGETTEXT+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10876else
d7040cdb
SE
10877 case "$XGETTEXT" in
10878 [\\/]* | ?:[\\/]*)
10879 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10880 ;;
10881 *)
10882 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10883 for ac_dir in $PATH; do
10884 IFS="$ac_save_IFS"
10885 test -z "$ac_dir" && ac_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10888 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10889 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10890 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10891 break 2
10892 fi
10893 fi
10894 done
10895 done
10896 IFS="$ac_save_IFS"
10897 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10898 ;;
10899esac
20e95c23 10900fi
d7040cdb
SE
10901XGETTEXT="$ac_cv_path_XGETTEXT"
10902if test "$XGETTEXT" != ":"; then
10903 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10904echo "${ECHO_T}$XGETTEXT" >&6
10905else
10906 echo "$as_me:$LINENO: result: no" >&5
10907echo "${ECHO_T}no" >&6
10908fi
10909
10910 rm -f messages.po
10911
979273e3 10912
d7040cdb
SE
10913# Prepare PATH_SEPARATOR.
10914# The user is always right.
10915if test "${PATH_SEPARATOR+set}" != set; then
10916 echo "#! /bin/sh" >conf$$.sh
10917 echo "exit 0" >>conf$$.sh
10918 chmod +x conf$$.sh
10919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10920 PATH_SEPARATOR=';'
10921 else
10922 PATH_SEPARATOR=:
10923 fi
10924 rm -f conf$$.sh
252b5132 10925fi
979273e3 10926
d7040cdb
SE
10927# Find out how to test for executable files. Don't use a zero-byte file,
10928# as systems may use methods other than mode bits to determine executability.
10929cat >conf$$.file <<_ASEOF
10930#! /bin/sh
10931exit 0
10932_ASEOF
10933chmod +x conf$$.file
10934if test -x conf$$.file >/dev/null 2>&1; then
10935 ac_executable_p="test -x"
252b5132 10936else
d7040cdb
SE
10937 ac_executable_p="test -f"
10938fi
10939rm -f conf$$.file
252b5132 10940
d7040cdb
SE
10941# Extract the first word of "msgmerge", so it can be a program name with args.
10942set dummy msgmerge; ac_word=$2
10943echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945if test "${ac_cv_path_MSGMERGE+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10947else
d7040cdb
SE
10948 case "$MSGMERGE" in
10949 [\\/]* | ?:[\\/]*)
10950 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10951 ;;
10952 *)
10953 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10954 for ac_dir in $PATH; do
10955 IFS="$ac_save_IFS"
10956 test -z "$ac_dir" && ac_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10959 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10960 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10961 break 2
10962 fi
10963 fi
10964 done
10965 done
10966 IFS="$ac_save_IFS"
10967 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10968 ;;
10969esac
20e95c23 10970fi
d7040cdb
SE
10971MSGMERGE="$ac_cv_path_MSGMERGE"
10972if test "$MSGMERGE" != ":"; then
10973 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10974echo "${ECHO_T}$MSGMERGE" >&6
10975else
10976 echo "$as_me:$LINENO: result: no" >&5
10977echo "${ECHO_T}no" >&6
20e95c23 10978fi
252b5132 10979
979273e3 10980
d7040cdb
SE
10981 if test "$GMSGFMT" != ":"; then
10982 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10983 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10984 : ;
10985 else
10986 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10987 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10988echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10989 GMSGFMT=":"
10990 fi
10991 fi
979273e3 10992
d7040cdb
SE
10993 if test "$XGETTEXT" != ":"; then
10994 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10995 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10996 : ;
10997 else
10998 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10999echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11000 XGETTEXT=":"
11001 fi
11002 rm -f messages.po
11003 fi
979273e3 11004
d7040cdb 11005 ac_config_commands="$ac_config_commands default-1"
c46f8c51 11006
c46f8c51 11007
979273e3 11008
d7040cdb 11009. ${srcdir}/../bfd/configure.host
252b5132 11010
d7040cdb
SE
11011# Put a plausible default for CC_FOR_BUILD in Makefile.
11012if test -z "$CC_FOR_BUILD"; then
11013 if test "x$cross_compiling" = "xno"; then
11014 CC_FOR_BUILD='$(CC)'
11015 else
11016 CC_FOR_BUILD=gcc
11017 fi
11018fi
252b5132 11019
d7040cdb
SE
11020# Also set EXEEXT_FOR_BUILD.
11021if test "x$cross_compiling" = "xno"; then
11022 EXEEXT_FOR_BUILD='$(EXEEXT)'
11023else
11024 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11025echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11026if test "${bfd_cv_build_exeext+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 rm -f conftest*
11030 echo 'int main () { return 0; }' > conftest.c
11031 bfd_cv_build_exeext=
11032 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11033 for file in conftest.*; do
11034 case $file in
11035 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11036 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11037 esac
11038 done
11039 rm -f conftest*
11040 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11041fi
11042echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11043echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11044 EXEEXT_FOR_BUILD=""
11045 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11046fi
252b5132 11047
979273e3 11048
252b5132 11049
d7040cdb
SE
11050# Find a good install program. We prefer a C program (faster),
11051# so one script is as good as another. But avoid the broken or
11052# incompatible versions:
11053# SysV /etc/install, /usr/sbin/install
11054# SunOS /usr/etc/install
11055# IRIX /sbin/install
11056# AIX /bin/install
11057# AmigaOS /C/install, which installs bootblocks on floppy discs
11058# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11059# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11060# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11061# OS/2's system install, which has a completely different semantic
11062# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11063# Reject install programs that cannot install multiple files.
d7040cdb
SE
11064echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11065echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11066if test -z "$INSTALL"; then
11067if test "${ac_cv_path_install+set}" = set; then
979273e3 11068 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 11069else
d7040cdb
SE
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 # Account for people who put trailing slashes in PATH elements.
11076case $as_dir/ in
11077 ./ | .// | /cC/* | \
11078 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11079 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11080 /usr/ucb/* ) ;;
11081 *)
11082 # OSF1 and SCO ODT 3.0 have their own names for install.
11083 # Don't use installbsd from OSF since it installs stuff as root
11084 # by default.
11085 for ac_prog in ginstall scoinst install; do
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11088 if test $ac_prog = install &&
11089 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11090 # AIX install. It has an incompatible calling convention.
11091 :
11092 elif test $ac_prog = install &&
11093 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11094 # program-specific install script used by HP pwplus--don't use.
11095 :
11096 else
58c85be7
RW
11097 rm -rf conftest.one conftest.two conftest.dir
11098 echo one > conftest.one
11099 echo two > conftest.two
11100 mkdir conftest.dir
11101 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11102 test -s conftest.one && test -s conftest.two &&
11103 test -s conftest.dir/conftest.one &&
11104 test -s conftest.dir/conftest.two
11105 then
11106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11107 break 3
11108 fi
d7040cdb
SE
11109 fi
11110 fi
11111 done
11112 done
11113 ;;
11114esac
11115done
11116
58c85be7 11117rm -rf conftest.one conftest.two conftest.dir
979273e3 11118
979273e3 11119fi
d7040cdb
SE
11120 if test "${ac_cv_path_install+set}" = set; then
11121 INSTALL=$ac_cv_path_install
11122 else
58c85be7
RW
11123 # As a last resort, use the slow shell script. Don't cache a
11124 # value for INSTALL within a source directory, because that will
d7040cdb 11125 # break other packages using the cache if that directory is
58c85be7 11126 # removed, or if the value is a relative name.
d7040cdb
SE
11127 INSTALL=$ac_install_sh
11128 fi
b6849f55 11129fi
d7040cdb
SE
11130echo "$as_me:$LINENO: result: $INSTALL" >&5
11131echo "${ECHO_T}$INSTALL" >&6
b6849f55 11132
d7040cdb
SE
11133# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11134# It thinks the first close brace ends the variable substitution.
11135test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b6849f55 11136
d7040cdb
SE
11137test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11138
11139test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
979273e3 11140
252b5132 11141
979273e3
NN
11142
11143
11144
40fb9820
L
11145
11146for ac_header in string.h strings.h stdlib.h limits.h
252b5132 11147do
979273e3
NN
11148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149if eval "test \"\${$as_ac_Header+set}\" = set"; then
11150 echo "$as_me:$LINENO: checking for $ac_header" >&5
11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11152if eval "test \"\${$as_ac_Header+set}\" = set"; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154fi
11155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11157else
11158 # Is the header compilable?
11159echo "$as_me:$LINENO: checking $ac_header usability" >&5
11160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11161cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167$ac_includes_default
11168#include <$ac_header>
11169_ACEOF
11170rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
8ae85421
AM
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
979273e3
NN
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_header_compiler=yes
11193else
11194 echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197ac_header_compiler=no
11198fi
11199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201echo "${ECHO_T}$ac_header_compiler" >&6
11202
11203# Is the header present?
11204echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11206cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212#include <$ac_header>
11213_ACEOF
11214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } >/dev/null; then
11222 if test -s conftest.err; then
11223 ac_cpp_err=$ac_c_preproc_warn_flag
11224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11225 else
11226 ac_cpp_err=
11227 fi
252b5132 11228else
979273e3 11229 ac_cpp_err=yes
252b5132 11230fi
979273e3
NN
11231if test -z "$ac_cpp_err"; then
11232 ac_header_preproc=yes
11233else
11234 echo "$as_me: failed program was:" >&5
11235sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 ac_header_preproc=no
252b5132 11238fi
979273e3
NN
11239rm -f conftest.err conftest.$ac_ext
11240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11241echo "${ECHO_T}$ac_header_preproc" >&6
11242
11243# So? What about this header?
11244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11245 yes:no: )
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11250 ac_header_preproc=yes
11251 ;;
11252 no:yes:* )
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11256echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11260echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11265 (
11266 cat <<\_ASBOX
11267## ------------------------------------------ ##
11268## Report this to the AC_PACKAGE_NAME lists. ##
11269## ------------------------------------------ ##
11270_ASBOX
11271 ) |
11272 sed "s/^/$as_me: WARNING: /" >&2
11273 ;;
11274esac
11275echo "$as_me:$LINENO: checking for $ac_header" >&5
11276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11277if eval "test \"\${$as_ac_Header+set}\" = set"; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11279else
979273e3
NN
11280 eval "$as_ac_Header=\$ac_header_preproc"
11281fi
11282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11284
11285fi
11286if test `eval echo '${'$as_ac_Header'}'` = yes; then
11287 cat >>confdefs.h <<_ACEOF
11288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11289_ACEOF
11290
252b5132 11291fi
979273e3 11292
252b5132
RH
11293done
11294
11295
4bd60896
JG
11296echo "$as_me:$LINENO: checking whether basename is declared" >&5
11297echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11298if test "${ac_cv_have_decl_basename+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300else
11301 cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
db5152b4 11307$ac_includes_default
4bd60896
JG
11308int
11309main ()
11310{
11311#ifndef basename
11312 char *p = (char *) basename;
11313#endif
11314
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_have_decl_basename=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346ac_cv_have_decl_basename=no
11347fi
11348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11349fi
11350echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11351echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11352if test $ac_cv_have_decl_basename = yes; then
11353
11354cat >>confdefs.h <<_ACEOF
11355#define HAVE_DECL_BASENAME 1
11356_ACEOF
11357
11358
11359else
11360 cat >>confdefs.h <<_ACEOF
11361#define HAVE_DECL_BASENAME 0
11362_ACEOF
11363
11364
dabbade6
L
11365fi
11366echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11367echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11368if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
11377$ac_includes_default
11378int
11379main ()
11380{
11381#ifndef stpcpy
11382 char *p = (char *) stpcpy;
11383#endif
11384
11385 ;
11386 return 0;
11387}
11388_ACEOF
11389rm -f conftest.$ac_objext
11390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11391 (eval $ac_compile) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag"
11399 || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_have_decl_stpcpy=yes
11412else
11413 echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5
11415
11416ac_cv_have_decl_stpcpy=no
11417fi
11418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11419fi
11420echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11421echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11422if test $ac_cv_have_decl_stpcpy = yes; then
11423
11424cat >>confdefs.h <<_ACEOF
11425#define HAVE_DECL_STPCPY 1
11426_ACEOF
11427
11428
11429else
11430 cat >>confdefs.h <<_ACEOF
11431#define HAVE_DECL_STPCPY 0
11432_ACEOF
11433
11434
4bd60896
JG
11435fi
11436
11437
11438
6e31aea3
BE
11439cgen_maint=no
11440cgendir='$(srcdir)/../cgen'
11441
11442# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11443if test "${enable_cgen_maint+set}" = set; then
11444 enableval="$enable_cgen_maint"
11445 case "${enableval}" in
11446 yes) cgen_maint=yes ;;
11447 no) cgen_maint=no ;;
11448 *)
11449 # argument is cgen install directory (not implemented yet).
11450 # Having a `share' directory might be more appropriate for the .scm,
11451 # .cpu, etc. files.
11452 cgen_maint=yes
11453 cgendir=${cgen_maint}/lib/cgen
11454 ;;
11455esac
979273e3 11456fi;
6e31aea3
BE
11457
11458if test x${cgen_maint} = xyes; then
11459 CGEN_MAINT_TRUE=
11460 CGEN_MAINT_FALSE='#'
11461else
11462 CGEN_MAINT_TRUE='#'
11463 CGEN_MAINT_FALSE=
11464fi
11465
252b5132 11466
8ae85421 11467
252b5132
RH
11468using_cgen=no
11469
45d42143
NC
11470# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
11471SHARED_LDFLAGS=
11472SHARED_LIBADD=
11473SHARED_DEPENDENCIES=
11474if test "$enable_shared" = "yes"; then
11475 case "${host}" in
11476 *-*-cygwin*)
11477 SHARED_LDFLAGS="-no-undefined"
11478 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11479 ;;
0e336180
NC
11480 *-*-darwin*)
11481 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
11482 SHARED_DEPENDENCIES="../bfd/libbfd.la"
11483 ;;
45d42143 11484 *)
0e336180
NC
11485 case "$host_vendor" in
11486 hp)
11487 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
11488 ;;
11489 *)
11490 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
11491 ;;
11492 esac
defeac73 11493 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
11494 ;;
11495 esac
11496fi
11497
252b5132
RH
11498
11499
11500
11501# target-specific stuff:
11502
11503# Canonicalize the secondary target names.
11504if test -n "$enable_targets" ; then
11505 for targ in `echo $enable_targets | sed 's/,/ /g'`
11506 do
6d83c84b 11507 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11508 if test -n "$result" ; then
11509 canon_targets="$canon_targets $result"
11510 else
11511 # Allow targets that config.sub doesn't recognize, like "all".
11512 canon_targets="$canon_targets $targ"
11513 fi
11514 done
11515fi
11516
11517all_targets=false
11518selarchs=
11519for targ in $target $canon_targets
11520do
11521 if test "x$targ" = "xall" ; then
11522 all_targets=true
11523 else
11524 . $srcdir/../bfd/config.bfd
11525 selarchs="$selarchs $targ_archs"
11526 fi
979273e3 11527done
252b5132
RH
11528
11529# Utility var, documents generic cgen support files.
11530
3609e0fe 11531cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
11532
11533# We don't do any links based on the target system, just makefile config.
11534
11535if test x${all_targets} = xfalse ; then
11536
11537 # Target architecture .o files.
11538 ta=
11539
11540 for arch in $selarchs
11541 do
11542 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11543 archdefs="$archdefs -DARCH_$ad"
11544 case "$arch" in
252b5132 11545 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 11546 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 11547 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 11548 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 11549 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3d3d428f 11550 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 11551 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 11552 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
11553 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11554 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 11555 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 11556 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 11557 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
252b5132
RH
11558 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
11559 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
11560 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 11561 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
0b1cf022 11562 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 11563 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 11564 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 11565 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 11566 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 11567 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
c5f5f1f4 11568 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 11569 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
11570 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11571 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
11572 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11573 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 11574 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 11575 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 11576 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
252b5132 11577 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 11578 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
11579 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11580 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 11581 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 11582 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 11583 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 11584 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 11585 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 11586 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 11587 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 11588 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 11589 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 11590 bfd_pyramid_arch) ;;
252b5132
RH
11591 bfd_romp_arch) ;;
11592 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 11593 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
1c0d3aa6 11594 bfd_score_arch) ta="$ta score-dis.lo" ;;
09919455 11595 bfd_sh_arch)
d28847ce 11596 # We can't decide what we want just from the CPU family.
e8b872bb
AO
11597 # We want SH5 support unless a specific version of sh is
11598 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
11599 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11600 for t in $target $canon_targets; do
11601 case $t in
5b0e55b6 11602 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 11603 sh-*-linux* | shl-*-linux*)
d28847ce 11604 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
11605 archdefs="$archdefs -DINCLUDE_SHMEDIA"
11606 break;;
11607 esac;
11608 done
d3f1a427 11609 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 11610 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 11611 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
11612 bfd_tahoe_arch) ;;
11613 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 11614 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 11615 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
11616 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11617 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11618 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11619 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11620 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
11621 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
11622 bfd_we32k_arch) ;;
d70c5fc7 11623 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 11624 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 11625 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 11626 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
11627 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
11628
11629 "") ;;
979273e3
NN
11630 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11631echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11632 { (exit 1); exit 1; }; } ;;
252b5132
RH
11633 esac
11634 done
11635
11636 if test $using_cgen = yes ; then
11637 ta="$ta $cgen_files"
11638 fi
11639
11640 # Weed out duplicate .o files.
11641 f=""
11642 for i in $ta ; do
11643 case " $f " in
11644 *" $i "*) ;;
11645 *) f="$f $i" ;;
11646 esac
11647 done
11648 ta="$f"
11649
11650 # And duplicate -D flags.
11651 f=""
11652 for i in $archdefs ; do
11653 case " $f " in
11654 *" $i "*) ;;
11655 *) f="$f $i" ;;
11656 esac
11657 done
11658 archdefs="$f"
11659
11660 BFD_MACHINES="$ta"
11661
11662else # all_targets is true
11663 archdefs=-DARCH_all
11664 BFD_MACHINES='$(ALL_MACHINES)'
11665fi
11666
11667
11668
11669
979273e3
NN
11670 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11671
979273e3 11672cat >confcache <<\_ACEOF
252b5132
RH
11673# This file is a shell script that caches the results of configure
11674# tests run on this system so they can be shared between configure
979273e3
NN
11675# scripts and configure runs, see configure's option --config-cache.
11676# It is not useful on other systems. If it contains results you don't
11677# want to keep, you may remove or edit it.
252b5132 11678#
979273e3
NN
11679# config.status only pays attention to the cache file if you give it
11680# the --recheck option to rerun configure.
252b5132 11681#
979273e3
NN
11682# `ac_cv_env_foo' variables (set or unset) will be overridden when
11683# loading this file, other *unset* `ac_cv_foo' will be assigned the
11684# following values.
11685
11686_ACEOF
11687
252b5132
RH
11688# The following way of writing the cache mishandles newlines in values,
11689# but we know of no workaround that is simple, portable, and efficient.
11690# So, don't put newlines in cache variables' values.
11691# Ultrix sh set writes to stderr and can't be redirected directly,
11692# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
11693{
11694 (set) 2>&1 |
11695 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11696 *ac_space=\ *)
11697 # `set' does not quote correctly, so add quotes (double-quote
11698 # substitution turns \\\\ into \\, and sed turns \\ into \).
11699 sed -n \
11700 "s/'/'\\\\''/g;
11701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11702 ;;
11703 *)
11704 # `set' quotes correctly as required by POSIX, so do not add quotes.
11705 sed -n \
11706 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11707 ;;
11708 esac;
11709} |
11710 sed '
11711 t clear
11712 : clear
11713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11714 t end
11715 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11716 : end' >>confcache
11717if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 11718 if test -w $cache_file; then
979273e3
NN
11719 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11720 cat confcache >$cache_file
252b5132
RH
11721 else
11722 echo "not updating unwritable cache $cache_file"
11723 fi
11724fi
11725rm -f confcache
11726
252b5132
RH
11727test "x$prefix" = xNONE && prefix=$ac_default_prefix
11728# Let make expand exec_prefix.
11729test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11730
979273e3
NN
11731# VPATH may cause trouble with some makes, so we remove $(srcdir),
11732# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11733# trailing colons and then remove the whole line if VPATH becomes empty
11734# (actually we leave an empty line to preserve line numbers).
252b5132 11735if test "x$srcdir" = x.; then
979273e3
NN
11736 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11737s/:*\$(srcdir):*/:/;
11738s/:*\${srcdir}:*/:/;
11739s/:*@srcdir@:*/:/;
11740s/^\([^=]*=[ ]*\):*/\1/;
11741s/:*$//;
11742s/^[^=]*=[ ]*$//;
11743}'
252b5132
RH
11744fi
11745
252b5132
RH
11746DEFS=-DHAVE_CONFIG_H
11747
979273e3
NN
11748ac_libobjs=
11749ac_ltlibobjs=
11750for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11751 # 1. Remove the extension, and $U if already installed.
11752 ac_i=`echo "$ac_i" |
11753 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11754 # 2. Add them.
11755 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11756 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11757done
11758LIBOBJS=$ac_libobjs
252b5132 11759
979273e3
NN
11760LTLIBOBJS=$ac_ltlibobjs
11761
11762
8ae85421
AM
11763if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11764 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11765Usually this means the macro was only invoked conditionally." >&5
11766echo "$as_me: error: conditional \"AMDEP\" was never defined.
11767Usually this means the macro was only invoked conditionally." >&2;}
11768 { (exit 1); exit 1; }; }
11769fi
11770if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11771 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11772Usually this means the macro was only invoked conditionally." >&5
11773echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11774Usually this means the macro was only invoked conditionally." >&2;}
11775 { (exit 1); exit 1; }; }
11776fi
11777if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11778 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11779Usually this means the macro was only invoked conditionally." >&5
11780echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11781Usually this means the macro was only invoked conditionally." >&2;}
11782 { (exit 1); exit 1; }; }
11783fi
11784if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11785 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11786Usually this means the macro was only invoked conditionally." >&5
11787echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11788Usually this means the macro was only invoked conditionally." >&2;}
11789 { (exit 1); exit 1; }; }
11790fi
11791if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11792 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11793Usually this means the macro was only invoked conditionally." >&5
11794echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11795Usually this means the macro was only invoked conditionally." >&2;}
11796 { (exit 1); exit 1; }; }
11797fi
979273e3
NN
11798
11799: ${CONFIG_STATUS=./config.status}
11800ac_clean_files_save=$ac_clean_files
11801ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11802{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11803echo "$as_me: creating $CONFIG_STATUS" >&6;}
11804cat >$CONFIG_STATUS <<_ACEOF
11805#! $SHELL
11806# Generated by $as_me.
252b5132 11807# Run this file to recreate the current configuration.
252b5132 11808# Compiler output produced by configure, useful for debugging
979273e3 11809# configure, is in config.log if it exists.
252b5132 11810
979273e3
NN
11811debug=false
11812ac_cs_recheck=false
11813ac_cs_silent=false
11814SHELL=\${CONFIG_SHELL-$SHELL}
11815_ACEOF
11816
11817cat >>$CONFIG_STATUS <<\_ACEOF
11818## --------------------- ##
11819## M4sh Initialization. ##
11820## --------------------- ##
11821
11822# Be Bourne compatible
11823if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11824 emulate sh
11825 NULLCMD=:
11826 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11827 # is contrary to our usage. Disable this feature.
11828 alias -g '${1+"$@"}'='"$@"'
11829elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11830 set -o posix
11831fi
11832DUALCASE=1; export DUALCASE # for MKS sh
11833
11834# Support unset when possible.
11835if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11836 as_unset=unset
11837else
11838 as_unset=false
11839fi
11840
11841
11842# Work around bugs in pre-3.0 UWIN ksh.
11843$as_unset ENV MAIL MAILPATH
11844PS1='$ '
11845PS2='> '
11846PS4='+ '
11847
11848# NLS nuisances.
11849for as_var in \
11850 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11851 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11852 LC_TELEPHONE LC_TIME
252b5132 11853do
979273e3
NN
11854 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11855 eval $as_var=C; export $as_var
11856 else
11857 $as_unset $as_var
11858 fi
252b5132
RH
11859done
11860
979273e3
NN
11861# Required to use basename.
11862if expr a : '\(a\)' >/dev/null 2>&1; then
11863 as_expr=expr
11864else
11865 as_expr=false
11866fi
11867
11868if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11869 as_basename=basename
11870else
11871 as_basename=false
11872fi
252b5132 11873
252b5132 11874
979273e3
NN
11875# Name of the executable.
11876as_me=`$as_basename "$0" ||
11877$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11878 X"$0" : 'X\(//\)$' \| \
11879 X"$0" : 'X\(/\)$' \| \
11880 . : '\(.\)' 2>/dev/null ||
11881echo X/"$0" |
11882 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11883 /^X\/\(\/\/\)$/{ s//\1/; q; }
11884 /^X\/\(\/\).*/{ s//\1/; q; }
11885 s/.*/./; q'`
252b5132 11886
252b5132 11887
979273e3
NN
11888# PATH needs CR, and LINENO needs CR and PATH.
11889# Avoid depending upon Character Ranges.
11890as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11891as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11892as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11893as_cr_digits='0123456789'
11894as_cr_alnum=$as_cr_Letters$as_cr_digits
11895
11896# The user is always right.
11897if test "${PATH_SEPARATOR+set}" != set; then
11898 echo "#! /bin/sh" >conf$$.sh
11899 echo "exit 0" >>conf$$.sh
11900 chmod +x conf$$.sh
11901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11902 PATH_SEPARATOR=';'
252b5132 11903 else
979273e3
NN
11904 PATH_SEPARATOR=:
11905 fi
11906 rm -f conf$$.sh
11907fi
11908
11909
11910 as_lineno_1=$LINENO
11911 as_lineno_2=$LINENO
11912 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11913 test "x$as_lineno_1" != "x$as_lineno_2" &&
11914 test "x$as_lineno_3" = "x$as_lineno_2" || {
11915 # Find who we are. Look in the path if we contain no path at all
11916 # relative or not.
11917 case $0 in
11918 *[\\/]* ) as_myself=$0 ;;
11919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11925done
11926
11927 ;;
11928 esac
11929 # We did not find ourselves, most probably we were run as `sh COMMAND'
11930 # in which case we are not to be found in the path.
11931 if test "x$as_myself" = x; then
11932 as_myself=$0
11933 fi
11934 if test ! -f "$as_myself"; then
11935 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11936echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11937 { (exit 1); exit 1; }; }
252b5132 11938 fi
979273e3
NN
11939 case $CONFIG_SHELL in
11940 '')
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11943do
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for as_base in sh bash ksh sh5; do
11947 case $as_dir in
11948 /*)
11949 if ("$as_dir/$as_base" -c '
11950 as_lineno_1=$LINENO
11951 as_lineno_2=$LINENO
11952 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11953 test "x$as_lineno_1" != "x$as_lineno_2" &&
11954 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11955 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11956 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11957 CONFIG_SHELL=$as_dir/$as_base
11958 export CONFIG_SHELL
11959 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11960 fi;;
11961 esac
11962 done
11963done
11964;;
11965 esac
11966
11967 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11968 # uniformly replaced by the line number. The first 'sed' inserts a
11969 # line-number line before each line; the second 'sed' does the real
11970 # work. The second script uses 'N' to pair each line-number line
11971 # with the numbered line, and appends trailing '-' during
11972 # substitution so that $LINENO is not a special case at line end.
11973 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11974 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11975 sed '=' <$as_myself |
11976 sed '
11977 N
11978 s,$,-,
11979 : loop
11980 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11981 t loop
11982 s,-$,,
11983 s,^['$as_cr_digits']*\n,,
11984 ' >$as_me.lineno &&
11985 chmod +x $as_me.lineno ||
11986 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11987echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11988 { (exit 1); exit 1; }; }
11989
11990 # Don't try to exec as it changes $[0], causing all sort of problems
11991 # (the dirname of $[0] is not the place where we might find the
11992 # original and so on. Autoconf is especially sensible to this).
11993 . ./$as_me.lineno
11994 # Exit status is that of the last command.
11995 exit
11996}
11997
11998
11999case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12000 *c*,-n*) ECHO_N= ECHO_C='
12001' ECHO_T=' ' ;;
12002 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12003 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12004esac
12005
12006if expr a : '\(a\)' >/dev/null 2>&1; then
12007 as_expr=expr
12008else
12009 as_expr=false
12010fi
12011
12012rm -f conf$$ conf$$.exe conf$$.file
12013echo >conf$$.file
12014if ln -s conf$$.file conf$$ 2>/dev/null; then
12015 # We could just check for DJGPP; but this test a) works b) is more generic
12016 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12017 if test -f conf$$.exe; then
12018 # Don't use ln at all; we don't have any links
12019 as_ln_s='cp -p'
252b5132 12020 else
979273e3 12021 as_ln_s='ln -s'
252b5132 12022 fi
979273e3
NN
12023elif ln conf$$.file conf$$ 2>/dev/null; then
12024 as_ln_s=ln
12025else
12026 as_ln_s='cp -p'
12027fi
12028rm -f conf$$ conf$$.exe conf$$.file
12029
12030if mkdir -p . 2>/dev/null; then
12031 as_mkdir_p=:
12032else
12033 test -d ./-p && rmdir ./-p
12034 as_mkdir_p=false
12035fi
12036
12037as_executable_p="test -f"
12038
12039# Sed expression to map a string onto a valid CPP name.
12040as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12041
12042# Sed expression to map a string onto a valid variable name.
12043as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12044
12045
12046# IFS
12047# We need space, tab and new line, in precisely that order.
12048as_nl='
12049'
12050IFS=" $as_nl"
12051
12052# CDPATH.
12053$as_unset CDPATH
12054
12055exec 6>&1
12056
12057# Open the log real soon, to keep \$[0] and so on meaningful, and to
12058# report actual input values of CONFIG_FILES etc. instead of their
12059# values after options handling. Logging --version etc. is OK.
12060exec 5>>config.log
12061{
12062 echo
12063 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12064## Running $as_me. ##
12065_ASBOX
12066} >&5
12067cat >&5 <<_CSEOF
12068
12069This file was extended by $as_me, which was
12070generated by GNU Autoconf 2.59. Invocation command line was
12071
12072 CONFIG_FILES = $CONFIG_FILES
12073 CONFIG_HEADERS = $CONFIG_HEADERS
12074 CONFIG_LINKS = $CONFIG_LINKS
12075 CONFIG_COMMANDS = $CONFIG_COMMANDS
12076 $ $0 $@
12077
12078_CSEOF
12079echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12080echo >&5
12081_ACEOF
12082
12083# Files that config.status was made for.
12084if test -n "$ac_config_files"; then
12085 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12086fi
12087
12088if test -n "$ac_config_headers"; then
12089 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12090fi
12091
12092if test -n "$ac_config_links"; then
12093 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12094fi
12095
12096if test -n "$ac_config_commands"; then
12097 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12098fi
12099
12100cat >>$CONFIG_STATUS <<\_ACEOF
12101
12102ac_cs_usage="\
12103\`$as_me' instantiates files from templates according to the
12104current configuration.
12105
12106Usage: $0 [OPTIONS] [FILE]...
12107
12108 -h, --help print this help, then exit
12109 -V, --version print version number, then exit
12110 -q, --quiet do not print progress messages
12111 -d, --debug don't remove temporary files
12112 --recheck update $as_me by reconfiguring in the same conditions
12113 --file=FILE[:TEMPLATE]
12114 instantiate the configuration file FILE
12115 --header=FILE[:TEMPLATE]
12116 instantiate the configuration header FILE
12117
12118Configuration files:
12119$config_files
12120
12121Configuration headers:
12122$config_headers
12123
12124Configuration commands:
12125$config_commands
12126
12127Report bugs to <bug-autoconf@gnu.org>."
12128_ACEOF
12129
12130cat >>$CONFIG_STATUS <<_ACEOF
12131ac_cs_version="\\
12132config.status
12133configured by $0, generated by GNU Autoconf 2.59,
12134 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12135
12136Copyright (C) 2003 Free Software Foundation, Inc.
12137This config.status script is free software; the Free Software Foundation
12138gives unlimited permission to copy, distribute and modify it."
12139srcdir=$srcdir
12140INSTALL="$INSTALL"
12141_ACEOF
12142
12143cat >>$CONFIG_STATUS <<\_ACEOF
12144# If no file are specified by the user, then we need to provide default
12145# value. By we need to know if files were specified by the user.
12146ac_need_defaults=:
12147while test $# != 0
12148do
12149 case $1 in
12150 --*=*)
12151 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12152 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12153 ac_shift=:
12154 ;;
12155 -*)
12156 ac_option=$1
12157 ac_optarg=$2
12158 ac_shift=shift
12159 ;;
12160 *) # This is not an option, so the user has probably given explicit
12161 # arguments.
12162 ac_option=$1
12163 ac_need_defaults=false;;
12164 esac
12165
12166 case $ac_option in
12167 # Handling of the options.
12168_ACEOF
12169cat >>$CONFIG_STATUS <<\_ACEOF
12170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12171 ac_cs_recheck=: ;;
12172 --version | --vers* | -V )
12173 echo "$ac_cs_version"; exit 0 ;;
12174 --he | --h)
12175 # Conflict between --help and --header
12176 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12177Try \`$0 --help' for more information." >&5
12178echo "$as_me: error: ambiguous option: $1
12179Try \`$0 --help' for more information." >&2;}
12180 { (exit 1); exit 1; }; };;
12181 --help | --hel | -h )
12182 echo "$ac_cs_usage"; exit 0 ;;
12183 --debug | --d* | -d )
12184 debug=: ;;
12185 --file | --fil | --fi | --f )
12186 $ac_shift
12187 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12188 ac_need_defaults=false;;
12189 --header | --heade | --head | --hea )
12190 $ac_shift
12191 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12192 ac_need_defaults=false;;
12193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12194 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12195 ac_cs_silent=: ;;
12196
12197 # This is an error.
12198 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12199Try \`$0 --help' for more information." >&5
12200echo "$as_me: error: unrecognized option: $1
12201Try \`$0 --help' for more information." >&2;}
12202 { (exit 1); exit 1; }; } ;;
12203
12204 *) ac_config_targets="$ac_config_targets $1" ;;
12205
12206 esac
12207 shift
252b5132 12208done
979273e3
NN
12209
12210ac_configure_extra_args=
12211
12212if $ac_cs_silent; then
12213 exec 6>/dev/null
12214 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 12215fi
252b5132 12216
979273e3
NN
12217_ACEOF
12218cat >>$CONFIG_STATUS <<_ACEOF
12219if \$ac_cs_recheck; then
12220 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12221 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12222fi
252b5132 12223
979273e3
NN
12224_ACEOF
12225
12226cat >>$CONFIG_STATUS <<_ACEOF
12227#
12228# INIT-COMMANDS section.
12229#
12230
8ae85421 12231AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12232
12233
12234# The HP-UX ksh and POSIX shell print the target directory to stdout
12235# if CDPATH is set.
12236(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12237
12238sed_quote_subst='$sed_quote_subst'
12239double_quote_subst='$double_quote_subst'
12240delay_variable_subst='$delay_variable_subst'
12241enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12242macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12243macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12244enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12245pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12246enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12247host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12248host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12249host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12250build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12251build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12252build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12253SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12254Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12255GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12256EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12257FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12258LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12259NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12260LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12261max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12262ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12263exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12264lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12265lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12266lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12267reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12268reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12269deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12270file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12271AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12272AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12273STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12274RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12275old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12276old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12277old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12278CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12279CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12280compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12281GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12282lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12283lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12284lt_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"`'
12285objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12286SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12287ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12288MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12289lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12290lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12291lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12292lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12293lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12294need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12295libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12296shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12297extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12298archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12299enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12300export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12301whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12302compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12303old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12304old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12305archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12306archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12307module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12308module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12309with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12310allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12311no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12312hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12313hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12314hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12315hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12316hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12317hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12318hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12319hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12320inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12321link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12322fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12323always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12324export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12325exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12326include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12327prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12328file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12329variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12330need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12331need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12332version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12333runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12334shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12335shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12336libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12337library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12338soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12339postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12340postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12341finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12342finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12343hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12344sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12345sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12346hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12347enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12348enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12349enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12350old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12351striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12352
12353LTCC='$LTCC'
12354LTCFLAGS='$LTCFLAGS'
12355compiler='$compiler_DEFAULT'
12356
12357# Quote evaled strings.
12358for var in SED \
12359GREP \
12360EGREP \
12361FGREP \
12362LD \
12363NM \
12364LN_S \
12365lt_SP2NL \
12366lt_NL2SP \
12367reload_flag \
12368deplibs_check_method \
12369file_magic_cmd \
12370AR \
12371AR_FLAGS \
12372STRIP \
12373RANLIB \
12374CC \
12375CFLAGS \
12376compiler \
12377lt_cv_sys_global_symbol_pipe \
12378lt_cv_sys_global_symbol_to_cdecl \
12379lt_cv_sys_global_symbol_to_c_name_address \
12380SHELL \
12381ECHO \
12382lt_prog_compiler_no_builtin_flag \
12383lt_prog_compiler_wl \
12384lt_prog_compiler_pic \
12385lt_prog_compiler_static \
12386lt_cv_prog_compiler_c_o \
12387need_locks \
12388shrext_cmds \
12389export_dynamic_flag_spec \
12390whole_archive_flag_spec \
12391compiler_needs_object \
12392with_gnu_ld \
12393allow_undefined_flag \
12394no_undefined_flag \
12395hardcode_libdir_flag_spec \
12396hardcode_libdir_flag_spec_ld \
12397hardcode_libdir_separator \
12398fix_srcfile_path \
12399exclude_expsyms \
12400include_expsyms \
12401file_list_spec \
12402variables_saved_for_relink \
12403libname_spec \
12404library_names_spec \
12405soname_spec \
12406finish_eval \
12407old_striplib \
12408striplib; do
12409 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12410 *[\\\\\\\`\\"\\\$]*)
12411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12412 ;;
12413 *)
12414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12415 ;;
12416 esac
12417done
12418
12419# Double-quote double-evaled strings.
12420for var in reload_cmds \
12421old_postinstall_cmds \
12422old_postuninstall_cmds \
12423old_archive_cmds \
12424extract_expsyms_cmds \
12425old_archive_from_new_cmds \
12426old_archive_from_expsyms_cmds \
12427archive_cmds \
12428archive_expsym_cmds \
12429module_cmds \
12430module_expsym_cmds \
12431export_symbols_cmds \
12432prelink_cmds \
12433postinstall_cmds \
12434postuninstall_cmds \
12435finish_cmds \
12436sys_lib_search_path_spec \
12437sys_lib_dlsearch_path_spec; do
12438 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12439 *[\\\\\\\`\\"\\\$]*)
12440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12441 ;;
12442 *)
12443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12444 ;;
12445 esac
12446done
12447
12448# Fix-up fallback echo if it was mangled by the above quoting rules.
12449case \$lt_ECHO in
12450*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12451 ;;
12452esac
12453
12454ac_aux_dir='$ac_aux_dir'
12455xsi_shell='$xsi_shell'
12456lt_shell_append='$lt_shell_append'
12457
12458# See if we are running on zsh, and set the options which allow our
12459# commands through without removal of \ escapes INIT.
12460if test -n "\${ZSH_VERSION+set}" ; then
12461 setopt NO_GLOB_SUBST
12462fi
12463
12464
12465 PACKAGE='$PACKAGE'
12466 VERSION='$VERSION'
12467 TIMESTAMP='$TIMESTAMP'
12468 RM='$RM'
12469 ofile='$ofile'
12470
12471
12472
20e95c23
DJ
12473# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12474 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12475 # from automake.
12476 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12477 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12478 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
12479
12480
12481_ACEOF
12482
12483
12484
12485cat >>$CONFIG_STATUS <<\_ACEOF
12486for ac_config_target in $ac_config_targets
12487do
12488 case "$ac_config_target" in
12489 # Handling of arguments.
12490 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12491 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 12492 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 12493 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 12494 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
979273e3
NN
12495 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12496 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12497echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12498 { (exit 1); exit 1; }; };;
252b5132 12499 esac
979273e3 12500done
252b5132 12501
979273e3
NN
12502# If the user did not use the arguments to specify the items to instantiate,
12503# then the envvar interface is used. Set only those that are not.
12504# We use the long form for the default assignment because of an extremely
12505# bizarre bug on SunOS 4.1.3.
12506if $ac_need_defaults; then
12507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12510fi
12511
12512# Have a temporary directory for convenience. Make it in the build tree
12513# simply because there is no reason to put it here, and in addition,
12514# creating and moving files from /tmp can sometimes cause problems.
12515# Create a temporary directory, and hook for its removal unless debugging.
12516$debug ||
12517{
12518 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12519 trap '{ (exit 1); exit 1; }' 1 2 13 15
12520}
252b5132 12521
979273e3
NN
12522# Create a (secure) tmp directory for tmp files.
12523
12524{
12525 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12526 test -n "$tmp" && test -d "$tmp"
12527} ||
12528{
12529 tmp=./confstat$$-$RANDOM
12530 (umask 077 && mkdir $tmp)
12531} ||
12532{
12533 echo "$me: cannot create a temporary directory in ." >&2
12534 { (exit 1); exit 1; }
12535}
12536
12537_ACEOF
12538
12539cat >>$CONFIG_STATUS <<_ACEOF
12540
12541#
12542# CONFIG_FILES section.
12543#
12544
12545# No need to generate the scripts if there are no CONFIG_FILES.
12546# This happens for instance when ./config.status config.h
12547if test -n "\$CONFIG_FILES"; then
12548 # Protect against being on the right side of a sed subst in config.status.
12549 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12550 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12551s,@SHELL@,$SHELL,;t t
12552s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12553s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12554s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12555s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12556s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12557s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12558s,@exec_prefix@,$exec_prefix,;t t
12559s,@prefix@,$prefix,;t t
12560s,@program_transform_name@,$program_transform_name,;t t
12561s,@bindir@,$bindir,;t t
12562s,@sbindir@,$sbindir,;t t
12563s,@libexecdir@,$libexecdir,;t t
12564s,@datadir@,$datadir,;t t
12565s,@sysconfdir@,$sysconfdir,;t t
12566s,@sharedstatedir@,$sharedstatedir,;t t
12567s,@localstatedir@,$localstatedir,;t t
12568s,@libdir@,$libdir,;t t
12569s,@includedir@,$includedir,;t t
12570s,@oldincludedir@,$oldincludedir,;t t
12571s,@infodir@,$infodir,;t t
12572s,@mandir@,$mandir,;t t
12573s,@build_alias@,$build_alias,;t t
12574s,@host_alias@,$host_alias,;t t
12575s,@target_alias@,$target_alias,;t t
12576s,@DEFS@,$DEFS,;t t
12577s,@ECHO_C@,$ECHO_C,;t t
12578s,@ECHO_N@,$ECHO_N,;t t
12579s,@ECHO_T@,$ECHO_T,;t t
12580s,@LIBS@,$LIBS,;t t
12581s,@build@,$build,;t t
12582s,@build_cpu@,$build_cpu,;t t
12583s,@build_vendor@,$build_vendor,;t t
12584s,@build_os@,$build_os,;t t
12585s,@host@,$host,;t t
12586s,@host_cpu@,$host_cpu,;t t
12587s,@host_vendor@,$host_vendor,;t t
12588s,@host_os@,$host_os,;t t
12589s,@target@,$target,;t t
12590s,@target_cpu@,$target_cpu,;t t
12591s,@target_vendor@,$target_vendor,;t t
12592s,@target_os@,$target_os,;t t
12593s,@CC@,$CC,;t t
12594s,@CFLAGS@,$CFLAGS,;t t
12595s,@LDFLAGS@,$LDFLAGS,;t t
12596s,@CPPFLAGS@,$CPPFLAGS,;t t
12597s,@ac_ct_CC@,$ac_ct_CC,;t t
12598s,@EXEEXT@,$EXEEXT,;t t
12599s,@OBJEXT@,$OBJEXT,;t t
12600s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12601s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12602s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 12603s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
12604s,@PACKAGE@,$PACKAGE,;t t
12605s,@VERSION@,$VERSION,;t t
12606s,@ACLOCAL@,$ACLOCAL,;t t
12607s,@AUTOCONF@,$AUTOCONF,;t t
12608s,@AUTOMAKE@,$AUTOMAKE,;t t
12609s,@AUTOHEADER@,$AUTOHEADER,;t t
12610s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
12611s,@install_sh@,$install_sh,;t t
12612s,@STRIP@,$STRIP,;t t
12613s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12614s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12615s,@mkdir_p@,$mkdir_p,;t t
12616s,@AWK@,$AWK,;t t
979273e3 12617s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
12618s,@am__leading_dot@,$am__leading_dot,;t t
12619s,@AMTAR@,$AMTAR,;t t
12620s,@am__tar@,$am__tar,;t t
12621s,@am__untar@,$am__untar,;t t
12622s,@DEPDIR@,$DEPDIR,;t t
12623s,@am__include@,$am__include,;t t
12624s,@am__quote@,$am__quote,;t t
12625s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12626s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12627s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12628s,@CCDEPMODE@,$CCDEPMODE,;t t
12629s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12630s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
979273e3
NN
12631s,@AR@,$AR,;t t
12632s,@ac_ct_AR@,$ac_ct_AR,;t t
12633s,@RANLIB@,$RANLIB,;t t
12634s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
979273e3 12635s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
12636s,@SED@,$SED,;t t
12637s,@EGREP@,$EGREP,;t t
12638s,@FGREP@,$FGREP,;t t
12639s,@GREP@,$GREP,;t t
12640s,@LD@,$LD,;t t
12641s,@DUMPBIN@,$DUMPBIN,;t t
12642s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12643s,@NM@,$NM,;t t
12644s,@LN_S@,$LN_S,;t t
12645s,@lt_ECHO@,$lt_ECHO,;t t
12646s,@CPP@,$CPP,;t t
979273e3 12647s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 12648s,@NO_WERROR@,$NO_WERROR,;t t
979273e3
NN
12649s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12650s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12651s,@MAINT@,$MAINT,;t t
12652s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12653s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
12654s,@host_noncanonical@,$host_noncanonical,;t t
12655s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
12656s,@bfdlibdir@,$bfdlibdir,;t t
12657s,@bfdincludedir@,$bfdincludedir,;t t
979273e3 12658s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
12659s,@LIBINTL@,$LIBINTL,;t t
12660s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12661s,@INCINTL@,$INCINTL,;t t
979273e3 12662s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
12663s,@GMSGFMT@,$GMSGFMT,;t t
12664s,@POSUB@,$POSUB,;t t
979273e3 12665s,@CATALOGS@,$CATALOGS,;t t
979273e3 12666s,@DATADIRNAME@,$DATADIRNAME,;t t
979273e3 12667s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
12668s,@GENCAT@,$GENCAT,;t t
12669s,@CATOBJEXT@,$CATOBJEXT,;t t
979273e3 12670s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
12671s,@MSGFMT@,$MSGFMT,;t t
12672s,@MSGMERGE@,$MSGMERGE,;t t
979273e3
NN
12673s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12674s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12675s,@HDEFINES@,$HDEFINES,;t t
12676s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12677s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12678s,@cgendir@,$cgendir,;t t
45d42143
NC
12679s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
12680s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
12681s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
979273e3
NN
12682s,@archdefs@,$archdefs,;t t
12683s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12684s,@LIBOBJS@,$LIBOBJS,;t t
12685s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12686CEOF
12687
12688_ACEOF
12689
12690 cat >>$CONFIG_STATUS <<\_ACEOF
12691 # Split the substitutions into bite-sized pieces for seds with
12692 # small command number limits, like on Digital OSF/1 and HP-UX.
12693 ac_max_sed_lines=48
12694 ac_sed_frag=1 # Number of current file.
12695 ac_beg=1 # First line for current file.
12696 ac_end=$ac_max_sed_lines # Line after last line for current file.
12697 ac_more_lines=:
12698 ac_sed_cmds=
12699 while $ac_more_lines; do
12700 if test $ac_beg -gt 1; then
12701 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12702 else
12703 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12704 fi
12705 if test ! -s $tmp/subs.frag; then
12706 ac_more_lines=false
12707 else
12708 # The purpose of the label and of the branching condition is to
12709 # speed up the sed processing (if there are no `@' at all, there
12710 # is no need to browse any of the substitutions).
12711 # These are the two extra sed commands mentioned above.
12712 (echo ':t
12713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12714 if test -z "$ac_sed_cmds"; then
12715 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12716 else
12717 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12718 fi
12719 ac_sed_frag=`expr $ac_sed_frag + 1`
12720 ac_beg=$ac_end
12721 ac_end=`expr $ac_end + $ac_max_sed_lines`
12722 fi
12723 done
12724 if test -z "$ac_sed_cmds"; then
12725 ac_sed_cmds=cat
252b5132 12726 fi
979273e3 12727fi # test -n "$CONFIG_FILES"
252b5132 12728
979273e3
NN
12729_ACEOF
12730cat >>$CONFIG_STATUS <<\_ACEOF
12731for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12733 case $ac_file in
12734 - | *:- | *:-:* ) # input from stdin
12735 cat >$tmp/stdin
12736 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12738 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12740 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12741 esac
12742
979273e3
NN
12743 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12744 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12745$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12746 X"$ac_file" : 'X\(//\)[^/]' \| \
12747 X"$ac_file" : 'X\(//\)$' \| \
12748 X"$ac_file" : 'X\(/\)' \| \
12749 . : '\(.\)' 2>/dev/null ||
12750echo X"$ac_file" |
12751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12753 /^X\(\/\/\)$/{ s//\1/; q; }
12754 /^X\(\/\).*/{ s//\1/; q; }
12755 s/.*/./; q'`
12756 { if $as_mkdir_p; then
12757 mkdir -p "$ac_dir"
12758 else
12759 as_dir="$ac_dir"
12760 as_dirs=
12761 while test ! -d "$as_dir"; do
12762 as_dirs="$as_dir $as_dirs"
12763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12765 X"$as_dir" : 'X\(//\)[^/]' \| \
12766 X"$as_dir" : 'X\(//\)$' \| \
12767 X"$as_dir" : 'X\(/\)' \| \
12768 . : '\(.\)' 2>/dev/null ||
12769echo X"$as_dir" |
12770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12772 /^X\(\/\/\)$/{ s//\1/; q; }
12773 /^X\(\/\).*/{ s//\1/; q; }
12774 s/.*/./; q'`
12775 done
12776 test ! -n "$as_dirs" || mkdir $as_dirs
12777 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12778echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12779 { (exit 1); exit 1; }; }; }
12780
12781 ac_builddir=.
12782
12783if test "$ac_dir" != .; then
12784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12785 # A "../" for each directory in $ac_dir_suffix.
12786 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12787else
12788 ac_dir_suffix= ac_top_builddir=
12789fi
12790
12791case $srcdir in
12792 .) # No --srcdir option. We are building in place.
12793 ac_srcdir=.
12794 if test -z "$ac_top_builddir"; then
12795 ac_top_srcdir=.
12796 else
12797 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12798 fi ;;
12799 [\\/]* | ?:[\\/]* ) # Absolute path.
12800 ac_srcdir=$srcdir$ac_dir_suffix;
12801 ac_top_srcdir=$srcdir ;;
12802 *) # Relative path.
12803 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12804 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12805esac
12806
12807# Do not use `cd foo && pwd` to compute absolute paths, because
12808# the directories may not exist.
12809case `pwd` in
12810.) ac_abs_builddir="$ac_dir";;
12811*)
12812 case "$ac_dir" in
12813 .) ac_abs_builddir=`pwd`;;
12814 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12815 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12816 esac;;
12817esac
12818case $ac_abs_builddir in
12819.) ac_abs_top_builddir=${ac_top_builddir}.;;
12820*)
12821 case ${ac_top_builddir}. in
12822 .) ac_abs_top_builddir=$ac_abs_builddir;;
12823 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12824 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12825 esac;;
12826esac
12827case $ac_abs_builddir in
12828.) ac_abs_srcdir=$ac_srcdir;;
12829*)
12830 case $ac_srcdir in
12831 .) ac_abs_srcdir=$ac_abs_builddir;;
12832 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12833 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12834 esac;;
12835esac
12836case $ac_abs_builddir in
12837.) ac_abs_top_srcdir=$ac_top_srcdir;;
12838*)
12839 case $ac_top_srcdir in
12840 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12841 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12842 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12843 esac;;
12844esac
252b5132 12845
979273e3
NN
12846
12847 case $INSTALL in
12848 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12849 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
12850 esac
12851
8ae85421
AM
12852 if test x"$ac_file" != x-; then
12853 { echo "$as_me:$LINENO: creating $ac_file" >&5
12854echo "$as_me: creating $ac_file" >&6;}
12855 rm -f "$ac_file"
12856 fi
979273e3
NN
12857 # Let's still pretend it is `configure' which instantiates (i.e., don't
12858 # use $as_me), people would be surprised to read:
12859 # /* config.h. Generated by config.status. */
12860 if test x"$ac_file" = x-; then
12861 configure_input=
12862 else
12863 configure_input="$ac_file. "
12864 fi
12865 configure_input=$configure_input"Generated from `echo $ac_file_in |
12866 sed 's,.*/,,'` by configure."
12867
12868 # First look for the input files in the build tree, otherwise in the
12869 # src tree.
12870 ac_file_inputs=`IFS=:
12871 for f in $ac_file_in; do
12872 case $f in
12873 -) echo $tmp/stdin ;;
12874 [\\/$]*)
12875 # Absolute (can't be DOS-style, as IFS=:)
12876 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12877echo "$as_me: error: cannot find input file: $f" >&2;}
12878 { (exit 1); exit 1; }; }
12879 echo "$f";;
12880 *) # Relative
12881 if test -f "$f"; then
12882 # Build tree
12883 echo "$f"
12884 elif test -f "$srcdir/$f"; then
12885 # Source tree
12886 echo "$srcdir/$f"
12887 else
12888 # /dev/null tree
12889 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12890echo "$as_me: error: cannot find input file: $f" >&2;}
12891 { (exit 1); exit 1; }; }
12892 fi;;
12893 esac
12894 done` || { (exit 1); exit 1; }
979273e3
NN
12895_ACEOF
12896cat >>$CONFIG_STATUS <<_ACEOF
12897 sed "$ac_vpsub
12898$extrasub
12899_ACEOF
12900cat >>$CONFIG_STATUS <<\_ACEOF
12901:t
12902/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12903s,@configure_input@,$configure_input,;t t
12904s,@srcdir@,$ac_srcdir,;t t
12905s,@abs_srcdir@,$ac_abs_srcdir,;t t
12906s,@top_srcdir@,$ac_top_srcdir,;t t
12907s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12908s,@builddir@,$ac_builddir,;t t
12909s,@abs_builddir@,$ac_abs_builddir,;t t
12910s,@top_builddir@,$ac_top_builddir,;t t
12911s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12912s,@INSTALL@,$ac_INSTALL,;t t
12913" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12914 rm -f $tmp/stdin
12915 if test x"$ac_file" != x-; then
12916 mv $tmp/out $ac_file
12917 else
12918 cat $tmp/out
12919 rm -f $tmp/out
12920 fi
12921
12922done
12923_ACEOF
12924cat >>$CONFIG_STATUS <<\_ACEOF
12925
12926#
12927# CONFIG_HEADER section.
12928#
252b5132
RH
12929
12930# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12931# NAME is the cpp macro being defined and VALUE is the value it is being given.
12932#
12933# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
12934ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12935ac_dB='[ ].*$,\1#\2'
12936ac_dC=' '
12937ac_dD=',;t'
12938# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12939ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12940ac_uB='$,\1#\2define\3'
252b5132 12941ac_uC=' '
979273e3
NN
12942ac_uD=',;t'
12943
12944for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 12945 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
12946 case $ac_file in
12947 - | *:- | *:-:* ) # input from stdin
12948 cat >$tmp/stdin
12949 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12951 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12953 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12954 esac
12955
979273e3
NN
12956 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12957echo "$as_me: creating $ac_file" >&6;}
12958
12959 # First look for the input files in the build tree, otherwise in the
12960 # src tree.
12961 ac_file_inputs=`IFS=:
12962 for f in $ac_file_in; do
12963 case $f in
12964 -) echo $tmp/stdin ;;
12965 [\\/$]*)
12966 # Absolute (can't be DOS-style, as IFS=:)
12967 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12968echo "$as_me: error: cannot find input file: $f" >&2;}
12969 { (exit 1); exit 1; }; }
12970 # Do quote $f, to prevent DOS paths from being IFS'd.
12971 echo "$f";;
12972 *) # Relative
12973 if test -f "$f"; then
12974 # Build tree
12975 echo "$f"
12976 elif test -f "$srcdir/$f"; then
12977 # Source tree
12978 echo "$srcdir/$f"
12979 else
12980 # /dev/null tree
12981 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12982echo "$as_me: error: cannot find input file: $f" >&2;}
12983 { (exit 1); exit 1; }; }
12984 fi;;
12985 esac
12986 done` || { (exit 1); exit 1; }
12987 # Remove the trailing spaces.
12988 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12989
12990_ACEOF
12991
12992# Transform confdefs.h into two sed scripts, `conftest.defines' and
12993# `conftest.undefs', that substitutes the proper values into
12994# config.h.in to produce config.h. The first handles `#define'
12995# templates, and the second `#undef' templates.
12996# And first: Protect against being on the right side of a sed subst in
12997# config.status. Protect against being in an unquoted here document
12998# in config.status.
12999rm -f conftest.defines conftest.undefs
13000# Using a here document instead of a string reduces the quoting nightmare.
13001# Putting comments in sed scripts is not portable.
13002#
13003# `end' is used to avoid that the second main sed command (meant for
13004# 0-ary CPP macros) applies to n-ary macro definitions.
13005# See the Autoconf documentation for `clear'.
13006cat >confdef2sed.sed <<\_ACEOF
13007s/[\\&,]/\\&/g
13008s,[\\$`],\\&,g
13009t clear
13010: clear
13011s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13012t end
13013s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13014: end
13015_ACEOF
13016# If some macros were called several times there might be several times
13017# the same #defines, which is useless. Nevertheless, we may not want to
13018# sort them, since we want the *last* AC-DEFINE to be honored.
13019uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13020sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13021rm -f confdef2sed.sed
252b5132
RH
13022
13023# This sed command replaces #undef with comments. This is necessary, for
13024# example, in the case of _POSIX_SOURCE, which is predefined and required
13025# on some systems where configure will not decide to define it.
979273e3
NN
13026cat >>conftest.undefs <<\_ACEOF
13027s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13028_ACEOF
13029
13030# Break up conftest.defines because some shells have a limit on the size
13031# of here documents, and old seds have small limits too (100 cmds).
13032echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13033echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13034echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13035echo ' :' >>$CONFIG_STATUS
13036rm -f conftest.tail
13037while grep . conftest.defines >/dev/null
13038do
13039 # Write a limited-size here document to $tmp/defines.sed.
13040 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13041 # Speed up: don't consider the non `#define' lines.
13042 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13043 # Work around the forget-to-reset-the-flag bug.
13044 echo 't clr' >>$CONFIG_STATUS
13045 echo ': clr' >>$CONFIG_STATUS
13046 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13047 echo 'CEOF
13048 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13049 rm -f $tmp/in
13050 mv $tmp/out $tmp/in
13051' >>$CONFIG_STATUS
13052 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13053 rm -f conftest.defines
13054 mv conftest.tail conftest.defines
13055done
13056rm -f conftest.defines
13057echo ' fi # grep' >>$CONFIG_STATUS
13058echo >>$CONFIG_STATUS
252b5132 13059
979273e3
NN
13060# Break up conftest.undefs because some shells have a limit on the size
13061# of here documents, and old seds have small limits too (100 cmds).
13062echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13063rm -f conftest.tail
979273e3 13064while grep . conftest.undefs >/dev/null
252b5132 13065do
979273e3
NN
13066 # Write a limited-size here document to $tmp/undefs.sed.
13067 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13068 # Speed up: don't consider the non `#undef'
13069 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13070 # Work around the forget-to-reset-the-flag bug.
13071 echo 't clr' >>$CONFIG_STATUS
13072 echo ': clr' >>$CONFIG_STATUS
13073 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13074 echo 'CEOF
979273e3
NN
13075 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13076 rm -f $tmp/in
13077 mv $tmp/out $tmp/in
13078' >>$CONFIG_STATUS
13079 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13080 rm -f conftest.undefs
13081 mv conftest.tail conftest.undefs
252b5132 13082done
979273e3
NN
13083rm -f conftest.undefs
13084
13085cat >>$CONFIG_STATUS <<\_ACEOF
13086 # Let's still pretend it is `configure' which instantiates (i.e., don't
13087 # use $as_me), people would be surprised to read:
13088 # /* config.h. Generated by config.status. */
13089 if test x"$ac_file" = x-; then
13090 echo "/* Generated by configure. */" >$tmp/config.h
13091 else
13092 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13093 fi
13094 cat $tmp/in >>$tmp/config.h
13095 rm -f $tmp/in
13096 if test x"$ac_file" != x-; then
13097 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13098 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13099echo "$as_me: $ac_file is unchanged" >&6;}
13100 else
13101 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13102$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13103 X"$ac_file" : 'X\(//\)[^/]' \| \
13104 X"$ac_file" : 'X\(//\)$' \| \
13105 X"$ac_file" : 'X\(/\)' \| \
13106 . : '\(.\)' 2>/dev/null ||
13107echo X"$ac_file" |
13108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13110 /^X\(\/\/\)$/{ s//\1/; q; }
13111 /^X\(\/\).*/{ s//\1/; q; }
13112 s/.*/./; q'`
13113 { if $as_mkdir_p; then
13114 mkdir -p "$ac_dir"
252b5132 13115 else
979273e3
NN
13116 as_dir="$ac_dir"
13117 as_dirs=
13118 while test ! -d "$as_dir"; do
13119 as_dirs="$as_dir $as_dirs"
13120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13122 X"$as_dir" : 'X\(//\)[^/]' \| \
13123 X"$as_dir" : 'X\(//\)$' \| \
13124 X"$as_dir" : 'X\(/\)' \| \
13125 . : '\(.\)' 2>/dev/null ||
13126echo X"$as_dir" |
13127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13129 /^X\(\/\/\)$/{ s//\1/; q; }
13130 /^X\(\/\).*/{ s//\1/; q; }
13131 s/.*/./; q'`
13132 done
13133 test ! -n "$as_dirs" || mkdir $as_dirs
13134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13135echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13136 { (exit 1); exit 1; }; }; }
13137
13138 rm -f $ac_file
13139 mv $tmp/config.h $ac_file
252b5132 13140 fi
979273e3
NN
13141 else
13142 cat $tmp/config.h
13143 rm -f $tmp/config.h
252b5132 13144 fi
8ae85421
AM
13145# Compute $ac_file's index in $config_headers.
13146_am_stamp_count=1
13147for _am_header in $config_headers :; do
13148 case $_am_header in
13149 $ac_file | $ac_file:* )
13150 break ;;
13151 * )
13152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13153 esac
13154done
13155echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13156$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13157 X$ac_file : 'X\(//\)[^/]' \| \
13158 X$ac_file : 'X\(//\)$' \| \
13159 X$ac_file : 'X\(/\)' \| \
13160 . : '\(.\)' 2>/dev/null ||
13161echo X$ac_file |
13162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13164 /^X\(\/\/\)$/{ s//\1/; q; }
13165 /^X\(\/\).*/{ s//\1/; q; }
13166 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
13167done
13168_ACEOF
13169cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13170
979273e3
NN
13171#
13172# CONFIG_COMMANDS section.
13173#
13174for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13175 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13176 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13177 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13178$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13179 X"$ac_dest" : 'X\(//\)[^/]' \| \
13180 X"$ac_dest" : 'X\(//\)$' \| \
13181 X"$ac_dest" : 'X\(/\)' \| \
13182 . : '\(.\)' 2>/dev/null ||
13183echo X"$ac_dest" |
13184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13186 /^X\(\/\/\)$/{ s//\1/; q; }
13187 /^X\(\/\).*/{ s//\1/; q; }
13188 s/.*/./; q'`
13189 { if $as_mkdir_p; then
13190 mkdir -p "$ac_dir"
13191 else
13192 as_dir="$ac_dir"
13193 as_dirs=
13194 while test ! -d "$as_dir"; do
13195 as_dirs="$as_dir $as_dirs"
13196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13198 X"$as_dir" : 'X\(//\)[^/]' \| \
13199 X"$as_dir" : 'X\(//\)$' \| \
13200 X"$as_dir" : 'X\(/\)' \| \
13201 . : '\(.\)' 2>/dev/null ||
13202echo X"$as_dir" |
13203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13205 /^X\(\/\/\)$/{ s//\1/; q; }
13206 /^X\(\/\).*/{ s//\1/; q; }
13207 s/.*/./; q'`
13208 done
13209 test ! -n "$as_dirs" || mkdir $as_dirs
13210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13211echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13212 { (exit 1); exit 1; }; }; }
252b5132 13213
979273e3 13214 ac_builddir=.
252b5132 13215
979273e3
NN
13216if test "$ac_dir" != .; then
13217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13218 # A "../" for each directory in $ac_dir_suffix.
13219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13220else
13221 ac_dir_suffix= ac_top_builddir=
13222fi
13223
13224case $srcdir in
13225 .) # No --srcdir option. We are building in place.
13226 ac_srcdir=.
13227 if test -z "$ac_top_builddir"; then
13228 ac_top_srcdir=.
13229 else
13230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13231 fi ;;
13232 [\\/]* | ?:[\\/]* ) # Absolute path.
13233 ac_srcdir=$srcdir$ac_dir_suffix;
13234 ac_top_srcdir=$srcdir ;;
13235 *) # Relative path.
13236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13238esac
13239
13240# Do not use `cd foo && pwd` to compute absolute paths, because
13241# the directories may not exist.
13242case `pwd` in
13243.) ac_abs_builddir="$ac_dir";;
13244*)
13245 case "$ac_dir" in
13246 .) ac_abs_builddir=`pwd`;;
13247 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13248 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13249 esac;;
13250esac
13251case $ac_abs_builddir in
13252.) ac_abs_top_builddir=${ac_top_builddir}.;;
13253*)
13254 case ${ac_top_builddir}. in
13255 .) ac_abs_top_builddir=$ac_abs_builddir;;
13256 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13257 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13258 esac;;
13259esac
13260case $ac_abs_builddir in
13261.) ac_abs_srcdir=$ac_srcdir;;
13262*)
13263 case $ac_srcdir in
13264 .) ac_abs_srcdir=$ac_abs_builddir;;
13265 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13266 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13267 esac;;
13268esac
13269case $ac_abs_builddir in
13270.) ac_abs_top_srcdir=$ac_top_srcdir;;
13271*)
13272 case $ac_top_srcdir in
13273 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13274 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13275 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13276 esac;;
13277esac
13278
13279
13280 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13281echo "$as_me: executing $ac_dest commands" >&6;}
13282 case $ac_dest in
8ae85421
AM
13283 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13284 # Strip MF so we end up with the name of the file.
13285 mf=`echo "$mf" | sed -e 's/:.*$//'`
13286 # Check whether this is an Automake generated Makefile or not.
13287 # We used to match only the files named `Makefile.in', but
13288 # some people rename them; so instead we look at the file content.
13289 # Grep'ing the first line is not enough: some people post-process
13290 # each Makefile.in and add a new line on top of each file to say so.
13291 # So let's grep whole file.
13292 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13293 dirpart=`(dirname "$mf") 2>/dev/null ||
13294$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13295 X"$mf" : 'X\(//\)[^/]' \| \
13296 X"$mf" : 'X\(//\)$' \| \
13297 X"$mf" : 'X\(/\)' \| \
13298 . : '\(.\)' 2>/dev/null ||
13299echo X"$mf" |
13300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13302 /^X\(\/\/\)$/{ s//\1/; q; }
13303 /^X\(\/\).*/{ s//\1/; q; }
13304 s/.*/./; q'`
13305 else
13306 continue
13307 fi
13308 # Extract the definition of DEPDIR, am__include, and am__quote
13309 # from the Makefile without running `make'.
13310 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13311 test -z "$DEPDIR" && continue
13312 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13313 test -z "am__include" && continue
13314 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13315 # When using ansi2knr, U may be empty or an underscore; expand it
13316 U=`sed -n 's/^U = //p' < "$mf"`
13317 # Find all dependency output files, they are included files with
13318 # $(DEPDIR) in their names. We invoke sed twice because it is the
13319 # simplest approach to changing $(DEPDIR) to its actual value in the
13320 # expansion.
13321 for file in `sed -n "
13322 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13323 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13324 # Make sure the directory exists.
13325 test -f "$dirpart/$file" && continue
13326 fdir=`(dirname "$file") 2>/dev/null ||
13327$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13328 X"$file" : 'X\(//\)[^/]' \| \
13329 X"$file" : 'X\(//\)$' \| \
13330 X"$file" : 'X\(/\)' \| \
13331 . : '\(.\)' 2>/dev/null ||
13332echo X"$file" |
13333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13335 /^X\(\/\/\)$/{ s//\1/; q; }
13336 /^X\(\/\).*/{ s//\1/; q; }
13337 s/.*/./; q'`
13338 { if $as_mkdir_p; then
13339 mkdir -p $dirpart/$fdir
13340 else
13341 as_dir=$dirpart/$fdir
13342 as_dirs=
13343 while test ! -d "$as_dir"; do
13344 as_dirs="$as_dir $as_dirs"
13345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13347 X"$as_dir" : 'X\(//\)[^/]' \| \
13348 X"$as_dir" : 'X\(//\)$' \| \
13349 X"$as_dir" : 'X\(/\)' \| \
13350 . : '\(.\)' 2>/dev/null ||
13351echo X"$as_dir" |
13352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13354 /^X\(\/\/\)$/{ s//\1/; q; }
13355 /^X\(\/\).*/{ s//\1/; q; }
13356 s/.*/./; q'`
13357 done
13358 test ! -n "$as_dirs" || mkdir $as_dirs
13359 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13360echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13361 { (exit 1); exit 1; }; }; }
13362
13363 # echo "creating $dirpart/$file"
13364 echo '# dummy' > "$dirpart/$file"
13365 done
13366done
d7040cdb
SE
13367 ;;
13368 libtool )
13369
13370 # See if we are running on zsh, and set the options which allow our
13371 # commands through without removal of \ escapes.
13372 if test -n "${ZSH_VERSION+set}" ; then
13373 setopt NO_GLOB_SUBST
13374 fi
13375
13376 cfgfile="${ofile}T"
13377 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13378 $RM "$cfgfile"
13379
13380 cat <<_LT_EOF >> "$cfgfile"
13381#! $SHELL
13382
13383# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13384# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13385# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13386# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13387#
13388# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13389# 2006, 2007 Free Software Foundation, Inc.
13390#
13391# This file is part of GNU Libtool:
13392# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13393#
13394# This program is free software; you can redistribute it and/or modify
13395# it under the terms of the GNU General Public License as published by
dabbade6 13396# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
13397# (at your option) any later version.
13398#
13399# This program is distributed in the hope that it will be useful, but
13400# WITHOUT ANY WARRANTY; without even the implied warranty of
13401# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13402# General Public License for more details.
13403#
13404# You should have received a copy of the GNU General Public License
13405# along with this program; if not, a copy can be downloaded from
13406# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13407# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13408# MA 02110-1301, USA.
13409#
13410# As a special exception to the GNU General Public License, if you
13411# distribute this file as part of a program that contains a
13412# configuration script generated by Autoconf, you may include it under
13413# the same distribution terms that you use for the rest of that program.
13414
13415
13416# The names of the tagged configurations supported by this script.
13417available_tags=""
13418
13419# ### BEGIN LIBTOOL CONFIG
13420
13421# Whether or not to build shared libraries.
13422build_libtool_libs=$enable_shared
13423
13424# Which release of libtool.m4 was used?
13425macro_version=$macro_version
13426macro_revision=$macro_revision
13427
13428# Whether or not to build static libraries.
13429build_old_libs=$enable_static
13430
13431# What type of objects to build.
13432pic_mode=$pic_mode
13433
13434# Whether or not to optimize for fast installation.
13435fast_install=$enable_fast_install
13436
13437# The host system.
13438host_alias=$host_alias
13439host=$host
13440host_os=$host_os
13441
13442# The build system.
13443build_alias=$build_alias
13444build=$build
13445build_os=$build_os
13446
13447# A sed program that does not truncate output.
13448SED=$lt_SED
13449
13450# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13451Xsed="\$SED -e 1s/^X//"
13452
13453# A grep program that handles long lines.
13454GREP=$lt_GREP
13455
13456# An ERE matcher.
13457EGREP=$lt_EGREP
13458
13459# A literal string matcher.
13460FGREP=$lt_FGREP
13461
13462# A BSD- or MS-compatible name lister.
13463NM=$lt_NM
13464
13465# Whether we need soft or hard links.
13466LN_S=$lt_LN_S
13467
13468# What is the maximum length of a command?
13469max_cmd_len=$max_cmd_len
13470
13471# Object file suffix (normally "o").
13472objext=$ac_objext
13473
13474# Executable file suffix (normally "").
13475exeext=$exeext
13476
13477# whether the shell understands "unset".
13478lt_unset=$lt_unset
13479
13480# turn spaces into newlines.
13481SP2NL=$lt_lt_SP2NL
13482
13483# turn newlines into spaces.
13484NL2SP=$lt_lt_NL2SP
13485
13486# How to create reloadable object files.
13487reload_flag=$lt_reload_flag
13488reload_cmds=$lt_reload_cmds
13489
13490# Method to check whether dependent libraries are shared objects.
13491deplibs_check_method=$lt_deplibs_check_method
13492
13493# Command to use when deplibs_check_method == "file_magic".
13494file_magic_cmd=$lt_file_magic_cmd
13495
13496# The archiver.
13497AR=$lt_AR
13498AR_FLAGS=$lt_AR_FLAGS
13499
13500# A symbol stripping program.
13501STRIP=$lt_STRIP
13502
13503# Commands used to install an old-style archive.
13504RANLIB=$lt_RANLIB
13505old_postinstall_cmds=$lt_old_postinstall_cmds
13506old_postuninstall_cmds=$lt_old_postuninstall_cmds
13507
13508# A C compiler.
13509LTCC=$lt_CC
13510
13511# LTCC compiler flags.
13512LTCFLAGS=$lt_CFLAGS
13513
13514# Take the output of nm and produce a listing of raw symbols and C names.
13515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13516
13517# Transform the output of nm in a proper C declaration.
13518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13519
13520# Transform the output of nm in a C name address pair.
13521global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13522
13523# The name of the directory that contains temporary libtool files.
13524objdir=$objdir
13525
13526# Shell to use when invoking shell scripts.
13527SHELL=$lt_SHELL
13528
13529# An echo program that does not interpret backslashes.
13530ECHO=$lt_ECHO
13531
13532# Used to examine libraries when file_magic_cmd begins with "file".
13533MAGIC_CMD=$MAGIC_CMD
13534
13535# Must we lock files when doing compilation?
13536need_locks=$lt_need_locks
13537
13538# Old archive suffix (normally "a").
13539libext=$libext
13540
13541# Shared library suffix (normally ".so").
13542shrext_cmds=$lt_shrext_cmds
13543
13544# The commands to extract the exported symbol list from a shared archive.
13545extract_expsyms_cmds=$lt_extract_expsyms_cmds
13546
13547# Variables whose values should be saved in libtool wrapper scripts and
13548# restored at link time.
13549variables_saved_for_relink=$lt_variables_saved_for_relink
13550
13551# Do we need the "lib" prefix for modules?
13552need_lib_prefix=$need_lib_prefix
13553
13554# Do we need a version for libraries?
13555need_version=$need_version
13556
13557# Library versioning type.
13558version_type=$version_type
13559
13560# Shared library runtime path variable.
13561runpath_var=$runpath_var
13562
13563# Shared library path variable.
13564shlibpath_var=$shlibpath_var
13565
13566# Is shlibpath searched before the hard-coded library search path?
13567shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13568
13569# Format of library name prefix.
13570libname_spec=$lt_libname_spec
13571
13572# List of archive names. First name is the real one, the rest are links.
13573# The last name is the one that the linker finds with -lNAME
13574library_names_spec=$lt_library_names_spec
13575
13576# The coded name of the library, if different from the real name.
13577soname_spec=$lt_soname_spec
13578
13579# Command to use after installation of a shared archive.
13580postinstall_cmds=$lt_postinstall_cmds
13581
13582# Command to use after uninstallation of a shared archive.
13583postuninstall_cmds=$lt_postuninstall_cmds
13584
13585# Commands used to finish a libtool library installation in a directory.
13586finish_cmds=$lt_finish_cmds
13587
13588# As "finish_cmds", except a single script fragment to be evaled but
13589# not shown.
13590finish_eval=$lt_finish_eval
13591
13592# Whether we should hardcode library paths into libraries.
13593hardcode_into_libs=$hardcode_into_libs
13594
13595# Compile-time system search path for libraries.
13596sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13597
13598# Run-time system search path for libraries.
13599sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13600
13601# Whether dlopen is supported.
13602dlopen_support=$enable_dlopen
13603
13604# Whether dlopen of programs is supported.
13605dlopen_self=$enable_dlopen_self
13606
13607# Whether dlopen of statically linked programs is supported.
13608dlopen_self_static=$enable_dlopen_self_static
13609
13610# Commands to strip libraries.
13611old_striplib=$lt_old_striplib
13612striplib=$lt_striplib
13613
13614
13615# The linker used to build libraries.
13616LD=$lt_LD
13617
13618# Commands used to build an old-style archive.
13619old_archive_cmds=$lt_old_archive_cmds
13620
13621# A language specific compiler.
13622CC=$lt_compiler
13623
13624# Is the compiler the GNU compiler?
13625with_gcc=$GCC
13626
13627# Compiler flag to turn off builtin functions.
13628no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13629
13630# How to pass a linker flag through the compiler.
13631wl=$lt_lt_prog_compiler_wl
13632
13633# Additional compiler flags for building library objects.
13634pic_flag=$lt_lt_prog_compiler_pic
13635
13636# Compiler flag to prevent dynamic linking.
13637link_static_flag=$lt_lt_prog_compiler_static
13638
13639# Does compiler simultaneously support -c and -o options?
13640compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13641
13642# Whether or not to add -lc for building shared libraries.
13643build_libtool_need_lc=$archive_cmds_need_lc
13644
13645# Whether or not to disallow shared libs when runtime libs are static.
13646allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13647
13648# Compiler flag to allow reflexive dlopens.
13649export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13650
13651# Compiler flag to generate shared objects directly from archives.
13652whole_archive_flag_spec=$lt_whole_archive_flag_spec
13653
13654# Whether the compiler copes with passing no objects directly.
13655compiler_needs_object=$lt_compiler_needs_object
13656
13657# Create an old-style archive from a shared archive.
13658old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13659
13660# Create a temporary old-style archive to link instead of a shared archive.
13661old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13662
13663# Commands used to build a shared archive.
13664archive_cmds=$lt_archive_cmds
13665archive_expsym_cmds=$lt_archive_expsym_cmds
13666
13667# Commands used to build a loadable module if different from building
13668# a shared archive.
13669module_cmds=$lt_module_cmds
13670module_expsym_cmds=$lt_module_expsym_cmds
13671
13672# Whether we are building with GNU ld or not.
13673with_gnu_ld=$lt_with_gnu_ld
13674
13675# Flag that allows shared libraries with undefined symbols to be built.
13676allow_undefined_flag=$lt_allow_undefined_flag
13677
13678# Flag that enforces no undefined symbols.
13679no_undefined_flag=$lt_no_undefined_flag
13680
13681# Flag to hardcode \$libdir into a binary during linking.
13682# This must work even if \$libdir does not exist
13683hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13684
13685# If ld is used when linking, flag to hardcode \$libdir into a binary
13686# during linking. This must work even if \$libdir does not exist.
13687hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13688
13689# Whether we need a single "-rpath" flag with a separated argument.
13690hardcode_libdir_separator=$lt_hardcode_libdir_separator
13691
13692# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13693# DIR into the resulting binary.
13694hardcode_direct=$hardcode_direct
13695
13696# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13697# DIR into the resulting binary and the resulting library dependency is
13698# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13699# library is relocated.
13700hardcode_direct_absolute=$hardcode_direct_absolute
13701
13702# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13703# into the resulting binary.
13704hardcode_minus_L=$hardcode_minus_L
13705
13706# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13707# into the resulting binary.
13708hardcode_shlibpath_var=$hardcode_shlibpath_var
13709
13710# Set to "yes" if building a shared library automatically hardcodes DIR
13711# into the library and all subsequent libraries and executables linked
13712# against it.
13713hardcode_automatic=$hardcode_automatic
13714
13715# Set to yes if linker adds runtime paths of dependent libraries
13716# to runtime path list.
13717inherit_rpath=$inherit_rpath
13718
13719# Whether libtool must link a program against all its dependency libraries.
13720link_all_deplibs=$link_all_deplibs
13721
13722# Fix the shell variable \$srcfile for the compiler.
13723fix_srcfile_path=$lt_fix_srcfile_path
13724
13725# Set to "yes" if exported symbols are required.
13726always_export_symbols=$always_export_symbols
13727
13728# The commands to list exported symbols.
13729export_symbols_cmds=$lt_export_symbols_cmds
13730
13731# Symbols that should not be listed in the preloaded symbols.
13732exclude_expsyms=$lt_exclude_expsyms
13733
13734# Symbols that must always be exported.
13735include_expsyms=$lt_include_expsyms
13736
13737# Commands necessary for linking programs (against libraries) with templates.
13738prelink_cmds=$lt_prelink_cmds
13739
13740# Specify filename containing input files.
13741file_list_spec=$lt_file_list_spec
13742
13743# How to hardcode a shared library path into an executable.
13744hardcode_action=$hardcode_action
13745
13746# ### END LIBTOOL CONFIG
13747
13748_LT_EOF
13749
13750 case $host_os in
13751 aix3*)
13752 cat <<\_LT_EOF >> "$cfgfile"
13753# AIX sometimes has problems with the GCC collect2 program. For some
13754# reason, if we set the COLLECT_NAMES environment variable, the problems
13755# vanish in a puff of smoke.
13756if test "X${COLLECT_NAMES+set}" != Xset; then
13757 COLLECT_NAMES=
13758 export COLLECT_NAMES
13759fi
13760_LT_EOF
13761 ;;
13762 esac
13763
13764
13765ltmain="$ac_aux_dir/ltmain.sh"
13766
13767
13768 # We use sed instead of cat because bash on DJGPP gets confused if
13769 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13770 # text mode, it properly converts lines to CR/LF. This bash problem
13771 # is reportedly fixed, but why not run on old versions too?
13772 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13773 || (rm -f "$cfgfile"; exit 1)
13774
13775 case $xsi_shell in
13776 yes)
13777 cat << \_LT_EOF >> "$cfgfile"
13778# func_dirname file append nondir_replacement
13779# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13780# otherwise set result to NONDIR_REPLACEMENT.
13781func_dirname ()
13782{
13783 case ${1} in
13784 */*) func_dirname_result="${1%/*}${2}" ;;
13785 * ) func_dirname_result="${3}" ;;
13786 esac
13787}
13788
13789# func_basename file
13790func_basename ()
13791{
13792 func_basename_result="${1##*/}"
13793}
13794
13795# func_stripname prefix suffix name
13796# strip PREFIX and SUFFIX off of NAME.
13797# PREFIX and SUFFIX must not contain globbing or regex special
13798# characters, hashes, percent signs, but SUFFIX may contain a leading
13799# dot (in which case that matches only a dot).
13800func_stripname ()
13801{
13802 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13803 # positional parameters, so assign one to ordinary parameter first.
13804 func_stripname_result=${3}
13805 func_stripname_result=${func_stripname_result#"${1}"}
13806 func_stripname_result=${func_stripname_result%"${2}"}
13807}
13808
13809# func_opt_split
13810func_opt_split ()
13811{
13812 func_opt_split_opt=${1%%=*}
13813 func_opt_split_arg=${1#*=}
13814}
13815
13816# func_lo2o object
13817func_lo2o ()
13818{
13819 case ${1} in
13820 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13821 *) func_lo2o_result=${1} ;;
13822 esac
13823}
13824_LT_EOF
13825 ;;
13826 *) # Bourne compatible functions.
13827 cat << \_LT_EOF >> "$cfgfile"
13828# func_dirname file append nondir_replacement
13829# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13830# otherwise set result to NONDIR_REPLACEMENT.
13831func_dirname ()
13832{
13833 # Extract subdirectory from the argument.
13834 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13835 if test "X$func_dirname_result" = "X${1}"; then
13836 func_dirname_result="${3}"
13837 else
13838 func_dirname_result="$func_dirname_result${2}"
13839 fi
13840}
13841
13842# func_basename file
13843func_basename ()
13844{
13845 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13846}
13847
13848# func_stripname prefix suffix name
13849# strip PREFIX and SUFFIX off of NAME.
13850# PREFIX and SUFFIX must not contain globbing or regex special
13851# characters, hashes, percent signs, but SUFFIX may contain a leading
13852# dot (in which case that matches only a dot).
13853# func_strip_suffix prefix name
13854func_stripname ()
13855{
13856 case ${2} in
13857 .*) func_stripname_result=`$ECHO "X${3}" \
13858 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13859 *) func_stripname_result=`$ECHO "X${3}" \
13860 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13861 esac
13862}
13863
13864# sed scripts:
13865my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13866my_sed_long_arg='1s/^-[^=]*=//'
13867
13868# func_opt_split
13869func_opt_split ()
13870{
13871 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13872 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13873}
13874
13875# func_lo2o object
13876func_lo2o ()
13877{
13878 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13879}
13880_LT_EOF
13881esac
13882
13883case $lt_shell_append in
13884 yes)
13885 cat << \_LT_EOF >> "$cfgfile"
13886
13887# func_append var value
13888# Append VALUE to the end of shell variable VAR.
13889func_append ()
13890{
13891 eval "$1+=\$2"
13892}
13893_LT_EOF
13894 ;;
13895 *)
13896 cat << \_LT_EOF >> "$cfgfile"
13897
13898# func_append var value
13899# Append VALUE to the end of shell variable VAR.
13900func_append ()
13901{
13902 eval "$1=\$$1\$2"
13903}
13904_LT_EOF
13905 ;;
13906 esac
13907
13908
13909 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13910 || (rm -f "$cfgfile"; exit 1)
13911
13912 mv -f "$cfgfile" "$ofile" ||
13913 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13914 chmod +x "$ofile"
13915
8ae85421 13916 ;;
20e95c23
DJ
13917 default-1 )
13918 for ac_file in $CONFIG_FILES; do
13919 # Support "outfile[:infile[:infile...]]"
13920 case "$ac_file" in
13921 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13922 esac
13923 # PO directories have a Makefile.in generated from Makefile.in.in.
13924 case "$ac_file" in */Makefile.in)
13925 # Adjust a relative srcdir.
13926 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13927 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13928 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13929 # In autoconf-2.13 it is called $ac_given_srcdir.
13930 # In autoconf-2.50 it is called $srcdir.
13931 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13932 case "$ac_given_srcdir" in
13933 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13934 /*) top_srcdir="$ac_given_srcdir" ;;
13935 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13936 esac
13937 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13938 rm -f "$ac_dir/POTFILES"
13939 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13940 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13941 POMAKEFILEDEPS="POTFILES.in"
13942 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13943 # on $ac_dir but don't depend on user-specified configuration
13944 # parameters.
13945 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13946 # The LINGUAS file contains the set of available languages.
13947 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13948 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13949 fi
13950 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13951 # Hide the ALL_LINGUAS assigment from automake.
13952 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13953 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13954 else
13955 # The set of available languages was given in configure.in.
13956 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13957 fi
13958 case "$ac_given_srcdir" in
13959 .) srcdirpre= ;;
13960 *) srcdirpre='$(srcdir)/' ;;
13961 esac
13962 POFILES=
13963 GMOFILES=
13964 UPDATEPOFILES=
13965 DUMMYPOFILES=
13966 for lang in $ALL_LINGUAS; do
13967 POFILES="$POFILES $srcdirpre$lang.po"
13968 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13969 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13970 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13971 done
13972 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13973 # environment variable.
13974 INST_LINGUAS=
13975 if test -n "$ALL_LINGUAS"; then
13976 for presentlang in $ALL_LINGUAS; do
13977 useit=no
13978 if test "%UNSET%" != "$LINGUAS"; then
13979 desiredlanguages="$LINGUAS"
13980 else
13981 desiredlanguages="$ALL_LINGUAS"
13982 fi
13983 for desiredlang in $desiredlanguages; do
13984 # Use the presentlang catalog if desiredlang is
13985 # a. equal to presentlang, or
13986 # b. a variant of presentlang (because in this case,
13987 # presentlang can be used as a fallback for messages
13988 # which are not translated in the desiredlang catalog).
13989 case "$desiredlang" in
13990 "$presentlang"*) useit=yes;;
13991 esac
13992 done
13993 if test $useit = yes; then
13994 INST_LINGUAS="$INST_LINGUAS $presentlang"
13995 fi
13996 done
13997 fi
13998 CATALOGS=
13999 if test -n "$INST_LINGUAS"; then
14000 for lang in $INST_LINGUAS; do
14001 CATALOGS="$CATALOGS $lang.gmo"
14002 done
14003 fi
14004 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14005 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14006 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14007 if test -f "$f"; then
14008 case "$f" in
14009 *.orig | *.bak | *~) ;;
14010 *) cat "$f" >> "$ac_dir/Makefile" ;;
14011 esac
14012 fi
14013 done
14014 fi
14015 ;;
14016 esac
14017 done ;;
979273e3
NN
14018 esac
14019done
14020_ACEOF
14021
14022cat >>$CONFIG_STATUS <<\_ACEOF
14023
14024{ (exit 0); exit 0; }
14025_ACEOF
252b5132 14026chmod +x $CONFIG_STATUS
979273e3
NN
14027ac_clean_files=$ac_clean_files_save
14028
14029
14030# configure is writing to config.log, and then calls config.status.
14031# config.status does its own redirection, appending to config.log.
14032# Unfortunately, on DOS this fails, as config.log is still kept open
14033# by configure, so config.status won't be able to write to it; its
14034# output is simply discarded. So we exec the FD to /dev/null,
14035# effectively closing config.log, so it can be properly (re)opened and
14036# appended to by config.status. When coming back to configure, we
14037# need to make the FD available again.
14038if test "$no_create" != yes; then
14039 ac_cs_success=:
14040 ac_config_status_args=
14041 test "$silent" = yes &&
14042 ac_config_status_args="$ac_config_status_args --quiet"
14043 exec 5>/dev/null
14044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14045 exec 5>>config.log
14046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14047 # would make configure fail if this is the last instruction.
14048 $ac_cs_success || { (exit 1); exit 1; }
14049fi
252b5132 14050
This page took 1.126892 seconds and 4 git commands to generate.