Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / numlib / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for numlib 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='numlib'
425PACKAGE_TARNAME='numlib'
426PACKAGE_VERSION='0.10'
427PACKAGE_STRING='numlib 0.10'
428PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430ac_unique_file="atotimet.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures numlib 0.10 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of numlib 0.10:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048
1049Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066Report bugs to <courier-users@lists.sourceforge.net>.
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082 ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
1100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138esac
1139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161 cat <<\_ACEOF
1162numlib configure 0.10
1163generated by GNU Autoconf 2.59
1164
1165Copyright (C) 2003 Free Software Foundation, Inc.
1166This configure script is free software; the Free Software Foundation
1167gives unlimited permission to copy, distribute and modify it.
1168_ACEOF
1169 exit 0
1170fi
1171exec 5>config.log
1172cat >&5 <<_ACEOF
1173This file contains any messages produced by compilers while
1174running configure, to aid debugging if configure makes a mistake.
1175
1176It was created by numlib $as_me 0.10, which was
1177generated by GNU Autoconf 2.59. Invocation command line was
1178
1179 $ $0 $@
1180
1181_ACEOF
1182{
1183cat <<_ASUNAME
1184## --------- ##
1185## Platform. ##
1186## --------- ##
1187
1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196
1197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204
1205_ASUNAME
1206
1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208for as_dir in $PATH
1209do
1210 IFS=$as_save_IFS
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1213done
1214
1215} >&5
1216
1217cat >&5 <<_ACEOF
1218
1219
1220## ----------- ##
1221## Core tests. ##
1222## ----------- ##
1223
1224_ACEOF
1225
1226
1227# Keep a trace of the command line.
1228# Strip out --no-create and --no-recursion so they do not pile up.
1229# Strip out --silent because we don't want to record it for future runs.
1230# Also quote any args containing shell meta-characters.
1231# Make two passes to allow for proper duplicate-argument suppression.
1232ac_configure_args=
1233ac_configure_args0=
1234ac_configure_args1=
1235ac_sep=
1236ac_must_keep_next=false
1237for ac_pass in 1 2
1238do
1239 for ac_arg
1240 do
1241 case $ac_arg in
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 continue ;;
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 esac
1249 case $ac_pass in
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 2)
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1255 else
1256 case $ac_arg in
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 esac
1264 ;;
1265 -* ) ac_must_keep_next=true ;;
1266 esac
1267 fi
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1270 ac_sep=" "
1271 ;;
1272 esac
1273 done
1274done
1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278# When interrupted or exit'd, cleanup temporary files, and complete
1279# config.log. We remove comments because anyway the quotes in there
1280# would cause problems or look ugly.
1281# WARNING: Be sure not to use single quotes in there, as some shells,
1282# such as our DU 5.0 friend, will then `close' the trap.
1283trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1285 {
1286 echo
1287
1288 cat <<\_ASBOX
1289## ---------------- ##
1290## Cache variables. ##
1291## ---------------- ##
1292_ASBOX
1293 echo
1294 # The following way of writing the cache mishandles newlines in values,
1295{
1296 (set) 2>&1 |
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 *ac_space=\ *)
1299 sed -n \
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 ;;
1303 *)
1304 sed -n \
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ;;
1307 esac;
1308}
1309 echo
1310
1311 cat <<\_ASBOX
1312## ----------------- ##
1313## Output variables. ##
1314## ----------------- ##
1315_ASBOX
1316 echo
1317 for ac_var in $ac_subst_vars
1318 do
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1321 done | sort
1322 echo
1323
1324 if test -n "$ac_subst_files"; then
1325 cat <<\_ASBOX
1326## ------------- ##
1327## Output files. ##
1328## ------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_files
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337 fi
1338
1339 if test -s confdefs.h; then
1340 cat <<\_ASBOX
1341## ----------- ##
1342## confdefs.h. ##
1343## ----------- ##
1344_ASBOX
1345 echo
1346 sed "/^$/d" confdefs.h | sort
1347 echo
1348 fi
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1352 } >&5
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 exit $exit_status
1356 ' 0
1357for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359done
1360ac_signal=0
1361
1362# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363rm -rf conftest* confdefs.h
1364# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365echo >confdefs.h
1366
1367# Predefined preprocessor variables.
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_NAME "$PACKAGE_NAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_VERSION "$PACKAGE_VERSION"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_STRING "$PACKAGE_STRING"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391_ACEOF
1392
1393
1394# Let the site file select an alternate cache file if it wants to.
1395# Prefer explicitly selected file to automatically selected ones.
1396if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 else
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 fi
1402fi
1403for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1408 . "$ac_site_file"
1409 fi
1410done
1411
1412if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417echo "$as_me: loading cache $cache_file" >&6;}
1418 case $cache_file in
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1421 esac
1422 fi
1423else
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425echo "$as_me: creating cache $cache_file" >&6;}
1426 >$cache_file
1427fi
1428
1429# Check that the precious variables saved in the cache have kept the same
1430# value.
1431ac_cache_corrupted=false
1432for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1439 set,)
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1443 ,set)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,);;
1448 *)
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1457 fi;;
1458 esac
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1461 case $ac_new_val in
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1465 esac
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 esac
1470 fi
1471done
1472if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1478fi
1479
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513>confdefs.h # Kill PACKAGE_ macros
1514
1515
1516 ac_config_headers="$ac_config_headers config.h"
1517
1518am__api_version="1.9"
1519ac_aux_dir=
1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544# Find a good install program. We prefer a C program (faster),
1545# so one script is as good as another. But avoid the broken or
1546# incompatible versions:
1547# SysV /etc/install, /usr/sbin/install
1548# SunOS /usr/etc/install
1549# IRIX /sbin/install
1550# AIX /bin/install
1551# AmigaOS /C/install, which installs bootblocks on floppy discs
1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555# OS/2's system install, which has a completely different semantic
1556# ./install, which can be erroneously created by make from ./install.sh.
1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559if test -z "$INSTALL"; then
1560if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 # Account for people who put trailing slashes in PATH elements.
1569case $as_dir/ in
1570 ./ | .// | /cC/* | \
1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573 /usr/ucb/* ) ;;
1574 *)
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1577 # by default.
1578 for ac_prog in ginstall scoinst install; do
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1584 :
1585 elif test $ac_prog = install &&
1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1588 :
1589 else
1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591 break 3
1592 fi
1593 fi
1594 done
1595 done
1596 ;;
1597esac
1598done
1599
1600
1601fi
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL=$ac_cv_path_install
1604 else
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL=$ac_install_sh
1610 fi
1611fi
1612echo "$as_me:$LINENO: result: $INSTALL" >&5
1613echo "${ECHO_T}$INSTALL" >&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625# Just in case
1626sleep 1
1627echo timestamp > conftest.file
1628# Do `set' in a subshell so we don't clobber the current shell's
1629# arguments. Must try -L first in case configure is actually a
1630# symlink; some systems play weird games with the mod time of symlinks
1631# (eg FreeBSD returns the mod time of the symlink's containing
1632# directory).
1633if (
1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1636 # -L didn't work.
1637 set X `ls -t $srcdir/configure conftest.file`
1638 fi
1639 rm -f conftest.file
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648alias in your environment" >&5
1649echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1652 fi
1653
1654 test "$2" = conftest.file
1655 )
1656then
1657 # Ok.
1658 :
1659else
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661Check your system clock" >&5
1662echo "$as_me: error: newly created file is older than distributed files!
1663Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668test "$program_prefix" != NONE &&
1669 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670# Use a double $ so make ignores it.
1671test "$program_suffix" != NONE &&
1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673# Double any \ or $. echo might interpret backslashes.
1674# By default was `s,x,x', remove it if useless.
1675cat <<\_ACEOF >conftest.sed
1676s/[\\$]/&&/g;s/;s,x,x,$//
1677_ACEOF
1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679rm conftest.sed
1680
1681# expand $ac_aux_dir to an absolute path
1682am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685# Use eval to expand $SHELL
1686if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1688else
1689 am_missing_run=
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692fi
1693
1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1699 # for two reasons:
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p='mkdir -p --'
1710else
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1714 # exists.
1715 for d in ./-p ./--version;
1716 do
1717 test -d $d && rmdir $d
1718 done
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1722 else
1723 mkdir_p='$(install_sh) -d'
1724 fi
1725fi
1726
1727for ac_prog in gawk mawk nawk awk
1728do
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1749 fi
1750done
1751done
1752
1753fi
1754fi
1755AWK=$ac_cv_prog_AWK
1756if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758echo "${ECHO_T}$AWK" >&6
1759else
1760 echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764 test -n "$AWK" && break
1765done
1766
1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 cat >conftest.make <<\_ACEOF
1774all:
1775 @echo 'ac_maketemp="$(MAKE)"'
1776_ACEOF
1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1781else
1782 eval ac_cv_prog_make_${ac_make}_set=no
1783fi
1784rm -f conftest.make
1785fi
1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789 SET_MAKE=
1790else
1791 echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1794fi
1795
1796rm -rf .tst 2>/dev/null
1797mkdir .tst 2>/dev/null
1798if test -d .tst; then
1799 am__leading_dot=.
1800else
1801 am__leading_dot=_
1802fi
1803rmdir .tst 2>/dev/null
1804
1805# test to see if srcdir already configured
1806if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1811fi
1812
1813# test whether we have cygpath
1814if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1817 else
1818 CYGPATH_W=echo
1819 fi
1820fi
1821
1822
1823# Define the identity of the package.
1824 PACKAGE='numlib'
1825 VERSION='0.10'
1826
1827
1828# Some tools Automake needs.
1829
1830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831
1832
1833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1834
1835
1836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837
1838
1839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1840
1841
1842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843
1844install_sh=${install_sh-"$am_aux_dir/install-sh"}
1845
1846# Installed binaries are usually stripped using `strip' when the user
1847# run `make install-strip'. However `strip' might not be the right
1848# tool to use in cross-compilation environments, therefore Automake
1849# will honor the `STRIP' environment variable to overrule this program.
1850if test "$cross_compiling" != no; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1853set dummy ${ac_tool_prefix}strip; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_STRIP+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 if test -n "$STRIP"; then
1860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873done
1874done
1875
1876fi
1877fi
1878STRIP=$ac_cv_prog_STRIP
1879if test -n "$STRIP"; then
1880 echo "$as_me:$LINENO: result: $STRIP" >&5
1881echo "${ECHO_T}$STRIP" >&6
1882else
1883 echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887fi
1888if test -z "$ac_cv_prog_STRIP"; then
1889 ac_ct_STRIP=$STRIP
1890 # Extract the first word of "strip", so it can be a program name with args.
1891set dummy strip; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897 if test -n "$ac_ct_STRIP"; then
1898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_STRIP="strip"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
1913
1914 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1915fi
1916fi
1917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1918if test -n "$ac_ct_STRIP"; then
1919 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1920echo "${ECHO_T}$ac_ct_STRIP" >&6
1921else
1922 echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926 STRIP=$ac_ct_STRIP
1927else
1928 STRIP="$ac_cv_prog_STRIP"
1929fi
1930
1931fi
1932INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1933
1934# We need awk for the "check" target. The system "awk" is bad on
1935# some platforms.
1936# Always define AMTAR for backward compatibility.
1937
1938AMTAR=${AMTAR-"${am_missing_run}tar"}
1939
1940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1941
1942
1943
1944
1945
1946
1947for ac_prog in gawk mawk nawk awk
1948do
1949 # Extract the first word of "$ac_prog", so it can be a program name with args.
1950set dummy $ac_prog; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_AWK+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956 if test -n "$AWK"; then
1957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_AWK="$ac_prog"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1969 fi
1970done
1971done
1972
1973fi
1974fi
1975AWK=$ac_cv_prog_AWK
1976if test -n "$AWK"; then
1977 echo "$as_me:$LINENO: result: $AWK" >&5
1978echo "${ECHO_T}$AWK" >&6
1979else
1980 echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984 test -n "$AWK" && break
1985done
1986
1987ac_ext=c
1988ac_cpp='$CPP $CPPFLAGS'
1989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992if test -n "$ac_tool_prefix"; then
1993 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1994set dummy ${ac_tool_prefix}gcc; ac_word=$2
1995echo "$as_me:$LINENO: checking for $ac_word" >&5
1996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2002else
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2013 fi
2014done
2015done
2016
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024 echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028fi
2029if test -z "$ac_cv_prog_CC"; then
2030 ac_ct_CC=$CC
2031 # Extract the first word of "gcc", so it can be a program name with args.
2032set dummy gcc; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC="gcc"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2051 fi
2052done
2053done
2054
2055fi
2056fi
2057ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060echo "${ECHO_T}$ac_ct_CC" >&6
2061else
2062 echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066 CC=$ac_ct_CC
2067else
2068 CC="$ac_cv_prog_CC"
2069fi
2070
2071if test -z "$CC"; then
2072 if test -n "$ac_tool_prefix"; then
2073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2074set dummy ${ac_tool_prefix}cc; ac_word=$2
2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077if test "${ac_cv_prog_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_CC="${ac_tool_prefix}cc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094done
2095done
2096
2097fi
2098fi
2099CC=$ac_cv_prog_CC
2100if test -n "$CC"; then
2101 echo "$as_me:$LINENO: result: $CC" >&5
2102echo "${ECHO_T}$CC" >&6
2103else
2104 echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
2108fi
2109if test -z "$ac_cv_prog_CC"; then
2110 ac_ct_CC=$CC
2111 # Extract the first word of "cc", so it can be a program name with args.
2112set dummy cc; ac_word=$2
2113echo "$as_me:$LINENO: checking for $ac_word" >&5
2114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117else
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120else
2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122for as_dir in $PATH
2123do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 ac_cv_prog_ac_ct_CC="cc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2131 fi
2132done
2133done
2134
2135fi
2136fi
2137ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138if test -n "$ac_ct_CC"; then
2139 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140echo "${ECHO_T}$ac_ct_CC" >&6
2141else
2142 echo "$as_me:$LINENO: result: no" >&5
2143echo "${ECHO_T}no" >&6
2144fi
2145
2146 CC=$ac_ct_CC
2147else
2148 CC="$ac_cv_prog_CC"
2149fi
2150
2151fi
2152if test -z "$CC"; then
2153 # Extract the first word of "cc", so it can be a program name with args.
2154set dummy cc; ac_word=$2
2155echo "$as_me:$LINENO: checking for $ac_word" >&5
2156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157if test "${ac_cv_prog_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2162else
2163 ac_prog_rejected=no
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2172 ac_prog_rejected=yes
2173 continue
2174 fi
2175 ac_cv_prog_CC="cc"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179done
2180done
2181
2182if test $ac_prog_rejected = yes; then
2183 # We found a bogon in the path, so make sure we never use it.
2184 set dummy $ac_cv_prog_CC
2185 shift
2186 if test $# != 0; then
2187 # We chose a different compiler from the bogus one.
2188 # However, it has the same basename, so the bogon will be chosen
2189 # first if we set CC to just the basename; use the full file name.
2190 shift
2191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2192 fi
2193fi
2194fi
2195fi
2196CC=$ac_cv_prog_CC
2197if test -n "$CC"; then
2198 echo "$as_me:$LINENO: result: $CC" >&5
2199echo "${ECHO_T}$CC" >&6
2200else
2201 echo "$as_me:$LINENO: result: no" >&5
2202echo "${ECHO_T}no" >&6
2203fi
2204
2205fi
2206if test -z "$CC"; then
2207 if test -n "$ac_tool_prefix"; then
2208 for ac_prog in cl
2209 do
2210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212echo "$as_me:$LINENO: checking for $ac_word" >&5
2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2219else
2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221for as_dir in $PATH
2222do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2230 fi
2231done
2232done
2233
2234fi
2235fi
2236CC=$ac_cv_prog_CC
2237if test -n "$CC"; then
2238 echo "$as_me:$LINENO: result: $CC" >&5
2239echo "${ECHO_T}$CC" >&6
2240else
2241 echo "$as_me:$LINENO: result: no" >&5
2242echo "${ECHO_T}no" >&6
2243fi
2244
2245 test -n "$CC" && break
2246 done
2247fi
2248if test -z "$CC"; then
2249 ac_ct_CC=$CC
2250 for ac_prog in cl
2251do
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253set dummy $ac_prog; ac_word=$2
2254echo "$as_me:$LINENO: checking for $ac_word" >&5
2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261else
2262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263for as_dir in $PATH
2264do
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_ac_ct_CC="$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2272 fi
2273done
2274done
2275
2276fi
2277fi
2278ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279if test -n "$ac_ct_CC"; then
2280 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281echo "${ECHO_T}$ac_ct_CC" >&6
2282else
2283 echo "$as_me:$LINENO: result: no" >&5
2284echo "${ECHO_T}no" >&6
2285fi
2286
2287 test -n "$ac_ct_CC" && break
2288done
2289
2290 CC=$ac_ct_CC
2291fi
2292
2293fi
2294
2295
2296test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: no acceptable C compiler found in \$PATH
2299See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2301
2302# Provide some information about the compiler.
2303echo "$as_me:$LINENO:" \
2304 "checking for C compiler version" >&5
2305ac_compiler=`set X $ac_compile; echo $2`
2306{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2307 (eval $ac_compiler --version </dev/null >&5) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }
2311{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2312 (eval $ac_compiler -v </dev/null >&5) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2317 (eval $ac_compiler -V </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321
2322cat >conftest.$ac_ext <<_ACEOF
2323/* confdefs.h. */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h. */
2328
2329int
2330main ()
2331{
2332
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337ac_clean_files_save=$ac_clean_files
2338ac_clean_files="$ac_clean_files a.out a.exe b.out"
2339# Try to create an executable without -o first, disregard a.out.
2340# It will help us diagnose broken compilers, and finding out an intuition
2341# of exeext.
2342echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2343echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2344ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2345if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2346 (eval $ac_link_default) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 # Find the output, starting from the most likely. This scheme is
2351# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2352# resort.
2353
2354# Be careful to initialize this variable, since it used to be cached.
2355# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2356ac_cv_exeext=
2357# b.out is created by i960 compilers.
2358for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2359do
2360 test -f "$ac_file" || continue
2361 case $ac_file in
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2363 ;;
2364 conftest.$ac_ext )
2365 # This is the source file.
2366 ;;
2367 [ab].out )
2368 # We found the default executable, but exeext='' is most
2369 # certainly right.
2370 break;;
2371 *.* )
2372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2373 # FIXME: I believe we export ac_cv_exeext for Libtool,
2374 # but it would be cool to find out if it's true. Does anybody
2375 # maintain Libtool? --akim.
2376 export ac_cv_exeext
2377 break;;
2378 * )
2379 break;;
2380 esac
2381done
2382else
2383 echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2387See \`config.log' for more details." >&5
2388echo "$as_me: error: C compiler cannot create executables
2389See \`config.log' for more details." >&2;}
2390 { (exit 77); exit 77; }; }
2391fi
2392
2393ac_exeext=$ac_cv_exeext
2394echo "$as_me:$LINENO: result: $ac_file" >&5
2395echo "${ECHO_T}$ac_file" >&6
2396
2397# Check the compiler produces executables we can run. If not, either
2398# the compiler is broken, or we cross compile.
2399echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2400echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2401# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2402# If not cross compiling, check that we can run a simple program.
2403if test "$cross_compiling" != yes; then
2404 if { ac_try='./$ac_file'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 cross_compiling=no
2411 else
2412 if test "$cross_compiling" = maybe; then
2413 cross_compiling=yes
2414 else
2415 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2416If you meant to cross compile, use \`--host'.
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot run C compiled programs.
2419If you meant to cross compile, use \`--host'.
2420See \`config.log' for more details." >&2;}
2421 { (exit 1); exit 1; }; }
2422 fi
2423 fi
2424fi
2425echo "$as_me:$LINENO: result: yes" >&5
2426echo "${ECHO_T}yes" >&6
2427
2428rm -f a.out a.exe conftest$ac_cv_exeext b.out
2429ac_clean_files=$ac_clean_files_save
2430# Check the compiler produces executables we can run. If not, either
2431# the compiler is broken, or we cross compile.
2432echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2433echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2434echo "$as_me:$LINENO: result: $cross_compiling" >&5
2435echo "${ECHO_T}$cross_compiling" >&6
2436
2437echo "$as_me:$LINENO: checking for suffix of executables" >&5
2438echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2440 (eval $ac_link) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; then
2444 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2445# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2446# work properly (i.e., refer to `conftest.exe'), while it won't with
2447# `rm'.
2448for ac_file in conftest.exe conftest conftest.*; do
2449 test -f "$ac_file" || continue
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2453 export ac_cv_exeext
2454 break;;
2455 * ) break;;
2456 esac
2457done
2458else
2459 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2460See \`config.log' for more details." >&5
2461echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2462See \`config.log' for more details." >&2;}
2463 { (exit 1); exit 1; }; }
2464fi
2465
2466rm -f conftest$ac_cv_exeext
2467echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2468echo "${ECHO_T}$ac_cv_exeext" >&6
2469
2470rm -f conftest.$ac_ext
2471EXEEXT=$ac_cv_exeext
2472ac_exeext=$EXEEXT
2473echo "$as_me:$LINENO: checking for suffix of object files" >&5
2474echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2475if test "${ac_cv_objext+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493rm -f conftest.o conftest.obj
2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
2499 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2500 case $ac_file in
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2503 break;;
2504 esac
2505done
2506else
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2511See \`config.log' for more details." >&5
2512echo "$as_me: error: cannot compute suffix of object files: cannot compile
2513See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2515fi
2516
2517rm -f conftest.$ac_cv_objext conftest.$ac_ext
2518fi
2519echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2520echo "${ECHO_T}$ac_cv_objext" >&6
2521OBJEXT=$ac_cv_objext
2522ac_objext=$OBJEXT
2523echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2524echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2525if test "${ac_cv_c_compiler_gnu+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h. */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h. */
2534
2535int
2536main ()
2537{
2538#ifndef __GNUC__
2539 choke me
2540#endif
2541
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_compiler_gnu=yes
2569else
2570 echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573ac_compiler_gnu=no
2574fi
2575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576ac_cv_c_compiler_gnu=$ac_compiler_gnu
2577
2578fi
2579echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2580echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2581GCC=`test $ac_compiler_gnu = yes && echo yes`
2582ac_test_CFLAGS=${CFLAGS+set}
2583ac_save_CFLAGS=$CFLAGS
2584CFLAGS="-g"
2585echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2586echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2587if test "${ac_cv_prog_cc_g+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590 cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h. */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h. */
2596
2597int
2598main ()
2599{
2600
2601 ;
2602 return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext
2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607 (eval $ac_compile) 2>conftest.er1
2608 ac_status=$?
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
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); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_prog_cc_g=yes
2628else
2629 echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632ac_cv_prog_cc_g=no
2633fi
2634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2635fi
2636echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2637echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2638if test "$ac_test_CFLAGS" = set; then
2639 CFLAGS=$ac_save_CFLAGS
2640elif test $ac_cv_prog_cc_g = yes; then
2641 if test "$GCC" = yes; then
2642 CFLAGS="-g -O2"
2643 else
2644 CFLAGS="-g"
2645 fi
2646else
2647 if test "$GCC" = yes; then
2648 CFLAGS="-O2"
2649 else
2650 CFLAGS=
2651 fi
2652fi
2653echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2654echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2655if test "${ac_cv_prog_cc_stdc+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 ac_cv_prog_cc_stdc=no
2659ac_save_CC=$CC
2660cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h. */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h. */
2666#include <stdarg.h>
2667#include <stdio.h>
2668#include <sys/types.h>
2669#include <sys/stat.h>
2670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671struct buf { int x; };
2672FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673static char *e (p, i)
2674 char **p;
2675 int i;
2676{
2677 return p[i];
2678}
2679static char *f (char * (*g) (char **, int), char **p, ...)
2680{
2681 char *s;
2682 va_list v;
2683 va_start (v,p);
2684 s = g (p, va_arg (v,int));
2685 va_end (v);
2686 return s;
2687}
2688
2689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2690 function prototypes and stuff, but not '\xHH' hex character constants.
2691 These don't provoke an error unfortunately, instead are silently treated
2692 as 'x'. The following induces an error, until -std1 is added to get
2693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2694 array size at least. It's necessary to write '\x00'==0 to get something
2695 that's true only with -std1. */
2696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2697
2698int test (int i, double x);
2699struct s1 {int (*f) (int a);};
2700struct s2 {int (*f) (double a);};
2701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2702int argc;
2703char **argv;
2704int
2705main ()
2706{
2707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712# Don't try gcc -ansi; that turns off useful extensions and
2713# breaks some systems' header files.
2714# AIX -qlanglvl=ansi
2715# Ultrix and OSF/1 -std1
2716# HP-UX 10.20 and later -Ae
2717# HP-UX older versions -Aa -D_HPUX_SOURCE
2718# SVR4 -Xc -D__EXTENSIONS__
2719for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2720do
2721 CC="$ac_save_CC $ac_arg"
2722 rm -f conftest.$ac_objext
2723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_c_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_stdc=$ac_arg
2745break
2746else
2747 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750fi
2751rm -f conftest.err conftest.$ac_objext
2752done
2753rm -f conftest.$ac_ext conftest.$ac_objext
2754CC=$ac_save_CC
2755
2756fi
2757
2758case "x$ac_cv_prog_cc_stdc" in
2759 x|xno)
2760 echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6 ;;
2762 *)
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2764echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2765 CC="$CC $ac_cv_prog_cc_stdc" ;;
2766esac
2767
2768# Some people use a C++ compiler to compile C. Since we use `exit',
2769# in C++ we need to declare it. In case someone uses the same compiler
2770# for both compiling C and C++ we need to have the C++ compiler decide
2771# the declaration of exit, since it's the most demanding environment.
2772cat >conftest.$ac_ext <<_ACEOF
2773#ifndef __cplusplus
2774 choke me
2775#endif
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 for ac_declaration in \
2800 '' \
2801 'extern "C" void std::exit (int) throw (); using std::exit;' \
2802 'extern "C" void std::exit (int); using std::exit;' \
2803 'extern "C" void exit (int) throw ();' \
2804 'extern "C" void exit (int);' \
2805 'void exit (int);'
2806do
2807 cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h. */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h. */
2813$ac_declaration
2814#include <stdlib.h>
2815int
2816main ()
2817{
2818exit (42);
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 :
2846else
2847 echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850continue
2851fi
2852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h. */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h. */
2859$ac_declaration
2860int
2861main ()
2862{
2863exit (42);
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext
2869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 break
2891else
2892 echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895fi
2896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897done
2898rm -f conftest*
2899if test -n "$ac_declaration"; then
2900 echo '#ifdef __cplusplus' >>confdefs.h
2901 echo $ac_declaration >>confdefs.h
2902 echo '#endif' >>confdefs.h
2903fi
2904
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916DEPDIR="${am__leading_dot}deps"
2917
2918 ac_config_commands="$ac_config_commands depfiles"
2919
2920
2921am_make=${MAKE-make}
2922cat > confinc << 'END'
2923am__doit:
2924 @echo done
2925.PHONY: am__doit
2926END
2927# If we don't find an include directive, just comment out the code.
2928echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2929echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2930am__include="#"
2931am__quote=
2932_am_result=none
2933# First try GNU make style include.
2934echo "include confinc" > confmf
2935# We grep out `Entering directory' and `Leaving directory'
2936# messages which can occur if `w' ends up in MAKEFLAGS.
2937# In particular we don't look at `^make:' because GNU make might
2938# be invoked under some other name (usually "gmake"), in which
2939# case it prints its new name instead of `make'.
2940if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2941 am__include=include
2942 am__quote=
2943 _am_result=GNU
2944fi
2945# Now try BSD make style include.
2946if test "$am__include" = "#"; then
2947 echo '.include "confinc"' > confmf
2948 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2949 am__include=.include
2950 am__quote="\""
2951 _am_result=BSD
2952 fi
2953fi
2954
2955
2956echo "$as_me:$LINENO: result: $_am_result" >&5
2957echo "${ECHO_T}$_am_result" >&6
2958rm -f confinc confmf
2959
2960# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2961if test "${enable_dependency_tracking+set}" = set; then
2962 enableval="$enable_dependency_tracking"
2963
2964fi;
2965if test "x$enable_dependency_tracking" != xno; then
2966 am_depcomp="$ac_aux_dir/depcomp"
2967 AMDEPBACKSLASH='\'
2968fi
2969
2970
2971if test "x$enable_dependency_tracking" != xno; then
2972 AMDEP_TRUE=
2973 AMDEP_FALSE='#'
2974else
2975 AMDEP_TRUE='#'
2976 AMDEP_FALSE=
2977fi
2978
2979
2980
2981
2982depcc="$CC" am_compiler_list=
2983
2984echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2985echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2986if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2990 # We make a subdir and do the tests there. Otherwise we can end up
2991 # making bogus files that we don't know about and never remove. For
2992 # instance it was reported that on HP-UX the gcc test will end up
2993 # making a dummy file named `D' -- because `-MD' means `put the output
2994 # in D'.
2995 mkdir conftest.dir
2996 # Copy depcomp to subdir because otherwise we won't find it if we're
2997 # using a relative directory.
2998 cp "$am_depcomp" conftest.dir
2999 cd conftest.dir
3000 # We will build objects and dependencies in a subdirectory because
3001 # it helps to detect inapplicable dependency modes. For instance
3002 # both Tru64's cc and ICC support -MD to output dependencies as a
3003 # side effect of compilation, but ICC will put the dependencies in
3004 # the current directory while Tru64 will put them in the object
3005 # directory.
3006 mkdir sub
3007
3008 am_cv_CC_dependencies_compiler_type=none
3009 if test "$am_compiler_list" = ""; then
3010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3011 fi
3012 for depmode in $am_compiler_list; do
3013 # Setup a source with many dependencies, because some compilers
3014 # like to wrap large dependency lists on column 80 (with \), and
3015 # we should not choose a depcomp mode which is confused by this.
3016 #
3017 # We need to recreate these files for each test, as the compiler may
3018 # overwrite some of them when testing with obscure command lines.
3019 # This happens at least with the AIX C compiler.
3020 : > sub/conftest.c
3021 for i in 1 2 3 4 5 6; do
3022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3024 # Solaris 8's {/usr,}/bin/sh.
3025 touch sub/conftst$i.h
3026 done
3027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3028
3029 case $depmode in
3030 nosideeffect)
3031 # after this tag, mechanisms are not by side-effect, so they'll
3032 # only be used when explicitly requested
3033 if test "x$enable_dependency_tracking" = xyes; then
3034 continue
3035 else
3036 break
3037 fi
3038 ;;
3039 none) break ;;
3040 esac
3041 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3042 # mode. It turns out that the SunPro C++ compiler does not properly
3043 # handle `-M -o', and we need to detect this.
3044 if depmode=$depmode \
3045 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3047 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3048 >/dev/null 2>conftest.err &&
3049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3050 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3052 # icc doesn't choke on unknown options, it will just issue warnings
3053 # or remarks (even with -Werror). So we grep stderr for any message
3054 # that says an option was ignored or not supported.
3055 # When given -MP, icc 7.0 and 7.1 complain thusly:
3056 # icc: Command line warning: ignoring option '-M'; no argument required
3057 # The diagnosis changed in icc 8.0:
3058 # icc: Command line remark: option '-MP' not supported
3059 if (grep 'ignoring option' conftest.err ||
3060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3061 am_cv_CC_dependencies_compiler_type=$depmode
3062 break
3063 fi
3064 fi
3065 done
3066
3067 cd ..
3068 rm -rf conftest.dir
3069else
3070 am_cv_CC_dependencies_compiler_type=none
3071fi
3072
3073fi
3074echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3075echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3076CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3077
3078
3079
3080if
3081 test "x$enable_dependency_tracking" != xno \
3082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3083 am__fastdepCC_TRUE=
3084 am__fastdepCC_FALSE='#'
3085else
3086 am__fastdepCC_TRUE='#'
3087 am__fastdepCC_FALSE=
3088fi
3089
3090
3091# Find a good install program. We prefer a C program (faster),
3092# so one script is as good as another. But avoid the broken or
3093# incompatible versions:
3094# SysV /etc/install, /usr/sbin/install
3095# SunOS /usr/etc/install
3096# IRIX /sbin/install
3097# AIX /bin/install
3098# AmigaOS /C/install, which installs bootblocks on floppy discs
3099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3100# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3102# OS/2's system install, which has a completely different semantic
3103# ./install, which can be erroneously created by make from ./install.sh.
3104echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3106if test -z "$INSTALL"; then
3107if test "${ac_cv_path_install+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 # Account for people who put trailing slashes in PATH elements.
3116case $as_dir/ in
3117 ./ | .// | /cC/* | \
3118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3120 /usr/ucb/* ) ;;
3121 *)
3122 # OSF1 and SCO ODT 3.0 have their own names for install.
3123 # Don't use installbsd from OSF since it installs stuff as root
3124 # by default.
3125 for ac_prog in ginstall scoinst install; do
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3128 if test $ac_prog = install &&
3129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3130 # AIX install. It has an incompatible calling convention.
3131 :
3132 elif test $ac_prog = install &&
3133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3134 # program-specific install script used by HP pwplus--don't use.
3135 :
3136 else
3137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3138 break 3
3139 fi
3140 fi
3141 done
3142 done
3143 ;;
3144esac
3145done
3146
3147
3148fi
3149 if test "${ac_cv_path_install+set}" = set; then
3150 INSTALL=$ac_cv_path_install
3151 else
3152 # As a last resort, use the slow shell script. We don't cache a
3153 # path for INSTALL within a source directory, because that will
3154 # break other packages using the cache if that directory is
3155 # removed, or if the path is relative.
3156 INSTALL=$ac_install_sh
3157 fi
3158fi
3159echo "$as_me:$LINENO: result: $INSTALL" >&5
3160echo "${ECHO_T}$INSTALL" >&6
3161
3162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3163# It thinks the first close brace ends the variable substitution.
3164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3165
3166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3167
3168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3169
3170echo "$as_me:$LINENO: checking whether ln -s works" >&5
3171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3172LN_S=$as_ln_s
3173if test "$LN_S" = "ln -s"; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
3176else
3177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3178echo "${ECHO_T}no, using $LN_S" >&6
3179fi
3180
3181# Check whether --enable-shared or --disable-shared was given.
3182if test "${enable_shared+set}" = set; then
3183 enableval="$enable_shared"
3184 p=${PACKAGE-default}
3185 case $enableval in
3186 yes) enable_shared=yes ;;
3187 no) enable_shared=no ;;
3188 *)
3189 enable_shared=no
3190 # Look at the argument we got. We use all the common list separators.
3191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3192 for pkg in $enableval; do
3193 IFS="$lt_save_ifs"
3194 if test "X$pkg" = "X$p"; then
3195 enable_shared=yes
3196 fi
3197 done
3198 IFS="$lt_save_ifs"
3199 ;;
3200 esac
3201else
3202 enable_shared=yes
3203fi;
3204
3205# Check whether --enable-static or --disable-static was given.
3206if test "${enable_static+set}" = set; then
3207 enableval="$enable_static"
3208 p=${PACKAGE-default}
3209 case $enableval in
3210 yes) enable_static=yes ;;
3211 no) enable_static=no ;;
3212 *)
3213 enable_static=no
3214 # Look at the argument we got. We use all the common list separators.
3215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3216 for pkg in $enableval; do
3217 IFS="$lt_save_ifs"
3218 if test "X$pkg" = "X$p"; then
3219 enable_static=yes
3220 fi
3221 done
3222 IFS="$lt_save_ifs"
3223 ;;
3224 esac
3225else
3226 enable_static=yes
3227fi;
3228
3229# Check whether --enable-fast-install or --disable-fast-install was given.
3230if test "${enable_fast_install+set}" = set; then
3231 enableval="$enable_fast_install"
3232 p=${PACKAGE-default}
3233 case $enableval in
3234 yes) enable_fast_install=yes ;;
3235 no) enable_fast_install=no ;;
3236 *)
3237 enable_fast_install=no
3238 # Look at the argument we got. We use all the common list separators.
3239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3240 for pkg in $enableval; do
3241 IFS="$lt_save_ifs"
3242 if test "X$pkg" = "X$p"; then
3243 enable_fast_install=yes
3244 fi
3245 done
3246 IFS="$lt_save_ifs"
3247 ;;
3248 esac
3249else
3250 enable_fast_install=yes
3251fi;
3252
3253# Make sure we can run config.sub.
3254$ac_config_sub sun4 >/dev/null 2>&1 ||
3255 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3256echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3257 { (exit 1); exit 1; }; }
3258
3259echo "$as_me:$LINENO: checking build system type" >&5
3260echo $ECHO_N "checking build system type... $ECHO_C" >&6
3261if test "${ac_cv_build+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264 ac_cv_build_alias=$build_alias
3265test -z "$ac_cv_build_alias" &&
3266 ac_cv_build_alias=`$ac_config_guess`
3267test -z "$ac_cv_build_alias" &&
3268 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3269echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3270 { (exit 1); exit 1; }; }
3271ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3272 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3273echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3274 { (exit 1); exit 1; }; }
3275
3276fi
3277echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3278echo "${ECHO_T}$ac_cv_build" >&6
3279build=$ac_cv_build
3280build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3281build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3282build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3283
3284
3285echo "$as_me:$LINENO: checking host system type" >&5
3286echo $ECHO_N "checking host system type... $ECHO_C" >&6
3287if test "${ac_cv_host+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 ac_cv_host_alias=$host_alias
3291test -z "$ac_cv_host_alias" &&
3292 ac_cv_host_alias=$ac_cv_build_alias
3293ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3294 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3295echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3296 { (exit 1); exit 1; }; }
3297
3298fi
3299echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3300echo "${ECHO_T}$ac_cv_host" >&6
3301host=$ac_cv_host
3302host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3303host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3304host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3305
3306
3307echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3308echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3309if test "${lt_cv_path_SED+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 # Loop through the user's path and test for sed and gsed.
3313# Then use that list of sed's as ones to test for truncation.
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for lt_ac_prog in sed gsed; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3322 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3323 fi
3324 done
3325 done
3326done
3327IFS=$as_save_IFS
3328lt_ac_max=0
3329lt_ac_count=0
3330# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3331# along with /bin/sed that truncates output.
3332for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3333 test ! -f $lt_ac_sed && continue
3334 cat /dev/null > conftest.in
3335 lt_ac_count=0
3336 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3337 # Check for GNU sed and select it if it is found.
3338 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3339 lt_cv_path_SED=$lt_ac_sed
3340 break
3341 fi
3342 while true; do
3343 cat conftest.in conftest.in >conftest.tmp
3344 mv conftest.tmp conftest.in
3345 cp conftest.in conftest.nl
3346 echo >>conftest.nl
3347 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3348 cmp -s conftest.out conftest.nl || break
3349 # 10000 chars as input seems more than enough
3350 test $lt_ac_count -gt 10 && break
3351 lt_ac_count=`expr $lt_ac_count + 1`
3352 if test $lt_ac_count -gt $lt_ac_max; then
3353 lt_ac_max=$lt_ac_count
3354 lt_cv_path_SED=$lt_ac_sed
3355 fi
3356 done
3357done
3358
3359fi
3360
3361SED=$lt_cv_path_SED
3362
3363echo "$as_me:$LINENO: result: $SED" >&5
3364echo "${ECHO_T}$SED" >&6
3365
3366echo "$as_me:$LINENO: checking for egrep" >&5
3367echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3368if test "${ac_cv_prog_egrep+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3372 then ac_cv_prog_egrep='grep -E'
3373 else ac_cv_prog_egrep='egrep'
3374 fi
3375fi
3376echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3377echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3378 EGREP=$ac_cv_prog_egrep
3379
3380
3381
3382# Check whether --with-gnu-ld or --without-gnu-ld was given.
3383if test "${with_gnu_ld+set}" = set; then
3384 withval="$with_gnu_ld"
3385 test "$withval" = no || with_gnu_ld=yes
3386else
3387 with_gnu_ld=no
3388fi;
3389ac_prog=ld
3390if test "$GCC" = yes; then
3391 # Check if gcc -print-prog-name=ld gives a path.
3392 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3393echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3394 case $host in
3395 *-*-mingw*)
3396 # gcc leaves a trailing carriage return which upsets mingw
3397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3398 *)
3399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3400 esac
3401 case $ac_prog in
3402 # Accept absolute paths.
3403 [\\/]* | ?:[\\/]*)
3404 re_direlt='/[^/][^/]*/\.\./'
3405 # Canonicalize the pathname of ld
3406 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3407 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3408 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3409 done
3410 test -z "$LD" && LD="$ac_prog"
3411 ;;
3412 "")
3413 # If it fails, then pretend we aren't using GCC.
3414 ac_prog=ld
3415 ;;
3416 *)
3417 # If it is relative, then search for the first ld in PATH.
3418 with_gnu_ld=unknown
3419 ;;
3420 esac
3421elif test "$with_gnu_ld" = yes; then
3422 echo "$as_me:$LINENO: checking for GNU ld" >&5
3423echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3424else
3425 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3426echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3427fi
3428if test "${lt_cv_path_LD+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 if test -z "$LD"; then
3432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3433 for ac_dir in $PATH; do
3434 IFS="$lt_save_ifs"
3435 test -z "$ac_dir" && ac_dir=.
3436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3437 lt_cv_path_LD="$ac_dir/$ac_prog"
3438 # Check to see if the program is GNU ld. I'd rather use --version,
3439 # but apparently some variants of GNU ld only accept -v.
3440 # Break only if it was the GNU/non-GNU ld that we prefer.
3441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3442 *GNU* | *'with BFD'*)
3443 test "$with_gnu_ld" != no && break
3444 ;;
3445 *)
3446 test "$with_gnu_ld" != yes && break
3447 ;;
3448 esac
3449 fi
3450 done
3451 IFS="$lt_save_ifs"
3452else
3453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3454fi
3455fi
3456
3457LD="$lt_cv_path_LD"
3458if test -n "$LD"; then
3459 echo "$as_me:$LINENO: result: $LD" >&5
3460echo "${ECHO_T}$LD" >&6
3461else
3462 echo "$as_me:$LINENO: result: no" >&5
3463echo "${ECHO_T}no" >&6
3464fi
3465test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3466echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3467 { (exit 1); exit 1; }; }
3468echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3469echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3470if test "${lt_cv_prog_gnu_ld+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3474case `$LD -v 2>&1 </dev/null` in
3475*GNU* | *'with BFD'*)
3476 lt_cv_prog_gnu_ld=yes
3477 ;;
3478*)
3479 lt_cv_prog_gnu_ld=no
3480 ;;
3481esac
3482fi
3483echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3484echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3485with_gnu_ld=$lt_cv_prog_gnu_ld
3486
3487
3488echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3489echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3490if test "${lt_cv_ld_reload_flag+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 lt_cv_ld_reload_flag='-r'
3494fi
3495echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3496echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3497reload_flag=$lt_cv_ld_reload_flag
3498case $reload_flag in
3499"" | " "*) ;;
3500*) reload_flag=" $reload_flag" ;;
3501esac
3502reload_cmds='$LD$reload_flag -o $output$reload_objs'
3503case $host_os in
3504 darwin*)
3505 if test "$GCC" = yes; then
3506 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3507 else
3508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3509 fi
3510 ;;
3511esac
3512
3513echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3514echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3515if test "${lt_cv_path_NM+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 if test -n "$NM"; then
3519 # Let the user override the test.
3520 lt_cv_path_NM="$NM"
3521else
3522 lt_nm_to_check="${ac_tool_prefix}nm"
3523 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3524 lt_nm_to_check="$lt_nm_to_check nm"
3525 fi
3526 for lt_tmp_nm in $lt_nm_to_check; do
3527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3528 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3529 IFS="$lt_save_ifs"
3530 test -z "$ac_dir" && ac_dir=.
3531 tmp_nm="$ac_dir/$lt_tmp_nm"
3532 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3533 # Check to see if the nm accepts a BSD-compat flag.
3534 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3535 # nm: unknown option "B" ignored
3536 # Tru64's nm complains that /dev/null is an invalid object file
3537 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3538 */dev/null* | *'Invalid file or object type'*)
3539 lt_cv_path_NM="$tmp_nm -B"
3540 break
3541 ;;
3542 *)
3543 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3544 */dev/null*)
3545 lt_cv_path_NM="$tmp_nm -p"
3546 break
3547 ;;
3548 *)
3549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3550 continue # so that we can try to find one that supports BSD flags
3551 ;;
3552 esac
3553 ;;
3554 esac
3555 fi
3556 done
3557 IFS="$lt_save_ifs"
3558 done
3559 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3560fi
3561fi
3562echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3563echo "${ECHO_T}$lt_cv_path_NM" >&6
3564NM="$lt_cv_path_NM"
3565
3566echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3567echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3568if test "${lt_cv_deplibs_check_method+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571 lt_cv_file_magic_cmd='$MAGIC_CMD'
3572lt_cv_file_magic_test_file=
3573lt_cv_deplibs_check_method='unknown'
3574# Need to set the preceding variable on all platforms that support
3575# interlibrary dependencies.
3576# 'none' -- dependencies not supported.
3577# `unknown' -- same as none, but documents that we really don't know.
3578# 'pass_all' -- all dependencies passed with no checks.
3579# 'test_compile' -- check by making test program.
3580# 'file_magic [[regex]]' -- check by looking for files in library path
3581# which responds to the $file_magic_cmd with a given extended regex.
3582# If you have `file' or equivalent on your system and you're not sure
3583# whether `pass_all' will *always* work, you probably want this one.
3584
3585case $host_os in
3586aix4* | aix5*)
3587 lt_cv_deplibs_check_method=pass_all
3588 ;;
3589
3590beos*)
3591 lt_cv_deplibs_check_method=pass_all
3592 ;;
3593
3594bsdi[45]*)
3595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3596 lt_cv_file_magic_cmd='/usr/bin/file -L'
3597 lt_cv_file_magic_test_file=/shlib/libc.so
3598 ;;
3599
3600cygwin*)
3601 # func_win32_libid is a shell function defined in ltmain.sh
3602 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3603 lt_cv_file_magic_cmd='func_win32_libid'
3604 ;;
3605
3606mingw* | pw32*)
3607 # Base MSYS/MinGW do not provide the 'file' command needed by
3608 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3609 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3610 lt_cv_file_magic_cmd='$OBJDUMP -f'
3611 ;;
3612
3613darwin* | rhapsody*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
3617freebsd* | kfreebsd*-gnu | dragonfly*)
3618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3619 case $host_cpu in
3620 i*86 )
3621 # Not sure whether the presence of OpenBSD here was a mistake.
3622 # Let's accept both of them until this is cleared up.
3623 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3624 lt_cv_file_magic_cmd=/usr/bin/file
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3626 ;;
3627 esac
3628 else
3629 lt_cv_deplibs_check_method=pass_all
3630 fi
3631 ;;
3632
3633gnu*)
3634 lt_cv_deplibs_check_method=pass_all
3635 ;;
3636
3637hpux10.20* | hpux11*)
3638 lt_cv_file_magic_cmd=/usr/bin/file
3639 case $host_cpu in
3640 ia64*)
3641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3643 ;;
3644 hppa*64*)
3645 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]'
3646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3647 ;;
3648 *)
3649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3651 ;;
3652 esac
3653 ;;
3654
3655interix3*)
3656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3658 ;;
3659
3660irix5* | irix6* | nonstopux*)
3661 case $LD in
3662 *-32|*"-32 ") libmagic=32-bit;;
3663 *-n32|*"-n32 ") libmagic=N32;;
3664 *-64|*"-64 ") libmagic=64-bit;;
3665 *) libmagic=never-match;;
3666 esac
3667 lt_cv_deplibs_check_method=pass_all
3668 ;;
3669
3670# This must be Linux ELF.
3671linux*)
3672 lt_cv_deplibs_check_method=pass_all
3673 ;;
3674
3675netbsd*)
3676 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3678 else
3679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3680 fi
3681 ;;
3682
3683newos6*)
3684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3685 lt_cv_file_magic_cmd=/usr/bin/file
3686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3687 ;;
3688
3689nto-qnx*)
3690 lt_cv_deplibs_check_method=unknown
3691 ;;
3692
3693openbsd*)
3694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3696 else
3697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3698 fi
3699 ;;
3700
3701osf3* | osf4* | osf5*)
3702 lt_cv_deplibs_check_method=pass_all
3703 ;;
3704
3705solaris*)
3706 lt_cv_deplibs_check_method=pass_all
3707 ;;
3708
3709sysv4 | sysv4.3*)
3710 case $host_vendor in
3711 motorola)
3712 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]'
3713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3714 ;;
3715 ncr)
3716 lt_cv_deplibs_check_method=pass_all
3717 ;;
3718 sequent)
3719 lt_cv_file_magic_cmd='/bin/file'
3720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3721 ;;
3722 sni)
3723 lt_cv_file_magic_cmd='/bin/file'
3724 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3725 lt_cv_file_magic_test_file=/lib/libc.so
3726 ;;
3727 siemens)
3728 lt_cv_deplibs_check_method=pass_all
3729 ;;
3730 pc)
3731 lt_cv_deplibs_check_method=pass_all
3732 ;;
3733 esac
3734 ;;
3735
3736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3737 lt_cv_deplibs_check_method=pass_all
3738 ;;
3739esac
3740
3741fi
3742echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3743echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3744file_magic_cmd=$lt_cv_file_magic_cmd
3745deplibs_check_method=$lt_cv_deplibs_check_method
3746test -z "$deplibs_check_method" && deplibs_check_method=unknown
3747
3748
3749
3750
3751# If no C compiler was specified, use CC.
3752LTCC=${LTCC-"$CC"}
3753
3754# If no C compiler flags were specified, use CFLAGS.
3755LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3756
3757# Allow CC to be a program name with arguments.
3758compiler=$CC
3759
3760
3761# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3762if test "${enable_libtool_lock+set}" = set; then
3763 enableval="$enable_libtool_lock"
3764
3765fi;
3766test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3767
3768# Some flags need to be propagated to the compiler or linker for good
3769# libtool support.
3770case $host in
3771ia64-*-hpux*)
3772 # Find out which ABI we are using.
3773 echo 'int i;' > conftest.$ac_ext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775 (eval $ac_compile) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; then
3779 case `/usr/bin/file conftest.$ac_objext` in
3780 *ELF-32*)
3781 HPUX_IA64_MODE="32"
3782 ;;
3783 *ELF-64*)
3784 HPUX_IA64_MODE="64"
3785 ;;
3786 esac
3787 fi
3788 rm -rf conftest*
3789 ;;
3790*-*-irix6*)
3791 # Find out which ABI we are using.
3792 echo '#line 3792 "configure"' > conftest.$ac_ext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; then
3798 if test "$lt_cv_prog_gnu_ld" = yes; then
3799 case `/usr/bin/file conftest.$ac_objext` in
3800 *32-bit*)
3801 LD="${LD-ld} -melf32bsmip"
3802 ;;
3803 *N32*)
3804 LD="${LD-ld} -melf32bmipn32"
3805 ;;
3806 *64-bit*)
3807 LD="${LD-ld} -melf64bmip"
3808 ;;
3809 esac
3810 else
3811 case `/usr/bin/file conftest.$ac_objext` in
3812 *32-bit*)
3813 LD="${LD-ld} -32"
3814 ;;
3815 *N32*)
3816 LD="${LD-ld} -n32"
3817 ;;
3818 *64-bit*)
3819 LD="${LD-ld} -64"
3820 ;;
3821 esac
3822 fi
3823 fi
3824 rm -rf conftest*
3825 ;;
3826
3827x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3828 # Find out which ABI we are using.
3829 echo 'int i;' > conftest.$ac_ext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; then
3835 case `/usr/bin/file conftest.o` in
3836 *32-bit*)
3837 case $host in
3838 x86_64-*linux*)
3839 LD="${LD-ld} -m elf_i386"
3840 ;;
3841 ppc64-*linux*|powerpc64-*linux*)
3842 LD="${LD-ld} -m elf32ppclinux"
3843 ;;
3844 s390x-*linux*)
3845 LD="${LD-ld} -m elf_s390"
3846 ;;
3847 sparc64-*linux*)
3848 LD="${LD-ld} -m elf32_sparc"
3849 ;;
3850 esac
3851 ;;
3852 *64-bit*)
3853 case $host in
3854 x86_64-*linux*)
3855 LD="${LD-ld} -m elf_x86_64"
3856 ;;
3857 ppc*-*linux*|powerpc*-*linux*)
3858 LD="${LD-ld} -m elf64ppc"
3859 ;;
3860 s390*-*linux*)
3861 LD="${LD-ld} -m elf64_s390"
3862 ;;
3863 sparc*-*linux*)
3864 LD="${LD-ld} -m elf64_sparc"
3865 ;;
3866 esac
3867 ;;
3868 esac
3869 fi
3870 rm -rf conftest*
3871 ;;
3872
3873*-*-sco3.2v5*)
3874 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3875 SAVE_CFLAGS="$CFLAGS"
3876 CFLAGS="$CFLAGS -belf"
3877 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3878echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3879if test "${lt_cv_cc_needs_belf+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894
3895int
3896main ()
3897{
3898
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
3904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905 (eval $ac_link) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest$ac_exeext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 lt_cv_cc_needs_belf=yes
3926else
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930lt_cv_cc_needs_belf=no
3931fi
3932rm -f conftest.err conftest.$ac_objext \
3933 conftest$ac_exeext conftest.$ac_ext
3934 ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940fi
3941echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3942echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3943 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3945 CFLAGS="$SAVE_CFLAGS"
3946 fi
3947 ;;
3948sparc*-*solaris*)
3949 # Find out which ABI we are using.
3950 echo 'int i;' > conftest.$ac_ext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; then
3956 case `/usr/bin/file conftest.o` in
3957 *64-bit*)
3958 case $lt_cv_prog_gnu_ld in
3959 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3960 *) LD="${LD-ld} -64" ;;
3961 esac
3962 ;;
3963 esac
3964 fi
3965 rm -rf conftest*
3966 ;;
3967
3968
3969esac
3970
3971need_locks="$enable_libtool_lock"
3972
3973
3974ac_ext=c
3975ac_cpp='$CPP $CPPFLAGS'
3976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3980echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3981# On Suns, sometimes $CPP names a directory.
3982if test -n "$CPP" && test -d "$CPP"; then
3983 CPP=
3984fi
3985if test -z "$CPP"; then
3986 if test "${ac_cv_prog_CPP+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 # Double quotes because CPP needs to be expanded
3990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991 do
3992 ac_preproc_ok=false
3993for ac_c_preproc_warn_flag in '' yes
3994do
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007#ifdef __STDC__
4008# include <limits.h>
4009#else
4010# include <assert.h>
4011#endif
4012 Syntax error
4013_ACEOF
4014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null; then
4022 if test -s conftest.err; then
4023 ac_cpp_err=$ac_c_preproc_warn_flag
4024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4025 else
4026 ac_cpp_err=
4027 fi
4028else
4029 ac_cpp_err=yes
4030fi
4031if test -z "$ac_cpp_err"; then
4032 :
4033else
4034 echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 # Broken: fails on valid input.
4038continue
4039fi
4040rm -f conftest.err conftest.$ac_ext
4041
4042 # OK, works on sane cases. Now check whether non-existent headers
4043 # can be detected and how.
4044 cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
4050#include <ac_nonexistent.h>
4051_ACEOF
4052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } >/dev/null; then
4060 if test -s conftest.err; then
4061 ac_cpp_err=$ac_c_preproc_warn_flag
4062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4063 else
4064 ac_cpp_err=
4065 fi
4066else
4067 ac_cpp_err=yes
4068fi
4069if test -z "$ac_cpp_err"; then
4070 # Broken: success on invalid input.
4071continue
4072else
4073 echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 # Passes both tests.
4077ac_preproc_ok=:
4078break
4079fi
4080rm -f conftest.err conftest.$ac_ext
4081
4082done
4083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084rm -f conftest.err conftest.$ac_ext
4085if $ac_preproc_ok; then
4086 break
4087fi
4088
4089 done
4090 ac_cv_prog_CPP=$CPP
4091
4092fi
4093 CPP=$ac_cv_prog_CPP
4094else
4095 ac_cv_prog_CPP=$CPP
4096fi
4097echo "$as_me:$LINENO: result: $CPP" >&5
4098echo "${ECHO_T}$CPP" >&6
4099ac_preproc_ok=false
4100for ac_c_preproc_warn_flag in '' yes
4101do
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#ifdef __STDC__
4115# include <limits.h>
4116#else
4117# include <assert.h>
4118#endif
4119 Syntax error
4120_ACEOF
4121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_c_preproc_warn_flag
4131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132 else
4133 ac_cpp_err=
4134 fi
4135else
4136 ac_cpp_err=yes
4137fi
4138if test -z "$ac_cpp_err"; then
4139 :
4140else
4141 echo "$as_me: failed program was:" >&5
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
4144 # Broken: fails on valid input.
4145continue
4146fi
4147rm -f conftest.err conftest.$ac_ext
4148
4149 # OK, works on sane cases. Now check whether non-existent headers
4150 # can be detected and how.
4151 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <ac_nonexistent.h>
4158_ACEOF
4159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null; then
4167 if test -s conftest.err; then
4168 ac_cpp_err=$ac_c_preproc_warn_flag
4169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4170 else
4171 ac_cpp_err=
4172 fi
4173else
4174 ac_cpp_err=yes
4175fi
4176if test -z "$ac_cpp_err"; then
4177 # Broken: success on invalid input.
4178continue
4179else
4180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 # Passes both tests.
4184ac_preproc_ok=:
4185break
4186fi
4187rm -f conftest.err conftest.$ac_ext
4188
4189done
4190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191rm -f conftest.err conftest.$ac_ext
4192if $ac_preproc_ok; then
4193 :
4194else
4195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4196See \`config.log' for more details." >&5
4197echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4198See \`config.log' for more details." >&2;}
4199 { (exit 1); exit 1; }; }
4200fi
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4211if test "${ac_cv_header_stdc+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h. */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h. */
4220#include <stdlib.h>
4221#include <stdarg.h>
4222#include <string.h>
4223#include <float.h>
4224
4225int
4226main ()
4227{
4228
4229 ;
4230 return 0;
4231}
4232_ACEOF
4233rm -f conftest.$ac_objext
4234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_header_stdc=yes
4256else
4257 echo "$as_me: failed program was:" >&5
4258sed 's/^/| /' conftest.$ac_ext >&5
4259
4260ac_cv_header_stdc=no
4261fi
4262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263
4264if test $ac_cv_header_stdc = yes; then
4265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4266 cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272#include <string.h>
4273
4274_ACEOF
4275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "memchr" >/dev/null 2>&1; then
4277 :
4278else
4279 ac_cv_header_stdc=no
4280fi
4281rm -f conftest*
4282
4283fi
4284
4285if test $ac_cv_header_stdc = yes; then
4286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4287 cat >conftest.$ac_ext <<_ACEOF
4288/* confdefs.h. */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h. */
4293#include <stdlib.h>
4294
4295_ACEOF
4296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4297 $EGREP "free" >/dev/null 2>&1; then
4298 :
4299else
4300 ac_cv_header_stdc=no
4301fi
4302rm -f conftest*
4303
4304fi
4305
4306if test $ac_cv_header_stdc = yes; then
4307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4308 if test "$cross_compiling" = yes; then
4309 :
4310else
4311 cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317#include <ctype.h>
4318#if ((' ' & 0x0FF) == 0x020)
4319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4321#else
4322# define ISLOWER(c) \
4323 (('a' <= (c) && (c) <= 'i') \
4324 || ('j' <= (c) && (c) <= 'r') \
4325 || ('s' <= (c) && (c) <= 'z'))
4326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4327#endif
4328
4329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4330int
4331main ()
4332{
4333 int i;
4334 for (i = 0; i < 256; i++)
4335 if (XOR (islower (i), ISLOWER (i))
4336 || toupper (i) != TOUPPER (i))
4337 exit(2);
4338 exit (0);
4339}
4340_ACEOF
4341rm -f conftest$ac_exeext
4342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 :
4353else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358( exit $ac_status )
4359ac_cv_header_stdc=no
4360fi
4361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362fi
4363fi
4364fi
4365echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4366echo "${ECHO_T}$ac_cv_header_stdc" >&6
4367if test $ac_cv_header_stdc = yes; then
4368
4369cat >>confdefs.h <<\_ACEOF
4370#define STDC_HEADERS 1
4371_ACEOF
4372
4373fi
4374
4375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386 inttypes.h stdint.h unistd.h
4387do
4388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389echo "$as_me:$LINENO: checking for $ac_header" >&5
4390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4391if eval "test \"\${$as_ac_Header+set}\" = set"; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393else
4394 cat >conftest.$ac_ext <<_ACEOF
4395/* confdefs.h. */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h. */
4400$ac_includes_default
4401
4402#include <$ac_header>
4403_ACEOF
4404rm -f conftest.$ac_objext
4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 eval "$as_ac_Header=yes"
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431eval "$as_ac_Header=no"
4432fi
4433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434fi
4435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438 cat >>confdefs.h <<_ACEOF
4439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440_ACEOF
4441
4442fi
4443
4444done
4445
4446
4447
4448for ac_header in dlfcn.h
4449do
4450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451if eval "test \"\${$as_ac_Header+set}\" = set"; then
4452 echo "$as_me:$LINENO: checking for $ac_header" >&5
4453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4454if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456fi
4457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459else
4460 # Is the header compilable?
4461echo "$as_me:$LINENO: checking $ac_header usability" >&5
4462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469$ac_includes_default
4470#include <$ac_header>
4471_ACEOF
4472rm -f conftest.$ac_objext
4473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_header_compiler=yes
4495else
4496 echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499ac_header_compiler=no
4500fi
4501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4503echo "${ECHO_T}$ac_header_compiler" >&6
4504
4505# Is the header present?
4506echo "$as_me:$LINENO: checking $ac_header presence" >&5
4507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4508cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
4514#include <$ac_header>
4515_ACEOF
4516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_c_preproc_warn_flag
4526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4527 else
4528 ac_cpp_err=
4529 fi
4530else
4531 ac_cpp_err=yes
4532fi
4533if test -z "$ac_cpp_err"; then
4534 ac_header_preproc=yes
4535else
4536 echo "$as_me: failed program was:" >&5
4537sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 ac_header_preproc=no
4540fi
4541rm -f conftest.err conftest.$ac_ext
4542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4543echo "${ECHO_T}$ac_header_preproc" >&6
4544
4545# So? What about this header?
4546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4547 yes:no: )
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4552 ac_header_preproc=yes
4553 ;;
4554 no:yes:* )
4555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4567 (
4568 cat <<\_ASBOX
4569## -------------------------------------------------- ##
4570## Report this to courier-users@lists.sourceforge.net ##
4571## -------------------------------------------------- ##
4572_ASBOX
4573 ) |
4574 sed "s/^/$as_me: WARNING: /" >&2
4575 ;;
4576esac
4577echo "$as_me:$LINENO: checking for $ac_header" >&5
4578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4579if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582 eval "$as_ac_Header=\$ac_header_preproc"
4583fi
4584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4586
4587fi
4588if test `eval echo '${'$as_ac_Header'}'` = yes; then
4589 cat >>confdefs.h <<_ACEOF
4590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4591_ACEOF
4592
4593fi
4594
4595done
4596
4597ac_ext=cc
4598ac_cpp='$CXXCPP $CPPFLAGS'
4599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4602if test -n "$ac_tool_prefix"; then
4603 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609if test "${ac_cv_prog_CXX+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612 if test -n "$CXX"; then
4613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627done
4628
4629fi
4630fi
4631CXX=$ac_cv_prog_CXX
4632if test -n "$CXX"; then
4633 echo "$as_me:$LINENO: result: $CXX" >&5
4634echo "${ECHO_T}$CXX" >&6
4635else
4636 echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6
4638fi
4639
4640 test -n "$CXX" && break
4641 done
4642fi
4643if test -z "$CXX"; then
4644 ac_ct_CXX=$CXX
4645 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4646do
4647 # Extract the first word of "$ac_prog", so it can be a program name with args.
4648set dummy $ac_prog; ac_word=$2
4649echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4651if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$ac_ct_CXX"; then
4655 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_CXX="$ac_prog"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670
4671fi
4672fi
4673ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4674if test -n "$ac_ct_CXX"; then
4675 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4676echo "${ECHO_T}$ac_ct_CXX" >&6
4677else
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
4680fi
4681
4682 test -n "$ac_ct_CXX" && break
4683done
4684test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4685
4686 CXX=$ac_ct_CXX
4687fi
4688
4689
4690# Provide some information about the compiler.
4691echo "$as_me:$LINENO:" \
4692 "checking for C++ compiler version" >&5
4693ac_compiler=`set X $ac_compile; echo $2`
4694{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4695 (eval $ac_compiler --version </dev/null >&5) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }
4699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4700 (eval $ac_compiler -v </dev/null >&5) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4705 (eval $ac_compiler -V </dev/null >&5) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4709
4710echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4711echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4712if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h. */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725#ifndef __GNUC__
4726 choke me
4727#endif
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_compiler_gnu=yes
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760ac_compiler_gnu=no
4761fi
4762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4764
4765fi
4766echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4767echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4768GXX=`test $ac_compiler_gnu = yes && echo yes`
4769ac_test_CXXFLAGS=${CXXFLAGS+set}
4770ac_save_CXXFLAGS=$CXXFLAGS
4771CXXFLAGS="-g"
4772echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4773echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4774if test "${ac_cv_prog_cxx_g+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_cxx_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 ac_cv_prog_cxx_g=yes
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819ac_cv_prog_cxx_g=no
4820fi
4821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
4823echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4824echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4825if test "$ac_test_CXXFLAGS" = set; then
4826 CXXFLAGS=$ac_save_CXXFLAGS
4827elif test $ac_cv_prog_cxx_g = yes; then
4828 if test "$GXX" = yes; then
4829 CXXFLAGS="-g -O2"
4830 else
4831 CXXFLAGS="-g"
4832 fi
4833else
4834 if test "$GXX" = yes; then
4835 CXXFLAGS="-O2"
4836 else
4837 CXXFLAGS=
4838 fi
4839fi
4840for ac_declaration in \
4841 '' \
4842 'extern "C" void std::exit (int) throw (); using std::exit;' \
4843 'extern "C" void std::exit (int); using std::exit;' \
4844 'extern "C" void exit (int) throw ();' \
4845 'extern "C" void exit (int);' \
4846 'void exit (int);'
4847do
4848 cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h. */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h. */
4854$ac_declaration
4855#include <stdlib.h>
4856int
4857main ()
4858{
4859exit (42);
4860 ;
4861 return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext
4865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_cxx_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 :
4887else
4888 echo "$as_me: failed program was:" >&5
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
4891continue
4892fi
4893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4894 cat >conftest.$ac_ext <<_ACEOF
4895/* confdefs.h. */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h. */
4900$ac_declaration
4901int
4902main ()
4903{
4904exit (42);
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext
4910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_cxx_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 break
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936fi
4937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938done
4939rm -f conftest*
4940if test -n "$ac_declaration"; then
4941 echo '#ifdef __cplusplus' >>confdefs.h
4942 echo $ac_declaration >>confdefs.h
4943 echo '#endif' >>confdefs.h
4944fi
4945
4946ac_ext=cc
4947ac_cpp='$CXXCPP $CPPFLAGS'
4948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951
4952depcc="$CXX" am_compiler_list=
4953
4954echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4955echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4956if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960 # We make a subdir and do the tests there. Otherwise we can end up
4961 # making bogus files that we don't know about and never remove. For
4962 # instance it was reported that on HP-UX the gcc test will end up
4963 # making a dummy file named `D' -- because `-MD' means `put the output
4964 # in D'.
4965 mkdir conftest.dir
4966 # Copy depcomp to subdir because otherwise we won't find it if we're
4967 # using a relative directory.
4968 cp "$am_depcomp" conftest.dir
4969 cd conftest.dir
4970 # We will build objects and dependencies in a subdirectory because
4971 # it helps to detect inapplicable dependency modes. For instance
4972 # both Tru64's cc and ICC support -MD to output dependencies as a
4973 # side effect of compilation, but ICC will put the dependencies in
4974 # the current directory while Tru64 will put them in the object
4975 # directory.
4976 mkdir sub
4977
4978 am_cv_CXX_dependencies_compiler_type=none
4979 if test "$am_compiler_list" = ""; then
4980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4981 fi
4982 for depmode in $am_compiler_list; do
4983 # Setup a source with many dependencies, because some compilers
4984 # like to wrap large dependency lists on column 80 (with \), and
4985 # we should not choose a depcomp mode which is confused by this.
4986 #
4987 # We need to recreate these files for each test, as the compiler may
4988 # overwrite some of them when testing with obscure command lines.
4989 # This happens at least with the AIX C compiler.
4990 : > sub/conftest.c
4991 for i in 1 2 3 4 5 6; do
4992 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4993 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4994 # Solaris 8's {/usr,}/bin/sh.
4995 touch sub/conftst$i.h
4996 done
4997 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4998
4999 case $depmode in
5000 nosideeffect)
5001 # after this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested
5003 if test "x$enable_dependency_tracking" = xyes; then
5004 continue
5005 else
5006 break
5007 fi
5008 ;;
5009 none) break ;;
5010 esac
5011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5012 # mode. It turns out that the SunPro C++ compiler does not properly
5013 # handle `-M -o', and we need to detect this.
5014 if depmode=$depmode \
5015 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5017 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5018 >/dev/null 2>conftest.err &&
5019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5020 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5022 # icc doesn't choke on unknown options, it will just issue warnings
5023 # or remarks (even with -Werror). So we grep stderr for any message
5024 # that says an option was ignored or not supported.
5025 # When given -MP, icc 7.0 and 7.1 complain thusly:
5026 # icc: Command line warning: ignoring option '-M'; no argument required
5027 # The diagnosis changed in icc 8.0:
5028 # icc: Command line remark: option '-MP' not supported
5029 if (grep 'ignoring option' conftest.err ||
5030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5031 am_cv_CXX_dependencies_compiler_type=$depmode
5032 break
5033 fi
5034 fi
5035 done
5036
5037 cd ..
5038 rm -rf conftest.dir
5039else
5040 am_cv_CXX_dependencies_compiler_type=none
5041fi
5042
5043fi
5044echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5045echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5046CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5047
5048
5049
5050if
5051 test "x$enable_dependency_tracking" != xno \
5052 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5053 am__fastdepCXX_TRUE=
5054 am__fastdepCXX_FALSE='#'
5055else
5056 am__fastdepCXX_TRUE='#'
5057 am__fastdepCXX_FALSE=
5058fi
5059
5060
5061
5062
5063if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5064 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5065 (test "X$CXX" != "Xg++"))) ; then
5066 ac_ext=cc
5067ac_cpp='$CXXCPP $CPPFLAGS'
5068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5071echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5072echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5073if test -z "$CXXCPP"; then
5074 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 # Double quotes because CXXCPP needs to be expanded
5078 for CXXCPP in "$CXX -E" "/lib/cpp"
5079 do
5080 ac_preproc_ok=false
5081for ac_cxx_preproc_warn_flag in '' yes
5082do
5083 # Use a header file that comes with gcc, so configuring glibc
5084 # with a fresh cross-compiler works.
5085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086 # <limits.h> exists even on freestanding compilers.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h. */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h. */
5095#ifdef __STDC__
5096# include <limits.h>
5097#else
5098# include <assert.h>
5099#endif
5100 Syntax error
5101_ACEOF
5102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } >/dev/null; then
5110 if test -s conftest.err; then
5111 ac_cpp_err=$ac_cxx_preproc_warn_flag
5112 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5113 else
5114 ac_cpp_err=
5115 fi
5116else
5117 ac_cpp_err=yes
5118fi
5119if test -z "$ac_cpp_err"; then
5120 :
5121else
5122 echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 # Broken: fails on valid input.
5126continue
5127fi
5128rm -f conftest.err conftest.$ac_ext
5129
5130 # OK, works on sane cases. Now check whether non-existent headers
5131 # can be detected and how.
5132 cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h. */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h. */
5138#include <ac_nonexistent.h>
5139_ACEOF
5140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null; then
5148 if test -s conftest.err; then
5149 ac_cpp_err=$ac_cxx_preproc_warn_flag
5150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5151 else
5152 ac_cpp_err=
5153 fi
5154else
5155 ac_cpp_err=yes
5156fi
5157if test -z "$ac_cpp_err"; then
5158 # Broken: success on invalid input.
5159continue
5160else
5161 echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 # Passes both tests.
5165ac_preproc_ok=:
5166break
5167fi
5168rm -f conftest.err conftest.$ac_ext
5169
5170done
5171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5172rm -f conftest.err conftest.$ac_ext
5173if $ac_preproc_ok; then
5174 break
5175fi
5176
5177 done
5178 ac_cv_prog_CXXCPP=$CXXCPP
5179
5180fi
5181 CXXCPP=$ac_cv_prog_CXXCPP
5182else
5183 ac_cv_prog_CXXCPP=$CXXCPP
5184fi
5185echo "$as_me:$LINENO: result: $CXXCPP" >&5
5186echo "${ECHO_T}$CXXCPP" >&6
5187ac_preproc_ok=false
5188for ac_cxx_preproc_warn_flag in '' yes
5189do
5190 # Use a header file that comes with gcc, so configuring glibc
5191 # with a fresh cross-compiler works.
5192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193 # <limits.h> exists even on freestanding compilers.
5194 # On the NeXT, cc -E runs the code through the compiler's parser,
5195 # not just through cpp. "Syntax error" is here to catch this case.
5196 cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h. */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h. */
5202#ifdef __STDC__
5203# include <limits.h>
5204#else
5205# include <assert.h>
5206#endif
5207 Syntax error
5208_ACEOF
5209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev/null; then
5217 if test -s conftest.err; then
5218 ac_cpp_err=$ac_cxx_preproc_warn_flag
5219 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5220 else
5221 ac_cpp_err=
5222 fi
5223else
5224 ac_cpp_err=yes
5225fi
5226if test -z "$ac_cpp_err"; then
5227 :
5228else
5229 echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 # Broken: fails on valid input.
5233continue
5234fi
5235rm -f conftest.err conftest.$ac_ext
5236
5237 # OK, works on sane cases. Now check whether non-existent headers
5238 # can be detected and how.
5239 cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
5245#include <ac_nonexistent.h>
5246_ACEOF
5247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_cxx_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5258 else
5259 ac_cpp_err=
5260 fi
5261else
5262 ac_cpp_err=yes
5263fi
5264if test -z "$ac_cpp_err"; then
5265 # Broken: success on invalid input.
5266continue
5267else
5268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271 # Passes both tests.
5272ac_preproc_ok=:
5273break
5274fi
5275rm -f conftest.err conftest.$ac_ext
5276
5277done
5278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5279rm -f conftest.err conftest.$ac_ext
5280if $ac_preproc_ok; then
5281 :
5282else
5283 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5284See \`config.log' for more details." >&5
5285echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5286See \`config.log' for more details." >&2;}
5287 { (exit 1); exit 1; }; }
5288fi
5289
5290ac_ext=cc
5291ac_cpp='$CXXCPP $CPPFLAGS'
5292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5295
5296fi
5297
5298
5299ac_ext=f
5300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5303if test -n "$ac_tool_prefix"; then
5304 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5305 do
5306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5308echo "$as_me:$LINENO: checking for $ac_word" >&5
5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310if test "${ac_cv_prog_F77+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313 if test -n "$F77"; then
5314 ac_cv_prog_F77="$F77" # Let the user override the test.
5315else
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327done
5328done
5329
5330fi
5331fi
5332F77=$ac_cv_prog_F77
5333if test -n "$F77"; then
5334 echo "$as_me:$LINENO: result: $F77" >&5
5335echo "${ECHO_T}$F77" >&6
5336else
5337 echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6
5339fi
5340
5341 test -n "$F77" && break
5342 done
5343fi
5344if test -z "$F77"; then
5345 ac_ct_F77=$F77
5346 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5347do
5348 # Extract the first word of "$ac_prog", so it can be a program name with args.
5349set dummy $ac_prog; ac_word=$2
5350echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test -n "$ac_ct_F77"; then
5356 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_F77="$ac_prog"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370done
5371
5372fi
5373fi
5374ac_ct_F77=$ac_cv_prog_ac_ct_F77
5375if test -n "$ac_ct_F77"; then
5376 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5377echo "${ECHO_T}$ac_ct_F77" >&6
5378else
5379 echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6
5381fi
5382
5383 test -n "$ac_ct_F77" && break
5384done
5385
5386 F77=$ac_ct_F77
5387fi
5388
5389
5390# Provide some information about the compiler.
5391echo "$as_me:5391:" \
5392 "checking for Fortran 77 compiler version" >&5
5393ac_compiler=`set X $ac_compile; echo $2`
5394{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5395 (eval $ac_compiler --version </dev/null >&5) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5400 (eval $ac_compiler -v </dev/null >&5) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }
5404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5405 (eval $ac_compiler -V </dev/null >&5) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }
5409rm -f a.out
5410
5411# If we don't use `.F' as extension, the preprocessor is not run on the
5412# input file. (Note that this only needs to work for GNU compilers.)
5413ac_save_ext=$ac_ext
5414ac_ext=F
5415echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5416echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5417if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 program main
5422#ifndef __GNUC__
5423 choke me
5424#endif
5425
5426 end
5427_ACEOF
5428rm -f conftest.$ac_objext
5429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_f77_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_compiler_gnu=yes
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455ac_compiler_gnu=no
5456fi
5457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5459
5460fi
5461echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5462echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5463ac_ext=$ac_save_ext
5464ac_test_FFLAGS=${FFLAGS+set}
5465ac_save_FFLAGS=$FFLAGS
5466FFLAGS=
5467echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5468echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5469if test "${ac_cv_prog_f77_g+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472 FFLAGS=-g
5473cat >conftest.$ac_ext <<_ACEOF
5474 program main
5475
5476 end
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -z "$ac_f77_werror_flag"
5488 || test ! -s conftest.err'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_cv_prog_f77_g=yes
5501else
5502 echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
5505ac_cv_prog_f77_g=no
5506fi
5507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508
5509fi
5510echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5511echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5512if test "$ac_test_FFLAGS" = set; then
5513 FFLAGS=$ac_save_FFLAGS
5514elif test $ac_cv_prog_f77_g = yes; then
5515 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5516 FFLAGS="-g -O2"
5517 else
5518 FFLAGS="-g"
5519 fi
5520else
5521 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5522 FFLAGS="-O2"
5523 else
5524 FFLAGS=
5525 fi
5526fi
5527
5528G77=`test $ac_compiler_gnu = yes && echo yes`
5529ac_ext=c
5530ac_cpp='$CPP $CPPFLAGS'
5531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535
5536
5537# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5538
5539# find the maximum length of command line arguments
5540echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5541echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5542if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 i=0
5546 teststring="ABCD"
5547
5548 case $build_os in
5549 msdosdjgpp*)
5550 # On DJGPP, this test can blow up pretty badly due to problems in libc
5551 # (any single argument exceeding 2000 bytes causes a buffer overrun
5552 # during glob expansion). Even if it were fixed, the result of this
5553 # check would be larger than it should be.
5554 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5555 ;;
5556
5557 gnu*)
5558 # Under GNU Hurd, this test is not required because there is
5559 # no limit to the length of command line arguments.
5560 # Libtool will interpret -1 as no limit whatsoever
5561 lt_cv_sys_max_cmd_len=-1;
5562 ;;
5563
5564 cygwin* | mingw*)
5565 # On Win9x/ME, this test blows up -- it succeeds, but takes
5566 # about 5 minutes as the teststring grows exponentially.
5567 # Worse, since 9x/ME are not pre-emptively multitasking,
5568 # you end up with a "frozen" computer, even though with patience
5569 # the test eventually succeeds (with a max line length of 256k).
5570 # Instead, let's just punt: use the minimum linelength reported by
5571 # all of the supported platforms: 8192 (on NT/2K/XP).
5572 lt_cv_sys_max_cmd_len=8192;
5573 ;;
5574
5575 amigaos*)
5576 # On AmigaOS with pdksh, this test takes hours, literally.
5577 # So we just punt and use a minimum line length of 8192.
5578 lt_cv_sys_max_cmd_len=8192;
5579 ;;
5580
5581 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5582 # This has been around since 386BSD, at least. Likely further.
5583 if test -x /sbin/sysctl; then
5584 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5585 elif test -x /usr/sbin/sysctl; then
5586 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5587 else
5588 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5589 fi
5590 # And add a safety zone
5591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5593 ;;
5594
5595 interix*)
5596 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5597 lt_cv_sys_max_cmd_len=196608
5598 ;;
5599
5600 osf*)
5601 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5602 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5603 # nice to cause kernel panics so lets avoid the loop below.
5604 # First set a reasonable default.
5605 lt_cv_sys_max_cmd_len=16384
5606 #
5607 if test -x /sbin/sysconfig; then
5608 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5609 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5610 esac
5611 fi
5612 ;;
5613 sco3.2v5*)
5614 lt_cv_sys_max_cmd_len=102400
5615 ;;
5616 sysv5* | sco5v6* | sysv4.2uw2*)
5617 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5618 if test -n "$kargmax"; then
5619 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5620 else
5621 lt_cv_sys_max_cmd_len=32768
5622 fi
5623 ;;
5624 *)
5625 # If test is not a shell built-in, we'll probably end up computing a
5626 # maximum length that is only half of the actual maximum length, but
5627 # we can't tell.
5628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5629 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5630 = "XX$teststring") >/dev/null 2>&1 &&
5631 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5632 lt_cv_sys_max_cmd_len=$new_result &&
5633 test $i != 17 # 1/2 MB should be enough
5634 do
5635 i=`expr $i + 1`
5636 teststring=$teststring$teststring
5637 done
5638 teststring=
5639 # Add a significant safety factor because C++ compilers can tack on massive
5640 # amounts of additional arguments before passing them to the linker.
5641 # It appears as though 1/2 is a usable value.
5642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5643 ;;
5644 esac
5645
5646fi
5647
5648if test -n $lt_cv_sys_max_cmd_len ; then
5649 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5650echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5651else
5652 echo "$as_me:$LINENO: result: none" >&5
5653echo "${ECHO_T}none" >&6
5654fi
5655
5656
5657
5658
5659# Check for command to grab the raw symbol name followed by C symbol from nm.
5660echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5661echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5662if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665
5666# These are sane defaults that work on at least a few old systems.
5667# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5668
5669# Character class describing NM global symbol codes.
5670symcode='[BCDEGRST]'
5671
5672# Regexp to match symbols that can be accessed directly from C.
5673sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5674
5675# Transform an extracted symbol line into a proper C declaration
5676lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5677
5678# Transform an extracted symbol line into symbol name and symbol address
5679lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5680
5681# Define system-specific variables.
5682case $host_os in
5683aix*)
5684 symcode='[BCDT]'
5685 ;;
5686cygwin* | mingw* | pw32*)
5687 symcode='[ABCDGISTW]'
5688 ;;
5689hpux*) # Its linker distinguishes data from code symbols
5690 if test "$host_cpu" = ia64; then
5691 symcode='[ABCDEGRST]'
5692 fi
5693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5694 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5695 ;;
5696linux*)
5697 if test "$host_cpu" = ia64; then
5698 symcode='[ABCDGIRSTW]'
5699 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5700 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5701 fi
5702 ;;
5703irix* | nonstopux*)
5704 symcode='[BCDEGRST]'
5705 ;;
5706osf*)
5707 symcode='[BCDEGQRST]'
5708 ;;
5709solaris*)
5710 symcode='[BDRT]'
5711 ;;
5712sco3.2v5*)
5713 symcode='[DT]'
5714 ;;
5715sysv4.2uw2*)
5716 symcode='[DT]'
5717 ;;
5718sysv5* | sco5v6* | unixware* | OpenUNIX*)
5719 symcode='[ABDT]'
5720 ;;
5721sysv4)
5722 symcode='[DFNSTU]'
5723 ;;
5724esac
5725
5726# Handle CRLF in mingw tool chain
5727opt_cr=
5728case $build_os in
5729mingw*)
5730 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5731 ;;
5732esac
5733
5734# If we're using GNU nm, then use its standard symbol codes.
5735case `$NM -V 2>&1` in
5736*GNU* | *'with BFD'*)
5737 symcode='[ABCDGIRSTW]' ;;
5738esac
5739
5740# Try without a prefix undercore, then with it.
5741for ac_symprfx in "" "_"; do
5742
5743 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5744 symxfrm="\\1 $ac_symprfx\\2 \\2"
5745
5746 # Write the raw and C identifiers.
5747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5748
5749 # Check to see that the pipe works correctly.
5750 pipe_works=no
5751
5752 rm -f conftest*
5753 cat > conftest.$ac_ext <<EOF
5754#ifdef __cplusplus
5755extern "C" {
5756#endif
5757char nm_test_var;
5758void nm_test_func(){}
5759#ifdef __cplusplus
5760}
5761#endif
5762int main(){nm_test_var='a';nm_test_func();return(0);}
5763EOF
5764
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; then
5770 # Now try to grab the symbols.
5771 nlist=conftest.nm
5772 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5773 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && test -s "$nlist"; then
5777 # Try sorting and uniquifying the output.
5778 if sort "$nlist" | uniq > "$nlist"T; then
5779 mv -f "$nlist"T "$nlist"
5780 else
5781 rm -f "$nlist"T
5782 fi
5783
5784 # Make sure that we snagged all the symbols we need.
5785 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5786 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5787 cat <<EOF > conftest.$ac_ext
5788#ifdef __cplusplus
5789extern "C" {
5790#endif
5791
5792EOF
5793 # Now generate the symbol file.
5794 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5795
5796 cat <<EOF >> conftest.$ac_ext
5797#if defined (__STDC__) && __STDC__
5798# define lt_ptr_t void *
5799#else
5800# define lt_ptr_t char *
5801# define const
5802#endif
5803
5804/* The mapping between symbol names and symbols. */
5805const struct {
5806 const char *name;
5807 lt_ptr_t address;
5808}
5809lt_preloaded_symbols[] =
5810{
5811EOF
5812 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5813 cat <<\EOF >> conftest.$ac_ext
5814 {0, (lt_ptr_t) 0}
5815};
5816
5817#ifdef __cplusplus
5818}
5819#endif
5820EOF
5821 # Now try linking the two files.
5822 mv conftest.$ac_objext conftstm.$ac_objext
5823 lt_save_LIBS="$LIBS"
5824 lt_save_CFLAGS="$CFLAGS"
5825 LIBS="conftstm.$ac_objext"
5826 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5832 pipe_works=yes
5833 fi
5834 LIBS="$lt_save_LIBS"
5835 CFLAGS="$lt_save_CFLAGS"
5836 else
5837 echo "cannot find nm_test_func in $nlist" >&5
5838 fi
5839 else
5840 echo "cannot find nm_test_var in $nlist" >&5
5841 fi
5842 else
5843 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5844 fi
5845 else
5846 echo "$progname: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5848 fi
5849 rm -f conftest* conftst*
5850
5851 # Do not use the global_symbol_pipe unless it works.
5852 if test "$pipe_works" = yes; then
5853 break
5854 else
5855 lt_cv_sys_global_symbol_pipe=
5856 fi
5857done
5858
5859fi
5860
5861if test -z "$lt_cv_sys_global_symbol_pipe"; then
5862 lt_cv_sys_global_symbol_to_cdecl=
5863fi
5864if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5865 echo "$as_me:$LINENO: result: failed" >&5
5866echo "${ECHO_T}failed" >&6
5867else
5868 echo "$as_me:$LINENO: result: ok" >&5
5869echo "${ECHO_T}ok" >&6
5870fi
5871
5872echo "$as_me:$LINENO: checking for objdir" >&5
5873echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5874if test "${lt_cv_objdir+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 rm -f .libs 2>/dev/null
5878mkdir .libs 2>/dev/null
5879if test -d .libs; then
5880 lt_cv_objdir=.libs
5881else
5882 # MS-DOS does not allow filenames that begin with a dot.
5883 lt_cv_objdir=_libs
5884fi
5885rmdir .libs 2>/dev/null
5886fi
5887echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5888echo "${ECHO_T}$lt_cv_objdir" >&6
5889objdir=$lt_cv_objdir
5890
5891
5892
5893
5894
5895case $host_os in
5896aix3*)
5897 # AIX sometimes has problems with the GCC collect2 program. For some
5898 # reason, if we set the COLLECT_NAMES environment variable, the problems
5899 # vanish in a puff of smoke.
5900 if test "X${COLLECT_NAMES+set}" != Xset; then
5901 COLLECT_NAMES=
5902 export COLLECT_NAMES
5903 fi
5904 ;;
5905esac
5906
5907# Sed substitution that helps us do robust quoting. It backslashifies
5908# metacharacters that are still active within double-quoted strings.
5909Xsed='sed -e 1s/^X//'
5910sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5911
5912# Same as above, but do not quote variable references.
5913double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5914
5915# Sed substitution to delay expansion of an escaped shell variable in a
5916# double_quote_subst'ed string.
5917delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5918
5919# Sed substitution to avoid accidental globbing in evaled expressions
5920no_glob_subst='s/\*/\\\*/g'
5921
5922# Constants:
5923rm="rm -f"
5924
5925# Global variables:
5926default_ofile=libtool
5927can_build_shared=yes
5928
5929# All known linkers require a `.a' archive for static linking (except MSVC,
5930# which needs '.lib').
5931libext=a
5932ltmain="$ac_aux_dir/ltmain.sh"
5933ofile="$default_ofile"
5934with_gnu_ld="$lt_cv_prog_gnu_ld"
5935
5936if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5938set dummy ${ac_tool_prefix}ar; ac_word=$2
5939echo "$as_me:$LINENO: checking for $ac_word" >&5
5940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941if test "${ac_cv_prog_AR+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944 if test -n "$AR"; then
5945 ac_cv_prog_AR="$AR" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_AR="${ac_tool_prefix}ar"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958done
5959done
5960
5961fi
5962fi
5963AR=$ac_cv_prog_AR
5964if test -n "$AR"; then
5965 echo "$as_me:$LINENO: result: $AR" >&5
5966echo "${ECHO_T}$AR" >&6
5967else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970fi
5971
5972fi
5973if test -z "$ac_cv_prog_AR"; then
5974 ac_ct_AR=$AR
5975 # Extract the first word of "ar", so it can be a program name with args.
5976set dummy ar; ac_word=$2
5977echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 if test -n "$ac_ct_AR"; then
5983 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_ac_ct_AR="ar"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997done
5998
5999 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6000fi
6001fi
6002ac_ct_AR=$ac_cv_prog_ac_ct_AR
6003if test -n "$ac_ct_AR"; then
6004 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6005echo "${ECHO_T}$ac_ct_AR" >&6
6006else
6007 echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009fi
6010
6011 AR=$ac_ct_AR
6012else
6013 AR="$ac_cv_prog_AR"
6014fi
6015
6016if test -n "$ac_tool_prefix"; then
6017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6018set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6019echo "$as_me:$LINENO: checking for $ac_word" >&5
6020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6021if test "${ac_cv_prog_RANLIB+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024 if test -n "$RANLIB"; then
6025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038done
6039done
6040
6041fi
6042fi
6043RANLIB=$ac_cv_prog_RANLIB
6044if test -n "$RANLIB"; then
6045 echo "$as_me:$LINENO: result: $RANLIB" >&5
6046echo "${ECHO_T}$RANLIB" >&6
6047else
6048 echo "$as_me:$LINENO: result: no" >&5
6049echo "${ECHO_T}no" >&6
6050fi
6051
6052fi
6053if test -z "$ac_cv_prog_RANLIB"; then
6054 ac_ct_RANLIB=$RANLIB
6055 # Extract the first word of "ranlib", so it can be a program name with args.
6056set dummy ranlib; ac_word=$2
6057echo "$as_me:$LINENO: checking for $ac_word" >&5
6058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6059if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062 if test -n "$ac_ct_RANLIB"; then
6063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_ac_ct_RANLIB="ranlib"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076done
6077done
6078
6079 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6080fi
6081fi
6082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6083if test -n "$ac_ct_RANLIB"; then
6084 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6085echo "${ECHO_T}$ac_ct_RANLIB" >&6
6086else
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089fi
6090
6091 RANLIB=$ac_ct_RANLIB
6092else
6093 RANLIB="$ac_cv_prog_RANLIB"
6094fi
6095
6096if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6098set dummy ${ac_tool_prefix}strip; ac_word=$2
6099echo "$as_me:$LINENO: checking for $ac_word" >&5
6100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6101if test "${ac_cv_prog_STRIP+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 if test -n "$STRIP"; then
6105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118done
6119done
6120
6121fi
6122fi
6123STRIP=$ac_cv_prog_STRIP
6124if test -n "$STRIP"; then
6125 echo "$as_me:$LINENO: result: $STRIP" >&5
6126echo "${ECHO_T}$STRIP" >&6
6127else
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130fi
6131
6132fi
6133if test -z "$ac_cv_prog_STRIP"; then
6134 ac_ct_STRIP=$STRIP
6135 # Extract the first word of "strip", so it can be a program name with args.
6136set dummy strip; ac_word=$2
6137echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6139if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 if test -n "$ac_ct_STRIP"; then
6143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_ac_ct_STRIP="strip"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157done
6158
6159 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6160fi
6161fi
6162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6163if test -n "$ac_ct_STRIP"; then
6164 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6165echo "${ECHO_T}$ac_ct_STRIP" >&6
6166else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169fi
6170
6171 STRIP=$ac_ct_STRIP
6172else
6173 STRIP="$ac_cv_prog_STRIP"
6174fi
6175
6176
6177old_CC="$CC"
6178old_CFLAGS="$CFLAGS"
6179
6180# Set sane defaults for various variables
6181test -z "$AR" && AR=ar
6182test -z "$AR_FLAGS" && AR_FLAGS=cru
6183test -z "$AS" && AS=as
6184test -z "$CC" && CC=cc
6185test -z "$LTCC" && LTCC=$CC
6186test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6187test -z "$DLLTOOL" && DLLTOOL=dlltool
6188test -z "$LD" && LD=ld
6189test -z "$LN_S" && LN_S="ln -s"
6190test -z "$MAGIC_CMD" && MAGIC_CMD=file
6191test -z "$NM" && NM=nm
6192test -z "$SED" && SED=sed
6193test -z "$OBJDUMP" && OBJDUMP=objdump
6194test -z "$RANLIB" && RANLIB=:
6195test -z "$STRIP" && STRIP=:
6196test -z "$ac_objext" && ac_objext=o
6197
6198# Determine commands to create old-style static archives.
6199old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6200old_postinstall_cmds='chmod 644 $oldlib'
6201old_postuninstall_cmds=
6202
6203if test -n "$RANLIB"; then
6204 case $host_os in
6205 openbsd*)
6206 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6207 ;;
6208 *)
6209 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6210 ;;
6211 esac
6212 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6213fi
6214
6215for cc_temp in $compiler""; do
6216 case $cc_temp in
6217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6219 \-*) ;;
6220 *) break;;
6221 esac
6222done
6223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6224
6225
6226# Only perform the check for file, if the check method requires it
6227case $deplibs_check_method in
6228file_magic*)
6229 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6230 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6231echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6232if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235 case $MAGIC_CMD in
6236[\\/*] | ?:[\\/]*)
6237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6238 ;;
6239*)
6240 lt_save_MAGIC_CMD="$MAGIC_CMD"
6241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6243 for ac_dir in $ac_dummy; do
6244 IFS="$lt_save_ifs"
6245 test -z "$ac_dir" && ac_dir=.
6246 if test -f $ac_dir/${ac_tool_prefix}file; then
6247 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6248 if test -n "$file_magic_test_file"; then
6249 case $deplibs_check_method in
6250 "file_magic "*)
6251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6254 $EGREP "$file_magic_regex" > /dev/null; then
6255 :
6256 else
6257 cat <<EOF 1>&2
6258
6259*** Warning: the command libtool uses to detect shared libraries,
6260*** $file_magic_cmd, produces output that libtool cannot recognize.
6261*** The result is that libtool may fail to recognize shared libraries
6262*** as such. This will affect the creation of libtool libraries that
6263*** depend on shared libraries, but programs linked with such libtool
6264*** libraries will work regardless of this problem. Nevertheless, you
6265*** may want to report the problem to your system manager and/or to
6266*** bug-libtool@gnu.org
6267
6268EOF
6269 fi ;;
6270 esac
6271 fi
6272 break
6273 fi
6274 done
6275 IFS="$lt_save_ifs"
6276 MAGIC_CMD="$lt_save_MAGIC_CMD"
6277 ;;
6278esac
6279fi
6280
6281MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282if test -n "$MAGIC_CMD"; then
6283 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6284echo "${ECHO_T}$MAGIC_CMD" >&6
6285else
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
6288fi
6289
6290if test -z "$lt_cv_path_MAGIC_CMD"; then
6291 if test -n "$ac_tool_prefix"; then
6292 echo "$as_me:$LINENO: checking for file" >&5
6293echo $ECHO_N "checking for file... $ECHO_C" >&6
6294if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296else
6297 case $MAGIC_CMD in
6298[\\/*] | ?:[\\/]*)
6299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6300 ;;
6301*)
6302 lt_save_MAGIC_CMD="$MAGIC_CMD"
6303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6305 for ac_dir in $ac_dummy; do
6306 IFS="$lt_save_ifs"
6307 test -z "$ac_dir" && ac_dir=.
6308 if test -f $ac_dir/file; then
6309 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6310 if test -n "$file_magic_test_file"; then
6311 case $deplibs_check_method in
6312 "file_magic "*)
6313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6316 $EGREP "$file_magic_regex" > /dev/null; then
6317 :
6318 else
6319 cat <<EOF 1>&2
6320
6321*** Warning: the command libtool uses to detect shared libraries,
6322*** $file_magic_cmd, produces output that libtool cannot recognize.
6323*** The result is that libtool may fail to recognize shared libraries
6324*** as such. This will affect the creation of libtool libraries that
6325*** depend on shared libraries, but programs linked with such libtool
6326*** libraries will work regardless of this problem. Nevertheless, you
6327*** may want to report the problem to your system manager and/or to
6328*** bug-libtool@gnu.org
6329
6330EOF
6331 fi ;;
6332 esac
6333 fi
6334 break
6335 fi
6336 done
6337 IFS="$lt_save_ifs"
6338 MAGIC_CMD="$lt_save_MAGIC_CMD"
6339 ;;
6340esac
6341fi
6342
6343MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6344if test -n "$MAGIC_CMD"; then
6345 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6346echo "${ECHO_T}$MAGIC_CMD" >&6
6347else
6348 echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
6350fi
6351
6352 else
6353 MAGIC_CMD=:
6354 fi
6355fi
6356
6357 fi
6358 ;;
6359esac
6360
6361enable_dlopen=no
6362enable_win32_dll=no
6363
6364# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6365if test "${enable_libtool_lock+set}" = set; then
6366 enableval="$enable_libtool_lock"
6367
6368fi;
6369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6370
6371
6372# Check whether --with-pic or --without-pic was given.
6373if test "${with_pic+set}" = set; then
6374 withval="$with_pic"
6375 pic_mode="$withval"
6376else
6377 pic_mode=default
6378fi;
6379test -z "$pic_mode" && pic_mode=default
6380
6381# Use C for the default configuration in the libtool script
6382tagname=
6383lt_save_CC="$CC"
6384ac_ext=c
6385ac_cpp='$CPP $CPPFLAGS'
6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390
6391# Source file extension for C test sources.
6392ac_ext=c
6393
6394# Object file extension for compiled C test sources.
6395objext=o
6396objext=$objext
6397
6398# Code to be used in simple compile tests
6399lt_simple_compile_test_code="int some_variable = 0;\n"
6400
6401# Code to be used in simple link tests
6402lt_simple_link_test_code='int main(){return(0);}\n'
6403
6404
6405# If no C compiler was specified, use CC.
6406LTCC=${LTCC-"$CC"}
6407
6408# If no C compiler flags were specified, use CFLAGS.
6409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6410
6411# Allow CC to be a program name with arguments.
6412compiler=$CC
6413
6414
6415# save warnings/boilerplate of simple test code
6416ac_outfile=conftest.$ac_objext
6417printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6419_lt_compiler_boilerplate=`cat conftest.err`
6420$rm conftest*
6421
6422ac_outfile=conftest.$ac_objext
6423printf "$lt_simple_link_test_code" >conftest.$ac_ext
6424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6425_lt_linker_boilerplate=`cat conftest.err`
6426$rm conftest*
6427
6428
6429
6430lt_prog_compiler_no_builtin_flag=
6431
6432if test "$GCC" = yes; then
6433 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6434
6435
6436echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6437echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6438if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 lt_cv_prog_compiler_rtti_exceptions=no
6442 ac_outfile=conftest.$ac_objext
6443 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6444 lt_compiler_flag="-fno-rtti -fno-exceptions"
6445 # Insert the option either (1) after the last *FLAGS variable, or
6446 # (2) before a word containing "conftest.", or (3) at the end.
6447 # Note that $ac_compile itself does not contain backslashes and begins
6448 # with a dollar sign (not a hyphen), so the echo should work correctly.
6449 # The option is referenced via a variable to avoid confusing sed.
6450 lt_compile=`echo "$ac_compile" | $SED \
6451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6453 -e 's:$: $lt_compiler_flag:'`
6454 (eval echo "\"\$as_me:6454: $lt_compile\"" >&5)
6455 (eval "$lt_compile" 2>conftest.err)
6456 ac_status=$?
6457 cat conftest.err >&5
6458 echo "$as_me:6458: \$? = $ac_status" >&5
6459 if (exit $ac_status) && test -s "$ac_outfile"; then
6460 # The compiler can only warn and ignore the option if not recognized
6461 # So say no if there are warnings other than the usual output.
6462 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6465 lt_cv_prog_compiler_rtti_exceptions=yes
6466 fi
6467 fi
6468 $rm conftest*
6469
6470fi
6471echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6472echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6473
6474if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6475 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6476else
6477 :
6478fi
6479
6480fi
6481
6482lt_prog_compiler_wl=
6483lt_prog_compiler_pic=
6484lt_prog_compiler_static=
6485
6486echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6487echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6488
6489 if test "$GCC" = yes; then
6490 lt_prog_compiler_wl='-Wl,'
6491 lt_prog_compiler_static='-static'
6492
6493 case $host_os in
6494 aix*)
6495 # All AIX code is PIC.
6496 if test "$host_cpu" = ia64; then
6497 # AIX 5 now supports IA64 processor
6498 lt_prog_compiler_static='-Bstatic'
6499 fi
6500 ;;
6501
6502 amigaos*)
6503 # FIXME: we need at least 68020 code to build shared libraries, but
6504 # adding the `-m68020' flag to GCC prevents building anything better,
6505 # like `-m68040'.
6506 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6507 ;;
6508
6509 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6510 # PIC is the default for these OSes.
6511 ;;
6512
6513 mingw* | pw32* | os2*)
6514 # This hack is so that the source file can tell whether it is being
6515 # built for inclusion in a dll (and should export symbols for example).
6516 lt_prog_compiler_pic='-DDLL_EXPORT'
6517 ;;
6518
6519 darwin* | rhapsody*)
6520 # PIC is the default on this platform
6521 # Common symbols not allowed in MH_DYLIB files
6522 lt_prog_compiler_pic='-fno-common'
6523 ;;
6524
6525 interix3*)
6526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6527 # Instead, we relocate shared libraries at runtime.
6528 ;;
6529
6530 msdosdjgpp*)
6531 # Just because we use GCC doesn't mean we suddenly get shared libraries
6532 # on systems that don't support them.
6533 lt_prog_compiler_can_build_shared=no
6534 enable_shared=no
6535 ;;
6536
6537 sysv4*MP*)
6538 if test -d /usr/nec; then
6539 lt_prog_compiler_pic=-Kconform_pic
6540 fi
6541 ;;
6542
6543 hpux*)
6544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6545 # not for PA HP-UX.
6546 case $host_cpu in
6547 hppa*64*|ia64*)
6548 # +Z the default
6549 ;;
6550 *)
6551 lt_prog_compiler_pic='-fPIC'
6552 ;;
6553 esac
6554 ;;
6555
6556 *)
6557 lt_prog_compiler_pic='-fPIC'
6558 ;;
6559 esac
6560 else
6561 # PORTME Check for flag to pass linker flags through the system compiler.
6562 case $host_os in
6563 aix*)
6564 lt_prog_compiler_wl='-Wl,'
6565 if test "$host_cpu" = ia64; then
6566 # AIX 5 now supports IA64 processor
6567 lt_prog_compiler_static='-Bstatic'
6568 else
6569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6570 fi
6571 ;;
6572 darwin*)
6573 # PIC is the default on this platform
6574 # Common symbols not allowed in MH_DYLIB files
6575 case $cc_basename in
6576 xlc*)
6577 lt_prog_compiler_pic='-qnocommon'
6578 lt_prog_compiler_wl='-Wl,'
6579 ;;
6580 esac
6581 ;;
6582
6583 mingw* | pw32* | os2*)
6584 # This hack is so that the source file can tell whether it is being
6585 # built for inclusion in a dll (and should export symbols for example).
6586 lt_prog_compiler_pic='-DDLL_EXPORT'
6587 ;;
6588
6589 hpux9* | hpux10* | hpux11*)
6590 lt_prog_compiler_wl='-Wl,'
6591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6592 # not for PA HP-UX.
6593 case $host_cpu in
6594 hppa*64*|ia64*)
6595 # +Z the default
6596 ;;
6597 *)
6598 lt_prog_compiler_pic='+Z'
6599 ;;
6600 esac
6601 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6602 lt_prog_compiler_static='${wl}-a ${wl}archive'
6603 ;;
6604
6605 irix5* | irix6* | nonstopux*)
6606 lt_prog_compiler_wl='-Wl,'
6607 # PIC (with -KPIC) is the default.
6608 lt_prog_compiler_static='-non_shared'
6609 ;;
6610
6611 newsos6)
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6614 ;;
6615
6616 linux*)
6617 case $cc_basename in
6618 icc* | ecc*)
6619 lt_prog_compiler_wl='-Wl,'
6620 lt_prog_compiler_pic='-KPIC'
6621 lt_prog_compiler_static='-static'
6622 ;;
6623 pgcc* | pgf77* | pgf90* | pgf95*)
6624 # Portland Group compilers (*not* the Pentium gcc compiler,
6625 # which looks to be a dead project)
6626 lt_prog_compiler_wl='-Wl,'
6627 lt_prog_compiler_pic='-fpic'
6628 lt_prog_compiler_static='-Bstatic'
6629 ;;
6630 ccc*)
6631 lt_prog_compiler_wl='-Wl,'
6632 # All Alpha code is PIC.
6633 lt_prog_compiler_static='-non_shared'
6634 ;;
6635 esac
6636 ;;
6637
6638 osf3* | osf4* | osf5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 # All OSF/1 code is PIC.
6641 lt_prog_compiler_static='-non_shared'
6642 ;;
6643
6644 solaris*)
6645 lt_prog_compiler_pic='-KPIC'
6646 lt_prog_compiler_static='-Bstatic'
6647 case $cc_basename in
6648 f77* | f90* | f95*)
6649 lt_prog_compiler_wl='-Qoption ld ';;
6650 *)
6651 lt_prog_compiler_wl='-Wl,';;
6652 esac
6653 ;;
6654
6655 sunos4*)
6656 lt_prog_compiler_wl='-Qoption ld '
6657 lt_prog_compiler_pic='-PIC'
6658 lt_prog_compiler_static='-Bstatic'
6659 ;;
6660
6661 sysv4 | sysv4.2uw2* | sysv4.3*)
6662 lt_prog_compiler_wl='-Wl,'
6663 lt_prog_compiler_pic='-KPIC'
6664 lt_prog_compiler_static='-Bstatic'
6665 ;;
6666
6667 sysv4*MP*)
6668 if test -d /usr/nec ;then
6669 lt_prog_compiler_pic='-Kconform_pic'
6670 lt_prog_compiler_static='-Bstatic'
6671 fi
6672 ;;
6673
6674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6675 lt_prog_compiler_wl='-Wl,'
6676 lt_prog_compiler_pic='-KPIC'
6677 lt_prog_compiler_static='-Bstatic'
6678 ;;
6679
6680 unicos*)
6681 lt_prog_compiler_wl='-Wl,'
6682 lt_prog_compiler_can_build_shared=no
6683 ;;
6684
6685 uts4*)
6686 lt_prog_compiler_pic='-pic'
6687 lt_prog_compiler_static='-Bstatic'
6688 ;;
6689
6690 *)
6691 lt_prog_compiler_can_build_shared=no
6692 ;;
6693 esac
6694 fi
6695
6696echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6697echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6698
6699#
6700# Check to make sure the PIC flag actually works.
6701#
6702if test -n "$lt_prog_compiler_pic"; then
6703
6704echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6705echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6706if test "${lt_prog_compiler_pic_works+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 lt_prog_compiler_pic_works=no
6710 ac_outfile=conftest.$ac_objext
6711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6713 # Insert the option either (1) after the last *FLAGS variable, or
6714 # (2) before a word containing "conftest.", or (3) at the end.
6715 # Note that $ac_compile itself does not contain backslashes and begins
6716 # with a dollar sign (not a hyphen), so the echo should work correctly.
6717 # The option is referenced via a variable to avoid confusing sed.
6718 lt_compile=`echo "$ac_compile" | $SED \
6719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6721 -e 's:$: $lt_compiler_flag:'`
6722 (eval echo "\"\$as_me:6722: $lt_compile\"" >&5)
6723 (eval "$lt_compile" 2>conftest.err)
6724 ac_status=$?
6725 cat conftest.err >&5
6726 echo "$as_me:6726: \$? = $ac_status" >&5
6727 if (exit $ac_status) && test -s "$ac_outfile"; then
6728 # The compiler can only warn and ignore the option if not recognized
6729 # So say no if there are warnings other than the usual output.
6730 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6733 lt_prog_compiler_pic_works=yes
6734 fi
6735 fi
6736 $rm conftest*
6737
6738fi
6739echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6740echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6741
6742if test x"$lt_prog_compiler_pic_works" = xyes; then
6743 case $lt_prog_compiler_pic in
6744 "" | " "*) ;;
6745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6746 esac
6747else
6748 lt_prog_compiler_pic=
6749 lt_prog_compiler_can_build_shared=no
6750fi
6751
6752fi
6753case $host_os in
6754 # For platforms which do not support PIC, -DPIC is meaningless:
6755 *djgpp*)
6756 lt_prog_compiler_pic=
6757 ;;
6758 *)
6759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6760 ;;
6761esac
6762
6763#
6764# Check to make sure the static flag actually works.
6765#
6766wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6767echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6768echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6769if test "${lt_prog_compiler_static_works+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 lt_prog_compiler_static_works=no
6773 save_LDFLAGS="$LDFLAGS"
6774 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6775 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6776 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6777 # The linker can only warn and ignore the option if not recognized
6778 # So say no if there are warnings
6779 if test -s conftest.err; then
6780 # Append any errors to the config.log.
6781 cat conftest.err 1>&5
6782 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6784 if diff conftest.exp conftest.er2 >/dev/null; then
6785 lt_prog_compiler_static_works=yes
6786 fi
6787 else
6788 lt_prog_compiler_static_works=yes
6789 fi
6790 fi
6791 $rm conftest*
6792 LDFLAGS="$save_LDFLAGS"
6793
6794fi
6795echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6796echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6797
6798if test x"$lt_prog_compiler_static_works" = xyes; then
6799 :
6800else
6801 lt_prog_compiler_static=
6802fi
6803
6804
6805echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6806echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6807if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810 lt_cv_prog_compiler_c_o=no
6811 $rm -r conftest 2>/dev/null
6812 mkdir conftest
6813 cd conftest
6814 mkdir out
6815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6816
6817 lt_compiler_flag="-o out/conftest2.$ac_objext"
6818 # Insert the option either (1) after the last *FLAGS variable, or
6819 # (2) before a word containing "conftest.", or (3) at the end.
6820 # Note that $ac_compile itself does not contain backslashes and begins
6821 # with a dollar sign (not a hyphen), so the echo should work correctly.
6822 lt_compile=`echo "$ac_compile" | $SED \
6823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6825 -e 's:$: $lt_compiler_flag:'`
6826 (eval echo "\"\$as_me:6826: $lt_compile\"" >&5)
6827 (eval "$lt_compile" 2>out/conftest.err)
6828 ac_status=$?
6829 cat out/conftest.err >&5
6830 echo "$as_me:6830: \$? = $ac_status" >&5
6831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6832 then
6833 # The compiler can only warn and ignore the option if not recognized
6834 # So say no if there are warnings
6835 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6838 lt_cv_prog_compiler_c_o=yes
6839 fi
6840 fi
6841 chmod u+w . 2>&5
6842 $rm conftest*
6843 # SGI C++ compiler will create directory out/ii_files/ for
6844 # template instantiation
6845 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6846 $rm out/* && rmdir out
6847 cd ..
6848 rmdir conftest
6849 $rm conftest*
6850
6851fi
6852echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6853echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6854
6855
6856hard_links="nottested"
6857if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6858 # do not overwrite the value of need_locks provided by the user
6859 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6860echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6861 hard_links=yes
6862 $rm conftest*
6863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6864 touch conftest.a
6865 ln conftest.a conftest.b 2>&5 || hard_links=no
6866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6867 echo "$as_me:$LINENO: result: $hard_links" >&5
6868echo "${ECHO_T}$hard_links" >&6
6869 if test "$hard_links" = no; then
6870 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6871echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6872 need_locks=warn
6873 fi
6874else
6875 need_locks=no
6876fi
6877
6878echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6879echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6880
6881 runpath_var=
6882 allow_undefined_flag=
6883 enable_shared_with_static_runtimes=no
6884 archive_cmds=
6885 archive_expsym_cmds=
6886 old_archive_From_new_cmds=
6887 old_archive_from_expsyms_cmds=
6888 export_dynamic_flag_spec=
6889 whole_archive_flag_spec=
6890 thread_safe_flag_spec=
6891 hardcode_libdir_flag_spec=
6892 hardcode_libdir_flag_spec_ld=
6893 hardcode_libdir_separator=
6894 hardcode_direct=no
6895 hardcode_minus_L=no
6896 hardcode_shlibpath_var=unsupported
6897 link_all_deplibs=unknown
6898 hardcode_automatic=no
6899 module_cmds=
6900 module_expsym_cmds=
6901 always_export_symbols=no
6902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6903 # include_expsyms should be a list of space-separated symbols to be *always*
6904 # included in the symbol list
6905 include_expsyms=
6906 # exclude_expsyms can be an extended regexp of symbols to exclude
6907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6909 # as well as any symbol that contains `d'.
6910 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6912 # platforms (ab)use it in PIC code, but their linkers get confused if
6913 # the symbol is explicitly referenced. Since portable code cannot
6914 # rely on this symbol name, it's probably fine to never include it in
6915 # preloaded symbol tables.
6916 extract_expsyms_cmds=
6917 # Just being paranoid about ensuring that cc_basename is set.
6918 for cc_temp in $compiler""; do
6919 case $cc_temp in
6920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6922 \-*) ;;
6923 *) break;;
6924 esac
6925done
6926cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6927
6928 case $host_os in
6929 cygwin* | mingw* | pw32*)
6930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6931 # When not using gcc, we currently assume that we are using
6932 # Microsoft Visual C++.
6933 if test "$GCC" != yes; then
6934 with_gnu_ld=no
6935 fi
6936 ;;
6937 interix*)
6938 # we just hope/assume this is gcc and not c89 (= MSVC++)
6939 with_gnu_ld=yes
6940 ;;
6941 openbsd*)
6942 with_gnu_ld=no
6943 ;;
6944 esac
6945
6946 ld_shlibs=yes
6947 if test "$with_gnu_ld" = yes; then
6948 # If archive_cmds runs LD, not CC, wlarc should be empty
6949 wlarc='${wl}'
6950
6951 # Set some defaults for GNU ld with shared library support. These
6952 # are reset later if shared libraries are not supported. Putting them
6953 # here allows them to be overridden if necessary.
6954 runpath_var=LD_RUN_PATH
6955 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6956 export_dynamic_flag_spec='${wl}--export-dynamic'
6957 # ancient GNU ld didn't support --whole-archive et. al.
6958 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6959 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6960 else
6961 whole_archive_flag_spec=
6962 fi
6963 supports_anon_versioning=no
6964 case `$LD -v 2>/dev/null` in
6965 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6966 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6967 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6968 *\ 2.11.*) ;; # other 2.11 versions
6969 *) supports_anon_versioning=yes ;;
6970 esac
6971
6972 # See if GNU ld supports shared libraries.
6973 case $host_os in
6974 aix3* | aix4* | aix5*)
6975 # On AIX/PPC, the GNU linker is very broken
6976 if test "$host_cpu" != ia64; then
6977 ld_shlibs=no
6978 cat <<EOF 1>&2
6979
6980*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6981*** to be unable to reliably create shared libraries on AIX.
6982*** Therefore, libtool is disabling shared libraries support. If you
6983*** really care for shared libraries, you may want to modify your PATH
6984*** so that a non-GNU linker is found, and then restart.
6985
6986EOF
6987 fi
6988 ;;
6989
6990 amigaos*)
6991 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)'
6992 hardcode_libdir_flag_spec='-L$libdir'
6993 hardcode_minus_L=yes
6994
6995 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6996 # that the semantics of dynamic libraries on AmigaOS, at least up
6997 # to version 4, is to share data among multiple programs linked
6998 # with the same dynamic library. Since this doesn't match the
6999 # behavior of shared libraries on other platforms, we can't use
7000 # them.
7001 ld_shlibs=no
7002 ;;
7003
7004 beos*)
7005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7006 allow_undefined_flag=unsupported
7007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7008 # support --undefined. This deserves some investigation. FIXME
7009 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7010 else
7011 ld_shlibs=no
7012 fi
7013 ;;
7014
7015 cygwin* | mingw* | pw32*)
7016 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7017 # as there is no search path for DLLs.
7018 hardcode_libdir_flag_spec='-L$libdir'
7019 allow_undefined_flag=unsupported
7020 always_export_symbols=no
7021 enable_shared_with_static_runtimes=yes
7022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7023
7024 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7026 # If the export-symbols file already is a .def file (1st line
7027 # is EXPORTS), use it as is; otherwise, prepend...
7028 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7029 cp $export_symbols $output_objdir/$soname.def;
7030 else
7031 echo EXPORTS > $output_objdir/$soname.def;
7032 cat $export_symbols >> $output_objdir/$soname.def;
7033 fi~
7034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7035 else
7036 ld_shlibs=no
7037 fi
7038 ;;
7039
7040 interix3*)
7041 hardcode_direct=no
7042 hardcode_shlibpath_var=no
7043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7044 export_dynamic_flag_spec='${wl}-E'
7045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7046 # Instead, shared libraries are loaded at an image base (0x10000000 by
7047 # default) and relocated if they conflict, which is a slow very memory
7048 # consuming and fragmenting process. To avoid this, we pick a random,
7049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7052 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'
7053 ;;
7054
7055 linux*)
7056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7057 tmp_addflag=
7058 case $cc_basename,$host_cpu in
7059 pgcc*) # Portland Group C compiler
7060 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'
7061 tmp_addflag=' $pic_flag'
7062 ;;
7063 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7064 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'
7065 tmp_addflag=' $pic_flag -Mnomain' ;;
7066 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7067 tmp_addflag=' -i_dynamic' ;;
7068 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7069 tmp_addflag=' -i_dynamic -nofor_main' ;;
7070 ifc* | ifort*) # Intel Fortran compiler
7071 tmp_addflag=' -nofor_main' ;;
7072 esac
7073 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7074
7075 if test $supports_anon_versioning = yes; then
7076 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7078 $echo "local: *; };" >> $output_objdir/$libname.ver~
7079 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7080 fi
7081 else
7082 ld_shlibs=no
7083 fi
7084 ;;
7085
7086 netbsd*)
7087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7088 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7089 wlarc=
7090 else
7091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7093 fi
7094 ;;
7095
7096 solaris*)
7097 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7098 ld_shlibs=no
7099 cat <<EOF 1>&2
7100
7101*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7102*** create shared libraries on Solaris systems. Therefore, libtool
7103*** is disabling shared libraries support. We urge you to upgrade GNU
7104*** binutils to release 2.9.1 or newer. Another option is to modify
7105*** your PATH or compiler configuration so that the native linker is
7106*** used, and then restart.
7107
7108EOF
7109 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7112 else
7113 ld_shlibs=no
7114 fi
7115 ;;
7116
7117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7118 case `$LD -v 2>&1` in
7119 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7120 ld_shlibs=no
7121 cat <<_LT_EOF 1>&2
7122
7123*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7124*** reliably create shared libraries on SCO systems. Therefore, libtool
7125*** is disabling shared libraries support. We urge you to upgrade GNU
7126*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7127*** your PATH or compiler configuration so that the native linker is
7128*** used, and then restart.
7129
7130_LT_EOF
7131 ;;
7132 *)
7133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7134 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7137 else
7138 ld_shlibs=no
7139 fi
7140 ;;
7141 esac
7142 ;;
7143
7144 sunos4*)
7145 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7146 wlarc=
7147 hardcode_direct=yes
7148 hardcode_shlibpath_var=no
7149 ;;
7150
7151 *)
7152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7155 else
7156 ld_shlibs=no
7157 fi
7158 ;;
7159 esac
7160
7161 if test "$ld_shlibs" = no; then
7162 runpath_var=
7163 hardcode_libdir_flag_spec=
7164 export_dynamic_flag_spec=
7165 whole_archive_flag_spec=
7166 fi
7167 else
7168 # PORTME fill in a description of your system's linker (not GNU ld)
7169 case $host_os in
7170 aix3*)
7171 allow_undefined_flag=unsupported
7172 always_export_symbols=yes
7173 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'
7174 # Note: this linker hardcodes the directories in LIBPATH if there
7175 # are no directories specified by -L.
7176 hardcode_minus_L=yes
7177 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7178 # Neither direct hardcoding nor static linking is supported with a
7179 # broken collect2.
7180 hardcode_direct=unsupported
7181 fi
7182 ;;
7183
7184 aix4* | aix5*)
7185 if test "$host_cpu" = ia64; then
7186 # On IA64, the linker does run time linking by default, so we don't
7187 # have to do anything special.
7188 aix_use_runtimelinking=no
7189 exp_sym_flag='-Bexport'
7190 no_entry_flag=""
7191 else
7192 # If we're using GNU nm, then we don't want the "-C" option.
7193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7194 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7195 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'
7196 else
7197 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'
7198 fi
7199 aix_use_runtimelinking=no
7200
7201 # Test if we are trying to use run time linking or normal
7202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7203 # need to do runtime linking.
7204 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7205 for ld_flag in $LDFLAGS; do
7206 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7207 aix_use_runtimelinking=yes
7208 break
7209 fi
7210 done
7211 ;;
7212 esac
7213
7214 exp_sym_flag='-bexport'
7215 no_entry_flag='-bnoentry'
7216 fi
7217
7218 # When large executables or shared objects are built, AIX ld can
7219 # have problems creating the table of contents. If linking a library
7220 # or program results in "error TOC overflow" add -mminimal-toc to
7221 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7222 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7223
7224 archive_cmds=''
7225 hardcode_direct=yes
7226 hardcode_libdir_separator=':'
7227 link_all_deplibs=yes
7228
7229 if test "$GCC" = yes; then
7230 case $host_os in aix4.[012]|aix4.[012].*)
7231 # We only want to do this on AIX 4.2 and lower, the check
7232 # below for broken collect2 doesn't work under 4.3+
7233 collect2name=`${CC} -print-prog-name=collect2`
7234 if test -f "$collect2name" && \
7235 strings "$collect2name" | grep resolve_lib_name >/dev/null
7236 then
7237 # We have reworked collect2
7238 hardcode_direct=yes
7239 else
7240 # We have old collect2
7241 hardcode_direct=unsupported
7242 # It fails to find uninstalled libraries when the uninstalled
7243 # path is not listed in the libpath. Setting hardcode_minus_L
7244 # to unsupported forces relinking
7245 hardcode_minus_L=yes
7246 hardcode_libdir_flag_spec='-L$libdir'
7247 hardcode_libdir_separator=
7248 fi
7249 ;;
7250 esac
7251 shared_flag='-shared'
7252 if test "$aix_use_runtimelinking" = yes; then
7253 shared_flag="$shared_flag "'${wl}-G'
7254 fi
7255 else
7256 # not using gcc
7257 if test "$host_cpu" = ia64; then
7258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7259 # chokes on -Wl,-G. The following line is correct:
7260 shared_flag='-G'
7261 else
7262 if test "$aix_use_runtimelinking" = yes; then
7263 shared_flag='${wl}-G'
7264 else
7265 shared_flag='${wl}-bM:SRE'
7266 fi
7267 fi
7268 fi
7269
7270 # It seems that -bexpall does not export symbols beginning with
7271 # underscore (_), so it is better to generate a list of symbols to export.
7272 always_export_symbols=yes
7273 if test "$aix_use_runtimelinking" = yes; then
7274 # Warning - without using the other runtime loading flags (-brtl),
7275 # -berok will link without error, but may produce a broken library.
7276 allow_undefined_flag='-berok'
7277 # Determine the default libpath from the value encoded in an empty executable.
7278 cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284
7285int
7286main ()
7287{
7288
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293rm -f conftest.$ac_objext conftest$ac_exeext
7294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295 (eval $ac_link) 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -z "$ac_c_werror_flag"
7303 || test ! -s conftest.err'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; } &&
7309 { ac_try='test -s conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315
7316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7317}'`
7318# Check for a 64-bit object if we didn't find anything.
7319if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7320}'`; fi
7321else
7322 echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325fi
7326rm -f conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7329
7330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7331 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7332 else
7333 if test "$host_cpu" = ia64; then
7334 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7335 allow_undefined_flag="-z nodefs"
7336 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"
7337 else
7338 # Determine the default libpath from the value encoded in an empty executable.
7339 cat >conftest.$ac_ext <<_ACEOF
7340/* confdefs.h. */
7341_ACEOF
7342cat confdefs.h >>conftest.$ac_ext
7343cat >>conftest.$ac_ext <<_ACEOF
7344/* end confdefs.h. */
7345
7346int
7347main ()
7348{
7349
7350 ;
7351 return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext conftest$ac_exeext
7355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7356 (eval $ac_link) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag"
7364 || test ! -s conftest.err'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; } &&
7370 { ac_try='test -s conftest$ac_exeext'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376
7377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7378}'`
7379# Check for a 64-bit object if we didn't find anything.
7380if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7381}'`; fi
7382else
7383 echo "$as_me: failed program was:" >&5
7384sed 's/^/| /' conftest.$ac_ext >&5
7385
7386fi
7387rm -f conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7390
7391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7392 # Warning - without using the other run time loading flags,
7393 # -berok will link without error, but may produce a broken library.
7394 no_undefined_flag=' ${wl}-bernotok'
7395 allow_undefined_flag=' ${wl}-berok'
7396 # Exported symbols can be pulled into shared objects from archives
7397 whole_archive_flag_spec='$convenience'
7398 archive_cmds_need_lc=yes
7399 # This is similar to how AIX traditionally builds its shared libraries.
7400 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'
7401 fi
7402 fi
7403 ;;
7404
7405 amigaos*)
7406 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)'
7407 hardcode_libdir_flag_spec='-L$libdir'
7408 hardcode_minus_L=yes
7409 # see comment about different semantics on the GNU ld section
7410 ld_shlibs=no
7411 ;;
7412
7413 bsdi[45]*)
7414 export_dynamic_flag_spec=-rdynamic
7415 ;;
7416
7417 cygwin* | mingw* | pw32*)
7418 # When not using gcc, we currently assume that we are using
7419 # Microsoft Visual C++.
7420 # hardcode_libdir_flag_spec is actually meaningless, as there is
7421 # no search path for DLLs.
7422 hardcode_libdir_flag_spec=' '
7423 allow_undefined_flag=unsupported
7424 # Tell ltmain to make .lib files, not .a files.
7425 libext=lib
7426 # Tell ltmain to make .dll files, not .so files.
7427 shrext_cmds=".dll"
7428 # FIXME: Setting linknames here is a bad hack.
7429 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7430 # The linker will automatically build a .lib file if we build a DLL.
7431 old_archive_From_new_cmds='true'
7432 # FIXME: Should let the user specify the lib program.
7433 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7434 fix_srcfile_path='`cygpath -w "$srcfile"`'
7435 enable_shared_with_static_runtimes=yes
7436 ;;
7437
7438 darwin* | rhapsody*)
7439 case $host_os in
7440 rhapsody* | darwin1.[012])
7441 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7442 ;;
7443 *) # Darwin 1.3 on
7444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7445 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7446 else
7447 case ${MACOSX_DEPLOYMENT_TARGET} in
7448 10.[012])
7449 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7450 ;;
7451 10.*)
7452 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7453 ;;
7454 esac
7455 fi
7456 ;;
7457 esac
7458 archive_cmds_need_lc=no
7459 hardcode_direct=no
7460 hardcode_automatic=yes
7461 hardcode_shlibpath_var=unsupported
7462 whole_archive_flag_spec=''
7463 link_all_deplibs=yes
7464 if test "$GCC" = yes ; then
7465 output_verbose_link_cmd='echo'
7466 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7467 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7469 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7470 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7471 else
7472 case $cc_basename in
7473 xlc*)
7474 output_verbose_link_cmd='echo'
7475 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7476 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7478 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7479 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7480 ;;
7481 *)
7482 ld_shlibs=no
7483 ;;
7484 esac
7485 fi
7486 ;;
7487
7488 dgux*)
7489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7490 hardcode_libdir_flag_spec='-L$libdir'
7491 hardcode_shlibpath_var=no
7492 ;;
7493
7494 freebsd1*)
7495 ld_shlibs=no
7496 ;;
7497
7498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7499 # support. Future versions do this automatically, but an explicit c++rt0.o
7500 # does not break anything, and helps significantly (at the cost of a little
7501 # extra space).
7502 freebsd2.2*)
7503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7504 hardcode_libdir_flag_spec='-R$libdir'
7505 hardcode_direct=yes
7506 hardcode_shlibpath_var=no
7507 ;;
7508
7509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7510 freebsd2*)
7511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7512 hardcode_direct=yes
7513 hardcode_minus_L=yes
7514 hardcode_shlibpath_var=no
7515 ;;
7516
7517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7518 freebsd* | kfreebsd*-gnu | dragonfly*)
7519 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7520 hardcode_libdir_flag_spec='-R$libdir'
7521 hardcode_direct=yes
7522 hardcode_shlibpath_var=no
7523 ;;
7524
7525 hpux9*)
7526 if test "$GCC" = yes; then
7527 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'
7528 else
7529 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'
7530 fi
7531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7532 hardcode_libdir_separator=:
7533 hardcode_direct=yes
7534
7535 # hardcode_minus_L: Not really in the search PATH,
7536 # but as the default location of the library.
7537 hardcode_minus_L=yes
7538 export_dynamic_flag_spec='${wl}-E'
7539 ;;
7540
7541 hpux10*)
7542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7544 else
7545 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7546 fi
7547 if test "$with_gnu_ld" = no; then
7548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7549 hardcode_libdir_separator=:
7550
7551 hardcode_direct=yes
7552 export_dynamic_flag_spec='${wl}-E'
7553
7554 # hardcode_minus_L: Not really in the search PATH,
7555 # but as the default location of the library.
7556 hardcode_minus_L=yes
7557 fi
7558 ;;
7559
7560 hpux11*)
7561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7562 case $host_cpu in
7563 hppa*64*)
7564 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7565 ;;
7566 ia64*)
7567 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7568 ;;
7569 *)
7570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7571 ;;
7572 esac
7573 else
7574 case $host_cpu in
7575 hppa*64*)
7576 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7577 ;;
7578 ia64*)
7579 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7580 ;;
7581 *)
7582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7583 ;;
7584 esac
7585 fi
7586 if test "$with_gnu_ld" = no; then
7587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7588 hardcode_libdir_separator=:
7589
7590 case $host_cpu in
7591 hppa*64*|ia64*)
7592 hardcode_libdir_flag_spec_ld='+b $libdir'
7593 hardcode_direct=no
7594 hardcode_shlibpath_var=no
7595 ;;
7596 *)
7597 hardcode_direct=yes
7598 export_dynamic_flag_spec='${wl}-E'
7599
7600 # hardcode_minus_L: Not really in the search PATH,
7601 # but as the default location of the library.
7602 hardcode_minus_L=yes
7603 ;;
7604 esac
7605 fi
7606 ;;
7607
7608 irix5* | irix6* | nonstopux*)
7609 if test "$GCC" = yes; then
7610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7611 else
7612 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7613 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7614 fi
7615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7616 hardcode_libdir_separator=:
7617 link_all_deplibs=yes
7618 ;;
7619
7620 netbsd*)
7621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7623 else
7624 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7625 fi
7626 hardcode_libdir_flag_spec='-R$libdir'
7627 hardcode_direct=yes
7628 hardcode_shlibpath_var=no
7629 ;;
7630
7631 newsos6)
7632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7633 hardcode_direct=yes
7634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7635 hardcode_libdir_separator=:
7636 hardcode_shlibpath_var=no
7637 ;;
7638
7639 openbsd*)
7640 hardcode_direct=yes
7641 hardcode_shlibpath_var=no
7642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7643 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7644 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7645 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7646 export_dynamic_flag_spec='${wl}-E'
7647 else
7648 case $host_os in
7649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7651 hardcode_libdir_flag_spec='-R$libdir'
7652 ;;
7653 *)
7654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7656 ;;
7657 esac
7658 fi
7659 ;;
7660
7661 os2*)
7662 hardcode_libdir_flag_spec='-L$libdir'
7663 hardcode_minus_L=yes
7664 allow_undefined_flag=unsupported
7665 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'
7666 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7667 ;;
7668
7669 osf3*)
7670 if test "$GCC" = yes; then
7671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7672 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7673 else
7674 allow_undefined_flag=' -expect_unresolved \*'
7675 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7676 fi
7677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7678 hardcode_libdir_separator=:
7679 ;;
7680
7681 osf4* | osf5*) # as osf3* with the addition of -msym flag
7682 if test "$GCC" = yes; then
7683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7684 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7686 else
7687 allow_undefined_flag=' -expect_unresolved \*'
7688 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7689 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7690 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7691
7692 # Both c and cxx compiler support -rpath directly
7693 hardcode_libdir_flag_spec='-rpath $libdir'
7694 fi
7695 hardcode_libdir_separator=:
7696 ;;
7697
7698 solaris*)
7699 no_undefined_flag=' -z text'
7700 if test "$GCC" = yes; then
7701 wlarc='${wl}'
7702 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7704 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7705 else
7706 wlarc=''
7707 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7708 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7710 fi
7711 hardcode_libdir_flag_spec='-R$libdir'
7712 hardcode_shlibpath_var=no
7713 case $host_os in
7714 solaris2.[0-5] | solaris2.[0-5].*) ;;
7715 *)
7716 # The compiler driver will combine linker options so we
7717 # cannot just pass the convience library names through
7718 # without $wl, iff we do not link with $LD.
7719 # Luckily, gcc supports the same syntax we need for Sun Studio.
7720 # Supported since Solaris 2.6 (maybe 2.5.1?)
7721 case $wlarc in
7722 '')
7723 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7724 *)
7725 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7726 esac ;;
7727 esac
7728 link_all_deplibs=yes
7729 ;;
7730
7731 sunos4*)
7732 if test "x$host_vendor" = xsequent; then
7733 # Use $CC to link under sequent, because it throws in some extra .o
7734 # files that make .init and .fini sections work.
7735 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7736 else
7737 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7738 fi
7739 hardcode_libdir_flag_spec='-L$libdir'
7740 hardcode_direct=yes
7741 hardcode_minus_L=yes
7742 hardcode_shlibpath_var=no
7743 ;;
7744
7745 sysv4)
7746 case $host_vendor in
7747 sni)
7748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7749 hardcode_direct=yes # is this really true???
7750 ;;
7751 siemens)
7752 ## LD is ld it makes a PLAMLIB
7753 ## CC just makes a GrossModule.
7754 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7755 reload_cmds='$CC -r -o $output$reload_objs'
7756 hardcode_direct=no
7757 ;;
7758 motorola)
7759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7760 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7761 ;;
7762 esac
7763 runpath_var='LD_RUN_PATH'
7764 hardcode_shlibpath_var=no
7765 ;;
7766
7767 sysv4.3*)
7768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7769 hardcode_shlibpath_var=no
7770 export_dynamic_flag_spec='-Bexport'
7771 ;;
7772
7773 sysv4*MP*)
7774 if test -d /usr/nec; then
7775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7776 hardcode_shlibpath_var=no
7777 runpath_var=LD_RUN_PATH
7778 hardcode_runpath_var=yes
7779 ld_shlibs=yes
7780 fi
7781 ;;
7782
7783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7784 no_undefined_flag='${wl}-z,text'
7785 archive_cmds_need_lc=no
7786 hardcode_shlibpath_var=no
7787 runpath_var='LD_RUN_PATH'
7788
7789 if test "$GCC" = yes; then
7790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7792 else
7793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7795 fi
7796 ;;
7797
7798 sysv5* | sco3.2v5* | sco5v6*)
7799 # Note: We can NOT use -z defs as we might desire, because we do not
7800 # link with -lc, and that would cause any symbols used from libc to
7801 # always be unresolved, which means just about no library would
7802 # ever link correctly. If we're not using GNU ld we use -z text
7803 # though, which does catch some bad symbols but isn't as heavy-handed
7804 # as -z defs.
7805 no_undefined_flag='${wl}-z,text'
7806 allow_undefined_flag='${wl}-z,nodefs'
7807 archive_cmds_need_lc=no
7808 hardcode_shlibpath_var=no
7809 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7810 hardcode_libdir_separator=':'
7811 link_all_deplibs=yes
7812 export_dynamic_flag_spec='${wl}-Bexport'
7813 runpath_var='LD_RUN_PATH'
7814
7815 if test "$GCC" = yes; then
7816 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818 else
7819 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7821 fi
7822 ;;
7823
7824 uts4*)
7825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7826 hardcode_libdir_flag_spec='-L$libdir'
7827 hardcode_shlibpath_var=no
7828 ;;
7829
7830 *)
7831 ld_shlibs=no
7832 ;;
7833 esac
7834 fi
7835
7836echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7837echo "${ECHO_T}$ld_shlibs" >&6
7838test "$ld_shlibs" = no && can_build_shared=no
7839
7840#
7841# Do we need to explicitly link libc?
7842#
7843case "x$archive_cmds_need_lc" in
7844x|xyes)
7845 # Assume -lc should be added
7846 archive_cmds_need_lc=yes
7847
7848 if test "$enable_shared" = yes && test "$GCC" = yes; then
7849 case $archive_cmds in
7850 *'~'*)
7851 # FIXME: we may have to deal with multi-command sequences.
7852 ;;
7853 '$CC '*)
7854 # Test whether the compiler implicitly links with -lc since on some
7855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7856 # to ld, don't add -lc before -lgcc.
7857 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7858echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7859 $rm conftest*
7860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7861
7862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7863 (eval $ac_compile) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } 2>conftest.err; then
7867 soname=conftest
7868 lib=conftest
7869 libobjs=conftest.$ac_objext
7870 deplibs=
7871 wl=$lt_prog_compiler_wl
7872 pic_flag=$lt_prog_compiler_pic
7873 compiler_flags=-v
7874 linker_flags=-v
7875 verstring=
7876 output_objdir=.
7877 libname=conftest
7878 lt_save_allow_undefined_flag=$allow_undefined_flag
7879 allow_undefined_flag=
7880 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7881 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }
7885 then
7886 archive_cmds_need_lc=no
7887 else
7888 archive_cmds_need_lc=yes
7889 fi
7890 allow_undefined_flag=$lt_save_allow_undefined_flag
7891 else
7892 cat conftest.err 1>&5
7893 fi
7894 $rm conftest*
7895 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7896echo "${ECHO_T}$archive_cmds_need_lc" >&6
7897 ;;
7898 esac
7899 fi
7900 ;;
7901esac
7902
7903echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7904echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7905library_names_spec=
7906libname_spec='lib$name'
7907soname_spec=
7908shrext_cmds=".so"
7909postinstall_cmds=
7910postuninstall_cmds=
7911finish_cmds=
7912finish_eval=
7913shlibpath_var=
7914shlibpath_overrides_runpath=unknown
7915version_type=none
7916dynamic_linker="$host_os ld.so"
7917sys_lib_dlsearch_path_spec="/lib /usr/lib"
7918if test "$GCC" = yes; then
7919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7920 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7921 # if the path contains ";" then we assume it to be the separator
7922 # otherwise default to the standard path separator (i.e. ":") - it is
7923 # assumed that no part of a normal pathname contains ";" but that should
7924 # okay in the real world where ";" in dirpaths is itself problematic.
7925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7926 else
7927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7928 fi
7929else
7930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7931fi
7932need_lib_prefix=unknown
7933hardcode_into_libs=no
7934
7935# when you set need_version to no, make sure it does not cause -set_version
7936# flags to be left without arguments
7937need_version=unknown
7938
7939case $host_os in
7940aix3*)
7941 version_type=linux
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7943 shlibpath_var=LIBPATH
7944
7945 # AIX 3 has no versioning support, so we append a major version to the name.
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 ;;
7948
7949aix4* | aix5*)
7950 version_type=linux
7951 need_lib_prefix=no
7952 need_version=no
7953 hardcode_into_libs=yes
7954 if test "$host_cpu" = ia64; then
7955 # AIX 5 supports IA64
7956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 else
7959 # With GCC up to 2.95.x, collect2 would create an import file
7960 # for dependence libraries. The import file would start with
7961 # the line `#! .'. This would cause the generated library to
7962 # depend on `.', always an invalid library. This was fixed in
7963 # development snapshots of GCC prior to 3.0.
7964 case $host_os in
7965 aix4 | aix4.[01] | aix4.[01].*)
7966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7967 echo ' yes '
7968 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7969 :
7970 else
7971 can_build_shared=no
7972 fi
7973 ;;
7974 esac
7975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7976 # soname into executable. Probably we can add versioning support to
7977 # collect2, so additional links can be useful in future.
7978 if test "$aix_use_runtimelinking" = yes; then
7979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7980 # instead of lib<name>.a to let people know that these are not
7981 # typical AIX shared libraries.
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983 else
7984 # We preserve .a as extension for shared libraries through AIX4.2
7985 # and later when we are not doing run time linking.
7986 library_names_spec='${libname}${release}.a $libname.a'
7987 soname_spec='${libname}${release}${shared_ext}$major'
7988 fi
7989 shlibpath_var=LIBPATH
7990 fi
7991 ;;
7992
7993amigaos*)
7994 library_names_spec='$libname.ixlibrary $libname.a'
7995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7996 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'
7997 ;;
7998
7999beos*)
8000 library_names_spec='${libname}${shared_ext}'
8001 dynamic_linker="$host_os ld.so"
8002 shlibpath_var=LIBRARY_PATH
8003 ;;
8004
8005bsdi[45]*)
8006 version_type=linux
8007 need_version=no
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8009 soname_spec='${libname}${release}${shared_ext}$major'
8010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8014 # the default ld.so.conf also contains /usr/contrib/lib and
8015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8016 # libtool to hard-code these into programs
8017 ;;
8018
8019cygwin* | mingw* | pw32*)
8020 version_type=windows
8021 shrext_cmds=".dll"
8022 need_version=no
8023 need_lib_prefix=no
8024
8025 case $GCC,$host_os in
8026 yes,cygwin* | yes,mingw* | yes,pw32*)
8027 library_names_spec='$libname.dll.a'
8028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8029 postinstall_cmds='base_file=`basename \${file}`~
8030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8031 dldir=$destdir/`dirname \$dlpath`~
8032 test -d \$dldir || mkdir -p \$dldir~
8033 $install_prog $dir/$dlname \$dldir/$dlname~
8034 chmod a+x \$dldir/$dlname'
8035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8036 dlpath=$dir/\$dldll~
8037 $rm \$dlpath'
8038 shlibpath_overrides_runpath=yes
8039
8040 case $host_os in
8041 cygwin*)
8042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8044 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8045 ;;
8046 mingw*)
8047 # MinGW DLLs use traditional 'lib' prefix
8048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8050 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8051 # It is most probably a Windows format PATH printed by
8052 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8053 # path with ; separators, and with drive letters. We can handle the
8054 # drive letters (cygwin fileutils understands them), so leave them,
8055 # especially as we might pass files found there to a mingw objdump,
8056 # which wouldn't understand a cygwinified path. Ahh.
8057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8058 else
8059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8060 fi
8061 ;;
8062 pw32*)
8063 # pw32 DLLs use 'pw' prefix rather than 'lib'
8064 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8065 ;;
8066 esac
8067 ;;
8068
8069 *)
8070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8071 ;;
8072 esac
8073 dynamic_linker='Win32 ld.exe'
8074 # FIXME: first we should search . and the directory the executable is in
8075 shlibpath_var=PATH
8076 ;;
8077
8078darwin* | rhapsody*)
8079 dynamic_linker="$host_os dyld"
8080 version_type=darwin
8081 need_lib_prefix=no
8082 need_version=no
8083 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8084 soname_spec='${libname}${release}${major}$shared_ext'
8085 shlibpath_overrides_runpath=yes
8086 shlibpath_var=DYLD_LIBRARY_PATH
8087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8088 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8089 if test "$GCC" = yes; then
8090 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8091 else
8092 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8093 fi
8094 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8095 ;;
8096
8097dgux*)
8098 version_type=linux
8099 need_lib_prefix=no
8100 need_version=no
8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8102 soname_spec='${libname}${release}${shared_ext}$major'
8103 shlibpath_var=LD_LIBRARY_PATH
8104 ;;
8105
8106freebsd1*)
8107 dynamic_linker=no
8108 ;;
8109
8110kfreebsd*-gnu)
8111 version_type=linux
8112 need_lib_prefix=no
8113 need_version=no
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8115 soname_spec='${libname}${release}${shared_ext}$major'
8116 shlibpath_var=LD_LIBRARY_PATH
8117 shlibpath_overrides_runpath=no
8118 hardcode_into_libs=yes
8119 dynamic_linker='GNU ld.so'
8120 ;;
8121
8122freebsd* | dragonfly*)
8123 # DragonFly does not have aout. When/if they implement a new
8124 # versioning mechanism, adjust this.
8125 if test -x /usr/bin/objformat; then
8126 objformat=`/usr/bin/objformat`
8127 else
8128 case $host_os in
8129 freebsd[123]*) objformat=aout ;;
8130 *) objformat=elf ;;
8131 esac
8132 fi
8133 version_type=freebsd-$objformat
8134 case $version_type in
8135 freebsd-elf*)
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8137 need_version=no
8138 need_lib_prefix=no
8139 ;;
8140 freebsd-*)
8141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8142 need_version=yes
8143 ;;
8144 esac
8145 shlibpath_var=LD_LIBRARY_PATH
8146 case $host_os in
8147 freebsd2*)
8148 shlibpath_overrides_runpath=yes
8149 ;;
8150 freebsd3.[01]* | freebsdelf3.[01]*)
8151 shlibpath_overrides_runpath=yes
8152 hardcode_into_libs=yes
8153 ;;
8154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8156 shlibpath_overrides_runpath=no
8157 hardcode_into_libs=yes
8158 ;;
8159 freebsd*) # from 4.6 on
8160 shlibpath_overrides_runpath=yes
8161 hardcode_into_libs=yes
8162 ;;
8163 esac
8164 ;;
8165
8166gnu*)
8167 version_type=linux
8168 need_lib_prefix=no
8169 need_version=no
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8171 soname_spec='${libname}${release}${shared_ext}$major'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 hardcode_into_libs=yes
8174 ;;
8175
8176hpux9* | hpux10* | hpux11*)
8177 # Give a soname corresponding to the major version so that dld.sl refuses to
8178 # link against other versions.
8179 version_type=sunos
8180 need_lib_prefix=no
8181 need_version=no
8182 case $host_cpu in
8183 ia64*)
8184 shrext_cmds='.so'
8185 hardcode_into_libs=yes
8186 dynamic_linker="$host_os dld.so"
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8190 soname_spec='${libname}${release}${shared_ext}$major'
8191 if test "X$HPUX_IA64_MODE" = X32; then
8192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8193 else
8194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8195 fi
8196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8197 ;;
8198 hppa*64*)
8199 shrext_cmds='.sl'
8200 hardcode_into_libs=yes
8201 dynamic_linker="$host_os dld.sl"
8202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8205 soname_spec='${libname}${release}${shared_ext}$major'
8206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8208 ;;
8209 *)
8210 shrext_cmds='.sl'
8211 dynamic_linker="$host_os dld.sl"
8212 shlibpath_var=SHLIB_PATH
8213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215 soname_spec='${libname}${release}${shared_ext}$major'
8216 ;;
8217 esac
8218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8219 postinstall_cmds='chmod 555 $lib'
8220 ;;
8221
8222interix3*)
8223 version_type=linux
8224 need_lib_prefix=no
8225 need_version=no
8226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8227 soname_spec='${libname}${release}${shared_ext}$major'
8228 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8229 shlibpath_var=LD_LIBRARY_PATH
8230 shlibpath_overrides_runpath=no
8231 hardcode_into_libs=yes
8232 ;;
8233
8234irix5* | irix6* | nonstopux*)
8235 case $host_os in
8236 nonstopux*) version_type=nonstopux ;;
8237 *)
8238 if test "$lt_cv_prog_gnu_ld" = yes; then
8239 version_type=linux
8240 else
8241 version_type=irix
8242 fi ;;
8243 esac
8244 need_lib_prefix=no
8245 need_version=no
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8248 case $host_os in
8249 irix5* | nonstopux*)
8250 libsuff= shlibsuff=
8251 ;;
8252 *)
8253 case $LD in # libtool.m4 will add one of these switches to LD
8254 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8255 libsuff= shlibsuff= libmagic=32-bit;;
8256 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8257 libsuff=32 shlibsuff=N32 libmagic=N32;;
8258 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8259 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8260 *) libsuff= shlibsuff= libmagic=never-match;;
8261 esac
8262 ;;
8263 esac
8264 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8265 shlibpath_overrides_runpath=no
8266 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8267 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8268 hardcode_into_libs=yes
8269 ;;
8270
8271# No shared lib support for Linux oldld, aout, or coff.
8272linux*oldld* | linux*aout* | linux*coff*)
8273 dynamic_linker=no
8274 ;;
8275
8276# This must be Linux ELF.
8277linux*)
8278 version_type=linux
8279 need_lib_prefix=no
8280 need_version=no
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282 soname_spec='${libname}${release}${shared_ext}$major'
8283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8284 shlibpath_var=LD_LIBRARY_PATH
8285 shlibpath_overrides_runpath=no
8286 # This implies no fast_install, which is unacceptable.
8287 # Some rework will be needed to allow for fast_install
8288 # before this can be enabled.
8289 hardcode_into_libs=yes
8290
8291 # find out which ABI we are using
8292 libsuff=
8293 case "$host_cpu" in
8294 x86_64*|s390x*|powerpc64*)
8295 echo '#line 8295 "configure"' > conftest.$ac_ext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8297 (eval $ac_compile) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; then
8301 case `/usr/bin/file conftest.$ac_objext` in
8302 *64-bit*)
8303 libsuff=64
8304 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8305 ;;
8306 esac
8307 fi
8308 rm -rf conftest*
8309 ;;
8310 esac
8311
8312 # Append ld.so.conf contents to the search path
8313 if test -f /etc/ld.so.conf; then
8314 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' ' '`
8315 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8316 fi
8317
8318 # We used to test for /lib/ld.so.1 and disable shared libraries on
8319 # powerpc, because MkLinux only supported shared libraries with the
8320 # GNU dynamic linker. Since this was broken with cross compilers,
8321 # most powerpc-linux boxes support dynamic linking these days and
8322 # people can always --disable-shared, the test was removed, and we
8323 # assume the GNU/Linux dynamic linker is in use.
8324 dynamic_linker='GNU/Linux ld.so'
8325 ;;
8326
8327knetbsd*-gnu)
8328 version_type=linux
8329 need_lib_prefix=no
8330 need_version=no
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8332 soname_spec='${libname}${release}${shared_ext}$major'
8333 shlibpath_var=LD_LIBRARY_PATH
8334 shlibpath_overrides_runpath=no
8335 hardcode_into_libs=yes
8336 dynamic_linker='GNU ld.so'
8337 ;;
8338
8339netbsd*)
8340 version_type=sunos
8341 need_lib_prefix=no
8342 need_version=no
8343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8346 dynamic_linker='NetBSD (a.out) ld.so'
8347 else
8348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8349 soname_spec='${libname}${release}${shared_ext}$major'
8350 dynamic_linker='NetBSD ld.elf_so'
8351 fi
8352 shlibpath_var=LD_LIBRARY_PATH
8353 shlibpath_overrides_runpath=yes
8354 hardcode_into_libs=yes
8355 ;;
8356
8357newsos6)
8358 version_type=linux
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 shlibpath_var=LD_LIBRARY_PATH
8361 shlibpath_overrides_runpath=yes
8362 ;;
8363
8364nto-qnx*)
8365 version_type=linux
8366 need_lib_prefix=no
8367 need_version=no
8368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8369 soname_spec='${libname}${release}${shared_ext}$major'
8370 shlibpath_var=LD_LIBRARY_PATH
8371 shlibpath_overrides_runpath=yes
8372 ;;
8373
8374openbsd*)
8375 version_type=sunos
8376 sys_lib_dlsearch_path_spec="/usr/lib"
8377 need_lib_prefix=no
8378 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8379 case $host_os in
8380 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8381 *) need_version=no ;;
8382 esac
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8385 shlibpath_var=LD_LIBRARY_PATH
8386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8387 case $host_os in
8388 openbsd2.[89] | openbsd2.[89].*)
8389 shlibpath_overrides_runpath=no
8390 ;;
8391 *)
8392 shlibpath_overrides_runpath=yes
8393 ;;
8394 esac
8395 else
8396 shlibpath_overrides_runpath=yes
8397 fi
8398 ;;
8399
8400os2*)
8401 libname_spec='$name'
8402 shrext_cmds=".dll"
8403 need_lib_prefix=no
8404 library_names_spec='$libname${shared_ext} $libname.a'
8405 dynamic_linker='OS/2 ld.exe'
8406 shlibpath_var=LIBPATH
8407 ;;
8408
8409osf3* | osf4* | osf5*)
8410 version_type=osf
8411 need_lib_prefix=no
8412 need_version=no
8413 soname_spec='${libname}${release}${shared_ext}$major'
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415 shlibpath_var=LD_LIBRARY_PATH
8416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8417 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8418 ;;
8419
8420solaris*)
8421 version_type=linux
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=yes
8428 hardcode_into_libs=yes
8429 # ldd complains unless libraries are executable
8430 postinstall_cmds='chmod +x $lib'
8431 ;;
8432
8433sunos4*)
8434 version_type=sunos
8435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8436 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8437 shlibpath_var=LD_LIBRARY_PATH
8438 shlibpath_overrides_runpath=yes
8439 if test "$with_gnu_ld" = yes; then
8440 need_lib_prefix=no
8441 fi
8442 need_version=yes
8443 ;;
8444
8445sysv4 | sysv4.3*)
8446 version_type=linux
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 soname_spec='${libname}${release}${shared_ext}$major'
8449 shlibpath_var=LD_LIBRARY_PATH
8450 case $host_vendor in
8451 sni)
8452 shlibpath_overrides_runpath=no
8453 need_lib_prefix=no
8454 export_dynamic_flag_spec='${wl}-Blargedynsym'
8455 runpath_var=LD_RUN_PATH
8456 ;;
8457 siemens)
8458 need_lib_prefix=no
8459 ;;
8460 motorola)
8461 need_lib_prefix=no
8462 need_version=no
8463 shlibpath_overrides_runpath=no
8464 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8465 ;;
8466 esac
8467 ;;
8468
8469sysv4*MP*)
8470 if test -d /usr/nec ;then
8471 version_type=linux
8472 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8473 soname_spec='$libname${shared_ext}.$major'
8474 shlibpath_var=LD_LIBRARY_PATH
8475 fi
8476 ;;
8477
8478sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8479 version_type=freebsd-elf
8480 need_lib_prefix=no
8481 need_version=no
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 shlibpath_var=LD_LIBRARY_PATH
8485 hardcode_into_libs=yes
8486 if test "$with_gnu_ld" = yes; then
8487 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8488 shlibpath_overrides_runpath=no
8489 else
8490 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8491 shlibpath_overrides_runpath=yes
8492 case $host_os in
8493 sco3.2v5*)
8494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8495 ;;
8496 esac
8497 fi
8498 sys_lib_dlsearch_path_spec='/usr/lib'
8499 ;;
8500
8501uts4*)
8502 version_type=linux
8503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8504 soname_spec='${libname}${release}${shared_ext}$major'
8505 shlibpath_var=LD_LIBRARY_PATH
8506 ;;
8507
8508*)
8509 dynamic_linker=no
8510 ;;
8511esac
8512echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8513echo "${ECHO_T}$dynamic_linker" >&6
8514test "$dynamic_linker" = no && can_build_shared=no
8515
8516variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8517if test "$GCC" = yes; then
8518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8519fi
8520
8521echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8522echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8523hardcode_action=
8524if test -n "$hardcode_libdir_flag_spec" || \
8525 test -n "$runpath_var" || \
8526 test "X$hardcode_automatic" = "Xyes" ; then
8527
8528 # We can hardcode non-existant directories.
8529 if test "$hardcode_direct" != no &&
8530 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8531 # have to relink, otherwise we might link with an installed library
8532 # when we should be linking with a yet-to-be-installed one
8533 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8534 test "$hardcode_minus_L" != no; then
8535 # Linking always hardcodes the temporary library directory.
8536 hardcode_action=relink
8537 else
8538 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8539 hardcode_action=immediate
8540 fi
8541else
8542 # We cannot hardcode anything, or else we can only hardcode existing
8543 # directories.
8544 hardcode_action=unsupported
8545fi
8546echo "$as_me:$LINENO: result: $hardcode_action" >&5
8547echo "${ECHO_T}$hardcode_action" >&6
8548
8549if test "$hardcode_action" = relink; then
8550 # Fast installation is not supported
8551 enable_fast_install=no
8552elif test "$shlibpath_overrides_runpath" = yes ||
8553 test "$enable_shared" = no; then
8554 # Fast installation is not necessary
8555 enable_fast_install=needless
8556fi
8557
8558striplib=
8559old_striplib=
8560echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8561echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8562if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8563 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8564 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567else
8568# FIXME - insert some real tests, host_os isn't really good enough
8569 case $host_os in
8570 darwin*)
8571 if test -n "$STRIP" ; then
8572 striplib="$STRIP -x"
8573 echo "$as_me:$LINENO: result: yes" >&5
8574echo "${ECHO_T}yes" >&6
8575 else
8576 echo "$as_me:$LINENO: result: no" >&5
8577echo "${ECHO_T}no" >&6
8578fi
8579 ;;
8580 *)
8581 echo "$as_me:$LINENO: result: no" >&5
8582echo "${ECHO_T}no" >&6
8583 ;;
8584 esac
8585fi
8586
8587if test "x$enable_dlopen" != xyes; then
8588 enable_dlopen=unknown
8589 enable_dlopen_self=unknown
8590 enable_dlopen_self_static=unknown
8591else
8592 lt_cv_dlopen=no
8593 lt_cv_dlopen_libs=
8594
8595 case $host_os in
8596 beos*)
8597 lt_cv_dlopen="load_add_on"
8598 lt_cv_dlopen_libs=
8599 lt_cv_dlopen_self=yes
8600 ;;
8601
8602 mingw* | pw32*)
8603 lt_cv_dlopen="LoadLibrary"
8604 lt_cv_dlopen_libs=
8605 ;;
8606
8607 cygwin*)
8608 lt_cv_dlopen="dlopen"
8609 lt_cv_dlopen_libs=
8610 ;;
8611
8612 darwin*)
8613 # if libdl is installed we need to link against it
8614 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8615echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8616if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618else
8619 ac_check_lib_save_LIBS=$LIBS
8620LIBS="-ldl $LIBS"
8621cat >conftest.$ac_ext <<_ACEOF
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627
8628/* Override any gcc2 internal prototype to avoid an error. */
8629#ifdef __cplusplus
8630extern "C"
8631#endif
8632/* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634char dlopen ();
8635int
8636main ()
8637{
8638dlopen ();
8639 ;
8640 return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext conftest$ac_exeext
8644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_dl_dlopen=yes
8666else
8667 echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670ac_cv_lib_dl_dlopen=no
8671fi
8672rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674LIBS=$ac_check_lib_save_LIBS
8675fi
8676echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8677echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8678if test $ac_cv_lib_dl_dlopen = yes; then
8679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8680else
8681
8682 lt_cv_dlopen="dyld"
8683 lt_cv_dlopen_libs=
8684 lt_cv_dlopen_self=yes
8685
8686fi
8687
8688 ;;
8689
8690 *)
8691 echo "$as_me:$LINENO: checking for shl_load" >&5
8692echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8693if test "${ac_cv_func_shl_load+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696 cat >conftest.$ac_ext <<_ACEOF
8697/* confdefs.h. */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h. */
8702/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704#define shl_load innocuous_shl_load
8705
8706/* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char shl_load (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8710
8711#ifdef __STDC__
8712# include <limits.h>
8713#else
8714# include <assert.h>
8715#endif
8716
8717#undef shl_load
8718
8719/* Override any gcc2 internal prototype to avoid an error. */
8720#ifdef __cplusplus
8721extern "C"
8722{
8723#endif
8724/* We use char because int might match the return type of a gcc2
8725 builtin and then its argument prototype would still apply. */
8726char shl_load ();
8727/* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730#if defined (__stub_shl_load) || defined (__stub___shl_load)
8731choke me
8732#else
8733char (*f) () = shl_load;
8734#endif
8735#ifdef __cplusplus
8736}
8737#endif
8738
8739int
8740main ()
8741{
8742return f != shl_load;
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext conftest$ac_exeext
8748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_func_shl_load=yes
8770else
8771 echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
8774ac_cv_func_shl_load=no
8775fi
8776rm -f conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778fi
8779echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8780echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8781if test $ac_cv_func_shl_load = yes; then
8782 lt_cv_dlopen="shl_load"
8783else
8784 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8785echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8786if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789 ac_check_lib_save_LIBS=$LIBS
8790LIBS="-ldld $LIBS"
8791cat >conftest.$ac_ext <<_ACEOF
8792/* confdefs.h. */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h. */
8797
8798/* Override any gcc2 internal prototype to avoid an error. */
8799#ifdef __cplusplus
8800extern "C"
8801#endif
8802/* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8804char shl_load ();
8805int
8806main ()
8807{
8808shl_load ();
8809 ;
8810 return 0;
8811}
8812_ACEOF
8813rm -f conftest.$ac_objext conftest$ac_exeext
8814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8815 (eval $ac_link) 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -z "$ac_c_werror_flag"
8823 || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_lib_dld_shl_load=yes
8836else
8837 echo "$as_me: failed program was:" >&5
8838sed 's/^/| /' conftest.$ac_ext >&5
8839
8840ac_cv_lib_dld_shl_load=no
8841fi
8842rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844LIBS=$ac_check_lib_save_LIBS
8845fi
8846echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8847echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8848if test $ac_cv_lib_dld_shl_load = yes; then
8849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8850else
8851 echo "$as_me:$LINENO: checking for dlopen" >&5
8852echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8853if test "${ac_cv_func_dlopen+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856 cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8864#define dlopen innocuous_dlopen
8865
8866/* System header to define __stub macros and hopefully few prototypes,
8867 which can conflict with char dlopen (); below.
8868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8869 <limits.h> exists even on freestanding compilers. */
8870
8871#ifdef __STDC__
8872# include <limits.h>
8873#else
8874# include <assert.h>
8875#endif
8876
8877#undef dlopen
8878
8879/* Override any gcc2 internal prototype to avoid an error. */
8880#ifdef __cplusplus
8881extern "C"
8882{
8883#endif
8884/* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8886char dlopen ();
8887/* The GNU C library defines this for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890#if defined (__stub_dlopen) || defined (__stub___dlopen)
8891choke me
8892#else
8893char (*f) () = dlopen;
8894#endif
8895#ifdef __cplusplus
8896}
8897#endif
8898
8899int
8900main ()
8901{
8902return f != dlopen;
8903 ;
8904 return 0;
8905}
8906_ACEOF
8907rm -f conftest.$ac_objext conftest$ac_exeext
8908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest$ac_exeext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_func_dlopen=yes
8930else
8931 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934ac_cv_func_dlopen=no
8935fi
8936rm -f conftest.err conftest.$ac_objext \
8937 conftest$ac_exeext conftest.$ac_ext
8938fi
8939echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8940echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8941if test $ac_cv_func_dlopen = yes; then
8942 lt_cv_dlopen="dlopen"
8943else
8944 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8945echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8946if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
8949 ac_check_lib_save_LIBS=$LIBS
8950LIBS="-ldl $LIBS"
8951cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957
8958/* Override any gcc2 internal prototype to avoid an error. */
8959#ifdef __cplusplus
8960extern "C"
8961#endif
8962/* We use char because int might match the return type of a gcc2
8963 builtin and then its argument prototype would still apply. */
8964char dlopen ();
8965int
8966main ()
8967{
8968dlopen ();
8969 ;
8970 return 0;
8971}
8972_ACEOF
8973rm -f conftest.$ac_objext conftest$ac_exeext
8974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_lib_dl_dlopen=yes
8996else
8997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000ac_cv_lib_dl_dlopen=no
9001fi
9002rm -f conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004LIBS=$ac_check_lib_save_LIBS
9005fi
9006echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9007echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9008if test $ac_cv_lib_dl_dlopen = yes; then
9009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9010else
9011 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9012echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9013if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016 ac_check_lib_save_LIBS=$LIBS
9017LIBS="-lsvld $LIBS"
9018cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h. */
9024
9025/* Override any gcc2 internal prototype to avoid an error. */
9026#ifdef __cplusplus
9027extern "C"
9028#endif
9029/* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9031char dlopen ();
9032int
9033main ()
9034{
9035dlopen ();
9036 ;
9037 return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext conftest$ac_exeext
9041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag"
9050 || test ! -s conftest.err'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; } &&
9056 { ac_try='test -s conftest$ac_exeext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_lib_svld_dlopen=yes
9063else
9064 echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
9067ac_cv_lib_svld_dlopen=no
9068fi
9069rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071LIBS=$ac_check_lib_save_LIBS
9072fi
9073echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9074echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9075if test $ac_cv_lib_svld_dlopen = yes; then
9076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9077else
9078 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9079echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9080if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083 ac_check_lib_save_LIBS=$LIBS
9084LIBS="-ldld $LIBS"
9085cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h. */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h. */
9091
9092/* Override any gcc2 internal prototype to avoid an error. */
9093#ifdef __cplusplus
9094extern "C"
9095#endif
9096/* We use char because int might match the return type of a gcc2
9097 builtin and then its argument prototype would still apply. */
9098char dld_link ();
9099int
9100main ()
9101{
9102dld_link ();
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest$ac_exeext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_lib_dld_dld_link=yes
9130else
9131 echo "$as_me: failed program was:" >&5
9132sed 's/^/| /' conftest.$ac_ext >&5
9133
9134ac_cv_lib_dld_dld_link=no
9135fi
9136rm -f conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138LIBS=$ac_check_lib_save_LIBS
9139fi
9140echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9141echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9142if test $ac_cv_lib_dld_dld_link = yes; then
9143 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9144fi
9145
9146
9147fi
9148
9149
9150fi
9151
9152
9153fi
9154
9155
9156fi
9157
9158
9159fi
9160
9161 ;;
9162 esac
9163
9164 if test "x$lt_cv_dlopen" != xno; then
9165 enable_dlopen=yes
9166 else
9167 enable_dlopen=no
9168 fi
9169
9170 case $lt_cv_dlopen in
9171 dlopen)
9172 save_CPPFLAGS="$CPPFLAGS"
9173 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9174
9175 save_LDFLAGS="$LDFLAGS"
9176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9177
9178 save_LIBS="$LIBS"
9179 LIBS="$lt_cv_dlopen_libs $LIBS"
9180
9181 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9182echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9183if test "${lt_cv_dlopen_self+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 if test "$cross_compiling" = yes; then :
9187 lt_cv_dlopen_self=cross
9188else
9189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9190 lt_status=$lt_dlunknown
9191 cat > conftest.$ac_ext <<EOF
9192#line 9192 "configure"
9193#include "confdefs.h"
9194
9195#if HAVE_DLFCN_H
9196#include <dlfcn.h>
9197#endif
9198
9199#include <stdio.h>
9200
9201#ifdef RTLD_GLOBAL
9202# define LT_DLGLOBAL RTLD_GLOBAL
9203#else
9204# ifdef DL_GLOBAL
9205# define LT_DLGLOBAL DL_GLOBAL
9206# else
9207# define LT_DLGLOBAL 0
9208# endif
9209#endif
9210
9211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9212 find out it does not work in some platform. */
9213#ifndef LT_DLLAZY_OR_NOW
9214# ifdef RTLD_LAZY
9215# define LT_DLLAZY_OR_NOW RTLD_LAZY
9216# else
9217# ifdef DL_LAZY
9218# define LT_DLLAZY_OR_NOW DL_LAZY
9219# else
9220# ifdef RTLD_NOW
9221# define LT_DLLAZY_OR_NOW RTLD_NOW
9222# else
9223# ifdef DL_NOW
9224# define LT_DLLAZY_OR_NOW DL_NOW
9225# else
9226# define LT_DLLAZY_OR_NOW 0
9227# endif
9228# endif
9229# endif
9230# endif
9231#endif
9232
9233#ifdef __cplusplus
9234extern "C" void exit (int);
9235#endif
9236
9237void fnord() { int i=42;}
9238int main ()
9239{
9240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9241 int status = $lt_dlunknown;
9242
9243 if (self)
9244 {
9245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9247 /* dlclose (self); */
9248 }
9249 else
9250 puts (dlerror ());
9251
9252 exit (status);
9253}
9254EOF
9255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9260 (./conftest; exit; ) >&5 2>/dev/null
9261 lt_status=$?
9262 case x$lt_status in
9263 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9264 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9265 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9266 esac
9267 else :
9268 # compilation failed
9269 lt_cv_dlopen_self=no
9270 fi
9271fi
9272rm -fr conftest*
9273
9274
9275fi
9276echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9277echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9278
9279 if test "x$lt_cv_dlopen_self" = xyes; then
9280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9281 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9282echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9283if test "${lt_cv_dlopen_self_static+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286 if test "$cross_compiling" = yes; then :
9287 lt_cv_dlopen_self_static=cross
9288else
9289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9290 lt_status=$lt_dlunknown
9291 cat > conftest.$ac_ext <<EOF
9292#line 9292 "configure"
9293#include "confdefs.h"
9294
9295#if HAVE_DLFCN_H
9296#include <dlfcn.h>
9297#endif
9298
9299#include <stdio.h>
9300
9301#ifdef RTLD_GLOBAL
9302# define LT_DLGLOBAL RTLD_GLOBAL
9303#else
9304# ifdef DL_GLOBAL
9305# define LT_DLGLOBAL DL_GLOBAL
9306# else
9307# define LT_DLGLOBAL 0
9308# endif
9309#endif
9310
9311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9312 find out it does not work in some platform. */
9313#ifndef LT_DLLAZY_OR_NOW
9314# ifdef RTLD_LAZY
9315# define LT_DLLAZY_OR_NOW RTLD_LAZY
9316# else
9317# ifdef DL_LAZY
9318# define LT_DLLAZY_OR_NOW DL_LAZY
9319# else
9320# ifdef RTLD_NOW
9321# define LT_DLLAZY_OR_NOW RTLD_NOW
9322# else
9323# ifdef DL_NOW
9324# define LT_DLLAZY_OR_NOW DL_NOW
9325# else
9326# define LT_DLLAZY_OR_NOW 0
9327# endif
9328# endif
9329# endif
9330# endif
9331#endif
9332
9333#ifdef __cplusplus
9334extern "C" void exit (int);
9335#endif
9336
9337void fnord() { int i=42;}
9338int main ()
9339{
9340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9341 int status = $lt_dlunknown;
9342
9343 if (self)
9344 {
9345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9347 /* dlclose (self); */
9348 }
9349 else
9350 puts (dlerror ());
9351
9352 exit (status);
9353}
9354EOF
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9360 (./conftest; exit; ) >&5 2>/dev/null
9361 lt_status=$?
9362 case x$lt_status in
9363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9365 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9366 esac
9367 else :
9368 # compilation failed
9369 lt_cv_dlopen_self_static=no
9370 fi
9371fi
9372rm -fr conftest*
9373
9374
9375fi
9376echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9377echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9378 fi
9379
9380 CPPFLAGS="$save_CPPFLAGS"
9381 LDFLAGS="$save_LDFLAGS"
9382 LIBS="$save_LIBS"
9383 ;;
9384 esac
9385
9386 case $lt_cv_dlopen_self in
9387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9388 *) enable_dlopen_self=unknown ;;
9389 esac
9390
9391 case $lt_cv_dlopen_self_static in
9392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9393 *) enable_dlopen_self_static=unknown ;;
9394 esac
9395fi
9396
9397
9398# Report which library types will actually be built
9399echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9400echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9401echo "$as_me:$LINENO: result: $can_build_shared" >&5
9402echo "${ECHO_T}$can_build_shared" >&6
9403
9404echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9405echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9406test "$can_build_shared" = "no" && enable_shared=no
9407
9408# On AIX, shared libraries and static libraries use the same namespace, and
9409# are all built from PIC.
9410case $host_os in
9411aix3*)
9412 test "$enable_shared" = yes && enable_static=no
9413 if test -n "$RANLIB"; then
9414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9415 postinstall_cmds='$RANLIB $lib'
9416 fi
9417 ;;
9418
9419aix4* | aix5*)
9420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9421 test "$enable_shared" = yes && enable_static=no
9422 fi
9423 ;;
9424esac
9425echo "$as_me:$LINENO: result: $enable_shared" >&5
9426echo "${ECHO_T}$enable_shared" >&6
9427
9428echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9429echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9430# Make sure either enable_shared or enable_static is yes.
9431test "$enable_shared" = yes || enable_static=yes
9432echo "$as_me:$LINENO: result: $enable_static" >&5
9433echo "${ECHO_T}$enable_static" >&6
9434
9435# The else clause should only fire when bootstrapping the
9436# libtool distribution, otherwise you forgot to ship ltmain.sh
9437# with your package, and you will get complaints that there are
9438# no rules to generate ltmain.sh.
9439if test -f "$ltmain"; then
9440 # See if we are running on zsh, and set the options which allow our commands through
9441 # without removal of \ escapes.
9442 if test -n "${ZSH_VERSION+set}" ; then
9443 setopt NO_GLOB_SUBST
9444 fi
9445 # Now quote all the things that may contain metacharacters while being
9446 # careful not to overquote the AC_SUBSTed values. We take copies of the
9447 # variables and quote the copies for generation of the libtool script.
9448 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9449 SED SHELL STRIP \
9450 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9451 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9452 deplibs_check_method reload_flag reload_cmds need_locks \
9453 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9454 lt_cv_sys_global_symbol_to_c_name_address \
9455 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9456 old_postinstall_cmds old_postuninstall_cmds \
9457 compiler \
9458 CC \
9459 LD \
9460 lt_prog_compiler_wl \
9461 lt_prog_compiler_pic \
9462 lt_prog_compiler_static \
9463 lt_prog_compiler_no_builtin_flag \
9464 export_dynamic_flag_spec \
9465 thread_safe_flag_spec \
9466 whole_archive_flag_spec \
9467 enable_shared_with_static_runtimes \
9468 old_archive_cmds \
9469 old_archive_from_new_cmds \
9470 predep_objects \
9471 postdep_objects \
9472 predeps \
9473 postdeps \
9474 compiler_lib_search_path \
9475 archive_cmds \
9476 archive_expsym_cmds \
9477 postinstall_cmds \
9478 postuninstall_cmds \
9479 old_archive_from_expsyms_cmds \
9480 allow_undefined_flag \
9481 no_undefined_flag \
9482 export_symbols_cmds \
9483 hardcode_libdir_flag_spec \
9484 hardcode_libdir_flag_spec_ld \
9485 hardcode_libdir_separator \
9486 hardcode_automatic \
9487 module_cmds \
9488 module_expsym_cmds \
9489 lt_cv_prog_compiler_c_o \
9490 exclude_expsyms \
9491 include_expsyms; do
9492
9493 case $var in
9494 old_archive_cmds | \
9495 old_archive_from_new_cmds | \
9496 archive_cmds | \
9497 archive_expsym_cmds | \
9498 module_cmds | \
9499 module_expsym_cmds | \
9500 old_archive_from_expsyms_cmds | \
9501 export_symbols_cmds | \
9502 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9503 postinstall_cmds | postuninstall_cmds | \
9504 old_postinstall_cmds | old_postuninstall_cmds | \
9505 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9506 # Double-quote double-evaled strings.
9507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9508 ;;
9509 *)
9510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9511 ;;
9512 esac
9513 done
9514
9515 case $lt_echo in
9516 *'\$0 --fallback-echo"')
9517 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9518 ;;
9519 esac
9520
9521cfgfile="${ofile}T"
9522 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9523 $rm -f "$cfgfile"
9524 { echo "$as_me:$LINENO: creating $ofile" >&5
9525echo "$as_me: creating $ofile" >&6;}
9526
9527 cat <<__EOF__ >> "$cfgfile"
9528#! $SHELL
9529
9530# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9531# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9532# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9533#
9534# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9535# Free Software Foundation, Inc.
9536#
9537# This file is part of GNU Libtool:
9538# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9539#
9540# This program is free software; you can redistribute it and/or modify
9541# it under the terms of the GNU General Public License as published by
9542# the Free Software Foundation; either version 2 of the License, or
9543# (at your option) any later version.
9544#
9545# This program is distributed in the hope that it will be useful, but
9546# WITHOUT ANY WARRANTY; without even the implied warranty of
9547# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9548# General Public License for more details.
9549#
9550# You should have received a copy of the GNU General Public License
9551# along with this program; if not, write to the Free Software
9552# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9553#
9554# As a special exception to the GNU General Public License, if you
9555# distribute this file as part of a program that contains a
9556# configuration script generated by Autoconf, you may include it under
9557# the same distribution terms that you use for the rest of that program.
9558
9559# A sed program that does not truncate output.
9560SED=$lt_SED
9561
9562# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9563Xsed="$SED -e 1s/^X//"
9564
9565# The HP-UX ksh and POSIX shell print the target directory to stdout
9566# if CDPATH is set.
9567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9568
9569# The names of the tagged configurations supported by this script.
9570available_tags=
9571
9572# ### BEGIN LIBTOOL CONFIG
9573
9574# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9575
9576# Shell to use when invoking shell scripts.
9577SHELL=$lt_SHELL
9578
9579# Whether or not to build shared libraries.
9580build_libtool_libs=$enable_shared
9581
9582# Whether or not to build static libraries.
9583build_old_libs=$enable_static
9584
9585# Whether or not to add -lc for building shared libraries.
9586build_libtool_need_lc=$archive_cmds_need_lc
9587
9588# Whether or not to disallow shared libs when runtime libs are static
9589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9590
9591# Whether or not to optimize for fast installation.
9592fast_install=$enable_fast_install
9593
9594# The host system.
9595host_alias=$host_alias
9596host=$host
9597host_os=$host_os
9598
9599# The build system.
9600build_alias=$build_alias
9601build=$build
9602build_os=$build_os
9603
9604# An echo program that does not interpret backslashes.
9605echo=$lt_echo
9606
9607# The archiver.
9608AR=$lt_AR
9609AR_FLAGS=$lt_AR_FLAGS
9610
9611# A C compiler.
9612LTCC=$lt_LTCC
9613
9614# LTCC compiler flags.
9615LTCFLAGS=$lt_LTCFLAGS
9616
9617# A language-specific compiler.
9618CC=$lt_compiler
9619
9620# Is the compiler the GNU C compiler?
9621with_gcc=$GCC
9622
9623gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9624gcc_ver=\`gcc -dumpversion\`
9625
9626# An ERE matcher.
9627EGREP=$lt_EGREP
9628
9629# The linker used to build libraries.
9630LD=$lt_LD
9631
9632# Whether we need hard or soft links.
9633LN_S=$lt_LN_S
9634
9635# A BSD-compatible nm program.
9636NM=$lt_NM
9637
9638# A symbol stripping program
9639STRIP=$lt_STRIP
9640
9641# Used to examine libraries when file_magic_cmd begins "file"
9642MAGIC_CMD=$MAGIC_CMD
9643
9644# Used on cygwin: DLL creation program.
9645DLLTOOL="$DLLTOOL"
9646
9647# Used on cygwin: object dumper.
9648OBJDUMP="$OBJDUMP"
9649
9650# Used on cygwin: assembler.
9651AS="$AS"
9652
9653# The name of the directory that contains temporary libtool files.
9654objdir=$objdir
9655
9656# How to create reloadable object files.
9657reload_flag=$lt_reload_flag
9658reload_cmds=$lt_reload_cmds
9659
9660# How to pass a linker flag through the compiler.
9661wl=$lt_lt_prog_compiler_wl
9662
9663# Object file suffix (normally "o").
9664objext="$ac_objext"
9665
9666# Old archive suffix (normally "a").
9667libext="$libext"
9668
9669# Shared library suffix (normally ".so").
9670shrext_cmds='$shrext_cmds'
9671
9672# Executable file suffix (normally "").
9673exeext="$exeext"
9674
9675# Additional compiler flags for building library objects.
9676pic_flag=$lt_lt_prog_compiler_pic
9677pic_mode=$pic_mode
9678
9679# What is the maximum length of a command?
9680max_cmd_len=$lt_cv_sys_max_cmd_len
9681
9682# Does compiler simultaneously support -c and -o options?
9683compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9684
9685# Must we lock files when doing compilation?
9686need_locks=$lt_need_locks
9687
9688# Do we need the lib prefix for modules?
9689need_lib_prefix=$need_lib_prefix
9690
9691# Do we need a version for libraries?
9692need_version=$need_version
9693
9694# Whether dlopen is supported.
9695dlopen_support=$enable_dlopen
9696
9697# Whether dlopen of programs is supported.
9698dlopen_self=$enable_dlopen_self
9699
9700# Whether dlopen of statically linked programs is supported.
9701dlopen_self_static=$enable_dlopen_self_static
9702
9703# Compiler flag to prevent dynamic linking.
9704link_static_flag=$lt_lt_prog_compiler_static
9705
9706# Compiler flag to turn off builtin functions.
9707no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9708
9709# Compiler flag to allow reflexive dlopens.
9710export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9711
9712# Compiler flag to generate shared objects directly from archives.
9713whole_archive_flag_spec=$lt_whole_archive_flag_spec
9714
9715# Compiler flag to generate thread-safe objects.
9716thread_safe_flag_spec=$lt_thread_safe_flag_spec
9717
9718# Library versioning type.
9719version_type=$version_type
9720
9721# Format of library name prefix.
9722libname_spec=$lt_libname_spec
9723
9724# List of archive names. First name is the real one, the rest are links.
9725# The last name is the one that the linker finds with -lNAME.
9726library_names_spec=$lt_library_names_spec
9727
9728# The coded name of the library, if different from the real name.
9729soname_spec=$lt_soname_spec
9730
9731# Commands used to build and install an old-style archive.
9732RANLIB=$lt_RANLIB
9733old_archive_cmds=$lt_old_archive_cmds
9734old_postinstall_cmds=$lt_old_postinstall_cmds
9735old_postuninstall_cmds=$lt_old_postuninstall_cmds
9736
9737# Create an old-style archive from a shared archive.
9738old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9739
9740# Create a temporary old-style archive to link instead of a shared archive.
9741old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9742
9743# Commands used to build and install a shared archive.
9744archive_cmds=$lt_archive_cmds
9745archive_expsym_cmds=$lt_archive_expsym_cmds
9746postinstall_cmds=$lt_postinstall_cmds
9747postuninstall_cmds=$lt_postuninstall_cmds
9748
9749# Commands used to build a loadable module (assumed same as above if empty)
9750module_cmds=$lt_module_cmds
9751module_expsym_cmds=$lt_module_expsym_cmds
9752
9753# Commands to strip libraries.
9754old_striplib=$lt_old_striplib
9755striplib=$lt_striplib
9756
9757# Dependencies to place before the objects being linked to create a
9758# shared library.
9759predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9760
9761# Dependencies to place after the objects being linked to create a
9762# shared library.
9763postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9764
9765# Dependencies to place before the objects being linked to create a
9766# shared library.
9767predeps=$lt_predeps
9768
9769# Dependencies to place after the objects being linked to create a
9770# shared library.
9771postdeps=$lt_postdeps
9772
9773# The library search path used internally by the compiler when linking
9774# a shared library.
9775compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9776
9777# Method to check whether dependent libraries are shared objects.
9778deplibs_check_method=$lt_deplibs_check_method
9779
9780# Command to use when deplibs_check_method == file_magic.
9781file_magic_cmd=$lt_file_magic_cmd
9782
9783# Flag that allows shared libraries with undefined symbols to be built.
9784allow_undefined_flag=$lt_allow_undefined_flag
9785
9786# Flag that forces no undefined symbols.
9787no_undefined_flag=$lt_no_undefined_flag
9788
9789# Commands used to finish a libtool library installation in a directory.
9790finish_cmds=$lt_finish_cmds
9791
9792# Same as above, but a single script fragment to be evaled but not shown.
9793finish_eval=$lt_finish_eval
9794
9795# Take the output of nm and produce a listing of raw symbols and C names.
9796global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9797
9798# Transform the output of nm in a proper C declaration
9799global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9800
9801# Transform the output of nm in a C name address pair
9802global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9803
9804# This is the shared library runtime path variable.
9805runpath_var=$runpath_var
9806
9807# This is the shared library path variable.
9808shlibpath_var=$shlibpath_var
9809
9810# Is shlibpath searched before the hard-coded library search path?
9811shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9812
9813# How to hardcode a shared library path into an executable.
9814hardcode_action=$hardcode_action
9815
9816# Whether we should hardcode library paths into libraries.
9817hardcode_into_libs=$hardcode_into_libs
9818
9819# Flag to hardcode \$libdir into a binary during linking.
9820# This must work even if \$libdir does not exist.
9821hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9822
9823# If ld is used when linking, flag to hardcode \$libdir into
9824# a binary during linking. This must work even if \$libdir does
9825# not exist.
9826hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9827
9828# Whether we need a single -rpath flag with a separated argument.
9829hardcode_libdir_separator=$lt_hardcode_libdir_separator
9830
9831# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9832# resulting binary.
9833hardcode_direct=$hardcode_direct
9834
9835# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9836# resulting binary.
9837hardcode_minus_L=$hardcode_minus_L
9838
9839# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9840# the resulting binary.
9841hardcode_shlibpath_var=$hardcode_shlibpath_var
9842
9843# Set to yes if building a shared library automatically hardcodes DIR into the library
9844# and all subsequent libraries and executables linked against it.
9845hardcode_automatic=$hardcode_automatic
9846
9847# Variables whose values should be saved in libtool wrapper scripts and
9848# restored at relink time.
9849variables_saved_for_relink="$variables_saved_for_relink"
9850
9851# Whether libtool must link a program against all its dependency libraries.
9852link_all_deplibs=$link_all_deplibs
9853
9854# Compile-time system search path for libraries
9855sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9856
9857# Run-time system search path for libraries
9858sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9859
9860# Fix the shell variable \$srcfile for the compiler.
9861fix_srcfile_path="$fix_srcfile_path"
9862
9863# Set to yes if exported symbols are required.
9864always_export_symbols=$always_export_symbols
9865
9866# The commands to list exported symbols.
9867export_symbols_cmds=$lt_export_symbols_cmds
9868
9869# The commands to extract the exported symbol list from a shared archive.
9870extract_expsyms_cmds=$lt_extract_expsyms_cmds
9871
9872# Symbols that should not be listed in the preloaded symbols.
9873exclude_expsyms=$lt_exclude_expsyms
9874
9875# Symbols that must always be exported.
9876include_expsyms=$lt_include_expsyms
9877
9878# ### END LIBTOOL CONFIG
9879
9880__EOF__
9881
9882
9883 case $host_os in
9884 aix3*)
9885 cat <<\EOF >> "$cfgfile"
9886
9887# AIX sometimes has problems with the GCC collect2 program. For some
9888# reason, if we set the COLLECT_NAMES environment variable, the problems
9889# vanish in a puff of smoke.
9890if test "X${COLLECT_NAMES+set}" != Xset; then
9891 COLLECT_NAMES=
9892 export COLLECT_NAMES
9893fi
9894EOF
9895 ;;
9896 esac
9897
9898 # We use sed instead of cat because bash on DJGPP gets confused if
9899 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9900 # text mode, it properly converts lines to CR/LF. This bash problem
9901 # is reportedly fixed, but why not run on old versions too?
9902 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9903
9904 mv -f "$cfgfile" "$ofile" || \
9905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9906 chmod +x "$ofile"
9907
9908else
9909 # If there is no Makefile yet, we rely on a make rule to execute
9910 # `config.status --recheck' to rerun these tests and create the
9911 # libtool script then.
9912 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9913 if test -f "$ltmain_in"; then
9914 test -f Makefile && make "$ltmain"
9915 fi
9916fi
9917
9918
9919ac_ext=c
9920ac_cpp='$CPP $CPPFLAGS'
9921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9923ac_compiler_gnu=$ac_cv_c_compiler_gnu
9924
9925CC="$lt_save_CC"
9926
9927
9928# Check whether --with-tags or --without-tags was given.
9929if test "${with_tags+set}" = set; then
9930 withval="$with_tags"
9931 tagnames="$withval"
9932fi;
9933
9934if test -f "$ltmain" && test -n "$tagnames"; then
9935 if test ! -f "${ofile}"; then
9936 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9937echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9938 fi
9939
9940 if test -z "$LTCC"; then
9941 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9942 if test -z "$LTCC"; then
9943 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9944echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9945 else
9946 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9947echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9948 fi
9949 fi
9950 if test -z "$LTCFLAGS"; then
9951 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9952 fi
9953
9954 # Extract list of available tagged configurations in $ofile.
9955 # Note that this assumes the entire list is on one line.
9956 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9957
9958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9959 for tagname in $tagnames; do
9960 IFS="$lt_save_ifs"
9961 # Check whether tagname contains only valid characters
9962 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9963 "") ;;
9964 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9965echo "$as_me: error: invalid tag name: $tagname" >&2;}
9966 { (exit 1); exit 1; }; }
9967 ;;
9968 esac
9969
9970 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9971 then
9972 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9973echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9974 { (exit 1); exit 1; }; }
9975 fi
9976
9977 # Update the list of available tags.
9978 if test -n "$tagname"; then
9979 echo appending configuration tag \"$tagname\" to $ofile
9980
9981 case $tagname in
9982 CXX)
9983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9985 (test "X$CXX" != "Xg++"))) ; then
9986 ac_ext=cc
9987ac_cpp='$CXXCPP $CPPFLAGS'
9988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9991
9992
9993
9994
9995archive_cmds_need_lc_CXX=no
9996allow_undefined_flag_CXX=
9997always_export_symbols_CXX=no
9998archive_expsym_cmds_CXX=
9999export_dynamic_flag_spec_CXX=
10000hardcode_direct_CXX=no
10001hardcode_libdir_flag_spec_CXX=
10002hardcode_libdir_flag_spec_ld_CXX=
10003hardcode_libdir_separator_CXX=
10004hardcode_minus_L_CXX=no
10005hardcode_shlibpath_var_CXX=unsupported
10006hardcode_automatic_CXX=no
10007module_cmds_CXX=
10008module_expsym_cmds_CXX=
10009link_all_deplibs_CXX=unknown
10010old_archive_cmds_CXX=$old_archive_cmds
10011no_undefined_flag_CXX=
10012whole_archive_flag_spec_CXX=
10013enable_shared_with_static_runtimes_CXX=no
10014
10015# Dependencies to place before and after the object being linked:
10016predep_objects_CXX=
10017postdep_objects_CXX=
10018predeps_CXX=
10019postdeps_CXX=
10020compiler_lib_search_path_CXX=
10021
10022# Source file extension for C++ test sources.
10023ac_ext=cpp
10024
10025# Object file extension for compiled C++ test sources.
10026objext=o
10027objext_CXX=$objext
10028
10029# Code to be used in simple compile tests
10030lt_simple_compile_test_code="int some_variable = 0;\n"
10031
10032# Code to be used in simple link tests
10033lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10034
10035# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10036
10037# If no C compiler was specified, use CC.
10038LTCC=${LTCC-"$CC"}
10039
10040# If no C compiler flags were specified, use CFLAGS.
10041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10042
10043# Allow CC to be a program name with arguments.
10044compiler=$CC
10045
10046
10047# save warnings/boilerplate of simple test code
10048ac_outfile=conftest.$ac_objext
10049printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10051_lt_compiler_boilerplate=`cat conftest.err`
10052$rm conftest*
10053
10054ac_outfile=conftest.$ac_objext
10055printf "$lt_simple_link_test_code" >conftest.$ac_ext
10056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10057_lt_linker_boilerplate=`cat conftest.err`
10058$rm conftest*
10059
10060
10061# Allow CC to be a program name with arguments.
10062lt_save_CC=$CC
10063lt_save_LD=$LD
10064lt_save_GCC=$GCC
10065GCC=$GXX
10066lt_save_with_gnu_ld=$with_gnu_ld
10067lt_save_path_LD=$lt_cv_path_LD
10068if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10069 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10070else
10071 $as_unset lt_cv_prog_gnu_ld
10072fi
10073if test -n "${lt_cv_path_LDCXX+set}"; then
10074 lt_cv_path_LD=$lt_cv_path_LDCXX
10075else
10076 $as_unset lt_cv_path_LD
10077fi
10078test -z "${LDCXX+set}" || LD=$LDCXX
10079CC=${CXX-"c++"}
10080compiler=$CC
10081compiler_CXX=$CC
10082for cc_temp in $compiler""; do
10083 case $cc_temp in
10084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10086 \-*) ;;
10087 *) break;;
10088 esac
10089done
10090cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10091
10092
10093# We don't want -fno-exception wen compiling C++ code, so set the
10094# no_builtin_flag separately
10095if test "$GXX" = yes; then
10096 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10097else
10098 lt_prog_compiler_no_builtin_flag_CXX=
10099fi
10100
10101if test "$GXX" = yes; then
10102 # Set up default GNU C++ configuration
10103
10104
10105# Check whether --with-gnu-ld or --without-gnu-ld was given.
10106if test "${with_gnu_ld+set}" = set; then
10107 withval="$with_gnu_ld"
10108 test "$withval" = no || with_gnu_ld=yes
10109else
10110 with_gnu_ld=no
10111fi;
10112ac_prog=ld
10113if test "$GCC" = yes; then
10114 # Check if gcc -print-prog-name=ld gives a path.
10115 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10116echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10117 case $host in
10118 *-*-mingw*)
10119 # gcc leaves a trailing carriage return which upsets mingw
10120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10121 *)
10122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10123 esac
10124 case $ac_prog in
10125 # Accept absolute paths.
10126 [\\/]* | ?:[\\/]*)
10127 re_direlt='/[^/][^/]*/\.\./'
10128 # Canonicalize the pathname of ld
10129 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10131 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10132 done
10133 test -z "$LD" && LD="$ac_prog"
10134 ;;
10135 "")
10136 # If it fails, then pretend we aren't using GCC.
10137 ac_prog=ld
10138 ;;
10139 *)
10140 # If it is relative, then search for the first ld in PATH.
10141 with_gnu_ld=unknown
10142 ;;
10143 esac
10144elif test "$with_gnu_ld" = yes; then
10145 echo "$as_me:$LINENO: checking for GNU ld" >&5
10146echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10147else
10148 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10149echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10150fi
10151if test "${lt_cv_path_LD+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153else
10154 if test -z "$LD"; then
10155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10156 for ac_dir in $PATH; do
10157 IFS="$lt_save_ifs"
10158 test -z "$ac_dir" && ac_dir=.
10159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10160 lt_cv_path_LD="$ac_dir/$ac_prog"
10161 # Check to see if the program is GNU ld. I'd rather use --version,
10162 # but apparently some variants of GNU ld only accept -v.
10163 # Break only if it was the GNU/non-GNU ld that we prefer.
10164 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10165 *GNU* | *'with BFD'*)
10166 test "$with_gnu_ld" != no && break
10167 ;;
10168 *)
10169 test "$with_gnu_ld" != yes && break
10170 ;;
10171 esac
10172 fi
10173 done
10174 IFS="$lt_save_ifs"
10175else
10176 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10177fi
10178fi
10179
10180LD="$lt_cv_path_LD"
10181if test -n "$LD"; then
10182 echo "$as_me:$LINENO: result: $LD" >&5
10183echo "${ECHO_T}$LD" >&6
10184else
10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
10187fi
10188test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10189echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10190 { (exit 1); exit 1; }; }
10191echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10192echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10193if test "${lt_cv_prog_gnu_ld+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10197case `$LD -v 2>&1 </dev/null` in
10198*GNU* | *'with BFD'*)
10199 lt_cv_prog_gnu_ld=yes
10200 ;;
10201*)
10202 lt_cv_prog_gnu_ld=no
10203 ;;
10204esac
10205fi
10206echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10207echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10208with_gnu_ld=$lt_cv_prog_gnu_ld
10209
10210
10211
10212 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10213 # archiving commands below assume that GNU ld is being used.
10214 if test "$with_gnu_ld" = yes; then
10215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10217
10218 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10220
10221 # If archive_cmds runs LD, not CC, wlarc should be empty
10222 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10223 # investigate it a little bit more. (MM)
10224 wlarc='${wl}'
10225
10226 # ancient GNU ld didn't support --whole-archive et. al.
10227 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10228 grep 'no-whole-archive' > /dev/null; then
10229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10230 else
10231 whole_archive_flag_spec_CXX=
10232 fi
10233 else
10234 with_gnu_ld=no
10235 wlarc=
10236
10237 # A generic and very simple default shared library creation
10238 # command for GNU C++ for the case where it uses the native
10239 # linker, instead of GNU ld. If possible, this setting should
10240 # overridden to take advantage of the native linker features on
10241 # the platform it is being used on.
10242 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10243 fi
10244
10245 # Commands to make compiler produce verbose output that lists
10246 # what "hidden" libraries, object files and flags are used when
10247 # linking a shared library.
10248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10249
10250else
10251 GXX=no
10252 with_gnu_ld=no
10253 wlarc=
10254fi
10255
10256# PORTME: fill in a description of your system's C++ link characteristics
10257echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10258echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10259ld_shlibs_CXX=yes
10260case $host_os in
10261 aix3*)
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10264 ;;
10265 aix4* | aix5*)
10266 if test "$host_cpu" = ia64; then
10267 # On IA64, the linker does run time linking by default, so we don't
10268 # have to do anything special.
10269 aix_use_runtimelinking=no
10270 exp_sym_flag='-Bexport'
10271 no_entry_flag=""
10272 else
10273 aix_use_runtimelinking=no
10274
10275 # Test if we are trying to use run time linking or normal
10276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10277 # need to do runtime linking.
10278 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10279 for ld_flag in $LDFLAGS; do
10280 case $ld_flag in
10281 *-brtl*)
10282 aix_use_runtimelinking=yes
10283 break
10284 ;;
10285 esac
10286 done
10287 ;;
10288 esac
10289
10290 exp_sym_flag='-bexport'
10291 no_entry_flag='-bnoentry'
10292 fi
10293
10294 # When large executables or shared objects are built, AIX ld can
10295 # have problems creating the table of contents. If linking a library
10296 # or program results in "error TOC overflow" add -mminimal-toc to
10297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10299
10300 archive_cmds_CXX=''
10301 hardcode_direct_CXX=yes
10302 hardcode_libdir_separator_CXX=':'
10303 link_all_deplibs_CXX=yes
10304
10305 if test "$GXX" = yes; then
10306 case $host_os in aix4.[012]|aix4.[012].*)
10307 # We only want to do this on AIX 4.2 and lower, the check
10308 # below for broken collect2 doesn't work under 4.3+
10309 collect2name=`${CC} -print-prog-name=collect2`
10310 if test -f "$collect2name" && \
10311 strings "$collect2name" | grep resolve_lib_name >/dev/null
10312 then
10313 # We have reworked collect2
10314 hardcode_direct_CXX=yes
10315 else
10316 # We have old collect2
10317 hardcode_direct_CXX=unsupported
10318 # It fails to find uninstalled libraries when the uninstalled
10319 # path is not listed in the libpath. Setting hardcode_minus_L
10320 # to unsupported forces relinking
10321 hardcode_minus_L_CXX=yes
10322 hardcode_libdir_flag_spec_CXX='-L$libdir'
10323 hardcode_libdir_separator_CXX=
10324 fi
10325 ;;
10326 esac
10327 shared_flag='-shared'
10328 if test "$aix_use_runtimelinking" = yes; then
10329 shared_flag="$shared_flag "'${wl}-G'
10330 fi
10331 else
10332 # not using gcc
10333 if test "$host_cpu" = ia64; then
10334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10335 # chokes on -Wl,-G. The following line is correct:
10336 shared_flag='-G'
10337 else
10338 if test "$aix_use_runtimelinking" = yes; then
10339 shared_flag='${wl}-G'
10340 else
10341 shared_flag='${wl}-bM:SRE'
10342 fi
10343 fi
10344 fi
10345
10346 # It seems that -bexpall does not export symbols beginning with
10347 # underscore (_), so it is better to generate a list of symbols to export.
10348 always_export_symbols_CXX=yes
10349 if test "$aix_use_runtimelinking" = yes; then
10350 # Warning - without using the other runtime loading flags (-brtl),
10351 # -berok will link without error, but may produce a broken library.
10352 allow_undefined_flag_CXX='-berok'
10353 # Determine the default libpath from the value encoded in an empty executable.
10354 cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h. */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h. */
10360
10361int
10362main ()
10363{
10364
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
10370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_cxx_werror_flag"
10379 || test ! -s conftest.err'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391
10392aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10393}'`
10394# Check for a 64-bit object if we didn't find anything.
10395if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10396}'`; fi
10397else
10398 echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401fi
10402rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405
10406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10407
10408 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10409 else
10410 if test "$host_cpu" = ia64; then
10411 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10412 allow_undefined_flag_CXX="-z nodefs"
10413 archive_expsym_cmds_CXX="\$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"
10414 else
10415 # Determine the default libpath from the value encoded in an empty executable.
10416 cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
10422
10423int
10424main ()
10425{
10426
10427 ;
10428 return 0;
10429}
10430_ACEOF
10431rm -f conftest.$ac_objext conftest$ac_exeext
10432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_cxx_werror_flag"
10441 || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453
10454aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10455}'`
10456# Check for a 64-bit object if we didn't find anything.
10457if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10458}'`; fi
10459else
10460 echo "$as_me: failed program was:" >&5
10461sed 's/^/| /' conftest.$ac_ext >&5
10462
10463fi
10464rm -f conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10467
10468 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10469 # Warning - without using the other run time loading flags,
10470 # -berok will link without error, but may produce a broken library.
10471 no_undefined_flag_CXX=' ${wl}-bernotok'
10472 allow_undefined_flag_CXX=' ${wl}-berok'
10473 # Exported symbols can be pulled into shared objects from archives
10474 whole_archive_flag_spec_CXX='$convenience'
10475 archive_cmds_need_lc_CXX=yes
10476 # This is similar to how AIX traditionally builds its shared libraries.
10477 archive_expsym_cmds_CXX="\$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'
10478 fi
10479 fi
10480 ;;
10481
10482 beos*)
10483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10484 allow_undefined_flag_CXX=unsupported
10485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10486 # support --undefined. This deserves some investigation. FIXME
10487 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488 else
10489 ld_shlibs_CXX=no
10490 fi
10491 ;;
10492
10493 chorus*)
10494 case $cc_basename in
10495 *)
10496 # FIXME: insert proper C++ library support
10497 ld_shlibs_CXX=no
10498 ;;
10499 esac
10500 ;;
10501
10502 cygwin* | mingw* | pw32*)
10503 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10504 # as there is no search path for DLLs.
10505 hardcode_libdir_flag_spec_CXX='-L$libdir'
10506 allow_undefined_flag_CXX=unsupported
10507 always_export_symbols_CXX=no
10508 enable_shared_with_static_runtimes_CXX=yes
10509
10510 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10511 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10512 # If the export-symbols file already is a .def file (1st line
10513 # is EXPORTS), use it as is; otherwise, prepend...
10514 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10515 cp $export_symbols $output_objdir/$soname.def;
10516 else
10517 echo EXPORTS > $output_objdir/$soname.def;
10518 cat $export_symbols >> $output_objdir/$soname.def;
10519 fi~
10520 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10521 else
10522 ld_shlibs_CXX=no
10523 fi
10524 ;;
10525 darwin* | rhapsody*)
10526 case $host_os in
10527 rhapsody* | darwin1.[012])
10528 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10529 ;;
10530 *) # Darwin 1.3 on
10531 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10532 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10533 else
10534 case ${MACOSX_DEPLOYMENT_TARGET} in
10535 10.[012])
10536 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10537 ;;
10538 10.*)
10539 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10540 ;;
10541 esac
10542 fi
10543 ;;
10544 esac
10545 archive_cmds_need_lc_CXX=no
10546 hardcode_direct_CXX=no
10547 hardcode_automatic_CXX=yes
10548 hardcode_shlibpath_var_CXX=unsupported
10549 whole_archive_flag_spec_CXX=''
10550 link_all_deplibs_CXX=yes
10551
10552 if test "$GXX" = yes ; then
10553 lt_int_apple_cc_single_mod=no
10554 output_verbose_link_cmd='echo'
10555 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10556 lt_int_apple_cc_single_mod=yes
10557 fi
10558 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10559 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10560 else
10561 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10562 fi
10563 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10566 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10567 else
10568 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10569 fi
10570 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10571 else
10572 case $cc_basename in
10573 xlc*)
10574 output_verbose_link_cmd='echo'
10575 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10576 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10577 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10578 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10579 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10580 ;;
10581 *)
10582 ld_shlibs_CXX=no
10583 ;;
10584 esac
10585 fi
10586 ;;
10587
10588 dgux*)
10589 case $cc_basename in
10590 ec++*)
10591 # FIXME: insert proper C++ library support
10592 ld_shlibs_CXX=no
10593 ;;
10594 ghcx*)
10595 # Green Hills C++ Compiler
10596 # FIXME: insert proper C++ library support
10597 ld_shlibs_CXX=no
10598 ;;
10599 *)
10600 # FIXME: insert proper C++ library support
10601 ld_shlibs_CXX=no
10602 ;;
10603 esac
10604 ;;
10605 freebsd[12]*)
10606 # C++ shared libraries reported to be fairly broken before switch to ELF
10607 ld_shlibs_CXX=no
10608 ;;
10609 freebsd-elf*)
10610 archive_cmds_need_lc_CXX=no
10611 ;;
10612 freebsd* | kfreebsd*-gnu | dragonfly*)
10613 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10614 # conventions
10615 ld_shlibs_CXX=yes
10616 ;;
10617 gnu*)
10618 ;;
10619 hpux9*)
10620 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10621 hardcode_libdir_separator_CXX=:
10622 export_dynamic_flag_spec_CXX='${wl}-E'
10623 hardcode_direct_CXX=yes
10624 hardcode_minus_L_CXX=yes # Not in the search PATH,
10625 # but as the default
10626 # location of the library.
10627
10628 case $cc_basename in
10629 CC*)
10630 # FIXME: insert proper C++ library support
10631 ld_shlibs_CXX=no
10632 ;;
10633 aCC*)
10634 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10635 # Commands to make compiler produce verbose output that lists
10636 # what "hidden" libraries, object files and flags are used when
10637 # linking a shared library.
10638 #
10639 # There doesn't appear to be a way to prevent this compiler from
10640 # explicitly linking system object files so we need to strip them
10641 # from the output so that they don't get included in the library
10642 # dependencies.
10643 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10644 ;;
10645 *)
10646 if test "$GXX" = yes; then
10647 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10648 else
10649 # FIXME: insert proper C++ library support
10650 ld_shlibs_CXX=no
10651 fi
10652 ;;
10653 esac
10654 ;;
10655 hpux10*|hpux11*)
10656 if test $with_gnu_ld = no; then
10657 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10658 hardcode_libdir_separator_CXX=:
10659
10660 case $host_cpu in
10661 hppa*64*|ia64*)
10662 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10663 ;;
10664 *)
10665 export_dynamic_flag_spec_CXX='${wl}-E'
10666 ;;
10667 esac
10668 fi
10669 case $host_cpu in
10670 hppa*64*|ia64*)
10671 hardcode_direct_CXX=no
10672 hardcode_shlibpath_var_CXX=no
10673 ;;
10674 *)
10675 hardcode_direct_CXX=yes
10676 hardcode_minus_L_CXX=yes # Not in the search PATH,
10677 # but as the default
10678 # location of the library.
10679 ;;
10680 esac
10681
10682 case $cc_basename in
10683 CC*)
10684 # FIXME: insert proper C++ library support
10685 ld_shlibs_CXX=no
10686 ;;
10687 aCC*)
10688 case $host_cpu in
10689 hppa*64*)
10690 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10691 ;;
10692 ia64*)
10693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10694 ;;
10695 *)
10696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10697 ;;
10698 esac
10699 # Commands to make compiler produce verbose output that lists
10700 # what "hidden" libraries, object files and flags are used when
10701 # linking a shared library.
10702 #
10703 # There doesn't appear to be a way to prevent this compiler from
10704 # explicitly linking system object files so we need to strip them
10705 # from the output so that they don't get included in the library
10706 # dependencies.
10707 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10708 ;;
10709 *)
10710 if test "$GXX" = yes; then
10711 if test $with_gnu_ld = no; then
10712 case $host_cpu in
10713 hppa*64*)
10714 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10715 ;;
10716 ia64*)
10717 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10718 ;;
10719 *)
10720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10721 ;;
10722 esac
10723 fi
10724 else
10725 # FIXME: insert proper C++ library support
10726 ld_shlibs_CXX=no
10727 fi
10728 ;;
10729 esac
10730 ;;
10731 interix3*)
10732 hardcode_direct_CXX=no
10733 hardcode_shlibpath_var_CXX=no
10734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10735 export_dynamic_flag_spec_CXX='${wl}-E'
10736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10737 # Instead, shared libraries are loaded at an image base (0x10000000 by
10738 # default) and relocated if they conflict, which is a slow very memory
10739 # consuming and fragmenting process. To avoid this, we pick a random,
10740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10742 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10743 archive_expsym_cmds_CXX='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'
10744 ;;
10745 irix5* | irix6*)
10746 case $cc_basename in
10747 CC*)
10748 # SGI C++
10749 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10750
10751 # Archives containing C++ object files must be created using
10752 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10753 # necessary to make sure instantiated templates are included
10754 # in the archive.
10755 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10756 ;;
10757 *)
10758 if test "$GXX" = yes; then
10759 if test "$with_gnu_ld" = no; then
10760 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10761 else
10762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10763 fi
10764 fi
10765 link_all_deplibs_CXX=yes
10766 ;;
10767 esac
10768 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10769 hardcode_libdir_separator_CXX=:
10770 ;;
10771 linux*)
10772 case $cc_basename in
10773 KCC*)
10774 # Kuck and Associates, Inc. (KAI) C++ Compiler
10775
10776 # KCC will only create a shared library if the output file
10777 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10778 # to its proper name (with version) after linking.
10779 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10780 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10781 # Commands to make compiler produce verbose output that lists
10782 # what "hidden" libraries, object files and flags are used when
10783 # linking a shared library.
10784 #
10785 # There doesn't appear to be a way to prevent this compiler from
10786 # explicitly linking system object files so we need to strip them
10787 # from the output so that they don't get included in the library
10788 # dependencies.
10789 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10790
10791 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10793
10794 # Archives containing C++ object files must be created using
10795 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10796 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10797 ;;
10798 icpc*)
10799 # Intel C++
10800 with_gnu_ld=yes
10801 # version 8.0 and above of icpc choke on multiply defined symbols
10802 # if we add $predep_objects and $postdep_objects, however 7.1 and
10803 # earlier do not add the objects themselves.
10804 case `$CC -V 2>&1` in
10805 *"Version 7."*)
10806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10807 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10808 ;;
10809 *) # Version 8.0 or newer
10810 tmp_idyn=
10811 case $host_cpu in
10812 ia64*) tmp_idyn=' -i_dynamic';;
10813 esac
10814 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10815 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10816 ;;
10817 esac
10818 archive_cmds_need_lc_CXX=no
10819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10821 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10822 ;;
10823 pgCC*)
10824 # Portland Group C++ compiler
10825 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10826 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10827
10828 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10830 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10831 ;;
10832 cxx*)
10833 # Compaq C++
10834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10836
10837 runpath_var=LD_RUN_PATH
10838 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10839 hardcode_libdir_separator_CXX=:
10840
10841 # Commands to make compiler produce verbose output that lists
10842 # what "hidden" libraries, object files and flags are used when
10843 # linking a shared library.
10844 #
10845 # There doesn't appear to be a way to prevent this compiler from
10846 # explicitly linking system object files so we need to strip them
10847 # from the output so that they don't get included in the library
10848 # dependencies.
10849 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10850 ;;
10851 esac
10852 ;;
10853 lynxos*)
10854 # FIXME: insert proper C++ library support
10855 ld_shlibs_CXX=no
10856 ;;
10857 m88k*)
10858 # FIXME: insert proper C++ library support
10859 ld_shlibs_CXX=no
10860 ;;
10861 mvs*)
10862 case $cc_basename in
10863 cxx*)
10864 # FIXME: insert proper C++ library support
10865 ld_shlibs_CXX=no
10866 ;;
10867 *)
10868 # FIXME: insert proper C++ library support
10869 ld_shlibs_CXX=no
10870 ;;
10871 esac
10872 ;;
10873 netbsd*)
10874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10875 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10876 wlarc=
10877 hardcode_libdir_flag_spec_CXX='-R$libdir'
10878 hardcode_direct_CXX=yes
10879 hardcode_shlibpath_var_CXX=no
10880 fi
10881 # Workaround some broken pre-1.5 toolchains
10882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10883 ;;
10884 openbsd2*)
10885 # C++ shared libraries are fairly broken
10886 ld_shlibs_CXX=no
10887 ;;
10888 openbsd*)
10889 hardcode_direct_CXX=yes
10890 hardcode_shlibpath_var_CXX=no
10891 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10894 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10895 export_dynamic_flag_spec_CXX='${wl}-E'
10896 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10897 fi
10898 output_verbose_link_cmd='echo'
10899 ;;
10900 osf3*)
10901 case $cc_basename in
10902 KCC*)
10903 # Kuck and Associates, Inc. (KAI) C++ Compiler
10904
10905 # KCC will only create a shared library if the output file
10906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10907 # to its proper name (with version) after linking.
10908 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10909
10910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10911 hardcode_libdir_separator_CXX=:
10912
10913 # Archives containing C++ object files must be created using
10914 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10915 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10916
10917 ;;
10918 RCC*)
10919 # Rational C++ 2.4.1
10920 # FIXME: insert proper C++ library support
10921 ld_shlibs_CXX=no
10922 ;;
10923 cxx*)
10924 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10925 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10926
10927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10928 hardcode_libdir_separator_CXX=:
10929
10930 # Commands to make compiler produce verbose output that lists
10931 # what "hidden" libraries, object files and flags are used when
10932 # linking a shared library.
10933 #
10934 # There doesn't appear to be a way to prevent this compiler from
10935 # explicitly linking system object files so we need to strip them
10936 # from the output so that they don't get included in the library
10937 # dependencies.
10938 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10939 ;;
10940 *)
10941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10942 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10943 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10944
10945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10946 hardcode_libdir_separator_CXX=:
10947
10948 # Commands to make compiler produce verbose output that lists
10949 # what "hidden" libraries, object files and flags are used when
10950 # linking a shared library.
10951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10952
10953 else
10954 # FIXME: insert proper C++ library support
10955 ld_shlibs_CXX=no
10956 fi
10957 ;;
10958 esac
10959 ;;
10960 osf4* | osf5*)
10961 case $cc_basename in
10962 KCC*)
10963 # Kuck and Associates, Inc. (KAI) C++ Compiler
10964
10965 # KCC will only create a shared library if the output file
10966 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10967 # to its proper name (with version) after linking.
10968 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10969
10970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10971 hardcode_libdir_separator_CXX=:
10972
10973 # Archives containing C++ object files must be created using
10974 # the KAI C++ compiler.
10975 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10976 ;;
10977 RCC*)
10978 # Rational C++ 2.4.1
10979 # FIXME: insert proper C++ library support
10980 ld_shlibs_CXX=no
10981 ;;
10982 cxx*)
10983 allow_undefined_flag_CXX=' -expect_unresolved \*'
10984 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10985 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10986 echo "-hidden">> $lib.exp~
10987 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10988 $rm $lib.exp'
10989
10990 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10991 hardcode_libdir_separator_CXX=:
10992
10993 # Commands to make compiler produce verbose output that lists
10994 # what "hidden" libraries, object files and flags are used when
10995 # linking a shared library.
10996 #
10997 # There doesn't appear to be a way to prevent this compiler from
10998 # explicitly linking system object files so we need to strip them
10999 # from the output so that they don't get included in the library
11000 # dependencies.
11001 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11002 ;;
11003 *)
11004 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11005 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11006 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11007
11008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11009 hardcode_libdir_separator_CXX=:
11010
11011 # Commands to make compiler produce verbose output that lists
11012 # what "hidden" libraries, object files and flags are used when
11013 # linking a shared library.
11014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11015
11016 else
11017 # FIXME: insert proper C++ library support
11018 ld_shlibs_CXX=no
11019 fi
11020 ;;
11021 esac
11022 ;;
11023 psos*)
11024 # FIXME: insert proper C++ library support
11025 ld_shlibs_CXX=no
11026 ;;
11027 sunos4*)
11028 case $cc_basename in
11029 CC*)
11030 # Sun C++ 4.x
11031 # FIXME: insert proper C++ library support
11032 ld_shlibs_CXX=no
11033 ;;
11034 lcc*)
11035 # Lucid
11036 # FIXME: insert proper C++ library support
11037 ld_shlibs_CXX=no
11038 ;;
11039 *)
11040 # FIXME: insert proper C++ library support
11041 ld_shlibs_CXX=no
11042 ;;
11043 esac
11044 ;;
11045 solaris*)
11046 case $cc_basename in
11047 CC*)
11048 # Sun C++ 4.2, 5.x and Centerline C++
11049 archive_cmds_need_lc_CXX=yes
11050 no_undefined_flag_CXX=' -zdefs'
11051 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11052 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11053 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11054
11055 hardcode_libdir_flag_spec_CXX='-R$libdir'
11056 hardcode_shlibpath_var_CXX=no
11057 case $host_os in
11058 solaris2.[0-5] | solaris2.[0-5].*) ;;
11059 *)
11060 # The C++ compiler is used as linker so we must use $wl
11061 # flag to pass the commands to the underlying system
11062 # linker. We must also pass each convience library through
11063 # to the system linker between allextract/defaultextract.
11064 # The C++ compiler will combine linker options so we
11065 # cannot just pass the convience library names through
11066 # without $wl.
11067 # Supported since Solaris 2.6 (maybe 2.5.1?)
11068 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11069 ;;
11070 esac
11071 link_all_deplibs_CXX=yes
11072
11073 output_verbose_link_cmd='echo'
11074
11075 # Archives containing C++ object files must be created using
11076 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11077 # necessary to make sure instantiated templates are included
11078 # in the archive.
11079 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11080 ;;
11081 gcx*)
11082 # Green Hills C++ Compiler
11083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11084
11085 # The C++ compiler must be used to create the archive.
11086 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11087 ;;
11088 *)
11089 # GNU C++ compiler with Solaris linker
11090 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11091 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11092 if $CC --version | grep -v '^2\.7' > /dev/null; then
11093 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11094 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11095 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11096
11097 # Commands to make compiler produce verbose output that lists
11098 # what "hidden" libraries, object files and flags are used when
11099 # linking a shared library.
11100 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11101 else
11102 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11103 # platform.
11104 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11105 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11106 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11107
11108 # Commands to make compiler produce verbose output that lists
11109 # what "hidden" libraries, object files and flags are used when
11110 # linking a shared library.
11111 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11112 fi
11113
11114 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11115 fi
11116 ;;
11117 esac
11118 ;;
11119 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11120 no_undefined_flag_CXX='${wl}-z,text'
11121 archive_cmds_need_lc_CXX=no
11122 hardcode_shlibpath_var_CXX=no
11123 runpath_var='LD_RUN_PATH'
11124
11125 case $cc_basename in
11126 CC*)
11127 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 ;;
11130 *)
11131 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 ;;
11134 esac
11135 ;;
11136 sysv5* | sco3.2v5* | sco5v6*)
11137 # Note: We can NOT use -z defs as we might desire, because we do not
11138 # link with -lc, and that would cause any symbols used from libc to
11139 # always be unresolved, which means just about no library would
11140 # ever link correctly. If we're not using GNU ld we use -z text
11141 # though, which does catch some bad symbols but isn't as heavy-handed
11142 # as -z defs.
11143 # For security reasons, it is highly recommended that you always
11144 # use absolute paths for naming shared libraries, and exclude the
11145 # DT_RUNPATH tag from executables and libraries. But doing so
11146 # requires that you compile everything twice, which is a pain.
11147 # So that behaviour is only enabled if SCOABSPATH is set to a
11148 # non-empty value in the environment. Most likely only useful for
11149 # creating official distributions of packages.
11150 # This is a hack until libtool officially supports absolute path
11151 # names for shared libraries.
11152 no_undefined_flag_CXX='${wl}-z,text'
11153 allow_undefined_flag_CXX='${wl}-z,nodefs'
11154 archive_cmds_need_lc_CXX=no
11155 hardcode_shlibpath_var_CXX=no
11156 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11157 hardcode_libdir_separator_CXX=':'
11158 link_all_deplibs_CXX=yes
11159 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11160 runpath_var='LD_RUN_PATH'
11161
11162 case $cc_basename in
11163 CC*)
11164 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11166 ;;
11167 *)
11168 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 ;;
11171 esac
11172 ;;
11173 tandem*)
11174 case $cc_basename in
11175 NCC*)
11176 # NonStop-UX NCC 3.20
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 *)
11181 # FIXME: insert proper C++ library support
11182 ld_shlibs_CXX=no
11183 ;;
11184 esac
11185 ;;
11186 vxworks*)
11187 # FIXME: insert proper C++ library support
11188 ld_shlibs_CXX=no
11189 ;;
11190 *)
11191 # FIXME: insert proper C++ library support
11192 ld_shlibs_CXX=no
11193 ;;
11194esac
11195echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11196echo "${ECHO_T}$ld_shlibs_CXX" >&6
11197test "$ld_shlibs_CXX" = no && can_build_shared=no
11198
11199GCC_CXX="$GXX"
11200LD_CXX="$LD"
11201
11202
11203cat > conftest.$ac_ext <<EOF
11204class Foo
11205{
11206public:
11207 Foo (void) { a = 0; }
11208private:
11209 int a;
11210};
11211EOF
11212
11213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214 (eval $ac_compile) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; then
11218 # Parse the compiler output and extract the necessary
11219 # objects, libraries and library flags.
11220
11221 # Sentinel used to keep track of whether or not we are before
11222 # the conftest object file.
11223 pre_test_object_deps_done=no
11224
11225 # The `*' in the case matches for architectures that use `case' in
11226 # $output_verbose_cmd can trigger glob expansion during the loop
11227 # eval without this substitution.
11228 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11229
11230 for p in `eval $output_verbose_link_cmd`; do
11231 case $p in
11232
11233 -L* | -R* | -l*)
11234 # Some compilers place space between "-{L,R}" and the path.
11235 # Remove the space.
11236 if test $p = "-L" \
11237 || test $p = "-R"; then
11238 prev=$p
11239 continue
11240 else
11241 prev=
11242 fi
11243
11244 if test "$pre_test_object_deps_done" = no; then
11245 case $p in
11246 -L* | -R*)
11247 # Internal compiler library paths should come after those
11248 # provided the user. The postdeps already come after the
11249 # user supplied libs so there is no need to process them.
11250 if test -z "$compiler_lib_search_path_CXX"; then
11251 compiler_lib_search_path_CXX="${prev}${p}"
11252 else
11253 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11254 fi
11255 ;;
11256 # The "-l" case would never come before the object being
11257 # linked, so don't bother handling this case.
11258 esac
11259 else
11260 if test -z "$postdeps_CXX"; then
11261 postdeps_CXX="${prev}${p}"
11262 else
11263 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11264 fi
11265 fi
11266 ;;
11267
11268 *.$objext)
11269 # This assumes that the test object file only shows up
11270 # once in the compiler output.
11271 if test "$p" = "conftest.$objext"; then
11272 pre_test_object_deps_done=yes
11273 continue
11274 fi
11275
11276 if test "$pre_test_object_deps_done" = no; then
11277 if test -z "$predep_objects_CXX"; then
11278 predep_objects_CXX="$p"
11279 else
11280 predep_objects_CXX="$predep_objects_CXX $p"
11281 fi
11282 else
11283 if test -z "$postdep_objects_CXX"; then
11284 postdep_objects_CXX="$p"
11285 else
11286 postdep_objects_CXX="$postdep_objects_CXX $p"
11287 fi
11288 fi
11289 ;;
11290
11291 *) ;; # Ignore the rest.
11292
11293 esac
11294 done
11295
11296 # Clean up.
11297 rm -f a.out a.exe
11298else
11299 echo "libtool.m4: error: problem compiling CXX test program"
11300fi
11301
11302$rm -f confest.$objext
11303
11304# PORTME: override above test on systems where it is broken
11305case $host_os in
11306interix3*)
11307 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11308 # hack all around it, let's just trust "g++" to DTRT.
11309 predep_objects_CXX=
11310 postdep_objects_CXX=
11311 postdeps_CXX=
11312 ;;
11313
11314solaris*)
11315 case $cc_basename in
11316 CC*)
11317 # Adding this requires a known-good setup of shared libraries for
11318 # Sun compiler versions before 5.6, else PIC objects from an old
11319 # archive will be linked into the output, leading to subtle bugs.
11320 postdeps_CXX='-lCstd -lCrun'
11321 ;;
11322 esac
11323 ;;
11324esac
11325
11326
11327case " $postdeps_CXX " in
11328*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11329esac
11330
11331lt_prog_compiler_wl_CXX=
11332lt_prog_compiler_pic_CXX=
11333lt_prog_compiler_static_CXX=
11334
11335echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11336echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11337
11338 # C++ specific cases for pic, static, wl, etc.
11339 if test "$GXX" = yes; then
11340 lt_prog_compiler_wl_CXX='-Wl,'
11341 lt_prog_compiler_static_CXX='-static'
11342
11343 case $host_os in
11344 aix*)
11345 # All AIX code is PIC.
11346 if test "$host_cpu" = ia64; then
11347 # AIX 5 now supports IA64 processor
11348 lt_prog_compiler_static_CXX='-Bstatic'
11349 fi
11350 ;;
11351 amigaos*)
11352 # FIXME: we need at least 68020 code to build shared libraries, but
11353 # adding the `-m68020' flag to GCC prevents building anything better,
11354 # like `-m68040'.
11355 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11356 ;;
11357 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11358 # PIC is the default for these OSes.
11359 ;;
11360 mingw* | os2* | pw32*)
11361 # This hack is so that the source file can tell whether it is being
11362 # built for inclusion in a dll (and should export symbols for example).
11363 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11364 ;;
11365 darwin* | rhapsody*)
11366 # PIC is the default on this platform
11367 # Common symbols not allowed in MH_DYLIB files
11368 lt_prog_compiler_pic_CXX='-fno-common'
11369 ;;
11370 *djgpp*)
11371 # DJGPP does not support shared libraries at all
11372 lt_prog_compiler_pic_CXX=
11373 ;;
11374 interix3*)
11375 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11376 # Instead, we relocate shared libraries at runtime.
11377 ;;
11378 sysv4*MP*)
11379 if test -d /usr/nec; then
11380 lt_prog_compiler_pic_CXX=-Kconform_pic
11381 fi
11382 ;;
11383 hpux*)
11384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11385 # not for PA HP-UX.
11386 case $host_cpu in
11387 hppa*64*|ia64*)
11388 ;;
11389 *)
11390 lt_prog_compiler_pic_CXX='-fPIC'
11391 ;;
11392 esac
11393 ;;
11394 *)
11395 lt_prog_compiler_pic_CXX='-fPIC'
11396 ;;
11397 esac
11398 else
11399 case $host_os in
11400 aix4* | aix5*)
11401 # All AIX code is PIC.
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 now supports IA64 processor
11404 lt_prog_compiler_static_CXX='-Bstatic'
11405 else
11406 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11407 fi
11408 ;;
11409 chorus*)
11410 case $cc_basename in
11411 cxch68*)
11412 # Green Hills C++ Compiler
11413 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11414 ;;
11415 esac
11416 ;;
11417 darwin*)
11418 # PIC is the default on this platform
11419 # Common symbols not allowed in MH_DYLIB files
11420 case $cc_basename in
11421 xlc*)
11422 lt_prog_compiler_pic_CXX='-qnocommon'
11423 lt_prog_compiler_wl_CXX='-Wl,'
11424 ;;
11425 esac
11426 ;;
11427 dgux*)
11428 case $cc_basename in
11429 ec++*)
11430 lt_prog_compiler_pic_CXX='-KPIC'
11431 ;;
11432 ghcx*)
11433 # Green Hills C++ Compiler
11434 lt_prog_compiler_pic_CXX='-pic'
11435 ;;
11436 *)
11437 ;;
11438 esac
11439 ;;
11440 freebsd* | kfreebsd*-gnu | dragonfly*)
11441 # FreeBSD uses GNU C++
11442 ;;
11443 hpux9* | hpux10* | hpux11*)
11444 case $cc_basename in
11445 CC*)
11446 lt_prog_compiler_wl_CXX='-Wl,'
11447 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11448 if test "$host_cpu" != ia64; then
11449 lt_prog_compiler_pic_CXX='+Z'
11450 fi
11451 ;;
11452 aCC*)
11453 lt_prog_compiler_wl_CXX='-Wl,'
11454 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11455 case $host_cpu in
11456 hppa*64*|ia64*)
11457 # +Z the default
11458 ;;
11459 *)
11460 lt_prog_compiler_pic_CXX='+Z'
11461 ;;
11462 esac
11463 ;;
11464 *)
11465 ;;
11466 esac
11467 ;;
11468 interix*)
11469 # This is c89, which is MS Visual C++ (no shared libs)
11470 # Anyone wants to do a port?
11471 ;;
11472 irix5* | irix6* | nonstopux*)
11473 case $cc_basename in
11474 CC*)
11475 lt_prog_compiler_wl_CXX='-Wl,'
11476 lt_prog_compiler_static_CXX='-non_shared'
11477 # CC pic flag -KPIC is the default.
11478 ;;
11479 *)
11480 ;;
11481 esac
11482 ;;
11483 linux*)
11484 case $cc_basename in
11485 KCC*)
11486 # KAI C++ Compiler
11487 lt_prog_compiler_wl_CXX='--backend -Wl,'
11488 lt_prog_compiler_pic_CXX='-fPIC'
11489 ;;
11490 icpc* | ecpc*)
11491 # Intel C++
11492 lt_prog_compiler_wl_CXX='-Wl,'
11493 lt_prog_compiler_pic_CXX='-KPIC'
11494 lt_prog_compiler_static_CXX='-static'
11495 ;;
11496 pgCC*)
11497 # Portland Group C++ compiler.
11498 lt_prog_compiler_wl_CXX='-Wl,'
11499 lt_prog_compiler_pic_CXX='-fpic'
11500 lt_prog_compiler_static_CXX='-Bstatic'
11501 ;;
11502 cxx*)
11503 # Compaq C++
11504 # Make sure the PIC flag is empty. It appears that all Alpha
11505 # Linux and Compaq Tru64 Unix objects are PIC.
11506 lt_prog_compiler_pic_CXX=
11507 lt_prog_compiler_static_CXX='-non_shared'
11508 ;;
11509 *)
11510 ;;
11511 esac
11512 ;;
11513 lynxos*)
11514 ;;
11515 m88k*)
11516 ;;
11517 mvs*)
11518 case $cc_basename in
11519 cxx*)
11520 lt_prog_compiler_pic_CXX='-W c,exportall'
11521 ;;
11522 *)
11523 ;;
11524 esac
11525 ;;
11526 netbsd*)
11527 ;;
11528 osf3* | osf4* | osf5*)
11529 case $cc_basename in
11530 KCC*)
11531 lt_prog_compiler_wl_CXX='--backend -Wl,'
11532 ;;
11533 RCC*)
11534 # Rational C++ 2.4.1
11535 lt_prog_compiler_pic_CXX='-pic'
11536 ;;
11537 cxx*)
11538 # Digital/Compaq C++
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 # Make sure the PIC flag is empty. It appears that all Alpha
11541 # Linux and Compaq Tru64 Unix objects are PIC.
11542 lt_prog_compiler_pic_CXX=
11543 lt_prog_compiler_static_CXX='-non_shared'
11544 ;;
11545 *)
11546 ;;
11547 esac
11548 ;;
11549 psos*)
11550 ;;
11551 solaris*)
11552 case $cc_basename in
11553 CC*)
11554 # Sun C++ 4.2, 5.x and Centerline C++
11555 lt_prog_compiler_pic_CXX='-KPIC'
11556 lt_prog_compiler_static_CXX='-Bstatic'
11557 lt_prog_compiler_wl_CXX='-Qoption ld '
11558 ;;
11559 gcx*)
11560 # Green Hills C++ Compiler
11561 lt_prog_compiler_pic_CXX='-PIC'
11562 ;;
11563 *)
11564 ;;
11565 esac
11566 ;;
11567 sunos4*)
11568 case $cc_basename in
11569 CC*)
11570 # Sun C++ 4.x
11571 lt_prog_compiler_pic_CXX='-pic'
11572 lt_prog_compiler_static_CXX='-Bstatic'
11573 ;;
11574 lcc*)
11575 # Lucid
11576 lt_prog_compiler_pic_CXX='-pic'
11577 ;;
11578 *)
11579 ;;
11580 esac
11581 ;;
11582 tandem*)
11583 case $cc_basename in
11584 NCC*)
11585 # NonStop-UX NCC 3.20
11586 lt_prog_compiler_pic_CXX='-KPIC'
11587 ;;
11588 *)
11589 ;;
11590 esac
11591 ;;
11592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11593 case $cc_basename in
11594 CC*)
11595 lt_prog_compiler_wl_CXX='-Wl,'
11596 lt_prog_compiler_pic_CXX='-KPIC'
11597 lt_prog_compiler_static_CXX='-Bstatic'
11598 ;;
11599 esac
11600 ;;
11601 vxworks*)
11602 ;;
11603 *)
11604 lt_prog_compiler_can_build_shared_CXX=no
11605 ;;
11606 esac
11607 fi
11608
11609echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11610echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11611
11612#
11613# Check to make sure the PIC flag actually works.
11614#
11615if test -n "$lt_prog_compiler_pic_CXX"; then
11616
11617echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11618echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11619if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 lt_prog_compiler_pic_works_CXX=no
11623 ac_outfile=conftest.$ac_objext
11624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11625 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11626 # Insert the option either (1) after the last *FLAGS variable, or
11627 # (2) before a word containing "conftest.", or (3) at the end.
11628 # Note that $ac_compile itself does not contain backslashes and begins
11629 # with a dollar sign (not a hyphen), so the echo should work correctly.
11630 # The option is referenced via a variable to avoid confusing sed.
11631 lt_compile=`echo "$ac_compile" | $SED \
11632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11634 -e 's:$: $lt_compiler_flag:'`
11635 (eval echo "\"\$as_me:11635: $lt_compile\"" >&5)
11636 (eval "$lt_compile" 2>conftest.err)
11637 ac_status=$?
11638 cat conftest.err >&5
11639 echo "$as_me:11639: \$? = $ac_status" >&5
11640 if (exit $ac_status) && test -s "$ac_outfile"; then
11641 # The compiler can only warn and ignore the option if not recognized
11642 # So say no if there are warnings other than the usual output.
11643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11646 lt_prog_compiler_pic_works_CXX=yes
11647 fi
11648 fi
11649 $rm conftest*
11650
11651fi
11652echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11653echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11654
11655if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11656 case $lt_prog_compiler_pic_CXX in
11657 "" | " "*) ;;
11658 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11659 esac
11660else
11661 lt_prog_compiler_pic_CXX=
11662 lt_prog_compiler_can_build_shared_CXX=no
11663fi
11664
11665fi
11666case $host_os in
11667 # For platforms which do not support PIC, -DPIC is meaningless:
11668 *djgpp*)
11669 lt_prog_compiler_pic_CXX=
11670 ;;
11671 *)
11672 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11673 ;;
11674esac
11675
11676#
11677# Check to make sure the static flag actually works.
11678#
11679wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11680echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11681echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11682if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 lt_prog_compiler_static_works_CXX=no
11686 save_LDFLAGS="$LDFLAGS"
11687 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11688 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11690 # The linker can only warn and ignore the option if not recognized
11691 # So say no if there are warnings
11692 if test -s conftest.err; then
11693 # Append any errors to the config.log.
11694 cat conftest.err 1>&5
11695 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11697 if diff conftest.exp conftest.er2 >/dev/null; then
11698 lt_prog_compiler_static_works_CXX=yes
11699 fi
11700 else
11701 lt_prog_compiler_static_works_CXX=yes
11702 fi
11703 fi
11704 $rm conftest*
11705 LDFLAGS="$save_LDFLAGS"
11706
11707fi
11708echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11709echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11710
11711if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11712 :
11713else
11714 lt_prog_compiler_static_CXX=
11715fi
11716
11717
11718echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11719echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11720if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 lt_cv_prog_compiler_c_o_CXX=no
11724 $rm -r conftest 2>/dev/null
11725 mkdir conftest
11726 cd conftest
11727 mkdir out
11728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11729
11730 lt_compiler_flag="-o out/conftest2.$ac_objext"
11731 # Insert the option either (1) after the last *FLAGS variable, or
11732 # (2) before a word containing "conftest.", or (3) at the end.
11733 # Note that $ac_compile itself does not contain backslashes and begins
11734 # with a dollar sign (not a hyphen), so the echo should work correctly.
11735 lt_compile=`echo "$ac_compile" | $SED \
11736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11738 -e 's:$: $lt_compiler_flag:'`
11739 (eval echo "\"\$as_me:11739: $lt_compile\"" >&5)
11740 (eval "$lt_compile" 2>out/conftest.err)
11741 ac_status=$?
11742 cat out/conftest.err >&5
11743 echo "$as_me:11743: \$? = $ac_status" >&5
11744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11745 then
11746 # The compiler can only warn and ignore the option if not recognized
11747 # So say no if there are warnings
11748 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11751 lt_cv_prog_compiler_c_o_CXX=yes
11752 fi
11753 fi
11754 chmod u+w . 2>&5
11755 $rm conftest*
11756 # SGI C++ compiler will create directory out/ii_files/ for
11757 # template instantiation
11758 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11759 $rm out/* && rmdir out
11760 cd ..
11761 rmdir conftest
11762 $rm conftest*
11763
11764fi
11765echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11766echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11767
11768
11769hard_links="nottested"
11770if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11771 # do not overwrite the value of need_locks provided by the user
11772 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11773echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11774 hard_links=yes
11775 $rm conftest*
11776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11777 touch conftest.a
11778 ln conftest.a conftest.b 2>&5 || hard_links=no
11779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11780 echo "$as_me:$LINENO: result: $hard_links" >&5
11781echo "${ECHO_T}$hard_links" >&6
11782 if test "$hard_links" = no; then
11783 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11784echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11785 need_locks=warn
11786 fi
11787else
11788 need_locks=no
11789fi
11790
11791echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11792echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11793
11794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11795 case $host_os in
11796 aix4* | aix5*)
11797 # If we're using GNU nm, then we don't want the "-C" option.
11798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11799 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11800 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11801 else
11802 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11803 fi
11804 ;;
11805 pw32*)
11806 export_symbols_cmds_CXX="$ltdll_cmds"
11807 ;;
11808 cygwin* | mingw*)
11809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11810 ;;
11811 *)
11812 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11813 ;;
11814 esac
11815
11816echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11817echo "${ECHO_T}$ld_shlibs_CXX" >&6
11818test "$ld_shlibs_CXX" = no && can_build_shared=no
11819
11820#
11821# Do we need to explicitly link libc?
11822#
11823case "x$archive_cmds_need_lc_CXX" in
11824x|xyes)
11825 # Assume -lc should be added
11826 archive_cmds_need_lc_CXX=yes
11827
11828 if test "$enable_shared" = yes && test "$GCC" = yes; then
11829 case $archive_cmds_CXX in
11830 *'~'*)
11831 # FIXME: we may have to deal with multi-command sequences.
11832 ;;
11833 '$CC '*)
11834 # Test whether the compiler implicitly links with -lc since on some
11835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11836 # to ld, don't add -lc before -lgcc.
11837 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11838echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11839 $rm conftest*
11840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11841
11842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11843 (eval $ac_compile) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } 2>conftest.err; then
11847 soname=conftest
11848 lib=conftest
11849 libobjs=conftest.$ac_objext
11850 deplibs=
11851 wl=$lt_prog_compiler_wl_CXX
11852 pic_flag=$lt_prog_compiler_pic_CXX
11853 compiler_flags=-v
11854 linker_flags=-v
11855 verstring=
11856 output_objdir=.
11857 libname=conftest
11858 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11859 allow_undefined_flag_CXX=
11860 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11861 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }
11865 then
11866 archive_cmds_need_lc_CXX=no
11867 else
11868 archive_cmds_need_lc_CXX=yes
11869 fi
11870 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11871 else
11872 cat conftest.err 1>&5
11873 fi
11874 $rm conftest*
11875 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11876echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11877 ;;
11878 esac
11879 fi
11880 ;;
11881esac
11882
11883echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11884echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11885library_names_spec=
11886libname_spec='lib$name'
11887soname_spec=
11888shrext_cmds=".so"
11889postinstall_cmds=
11890postuninstall_cmds=
11891finish_cmds=
11892finish_eval=
11893shlibpath_var=
11894shlibpath_overrides_runpath=unknown
11895version_type=none
11896dynamic_linker="$host_os ld.so"
11897sys_lib_dlsearch_path_spec="/lib /usr/lib"
11898if test "$GCC" = yes; then
11899 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11900 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11901 # if the path contains ";" then we assume it to be the separator
11902 # otherwise default to the standard path separator (i.e. ":") - it is
11903 # assumed that no part of a normal pathname contains ";" but that should
11904 # okay in the real world where ";" in dirpaths is itself problematic.
11905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11906 else
11907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11908 fi
11909else
11910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11911fi
11912need_lib_prefix=unknown
11913hardcode_into_libs=no
11914
11915# when you set need_version to no, make sure it does not cause -set_version
11916# flags to be left without arguments
11917need_version=unknown
11918
11919case $host_os in
11920aix3*)
11921 version_type=linux
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11923 shlibpath_var=LIBPATH
11924
11925 # AIX 3 has no versioning support, so we append a major version to the name.
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 ;;
11928
11929aix4* | aix5*)
11930 version_type=linux
11931 need_lib_prefix=no
11932 need_version=no
11933 hardcode_into_libs=yes
11934 if test "$host_cpu" = ia64; then
11935 # AIX 5 supports IA64
11936 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 else
11939 # With GCC up to 2.95.x, collect2 would create an import file
11940 # for dependence libraries. The import file would start with
11941 # the line `#! .'. This would cause the generated library to
11942 # depend on `.', always an invalid library. This was fixed in
11943 # development snapshots of GCC prior to 3.0.
11944 case $host_os in
11945 aix4 | aix4.[01] | aix4.[01].*)
11946 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11947 echo ' yes '
11948 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11949 :
11950 else
11951 can_build_shared=no
11952 fi
11953 ;;
11954 esac
11955 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11956 # soname into executable. Probably we can add versioning support to
11957 # collect2, so additional links can be useful in future.
11958 if test "$aix_use_runtimelinking" = yes; then
11959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11960 # instead of lib<name>.a to let people know that these are not
11961 # typical AIX shared libraries.
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 else
11964 # We preserve .a as extension for shared libraries through AIX4.2
11965 # and later when we are not doing run time linking.
11966 library_names_spec='${libname}${release}.a $libname.a'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 fi
11969 shlibpath_var=LIBPATH
11970 fi
11971 ;;
11972
11973amigaos*)
11974 library_names_spec='$libname.ixlibrary $libname.a'
11975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11976 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'
11977 ;;
11978
11979beos*)
11980 library_names_spec='${libname}${shared_ext}'
11981 dynamic_linker="$host_os ld.so"
11982 shlibpath_var=LIBRARY_PATH
11983 ;;
11984
11985bsdi[45]*)
11986 version_type=linux
11987 need_version=no
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989 soname_spec='${libname}${release}${shared_ext}$major'
11990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11994 # the default ld.so.conf also contains /usr/contrib/lib and
11995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11996 # libtool to hard-code these into programs
11997 ;;
11998
11999cygwin* | mingw* | pw32*)
12000 version_type=windows
12001 shrext_cmds=".dll"
12002 need_version=no
12003 need_lib_prefix=no
12004
12005 case $GCC,$host_os in
12006 yes,cygwin* | yes,mingw* | yes,pw32*)
12007 library_names_spec='$libname.dll.a'
12008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12009 postinstall_cmds='base_file=`basename \${file}`~
12010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12011 dldir=$destdir/`dirname \$dlpath`~
12012 test -d \$dldir || mkdir -p \$dldir~
12013 $install_prog $dir/$dlname \$dldir/$dlname~
12014 chmod a+x \$dldir/$dlname'
12015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12016 dlpath=$dir/\$dldll~
12017 $rm \$dlpath'
12018 shlibpath_overrides_runpath=yes
12019
12020 case $host_os in
12021 cygwin*)
12022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12023 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12024 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12025 ;;
12026 mingw*)
12027 # MinGW DLLs use traditional 'lib' prefix
12028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12030 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12031 # It is most probably a Windows format PATH printed by
12032 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12033 # path with ; separators, and with drive letters. We can handle the
12034 # drive letters (cygwin fileutils understands them), so leave them,
12035 # especially as we might pass files found there to a mingw objdump,
12036 # which wouldn't understand a cygwinified path. Ahh.
12037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12038 else
12039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12040 fi
12041 ;;
12042 pw32*)
12043 # pw32 DLLs use 'pw' prefix rather than 'lib'
12044 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12045 ;;
12046 esac
12047 ;;
12048
12049 *)
12050 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12051 ;;
12052 esac
12053 dynamic_linker='Win32 ld.exe'
12054 # FIXME: first we should search . and the directory the executable is in
12055 shlibpath_var=PATH
12056 ;;
12057
12058darwin* | rhapsody*)
12059 dynamic_linker="$host_os dyld"
12060 version_type=darwin
12061 need_lib_prefix=no
12062 need_version=no
12063 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12064 soname_spec='${libname}${release}${major}$shared_ext'
12065 shlibpath_overrides_runpath=yes
12066 shlibpath_var=DYLD_LIBRARY_PATH
12067 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12068 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12069 if test "$GCC" = yes; then
12070 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12071 else
12072 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12073 fi
12074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12075 ;;
12076
12077dgux*)
12078 version_type=linux
12079 need_lib_prefix=no
12080 need_version=no
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12082 soname_spec='${libname}${release}${shared_ext}$major'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 ;;
12085
12086freebsd1*)
12087 dynamic_linker=no
12088 ;;
12089
12090kfreebsd*-gnu)
12091 version_type=linux
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=no
12098 hardcode_into_libs=yes
12099 dynamic_linker='GNU ld.so'
12100 ;;
12101
12102freebsd* | dragonfly*)
12103 # DragonFly does not have aout. When/if they implement a new
12104 # versioning mechanism, adjust this.
12105 if test -x /usr/bin/objformat; then
12106 objformat=`/usr/bin/objformat`
12107 else
12108 case $host_os in
12109 freebsd[123]*) objformat=aout ;;
12110 *) objformat=elf ;;
12111 esac
12112 fi
12113 version_type=freebsd-$objformat
12114 case $version_type in
12115 freebsd-elf*)
12116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12117 need_version=no
12118 need_lib_prefix=no
12119 ;;
12120 freebsd-*)
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12122 need_version=yes
12123 ;;
12124 esac
12125 shlibpath_var=LD_LIBRARY_PATH
12126 case $host_os in
12127 freebsd2*)
12128 shlibpath_overrides_runpath=yes
12129 ;;
12130 freebsd3.[01]* | freebsdelf3.[01]*)
12131 shlibpath_overrides_runpath=yes
12132 hardcode_into_libs=yes
12133 ;;
12134 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12135 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12136 shlibpath_overrides_runpath=no
12137 hardcode_into_libs=yes
12138 ;;
12139 freebsd*) # from 4.6 on
12140 shlibpath_overrides_runpath=yes
12141 hardcode_into_libs=yes
12142 ;;
12143 esac
12144 ;;
12145
12146gnu*)
12147 version_type=linux
12148 need_lib_prefix=no
12149 need_version=no
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 hardcode_into_libs=yes
12154 ;;
12155
12156hpux9* | hpux10* | hpux11*)
12157 # Give a soname corresponding to the major version so that dld.sl refuses to
12158 # link against other versions.
12159 version_type=sunos
12160 need_lib_prefix=no
12161 need_version=no
12162 case $host_cpu in
12163 ia64*)
12164 shrext_cmds='.so'
12165 hardcode_into_libs=yes
12166 dynamic_linker="$host_os dld.so"
12167 shlibpath_var=LD_LIBRARY_PATH
12168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 if test "X$HPUX_IA64_MODE" = X32; then
12172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12173 else
12174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12175 fi
12176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12177 ;;
12178 hppa*64*)
12179 shrext_cmds='.sl'
12180 hardcode_into_libs=yes
12181 dynamic_linker="$host_os dld.sl"
12182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185 soname_spec='${libname}${release}${shared_ext}$major'
12186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12188 ;;
12189 *)
12190 shrext_cmds='.sl'
12191 dynamic_linker="$host_os dld.sl"
12192 shlibpath_var=SHLIB_PATH
12193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 ;;
12197 esac
12198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12199 postinstall_cmds='chmod 555 $lib'
12200 ;;
12201
12202interix3*)
12203 version_type=linux
12204 need_lib_prefix=no
12205 need_version=no
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12207 soname_spec='${libname}${release}${shared_ext}$major'
12208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12209 shlibpath_var=LD_LIBRARY_PATH
12210 shlibpath_overrides_runpath=no
12211 hardcode_into_libs=yes
12212 ;;
12213
12214irix5* | irix6* | nonstopux*)
12215 case $host_os in
12216 nonstopux*) version_type=nonstopux ;;
12217 *)
12218 if test "$lt_cv_prog_gnu_ld" = yes; then
12219 version_type=linux
12220 else
12221 version_type=irix
12222 fi ;;
12223 esac
12224 need_lib_prefix=no
12225 need_version=no
12226 soname_spec='${libname}${release}${shared_ext}$major'
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12228 case $host_os in
12229 irix5* | nonstopux*)
12230 libsuff= shlibsuff=
12231 ;;
12232 *)
12233 case $LD in # libtool.m4 will add one of these switches to LD
12234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12235 libsuff= shlibsuff= libmagic=32-bit;;
12236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12237 libsuff=32 shlibsuff=N32 libmagic=N32;;
12238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12240 *) libsuff= shlibsuff= libmagic=never-match;;
12241 esac
12242 ;;
12243 esac
12244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12245 shlibpath_overrides_runpath=no
12246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12248 hardcode_into_libs=yes
12249 ;;
12250
12251# No shared lib support for Linux oldld, aout, or coff.
12252linux*oldld* | linux*aout* | linux*coff*)
12253 dynamic_linker=no
12254 ;;
12255
12256# This must be Linux ELF.
12257linux*)
12258 version_type=linux
12259 need_lib_prefix=no
12260 need_version=no
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=no
12266 # This implies no fast_install, which is unacceptable.
12267 # Some rework will be needed to allow for fast_install
12268 # before this can be enabled.
12269 hardcode_into_libs=yes
12270
12271 # find out which ABI we are using
12272 libsuff=
12273 case "$host_cpu" in
12274 x86_64*|s390x*|powerpc64*)
12275 echo '#line 12275 "configure"' > conftest.$ac_ext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; then
12281 case `/usr/bin/file conftest.$ac_objext` in
12282 *64-bit*)
12283 libsuff=64
12284 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12285 ;;
12286 esac
12287 fi
12288 rm -rf conftest*
12289 ;;
12290 esac
12291
12292 # Append ld.so.conf contents to the search path
12293 if test -f /etc/ld.so.conf; then
12294 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' ' '`
12295 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12296 fi
12297
12298 # We used to test for /lib/ld.so.1 and disable shared libraries on
12299 # powerpc, because MkLinux only supported shared libraries with the
12300 # GNU dynamic linker. Since this was broken with cross compilers,
12301 # most powerpc-linux boxes support dynamic linking these days and
12302 # people can always --disable-shared, the test was removed, and we
12303 # assume the GNU/Linux dynamic linker is in use.
12304 dynamic_linker='GNU/Linux ld.so'
12305 ;;
12306
12307knetbsd*-gnu)
12308 version_type=linux
12309 need_lib_prefix=no
12310 need_version=no
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=no
12315 hardcode_into_libs=yes
12316 dynamic_linker='GNU ld.so'
12317 ;;
12318
12319netbsd*)
12320 version_type=sunos
12321 need_lib_prefix=no
12322 need_version=no
12323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12326 dynamic_linker='NetBSD (a.out) ld.so'
12327 else
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 dynamic_linker='NetBSD ld.elf_so'
12331 fi
12332 shlibpath_var=LD_LIBRARY_PATH
12333 shlibpath_overrides_runpath=yes
12334 hardcode_into_libs=yes
12335 ;;
12336
12337newsos6)
12338 version_type=linux
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 shlibpath_overrides_runpath=yes
12342 ;;
12343
12344nto-qnx*)
12345 version_type=linux
12346 need_lib_prefix=no
12347 need_version=no
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12352 ;;
12353
12354openbsd*)
12355 version_type=sunos
12356 sys_lib_dlsearch_path_spec="/usr/lib"
12357 need_lib_prefix=no
12358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12359 case $host_os in
12360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12361 *) need_version=no ;;
12362 esac
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12365 shlibpath_var=LD_LIBRARY_PATH
12366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12367 case $host_os in
12368 openbsd2.[89] | openbsd2.[89].*)
12369 shlibpath_overrides_runpath=no
12370 ;;
12371 *)
12372 shlibpath_overrides_runpath=yes
12373 ;;
12374 esac
12375 else
12376 shlibpath_overrides_runpath=yes
12377 fi
12378 ;;
12379
12380os2*)
12381 libname_spec='$name'
12382 shrext_cmds=".dll"
12383 need_lib_prefix=no
12384 library_names_spec='$libname${shared_ext} $libname.a'
12385 dynamic_linker='OS/2 ld.exe'
12386 shlibpath_var=LIBPATH
12387 ;;
12388
12389osf3* | osf4* | osf5*)
12390 version_type=osf
12391 need_lib_prefix=no
12392 need_version=no
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12398 ;;
12399
12400solaris*)
12401 version_type=linux
12402 need_lib_prefix=no
12403 need_version=no
12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12405 soname_spec='${libname}${release}${shared_ext}$major'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=yes
12408 hardcode_into_libs=yes
12409 # ldd complains unless libraries are executable
12410 postinstall_cmds='chmod +x $lib'
12411 ;;
12412
12413sunos4*)
12414 version_type=sunos
12415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 shlibpath_overrides_runpath=yes
12419 if test "$with_gnu_ld" = yes; then
12420 need_lib_prefix=no
12421 fi
12422 need_version=yes
12423 ;;
12424
12425sysv4 | sysv4.3*)
12426 version_type=linux
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428 soname_spec='${libname}${release}${shared_ext}$major'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 case $host_vendor in
12431 sni)
12432 shlibpath_overrides_runpath=no
12433 need_lib_prefix=no
12434 export_dynamic_flag_spec='${wl}-Blargedynsym'
12435 runpath_var=LD_RUN_PATH
12436 ;;
12437 siemens)
12438 need_lib_prefix=no
12439 ;;
12440 motorola)
12441 need_lib_prefix=no
12442 need_version=no
12443 shlibpath_overrides_runpath=no
12444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12445 ;;
12446 esac
12447 ;;
12448
12449sysv4*MP*)
12450 if test -d /usr/nec ;then
12451 version_type=linux
12452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12453 soname_spec='$libname${shared_ext}.$major'
12454 shlibpath_var=LD_LIBRARY_PATH
12455 fi
12456 ;;
12457
12458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12459 version_type=freebsd-elf
12460 need_lib_prefix=no
12461 need_version=no
12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12463 soname_spec='${libname}${release}${shared_ext}$major'
12464 shlibpath_var=LD_LIBRARY_PATH
12465 hardcode_into_libs=yes
12466 if test "$with_gnu_ld" = yes; then
12467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12468 shlibpath_overrides_runpath=no
12469 else
12470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12471 shlibpath_overrides_runpath=yes
12472 case $host_os in
12473 sco3.2v5*)
12474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12475 ;;
12476 esac
12477 fi
12478 sys_lib_dlsearch_path_spec='/usr/lib'
12479 ;;
12480
12481uts4*)
12482 version_type=linux
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 ;;
12487
12488*)
12489 dynamic_linker=no
12490 ;;
12491esac
12492echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12493echo "${ECHO_T}$dynamic_linker" >&6
12494test "$dynamic_linker" = no && can_build_shared=no
12495
12496variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12497if test "$GCC" = yes; then
12498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12499fi
12500
12501echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12502echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12503hardcode_action_CXX=
12504if test -n "$hardcode_libdir_flag_spec_CXX" || \
12505 test -n "$runpath_var_CXX" || \
12506 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12507
12508 # We can hardcode non-existant directories.
12509 if test "$hardcode_direct_CXX" != no &&
12510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12511 # have to relink, otherwise we might link with an installed library
12512 # when we should be linking with a yet-to-be-installed one
12513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12514 test "$hardcode_minus_L_CXX" != no; then
12515 # Linking always hardcodes the temporary library directory.
12516 hardcode_action_CXX=relink
12517 else
12518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12519 hardcode_action_CXX=immediate
12520 fi
12521else
12522 # We cannot hardcode anything, or else we can only hardcode existing
12523 # directories.
12524 hardcode_action_CXX=unsupported
12525fi
12526echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12527echo "${ECHO_T}$hardcode_action_CXX" >&6
12528
12529if test "$hardcode_action_CXX" = relink; then
12530 # Fast installation is not supported
12531 enable_fast_install=no
12532elif test "$shlibpath_overrides_runpath" = yes ||
12533 test "$enable_shared" = no; then
12534 # Fast installation is not necessary
12535 enable_fast_install=needless
12536fi
12537
12538
12539# The else clause should only fire when bootstrapping the
12540# libtool distribution, otherwise you forgot to ship ltmain.sh
12541# with your package, and you will get complaints that there are
12542# no rules to generate ltmain.sh.
12543if test -f "$ltmain"; then
12544 # See if we are running on zsh, and set the options which allow our commands through
12545 # without removal of \ escapes.
12546 if test -n "${ZSH_VERSION+set}" ; then
12547 setopt NO_GLOB_SUBST
12548 fi
12549 # Now quote all the things that may contain metacharacters while being
12550 # careful not to overquote the AC_SUBSTed values. We take copies of the
12551 # variables and quote the copies for generation of the libtool script.
12552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12553 SED SHELL STRIP \
12554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12556 deplibs_check_method reload_flag reload_cmds need_locks \
12557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12558 lt_cv_sys_global_symbol_to_c_name_address \
12559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12560 old_postinstall_cmds old_postuninstall_cmds \
12561 compiler_CXX \
12562 CC_CXX \
12563 LD_CXX \
12564 lt_prog_compiler_wl_CXX \
12565 lt_prog_compiler_pic_CXX \
12566 lt_prog_compiler_static_CXX \
12567 lt_prog_compiler_no_builtin_flag_CXX \
12568 export_dynamic_flag_spec_CXX \
12569 thread_safe_flag_spec_CXX \
12570 whole_archive_flag_spec_CXX \
12571 enable_shared_with_static_runtimes_CXX \
12572 old_archive_cmds_CXX \
12573 old_archive_from_new_cmds_CXX \
12574 predep_objects_CXX \
12575 postdep_objects_CXX \
12576 predeps_CXX \
12577 postdeps_CXX \
12578 compiler_lib_search_path_CXX \
12579 archive_cmds_CXX \
12580 archive_expsym_cmds_CXX \
12581 postinstall_cmds_CXX \
12582 postuninstall_cmds_CXX \
12583 old_archive_from_expsyms_cmds_CXX \
12584 allow_undefined_flag_CXX \
12585 no_undefined_flag_CXX \
12586 export_symbols_cmds_CXX \
12587 hardcode_libdir_flag_spec_CXX \
12588 hardcode_libdir_flag_spec_ld_CXX \
12589 hardcode_libdir_separator_CXX \
12590 hardcode_automatic_CXX \
12591 module_cmds_CXX \
12592 module_expsym_cmds_CXX \
12593 lt_cv_prog_compiler_c_o_CXX \
12594 exclude_expsyms_CXX \
12595 include_expsyms_CXX; do
12596
12597 case $var in
12598 old_archive_cmds_CXX | \
12599 old_archive_from_new_cmds_CXX | \
12600 archive_cmds_CXX | \
12601 archive_expsym_cmds_CXX | \
12602 module_cmds_CXX | \
12603 module_expsym_cmds_CXX | \
12604 old_archive_from_expsyms_cmds_CXX | \
12605 export_symbols_cmds_CXX | \
12606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12607 postinstall_cmds | postuninstall_cmds | \
12608 old_postinstall_cmds | old_postuninstall_cmds | \
12609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12610 # Double-quote double-evaled strings.
12611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12612 ;;
12613 *)
12614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12615 ;;
12616 esac
12617 done
12618
12619 case $lt_echo in
12620 *'\$0 --fallback-echo"')
12621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12622 ;;
12623 esac
12624
12625cfgfile="$ofile"
12626
12627 cat <<__EOF__ >> "$cfgfile"
12628# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12629
12630# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12631
12632# Shell to use when invoking shell scripts.
12633SHELL=$lt_SHELL
12634
12635# Whether or not to build shared libraries.
12636build_libtool_libs=$enable_shared
12637
12638# Whether or not to build static libraries.
12639build_old_libs=$enable_static
12640
12641# Whether or not to add -lc for building shared libraries.
12642build_libtool_need_lc=$archive_cmds_need_lc_CXX
12643
12644# Whether or not to disallow shared libs when runtime libs are static
12645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12646
12647# Whether or not to optimize for fast installation.
12648fast_install=$enable_fast_install
12649
12650# The host system.
12651host_alias=$host_alias
12652host=$host
12653host_os=$host_os
12654
12655# The build system.
12656build_alias=$build_alias
12657build=$build
12658build_os=$build_os
12659
12660# An echo program that does not interpret backslashes.
12661echo=$lt_echo
12662
12663# The archiver.
12664AR=$lt_AR
12665AR_FLAGS=$lt_AR_FLAGS
12666
12667# A C compiler.
12668LTCC=$lt_LTCC
12669
12670# LTCC compiler flags.
12671LTCFLAGS=$lt_LTCFLAGS
12672
12673# A language-specific compiler.
12674CC=$lt_compiler_CXX
12675
12676# Is the compiler the GNU C compiler?
12677with_gcc=$GCC_CXX
12678
12679gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12680gcc_ver=\`gcc -dumpversion\`
12681
12682# An ERE matcher.
12683EGREP=$lt_EGREP
12684
12685# The linker used to build libraries.
12686LD=$lt_LD_CXX
12687
12688# Whether we need hard or soft links.
12689LN_S=$lt_LN_S
12690
12691# A BSD-compatible nm program.
12692NM=$lt_NM
12693
12694# A symbol stripping program
12695STRIP=$lt_STRIP
12696
12697# Used to examine libraries when file_magic_cmd begins "file"
12698MAGIC_CMD=$MAGIC_CMD
12699
12700# Used on cygwin: DLL creation program.
12701DLLTOOL="$DLLTOOL"
12702
12703# Used on cygwin: object dumper.
12704OBJDUMP="$OBJDUMP"
12705
12706# Used on cygwin: assembler.
12707AS="$AS"
12708
12709# The name of the directory that contains temporary libtool files.
12710objdir=$objdir
12711
12712# How to create reloadable object files.
12713reload_flag=$lt_reload_flag
12714reload_cmds=$lt_reload_cmds
12715
12716# How to pass a linker flag through the compiler.
12717wl=$lt_lt_prog_compiler_wl_CXX
12718
12719# Object file suffix (normally "o").
12720objext="$ac_objext"
12721
12722# Old archive suffix (normally "a").
12723libext="$libext"
12724
12725# Shared library suffix (normally ".so").
12726shrext_cmds='$shrext_cmds'
12727
12728# Executable file suffix (normally "").
12729exeext="$exeext"
12730
12731# Additional compiler flags for building library objects.
12732pic_flag=$lt_lt_prog_compiler_pic_CXX
12733pic_mode=$pic_mode
12734
12735# What is the maximum length of a command?
12736max_cmd_len=$lt_cv_sys_max_cmd_len
12737
12738# Does compiler simultaneously support -c and -o options?
12739compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12740
12741# Must we lock files when doing compilation?
12742need_locks=$lt_need_locks
12743
12744# Do we need the lib prefix for modules?
12745need_lib_prefix=$need_lib_prefix
12746
12747# Do we need a version for libraries?
12748need_version=$need_version
12749
12750# Whether dlopen is supported.
12751dlopen_support=$enable_dlopen
12752
12753# Whether dlopen of programs is supported.
12754dlopen_self=$enable_dlopen_self
12755
12756# Whether dlopen of statically linked programs is supported.
12757dlopen_self_static=$enable_dlopen_self_static
12758
12759# Compiler flag to prevent dynamic linking.
12760link_static_flag=$lt_lt_prog_compiler_static_CXX
12761
12762# Compiler flag to turn off builtin functions.
12763no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12764
12765# Compiler flag to allow reflexive dlopens.
12766export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12767
12768# Compiler flag to generate shared objects directly from archives.
12769whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12770
12771# Compiler flag to generate thread-safe objects.
12772thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12773
12774# Library versioning type.
12775version_type=$version_type
12776
12777# Format of library name prefix.
12778libname_spec=$lt_libname_spec
12779
12780# List of archive names. First name is the real one, the rest are links.
12781# The last name is the one that the linker finds with -lNAME.
12782library_names_spec=$lt_library_names_spec
12783
12784# The coded name of the library, if different from the real name.
12785soname_spec=$lt_soname_spec
12786
12787# Commands used to build and install an old-style archive.
12788RANLIB=$lt_RANLIB
12789old_archive_cmds=$lt_old_archive_cmds_CXX
12790old_postinstall_cmds=$lt_old_postinstall_cmds
12791old_postuninstall_cmds=$lt_old_postuninstall_cmds
12792
12793# Create an old-style archive from a shared archive.
12794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12795
12796# Create a temporary old-style archive to link instead of a shared archive.
12797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12798
12799# Commands used to build and install a shared archive.
12800archive_cmds=$lt_archive_cmds_CXX
12801archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12802postinstall_cmds=$lt_postinstall_cmds
12803postuninstall_cmds=$lt_postuninstall_cmds
12804
12805# Commands used to build a loadable module (assumed same as above if empty)
12806module_cmds=$lt_module_cmds_CXX
12807module_expsym_cmds=$lt_module_expsym_cmds_CXX
12808
12809# Commands to strip libraries.
12810old_striplib=$lt_old_striplib
12811striplib=$lt_striplib
12812
12813# Dependencies to place before the objects being linked to create a
12814# shared library.
12815predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12816
12817# Dependencies to place after the objects being linked to create a
12818# shared library.
12819postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12820
12821# Dependencies to place before the objects being linked to create a
12822# shared library.
12823predeps=$lt_predeps_CXX
12824
12825# Dependencies to place after the objects being linked to create a
12826# shared library.
12827postdeps=$lt_postdeps_CXX
12828
12829# The library search path used internally by the compiler when linking
12830# a shared library.
12831compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12832
12833# Method to check whether dependent libraries are shared objects.
12834deplibs_check_method=$lt_deplibs_check_method
12835
12836# Command to use when deplibs_check_method == file_magic.
12837file_magic_cmd=$lt_file_magic_cmd
12838
12839# Flag that allows shared libraries with undefined symbols to be built.
12840allow_undefined_flag=$lt_allow_undefined_flag_CXX
12841
12842# Flag that forces no undefined symbols.
12843no_undefined_flag=$lt_no_undefined_flag_CXX
12844
12845# Commands used to finish a libtool library installation in a directory.
12846finish_cmds=$lt_finish_cmds
12847
12848# Same as above, but a single script fragment to be evaled but not shown.
12849finish_eval=$lt_finish_eval
12850
12851# Take the output of nm and produce a listing of raw symbols and C names.
12852global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12853
12854# Transform the output of nm in a proper C declaration
12855global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12856
12857# Transform the output of nm in a C name address pair
12858global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12859
12860# This is the shared library runtime path variable.
12861runpath_var=$runpath_var
12862
12863# This is the shared library path variable.
12864shlibpath_var=$shlibpath_var
12865
12866# Is shlibpath searched before the hard-coded library search path?
12867shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12868
12869# How to hardcode a shared library path into an executable.
12870hardcode_action=$hardcode_action_CXX
12871
12872# Whether we should hardcode library paths into libraries.
12873hardcode_into_libs=$hardcode_into_libs
12874
12875# Flag to hardcode \$libdir into a binary during linking.
12876# This must work even if \$libdir does not exist.
12877hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12878
12879# If ld is used when linking, flag to hardcode \$libdir into
12880# a binary during linking. This must work even if \$libdir does
12881# not exist.
12882hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12883
12884# Whether we need a single -rpath flag with a separated argument.
12885hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12886
12887# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12888# resulting binary.
12889hardcode_direct=$hardcode_direct_CXX
12890
12891# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12892# resulting binary.
12893hardcode_minus_L=$hardcode_minus_L_CXX
12894
12895# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12896# the resulting binary.
12897hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12898
12899# Set to yes if building a shared library automatically hardcodes DIR into the library
12900# and all subsequent libraries and executables linked against it.
12901hardcode_automatic=$hardcode_automatic_CXX
12902
12903# Variables whose values should be saved in libtool wrapper scripts and
12904# restored at relink time.
12905variables_saved_for_relink="$variables_saved_for_relink"
12906
12907# Whether libtool must link a program against all its dependency libraries.
12908link_all_deplibs=$link_all_deplibs_CXX
12909
12910# Compile-time system search path for libraries
12911sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12912
12913# Run-time system search path for libraries
12914sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12915
12916# Fix the shell variable \$srcfile for the compiler.
12917fix_srcfile_path="$fix_srcfile_path_CXX"
12918
12919# Set to yes if exported symbols are required.
12920always_export_symbols=$always_export_symbols_CXX
12921
12922# The commands to list exported symbols.
12923export_symbols_cmds=$lt_export_symbols_cmds_CXX
12924
12925# The commands to extract the exported symbol list from a shared archive.
12926extract_expsyms_cmds=$lt_extract_expsyms_cmds
12927
12928# Symbols that should not be listed in the preloaded symbols.
12929exclude_expsyms=$lt_exclude_expsyms_CXX
12930
12931# Symbols that must always be exported.
12932include_expsyms=$lt_include_expsyms_CXX
12933
12934# ### END LIBTOOL TAG CONFIG: $tagname
12935
12936__EOF__
12937
12938
12939else
12940 # If there is no Makefile yet, we rely on a make rule to execute
12941 # `config.status --recheck' to rerun these tests and create the
12942 # libtool script then.
12943 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12944 if test -f "$ltmain_in"; then
12945 test -f Makefile && make "$ltmain"
12946 fi
12947fi
12948
12949
12950ac_ext=c
12951ac_cpp='$CPP $CPPFLAGS'
12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956CC=$lt_save_CC
12957LDCXX=$LD
12958LD=$lt_save_LD
12959GCC=$lt_save_GCC
12960with_gnu_ldcxx=$with_gnu_ld
12961with_gnu_ld=$lt_save_with_gnu_ld
12962lt_cv_path_LDCXX=$lt_cv_path_LD
12963lt_cv_path_LD=$lt_save_path_LD
12964lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12965lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12966
12967 else
12968 tagname=""
12969 fi
12970 ;;
12971
12972 F77)
12973 if test -n "$F77" && test "X$F77" != "Xno"; then
12974
12975ac_ext=f
12976ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12977ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12978ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12979
12980
12981archive_cmds_need_lc_F77=no
12982allow_undefined_flag_F77=
12983always_export_symbols_F77=no
12984archive_expsym_cmds_F77=
12985export_dynamic_flag_spec_F77=
12986hardcode_direct_F77=no
12987hardcode_libdir_flag_spec_F77=
12988hardcode_libdir_flag_spec_ld_F77=
12989hardcode_libdir_separator_F77=
12990hardcode_minus_L_F77=no
12991hardcode_automatic_F77=no
12992module_cmds_F77=
12993module_expsym_cmds_F77=
12994link_all_deplibs_F77=unknown
12995old_archive_cmds_F77=$old_archive_cmds
12996no_undefined_flag_F77=
12997whole_archive_flag_spec_F77=
12998enable_shared_with_static_runtimes_F77=no
12999
13000# Source file extension for f77 test sources.
13001ac_ext=f
13002
13003# Object file extension for compiled f77 test sources.
13004objext=o
13005objext_F77=$objext
13006
13007# Code to be used in simple compile tests
13008lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13009
13010# Code to be used in simple link tests
13011lt_simple_link_test_code=" program t\n end\n"
13012
13013# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13014
13015# If no C compiler was specified, use CC.
13016LTCC=${LTCC-"$CC"}
13017
13018# If no C compiler flags were specified, use CFLAGS.
13019LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13020
13021# Allow CC to be a program name with arguments.
13022compiler=$CC
13023
13024
13025# save warnings/boilerplate of simple test code
13026ac_outfile=conftest.$ac_objext
13027printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13028eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13029_lt_compiler_boilerplate=`cat conftest.err`
13030$rm conftest*
13031
13032ac_outfile=conftest.$ac_objext
13033printf "$lt_simple_link_test_code" >conftest.$ac_ext
13034eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13035_lt_linker_boilerplate=`cat conftest.err`
13036$rm conftest*
13037
13038
13039# Allow CC to be a program name with arguments.
13040lt_save_CC="$CC"
13041CC=${F77-"f77"}
13042compiler=$CC
13043compiler_F77=$CC
13044for cc_temp in $compiler""; do
13045 case $cc_temp in
13046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13048 \-*) ;;
13049 *) break;;
13050 esac
13051done
13052cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13053
13054
13055echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13056echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13057echo "$as_me:$LINENO: result: $can_build_shared" >&5
13058echo "${ECHO_T}$can_build_shared" >&6
13059
13060echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13061echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13062test "$can_build_shared" = "no" && enable_shared=no
13063
13064# On AIX, shared libraries and static libraries use the same namespace, and
13065# are all built from PIC.
13066case $host_os in
13067aix3*)
13068 test "$enable_shared" = yes && enable_static=no
13069 if test -n "$RANLIB"; then
13070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13071 postinstall_cmds='$RANLIB $lib'
13072 fi
13073 ;;
13074aix4* | aix5*)
13075 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13076 test "$enable_shared" = yes && enable_static=no
13077 fi
13078 ;;
13079esac
13080echo "$as_me:$LINENO: result: $enable_shared" >&5
13081echo "${ECHO_T}$enable_shared" >&6
13082
13083echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13084echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13085# Make sure either enable_shared or enable_static is yes.
13086test "$enable_shared" = yes || enable_static=yes
13087echo "$as_me:$LINENO: result: $enable_static" >&5
13088echo "${ECHO_T}$enable_static" >&6
13089
13090GCC_F77="$G77"
13091LD_F77="$LD"
13092
13093lt_prog_compiler_wl_F77=
13094lt_prog_compiler_pic_F77=
13095lt_prog_compiler_static_F77=
13096
13097echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13098echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13099
13100 if test "$GCC" = yes; then
13101 lt_prog_compiler_wl_F77='-Wl,'
13102 lt_prog_compiler_static_F77='-static'
13103
13104 case $host_os in
13105 aix*)
13106 # All AIX code is PIC.
13107 if test "$host_cpu" = ia64; then
13108 # AIX 5 now supports IA64 processor
13109 lt_prog_compiler_static_F77='-Bstatic'
13110 fi
13111 ;;
13112
13113 amigaos*)
13114 # FIXME: we need at least 68020 code to build shared libraries, but
13115 # adding the `-m68020' flag to GCC prevents building anything better,
13116 # like `-m68040'.
13117 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13118 ;;
13119
13120 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13121 # PIC is the default for these OSes.
13122 ;;
13123
13124 mingw* | pw32* | os2*)
13125 # This hack is so that the source file can tell whether it is being
13126 # built for inclusion in a dll (and should export symbols for example).
13127 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13128 ;;
13129
13130 darwin* | rhapsody*)
13131 # PIC is the default on this platform
13132 # Common symbols not allowed in MH_DYLIB files
13133 lt_prog_compiler_pic_F77='-fno-common'
13134 ;;
13135
13136 interix3*)
13137 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13138 # Instead, we relocate shared libraries at runtime.
13139 ;;
13140
13141 msdosdjgpp*)
13142 # Just because we use GCC doesn't mean we suddenly get shared libraries
13143 # on systems that don't support them.
13144 lt_prog_compiler_can_build_shared_F77=no
13145 enable_shared=no
13146 ;;
13147
13148 sysv4*MP*)
13149 if test -d /usr/nec; then
13150 lt_prog_compiler_pic_F77=-Kconform_pic
13151 fi
13152 ;;
13153
13154 hpux*)
13155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13156 # not for PA HP-UX.
13157 case $host_cpu in
13158 hppa*64*|ia64*)
13159 # +Z the default
13160 ;;
13161 *)
13162 lt_prog_compiler_pic_F77='-fPIC'
13163 ;;
13164 esac
13165 ;;
13166
13167 *)
13168 lt_prog_compiler_pic_F77='-fPIC'
13169 ;;
13170 esac
13171 else
13172 # PORTME Check for flag to pass linker flags through the system compiler.
13173 case $host_os in
13174 aix*)
13175 lt_prog_compiler_wl_F77='-Wl,'
13176 if test "$host_cpu" = ia64; then
13177 # AIX 5 now supports IA64 processor
13178 lt_prog_compiler_static_F77='-Bstatic'
13179 else
13180 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13181 fi
13182 ;;
13183 darwin*)
13184 # PIC is the default on this platform
13185 # Common symbols not allowed in MH_DYLIB files
13186 case $cc_basename in
13187 xlc*)
13188 lt_prog_compiler_pic_F77='-qnocommon'
13189 lt_prog_compiler_wl_F77='-Wl,'
13190 ;;
13191 esac
13192 ;;
13193
13194 mingw* | pw32* | os2*)
13195 # This hack is so that the source file can tell whether it is being
13196 # built for inclusion in a dll (and should export symbols for example).
13197 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13198 ;;
13199
13200 hpux9* | hpux10* | hpux11*)
13201 lt_prog_compiler_wl_F77='-Wl,'
13202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13203 # not for PA HP-UX.
13204 case $host_cpu in
13205 hppa*64*|ia64*)
13206 # +Z the default
13207 ;;
13208 *)
13209 lt_prog_compiler_pic_F77='+Z'
13210 ;;
13211 esac
13212 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13213 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13214 ;;
13215
13216 irix5* | irix6* | nonstopux*)
13217 lt_prog_compiler_wl_F77='-Wl,'
13218 # PIC (with -KPIC) is the default.
13219 lt_prog_compiler_static_F77='-non_shared'
13220 ;;
13221
13222 newsos6)
13223 lt_prog_compiler_pic_F77='-KPIC'
13224 lt_prog_compiler_static_F77='-Bstatic'
13225 ;;
13226
13227 linux*)
13228 case $cc_basename in
13229 icc* | ecc*)
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 lt_prog_compiler_pic_F77='-KPIC'
13232 lt_prog_compiler_static_F77='-static'
13233 ;;
13234 pgcc* | pgf77* | pgf90* | pgf95*)
13235 # Portland Group compilers (*not* the Pentium gcc compiler,
13236 # which looks to be a dead project)
13237 lt_prog_compiler_wl_F77='-Wl,'
13238 lt_prog_compiler_pic_F77='-fpic'
13239 lt_prog_compiler_static_F77='-Bstatic'
13240 ;;
13241 ccc*)
13242 lt_prog_compiler_wl_F77='-Wl,'
13243 # All Alpha code is PIC.
13244 lt_prog_compiler_static_F77='-non_shared'
13245 ;;
13246 esac
13247 ;;
13248
13249 osf3* | osf4* | osf5*)
13250 lt_prog_compiler_wl_F77='-Wl,'
13251 # All OSF/1 code is PIC.
13252 lt_prog_compiler_static_F77='-non_shared'
13253 ;;
13254
13255 solaris*)
13256 lt_prog_compiler_pic_F77='-KPIC'
13257 lt_prog_compiler_static_F77='-Bstatic'
13258 case $cc_basename in
13259 f77* | f90* | f95*)
13260 lt_prog_compiler_wl_F77='-Qoption ld ';;
13261 *)
13262 lt_prog_compiler_wl_F77='-Wl,';;
13263 esac
13264 ;;
13265
13266 sunos4*)
13267 lt_prog_compiler_wl_F77='-Qoption ld '
13268 lt_prog_compiler_pic_F77='-PIC'
13269 lt_prog_compiler_static_F77='-Bstatic'
13270 ;;
13271
13272 sysv4 | sysv4.2uw2* | sysv4.3*)
13273 lt_prog_compiler_wl_F77='-Wl,'
13274 lt_prog_compiler_pic_F77='-KPIC'
13275 lt_prog_compiler_static_F77='-Bstatic'
13276 ;;
13277
13278 sysv4*MP*)
13279 if test -d /usr/nec ;then
13280 lt_prog_compiler_pic_F77='-Kconform_pic'
13281 lt_prog_compiler_static_F77='-Bstatic'
13282 fi
13283 ;;
13284
13285 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13286 lt_prog_compiler_wl_F77='-Wl,'
13287 lt_prog_compiler_pic_F77='-KPIC'
13288 lt_prog_compiler_static_F77='-Bstatic'
13289 ;;
13290
13291 unicos*)
13292 lt_prog_compiler_wl_F77='-Wl,'
13293 lt_prog_compiler_can_build_shared_F77=no
13294 ;;
13295
13296 uts4*)
13297 lt_prog_compiler_pic_F77='-pic'
13298 lt_prog_compiler_static_F77='-Bstatic'
13299 ;;
13300
13301 *)
13302 lt_prog_compiler_can_build_shared_F77=no
13303 ;;
13304 esac
13305 fi
13306
13307echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13308echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13309
13310#
13311# Check to make sure the PIC flag actually works.
13312#
13313if test -n "$lt_prog_compiler_pic_F77"; then
13314
13315echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13316echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13317if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319else
13320 lt_prog_compiler_pic_works_F77=no
13321 ac_outfile=conftest.$ac_objext
13322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13323 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13324 # Insert the option either (1) after the last *FLAGS variable, or
13325 # (2) before a word containing "conftest.", or (3) at the end.
13326 # Note that $ac_compile itself does not contain backslashes and begins
13327 # with a dollar sign (not a hyphen), so the echo should work correctly.
13328 # The option is referenced via a variable to avoid confusing sed.
13329 lt_compile=`echo "$ac_compile" | $SED \
13330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332 -e 's:$: $lt_compiler_flag:'`
13333 (eval echo "\"\$as_me:13333: $lt_compile\"" >&5)
13334 (eval "$lt_compile" 2>conftest.err)
13335 ac_status=$?
13336 cat conftest.err >&5
13337 echo "$as_me:13337: \$? = $ac_status" >&5
13338 if (exit $ac_status) && test -s "$ac_outfile"; then
13339 # The compiler can only warn and ignore the option if not recognized
13340 # So say no if there are warnings other than the usual output.
13341 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13344 lt_prog_compiler_pic_works_F77=yes
13345 fi
13346 fi
13347 $rm conftest*
13348
13349fi
13350echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13351echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13352
13353if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13354 case $lt_prog_compiler_pic_F77 in
13355 "" | " "*) ;;
13356 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13357 esac
13358else
13359 lt_prog_compiler_pic_F77=
13360 lt_prog_compiler_can_build_shared_F77=no
13361fi
13362
13363fi
13364case $host_os in
13365 # For platforms which do not support PIC, -DPIC is meaningless:
13366 *djgpp*)
13367 lt_prog_compiler_pic_F77=
13368 ;;
13369 *)
13370 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13371 ;;
13372esac
13373
13374#
13375# Check to make sure the static flag actually works.
13376#
13377wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13378echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13379echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13380if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382else
13383 lt_prog_compiler_static_works_F77=no
13384 save_LDFLAGS="$LDFLAGS"
13385 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13386 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13387 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13388 # The linker can only warn and ignore the option if not recognized
13389 # So say no if there are warnings
13390 if test -s conftest.err; then
13391 # Append any errors to the config.log.
13392 cat conftest.err 1>&5
13393 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13395 if diff conftest.exp conftest.er2 >/dev/null; then
13396 lt_prog_compiler_static_works_F77=yes
13397 fi
13398 else
13399 lt_prog_compiler_static_works_F77=yes
13400 fi
13401 fi
13402 $rm conftest*
13403 LDFLAGS="$save_LDFLAGS"
13404
13405fi
13406echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13407echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13408
13409if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13410 :
13411else
13412 lt_prog_compiler_static_F77=
13413fi
13414
13415
13416echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13417echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13418if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420else
13421 lt_cv_prog_compiler_c_o_F77=no
13422 $rm -r conftest 2>/dev/null
13423 mkdir conftest
13424 cd conftest
13425 mkdir out
13426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13427
13428 lt_compiler_flag="-o out/conftest2.$ac_objext"
13429 # Insert the option either (1) after the last *FLAGS variable, or
13430 # (2) before a word containing "conftest.", or (3) at the end.
13431 # Note that $ac_compile itself does not contain backslashes and begins
13432 # with a dollar sign (not a hyphen), so the echo should work correctly.
13433 lt_compile=`echo "$ac_compile" | $SED \
13434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436 -e 's:$: $lt_compiler_flag:'`
13437 (eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
13438 (eval "$lt_compile" 2>out/conftest.err)
13439 ac_status=$?
13440 cat out/conftest.err >&5
13441 echo "$as_me:13441: \$? = $ac_status" >&5
13442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13443 then
13444 # The compiler can only warn and ignore the option if not recognized
13445 # So say no if there are warnings
13446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449 lt_cv_prog_compiler_c_o_F77=yes
13450 fi
13451 fi
13452 chmod u+w . 2>&5
13453 $rm conftest*
13454 # SGI C++ compiler will create directory out/ii_files/ for
13455 # template instantiation
13456 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13457 $rm out/* && rmdir out
13458 cd ..
13459 rmdir conftest
13460 $rm conftest*
13461
13462fi
13463echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13464echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13465
13466
13467hard_links="nottested"
13468if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13469 # do not overwrite the value of need_locks provided by the user
13470 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13471echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13472 hard_links=yes
13473 $rm conftest*
13474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13475 touch conftest.a
13476 ln conftest.a conftest.b 2>&5 || hard_links=no
13477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13478 echo "$as_me:$LINENO: result: $hard_links" >&5
13479echo "${ECHO_T}$hard_links" >&6
13480 if test "$hard_links" = no; then
13481 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13482echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13483 need_locks=warn
13484 fi
13485else
13486 need_locks=no
13487fi
13488
13489echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13490echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13491
13492 runpath_var=
13493 allow_undefined_flag_F77=
13494 enable_shared_with_static_runtimes_F77=no
13495 archive_cmds_F77=
13496 archive_expsym_cmds_F77=
13497 old_archive_From_new_cmds_F77=
13498 old_archive_from_expsyms_cmds_F77=
13499 export_dynamic_flag_spec_F77=
13500 whole_archive_flag_spec_F77=
13501 thread_safe_flag_spec_F77=
13502 hardcode_libdir_flag_spec_F77=
13503 hardcode_libdir_flag_spec_ld_F77=
13504 hardcode_libdir_separator_F77=
13505 hardcode_direct_F77=no
13506 hardcode_minus_L_F77=no
13507 hardcode_shlibpath_var_F77=unsupported
13508 link_all_deplibs_F77=unknown
13509 hardcode_automatic_F77=no
13510 module_cmds_F77=
13511 module_expsym_cmds_F77=
13512 always_export_symbols_F77=no
13513 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13514 # include_expsyms should be a list of space-separated symbols to be *always*
13515 # included in the symbol list
13516 include_expsyms_F77=
13517 # exclude_expsyms can be an extended regexp of symbols to exclude
13518 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13519 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13520 # as well as any symbol that contains `d'.
13521 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13523 # platforms (ab)use it in PIC code, but their linkers get confused if
13524 # the symbol is explicitly referenced. Since portable code cannot
13525 # rely on this symbol name, it's probably fine to never include it in
13526 # preloaded symbol tables.
13527 extract_expsyms_cmds=
13528 # Just being paranoid about ensuring that cc_basename is set.
13529 for cc_temp in $compiler""; do
13530 case $cc_temp in
13531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13533 \-*) ;;
13534 *) break;;
13535 esac
13536done
13537cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13538
13539 case $host_os in
13540 cygwin* | mingw* | pw32*)
13541 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13542 # When not using gcc, we currently assume that we are using
13543 # Microsoft Visual C++.
13544 if test "$GCC" != yes; then
13545 with_gnu_ld=no
13546 fi
13547 ;;
13548 interix*)
13549 # we just hope/assume this is gcc and not c89 (= MSVC++)
13550 with_gnu_ld=yes
13551 ;;
13552 openbsd*)
13553 with_gnu_ld=no
13554 ;;
13555 esac
13556
13557 ld_shlibs_F77=yes
13558 if test "$with_gnu_ld" = yes; then
13559 # If archive_cmds runs LD, not CC, wlarc should be empty
13560 wlarc='${wl}'
13561
13562 # Set some defaults for GNU ld with shared library support. These
13563 # are reset later if shared libraries are not supported. Putting them
13564 # here allows them to be overridden if necessary.
13565 runpath_var=LD_RUN_PATH
13566 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13567 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13568 # ancient GNU ld didn't support --whole-archive et. al.
13569 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13570 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13571 else
13572 whole_archive_flag_spec_F77=
13573 fi
13574 supports_anon_versioning=no
13575 case `$LD -v 2>/dev/null` in
13576 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13577 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13578 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13579 *\ 2.11.*) ;; # other 2.11 versions
13580 *) supports_anon_versioning=yes ;;
13581 esac
13582
13583 # See if GNU ld supports shared libraries.
13584 case $host_os in
13585 aix3* | aix4* | aix5*)
13586 # On AIX/PPC, the GNU linker is very broken
13587 if test "$host_cpu" != ia64; then
13588 ld_shlibs_F77=no
13589 cat <<EOF 1>&2
13590
13591*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13592*** to be unable to reliably create shared libraries on AIX.
13593*** Therefore, libtool is disabling shared libraries support. If you
13594*** really care for shared libraries, you may want to modify your PATH
13595*** so that a non-GNU linker is found, and then restart.
13596
13597EOF
13598 fi
13599 ;;
13600
13601 amigaos*)
13602 archive_cmds_F77='$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)'
13603 hardcode_libdir_flag_spec_F77='-L$libdir'
13604 hardcode_minus_L_F77=yes
13605
13606 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13607 # that the semantics of dynamic libraries on AmigaOS, at least up
13608 # to version 4, is to share data among multiple programs linked
13609 # with the same dynamic library. Since this doesn't match the
13610 # behavior of shared libraries on other platforms, we can't use
13611 # them.
13612 ld_shlibs_F77=no
13613 ;;
13614
13615 beos*)
13616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617 allow_undefined_flag_F77=unsupported
13618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13619 # support --undefined. This deserves some investigation. FIXME
13620 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621 else
13622 ld_shlibs_F77=no
13623 fi
13624 ;;
13625
13626 cygwin* | mingw* | pw32*)
13627 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13628 # as there is no search path for DLLs.
13629 hardcode_libdir_flag_spec_F77='-L$libdir'
13630 allow_undefined_flag_F77=unsupported
13631 always_export_symbols_F77=no
13632 enable_shared_with_static_runtimes_F77=yes
13633 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13634
13635 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13636 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13637 # If the export-symbols file already is a .def file (1st line
13638 # is EXPORTS), use it as is; otherwise, prepend...
13639 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13640 cp $export_symbols $output_objdir/$soname.def;
13641 else
13642 echo EXPORTS > $output_objdir/$soname.def;
13643 cat $export_symbols >> $output_objdir/$soname.def;
13644 fi~
13645 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13646 else
13647 ld_shlibs_F77=no
13648 fi
13649 ;;
13650
13651 interix3*)
13652 hardcode_direct_F77=no
13653 hardcode_shlibpath_var_F77=no
13654 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13655 export_dynamic_flag_spec_F77='${wl}-E'
13656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13657 # Instead, shared libraries are loaded at an image base (0x10000000 by
13658 # default) and relocated if they conflict, which is a slow very memory
13659 # consuming and fragmenting process. To avoid this, we pick a random,
13660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13662 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13663 archive_expsym_cmds_F77='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'
13664 ;;
13665
13666 linux*)
13667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13668 tmp_addflag=
13669 case $cc_basename,$host_cpu in
13670 pgcc*) # Portland Group C compiler
13671 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13672 tmp_addflag=' $pic_flag'
13673 ;;
13674 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13675 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13676 tmp_addflag=' $pic_flag -Mnomain' ;;
13677 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13678 tmp_addflag=' -i_dynamic' ;;
13679 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13680 tmp_addflag=' -i_dynamic -nofor_main' ;;
13681 ifc* | ifort*) # Intel Fortran compiler
13682 tmp_addflag=' -nofor_main' ;;
13683 esac
13684 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13685
13686 if test $supports_anon_versioning = yes; then
13687 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13689 $echo "local: *; };" >> $output_objdir/$libname.ver~
13690 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13691 fi
13692 else
13693 ld_shlibs_F77=no
13694 fi
13695 ;;
13696
13697 netbsd*)
13698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13699 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13700 wlarc=
13701 else
13702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13704 fi
13705 ;;
13706
13707 solaris*)
13708 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13709 ld_shlibs_F77=no
13710 cat <<EOF 1>&2
13711
13712*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13713*** create shared libraries on Solaris systems. Therefore, libtool
13714*** is disabling shared libraries support. We urge you to upgrade GNU
13715*** binutils to release 2.9.1 or newer. Another option is to modify
13716*** your PATH or compiler configuration so that the native linker is
13717*** used, and then restart.
13718
13719EOF
13720 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13721 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13723 else
13724 ld_shlibs_F77=no
13725 fi
13726 ;;
13727
13728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13729 case `$LD -v 2>&1` in
13730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13731 ld_shlibs_F77=no
13732 cat <<_LT_EOF 1>&2
13733
13734*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13735*** reliably create shared libraries on SCO systems. Therefore, libtool
13736*** is disabling shared libraries support. We urge you to upgrade GNU
13737*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13738*** your PATH or compiler configuration so that the native linker is
13739*** used, and then restart.
13740
13741_LT_EOF
13742 ;;
13743 *)
13744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13745 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13746 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13747 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13748 else
13749 ld_shlibs_F77=no
13750 fi
13751 ;;
13752 esac
13753 ;;
13754
13755 sunos4*)
13756 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13757 wlarc=
13758 hardcode_direct_F77=yes
13759 hardcode_shlibpath_var_F77=no
13760 ;;
13761
13762 *)
13763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13766 else
13767 ld_shlibs_F77=no
13768 fi
13769 ;;
13770 esac
13771
13772 if test "$ld_shlibs_F77" = no; then
13773 runpath_var=
13774 hardcode_libdir_flag_spec_F77=
13775 export_dynamic_flag_spec_F77=
13776 whole_archive_flag_spec_F77=
13777 fi
13778 else
13779 # PORTME fill in a description of your system's linker (not GNU ld)
13780 case $host_os in
13781 aix3*)
13782 allow_undefined_flag_F77=unsupported
13783 always_export_symbols_F77=yes
13784 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13785 # Note: this linker hardcodes the directories in LIBPATH if there
13786 # are no directories specified by -L.
13787 hardcode_minus_L_F77=yes
13788 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13789 # Neither direct hardcoding nor static linking is supported with a
13790 # broken collect2.
13791 hardcode_direct_F77=unsupported
13792 fi
13793 ;;
13794
13795 aix4* | aix5*)
13796 if test "$host_cpu" = ia64; then
13797 # On IA64, the linker does run time linking by default, so we don't
13798 # have to do anything special.
13799 aix_use_runtimelinking=no
13800 exp_sym_flag='-Bexport'
13801 no_entry_flag=""
13802 else
13803 # If we're using GNU nm, then we don't want the "-C" option.
13804 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13805 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13806 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13807 else
13808 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13809 fi
13810 aix_use_runtimelinking=no
13811
13812 # Test if we are trying to use run time linking or normal
13813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13814 # need to do runtime linking.
13815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13816 for ld_flag in $LDFLAGS; do
13817 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13818 aix_use_runtimelinking=yes
13819 break
13820 fi
13821 done
13822 ;;
13823 esac
13824
13825 exp_sym_flag='-bexport'
13826 no_entry_flag='-bnoentry'
13827 fi
13828
13829 # When large executables or shared objects are built, AIX ld can
13830 # have problems creating the table of contents. If linking a library
13831 # or program results in "error TOC overflow" add -mminimal-toc to
13832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13834
13835 archive_cmds_F77=''
13836 hardcode_direct_F77=yes
13837 hardcode_libdir_separator_F77=':'
13838 link_all_deplibs_F77=yes
13839
13840 if test "$GCC" = yes; then
13841 case $host_os in aix4.[012]|aix4.[012].*)
13842 # We only want to do this on AIX 4.2 and lower, the check
13843 # below for broken collect2 doesn't work under 4.3+
13844 collect2name=`${CC} -print-prog-name=collect2`
13845 if test -f "$collect2name" && \
13846 strings "$collect2name" | grep resolve_lib_name >/dev/null
13847 then
13848 # We have reworked collect2
13849 hardcode_direct_F77=yes
13850 else
13851 # We have old collect2
13852 hardcode_direct_F77=unsupported
13853 # It fails to find uninstalled libraries when the uninstalled
13854 # path is not listed in the libpath. Setting hardcode_minus_L
13855 # to unsupported forces relinking
13856 hardcode_minus_L_F77=yes
13857 hardcode_libdir_flag_spec_F77='-L$libdir'
13858 hardcode_libdir_separator_F77=
13859 fi
13860 ;;
13861 esac
13862 shared_flag='-shared'
13863 if test "$aix_use_runtimelinking" = yes; then
13864 shared_flag="$shared_flag "'${wl}-G'
13865 fi
13866 else
13867 # not using gcc
13868 if test "$host_cpu" = ia64; then
13869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13870 # chokes on -Wl,-G. The following line is correct:
13871 shared_flag='-G'
13872 else
13873 if test "$aix_use_runtimelinking" = yes; then
13874 shared_flag='${wl}-G'
13875 else
13876 shared_flag='${wl}-bM:SRE'
13877 fi
13878 fi
13879 fi
13880
13881 # It seems that -bexpall does not export symbols beginning with
13882 # underscore (_), so it is better to generate a list of symbols to export.
13883 always_export_symbols_F77=yes
13884 if test "$aix_use_runtimelinking" = yes; then
13885 # Warning - without using the other runtime loading flags (-brtl),
13886 # -berok will link without error, but may produce a broken library.
13887 allow_undefined_flag_F77='-berok'
13888 # Determine the default libpath from the value encoded in an empty executable.
13889 cat >conftest.$ac_ext <<_ACEOF
13890 program main
13891
13892 end
13893_ACEOF
13894rm -f conftest.$ac_objext conftest$ac_exeext
13895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896 (eval $ac_link) 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_f77_werror_flag"
13904 || test ! -s conftest.err'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; } &&
13910 { ac_try='test -s conftest$ac_exeext'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916
13917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13918}'`
13919# Check for a 64-bit object if we didn't find anything.
13920if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13921}'`; fi
13922else
13923 echo "$as_me: failed program was:" >&5
13924sed 's/^/| /' conftest.$ac_ext >&5
13925
13926fi
13927rm -f conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13930
13931 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13932 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13933 else
13934 if test "$host_cpu" = ia64; then
13935 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13936 allow_undefined_flag_F77="-z nodefs"
13937 archive_expsym_cmds_F77="\$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"
13938 else
13939 # Determine the default libpath from the value encoded in an empty executable.
13940 cat >conftest.$ac_ext <<_ACEOF
13941 program main
13942
13943 end
13944_ACEOF
13945rm -f conftest.$ac_objext conftest$ac_exeext
13946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13947 (eval $ac_link) 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -z "$ac_f77_werror_flag"
13955 || test ! -s conftest.err'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; } &&
13961 { ac_try='test -s conftest$ac_exeext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967
13968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13969}'`
13970# Check for a 64-bit object if we didn't find anything.
13971if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13972}'`; fi
13973else
13974 echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977fi
13978rm -f conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13981
13982 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13983 # Warning - without using the other run time loading flags,
13984 # -berok will link without error, but may produce a broken library.
13985 no_undefined_flag_F77=' ${wl}-bernotok'
13986 allow_undefined_flag_F77=' ${wl}-berok'
13987 # Exported symbols can be pulled into shared objects from archives
13988 whole_archive_flag_spec_F77='$convenience'
13989 archive_cmds_need_lc_F77=yes
13990 # This is similar to how AIX traditionally builds its shared libraries.
13991 archive_expsym_cmds_F77="\$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'
13992 fi
13993 fi
13994 ;;
13995
13996 amigaos*)
13997 archive_cmds_F77='$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)'
13998 hardcode_libdir_flag_spec_F77='-L$libdir'
13999 hardcode_minus_L_F77=yes
14000 # see comment about different semantics on the GNU ld section
14001 ld_shlibs_F77=no
14002 ;;
14003
14004 bsdi[45]*)
14005 export_dynamic_flag_spec_F77=-rdynamic
14006 ;;
14007
14008 cygwin* | mingw* | pw32*)
14009 # When not using gcc, we currently assume that we are using
14010 # Microsoft Visual C++.
14011 # hardcode_libdir_flag_spec is actually meaningless, as there is
14012 # no search path for DLLs.
14013 hardcode_libdir_flag_spec_F77=' '
14014 allow_undefined_flag_F77=unsupported
14015 # Tell ltmain to make .lib files, not .a files.
14016 libext=lib
14017 # Tell ltmain to make .dll files, not .so files.
14018 shrext_cmds=".dll"
14019 # FIXME: Setting linknames here is a bad hack.
14020 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14021 # The linker will automatically build a .lib file if we build a DLL.
14022 old_archive_From_new_cmds_F77='true'
14023 # FIXME: Should let the user specify the lib program.
14024 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14025 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14026 enable_shared_with_static_runtimes_F77=yes
14027 ;;
14028
14029 darwin* | rhapsody*)
14030 case $host_os in
14031 rhapsody* | darwin1.[012])
14032 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14033 ;;
14034 *) # Darwin 1.3 on
14035 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14036 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14037 else
14038 case ${MACOSX_DEPLOYMENT_TARGET} in
14039 10.[012])
14040 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14041 ;;
14042 10.*)
14043 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14044 ;;
14045 esac
14046 fi
14047 ;;
14048 esac
14049 archive_cmds_need_lc_F77=no
14050 hardcode_direct_F77=no
14051 hardcode_automatic_F77=yes
14052 hardcode_shlibpath_var_F77=unsupported
14053 whole_archive_flag_spec_F77=''
14054 link_all_deplibs_F77=yes
14055 if test "$GCC" = yes ; then
14056 output_verbose_link_cmd='echo'
14057 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14058 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14060 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
14061 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
14062 else
14063 case $cc_basename in
14064 xlc*)
14065 output_verbose_link_cmd='echo'
14066 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14067 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14069 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
14070 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
14071 ;;
14072 *)
14073 ld_shlibs_F77=no
14074 ;;
14075 esac
14076 fi
14077 ;;
14078
14079 dgux*)
14080 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14081 hardcode_libdir_flag_spec_F77='-L$libdir'
14082 hardcode_shlibpath_var_F77=no
14083 ;;
14084
14085 freebsd1*)
14086 ld_shlibs_F77=no
14087 ;;
14088
14089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14090 # support. Future versions do this automatically, but an explicit c++rt0.o
14091 # does not break anything, and helps significantly (at the cost of a little
14092 # extra space).
14093 freebsd2.2*)
14094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14095 hardcode_libdir_flag_spec_F77='-R$libdir'
14096 hardcode_direct_F77=yes
14097 hardcode_shlibpath_var_F77=no
14098 ;;
14099
14100 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14101 freebsd2*)
14102 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14103 hardcode_direct_F77=yes
14104 hardcode_minus_L_F77=yes
14105 hardcode_shlibpath_var_F77=no
14106 ;;
14107
14108 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14109 freebsd* | kfreebsd*-gnu | dragonfly*)
14110 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14111 hardcode_libdir_flag_spec_F77='-R$libdir'
14112 hardcode_direct_F77=yes
14113 hardcode_shlibpath_var_F77=no
14114 ;;
14115
14116 hpux9*)
14117 if test "$GCC" = yes; then
14118 archive_cmds_F77='$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'
14119 else
14120 archive_cmds_F77='$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'
14121 fi
14122 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14123 hardcode_libdir_separator_F77=:
14124 hardcode_direct_F77=yes
14125
14126 # hardcode_minus_L: Not really in the search PATH,
14127 # but as the default location of the library.
14128 hardcode_minus_L_F77=yes
14129 export_dynamic_flag_spec_F77='${wl}-E'
14130 ;;
14131
14132 hpux10*)
14133 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14134 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14135 else
14136 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14137 fi
14138 if test "$with_gnu_ld" = no; then
14139 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14140 hardcode_libdir_separator_F77=:
14141
14142 hardcode_direct_F77=yes
14143 export_dynamic_flag_spec_F77='${wl}-E'
14144
14145 # hardcode_minus_L: Not really in the search PATH,
14146 # but as the default location of the library.
14147 hardcode_minus_L_F77=yes
14148 fi
14149 ;;
14150
14151 hpux11*)
14152 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14153 case $host_cpu in
14154 hppa*64*)
14155 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14156 ;;
14157 ia64*)
14158 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14159 ;;
14160 *)
14161 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14162 ;;
14163 esac
14164 else
14165 case $host_cpu in
14166 hppa*64*)
14167 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 ;;
14169 ia64*)
14170 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14171 ;;
14172 *)
14173 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14174 ;;
14175 esac
14176 fi
14177 if test "$with_gnu_ld" = no; then
14178 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14179 hardcode_libdir_separator_F77=:
14180
14181 case $host_cpu in
14182 hppa*64*|ia64*)
14183 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14184 hardcode_direct_F77=no
14185 hardcode_shlibpath_var_F77=no
14186 ;;
14187 *)
14188 hardcode_direct_F77=yes
14189 export_dynamic_flag_spec_F77='${wl}-E'
14190
14191 # hardcode_minus_L: Not really in the search PATH,
14192 # but as the default location of the library.
14193 hardcode_minus_L_F77=yes
14194 ;;
14195 esac
14196 fi
14197 ;;
14198
14199 irix5* | irix6* | nonstopux*)
14200 if test "$GCC" = yes; then
14201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14202 else
14203 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14204 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14205 fi
14206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14207 hardcode_libdir_separator_F77=:
14208 link_all_deplibs_F77=yes
14209 ;;
14210
14211 netbsd*)
14212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14214 else
14215 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14216 fi
14217 hardcode_libdir_flag_spec_F77='-R$libdir'
14218 hardcode_direct_F77=yes
14219 hardcode_shlibpath_var_F77=no
14220 ;;
14221
14222 newsos6)
14223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14224 hardcode_direct_F77=yes
14225 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14226 hardcode_libdir_separator_F77=:
14227 hardcode_shlibpath_var_F77=no
14228 ;;
14229
14230 openbsd*)
14231 hardcode_direct_F77=yes
14232 hardcode_shlibpath_var_F77=no
14233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14234 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14235 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14236 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14237 export_dynamic_flag_spec_F77='${wl}-E'
14238 else
14239 case $host_os in
14240 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14241 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_libdir_flag_spec_F77='-R$libdir'
14243 ;;
14244 *)
14245 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14246 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14247 ;;
14248 esac
14249 fi
14250 ;;
14251
14252 os2*)
14253 hardcode_libdir_flag_spec_F77='-L$libdir'
14254 hardcode_minus_L_F77=yes
14255 allow_undefined_flag_F77=unsupported
14256 archive_cmds_F77='$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'
14257 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14258 ;;
14259
14260 osf3*)
14261 if test "$GCC" = yes; then
14262 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14263 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14264 else
14265 allow_undefined_flag_F77=' -expect_unresolved \*'
14266 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14267 fi
14268 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14269 hardcode_libdir_separator_F77=:
14270 ;;
14271
14272 osf4* | osf5*) # as osf3* with the addition of -msym flag
14273 if test "$GCC" = yes; then
14274 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14275 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14276 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14277 else
14278 allow_undefined_flag_F77=' -expect_unresolved \*'
14279 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14280 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14281 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14282
14283 # Both c and cxx compiler support -rpath directly
14284 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14285 fi
14286 hardcode_libdir_separator_F77=:
14287 ;;
14288
14289 solaris*)
14290 no_undefined_flag_F77=' -z text'
14291 if test "$GCC" = yes; then
14292 wlarc='${wl}'
14293 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14294 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14295 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14296 else
14297 wlarc=''
14298 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14300 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14301 fi
14302 hardcode_libdir_flag_spec_F77='-R$libdir'
14303 hardcode_shlibpath_var_F77=no
14304 case $host_os in
14305 solaris2.[0-5] | solaris2.[0-5].*) ;;
14306 *)
14307 # The compiler driver will combine linker options so we
14308 # cannot just pass the convience library names through
14309 # without $wl, iff we do not link with $LD.
14310 # Luckily, gcc supports the same syntax we need for Sun Studio.
14311 # Supported since Solaris 2.6 (maybe 2.5.1?)
14312 case $wlarc in
14313 '')
14314 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14315 *)
14316 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14317 esac ;;
14318 esac
14319 link_all_deplibs_F77=yes
14320 ;;
14321
14322 sunos4*)
14323 if test "x$host_vendor" = xsequent; then
14324 # Use $CC to link under sequent, because it throws in some extra .o
14325 # files that make .init and .fini sections work.
14326 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14327 else
14328 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14329 fi
14330 hardcode_libdir_flag_spec_F77='-L$libdir'
14331 hardcode_direct_F77=yes
14332 hardcode_minus_L_F77=yes
14333 hardcode_shlibpath_var_F77=no
14334 ;;
14335
14336 sysv4)
14337 case $host_vendor in
14338 sni)
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_direct_F77=yes # is this really true???
14341 ;;
14342 siemens)
14343 ## LD is ld it makes a PLAMLIB
14344 ## CC just makes a GrossModule.
14345 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14346 reload_cmds_F77='$CC -r -o $output$reload_objs'
14347 hardcode_direct_F77=no
14348 ;;
14349 motorola)
14350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14351 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14352 ;;
14353 esac
14354 runpath_var='LD_RUN_PATH'
14355 hardcode_shlibpath_var_F77=no
14356 ;;
14357
14358 sysv4.3*)
14359 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14360 hardcode_shlibpath_var_F77=no
14361 export_dynamic_flag_spec_F77='-Bexport'
14362 ;;
14363
14364 sysv4*MP*)
14365 if test -d /usr/nec; then
14366 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14367 hardcode_shlibpath_var_F77=no
14368 runpath_var=LD_RUN_PATH
14369 hardcode_runpath_var=yes
14370 ld_shlibs_F77=yes
14371 fi
14372 ;;
14373
14374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14375 no_undefined_flag_F77='${wl}-z,text'
14376 archive_cmds_need_lc_F77=no
14377 hardcode_shlibpath_var_F77=no
14378 runpath_var='LD_RUN_PATH'
14379
14380 if test "$GCC" = yes; then
14381 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14383 else
14384 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14385 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14386 fi
14387 ;;
14388
14389 sysv5* | sco3.2v5* | sco5v6*)
14390 # Note: We can NOT use -z defs as we might desire, because we do not
14391 # link with -lc, and that would cause any symbols used from libc to
14392 # always be unresolved, which means just about no library would
14393 # ever link correctly. If we're not using GNU ld we use -z text
14394 # though, which does catch some bad symbols but isn't as heavy-handed
14395 # as -z defs.
14396 no_undefined_flag_F77='${wl}-z,text'
14397 allow_undefined_flag_F77='${wl}-z,nodefs'
14398 archive_cmds_need_lc_F77=no
14399 hardcode_shlibpath_var_F77=no
14400 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14401 hardcode_libdir_separator_F77=':'
14402 link_all_deplibs_F77=yes
14403 export_dynamic_flag_spec_F77='${wl}-Bexport'
14404 runpath_var='LD_RUN_PATH'
14405
14406 if test "$GCC" = yes; then
14407 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14408 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14409 else
14410 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14411 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14412 fi
14413 ;;
14414
14415 uts4*)
14416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417 hardcode_libdir_flag_spec_F77='-L$libdir'
14418 hardcode_shlibpath_var_F77=no
14419 ;;
14420
14421 *)
14422 ld_shlibs_F77=no
14423 ;;
14424 esac
14425 fi
14426
14427echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14428echo "${ECHO_T}$ld_shlibs_F77" >&6
14429test "$ld_shlibs_F77" = no && can_build_shared=no
14430
14431#
14432# Do we need to explicitly link libc?
14433#
14434case "x$archive_cmds_need_lc_F77" in
14435x|xyes)
14436 # Assume -lc should be added
14437 archive_cmds_need_lc_F77=yes
14438
14439 if test "$enable_shared" = yes && test "$GCC" = yes; then
14440 case $archive_cmds_F77 in
14441 *'~'*)
14442 # FIXME: we may have to deal with multi-command sequences.
14443 ;;
14444 '$CC '*)
14445 # Test whether the compiler implicitly links with -lc since on some
14446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14447 # to ld, don't add -lc before -lgcc.
14448 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14449echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14450 $rm conftest*
14451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14452
14453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454 (eval $ac_compile) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } 2>conftest.err; then
14458 soname=conftest
14459 lib=conftest
14460 libobjs=conftest.$ac_objext
14461 deplibs=
14462 wl=$lt_prog_compiler_wl_F77
14463 pic_flag=$lt_prog_compiler_pic_F77
14464 compiler_flags=-v
14465 linker_flags=-v
14466 verstring=
14467 output_objdir=.
14468 libname=conftest
14469 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14470 allow_undefined_flag_F77=
14471 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14472 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }
14476 then
14477 archive_cmds_need_lc_F77=no
14478 else
14479 archive_cmds_need_lc_F77=yes
14480 fi
14481 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14482 else
14483 cat conftest.err 1>&5
14484 fi
14485 $rm conftest*
14486 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14487echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14488 ;;
14489 esac
14490 fi
14491 ;;
14492esac
14493
14494echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14495echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14496library_names_spec=
14497libname_spec='lib$name'
14498soname_spec=
14499shrext_cmds=".so"
14500postinstall_cmds=
14501postuninstall_cmds=
14502finish_cmds=
14503finish_eval=
14504shlibpath_var=
14505shlibpath_overrides_runpath=unknown
14506version_type=none
14507dynamic_linker="$host_os ld.so"
14508sys_lib_dlsearch_path_spec="/lib /usr/lib"
14509if test "$GCC" = yes; then
14510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14511 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14512 # if the path contains ";" then we assume it to be the separator
14513 # otherwise default to the standard path separator (i.e. ":") - it is
14514 # assumed that no part of a normal pathname contains ";" but that should
14515 # okay in the real world where ";" in dirpaths is itself problematic.
14516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14517 else
14518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14519 fi
14520else
14521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14522fi
14523need_lib_prefix=unknown
14524hardcode_into_libs=no
14525
14526# when you set need_version to no, make sure it does not cause -set_version
14527# flags to be left without arguments
14528need_version=unknown
14529
14530case $host_os in
14531aix3*)
14532 version_type=linux
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14534 shlibpath_var=LIBPATH
14535
14536 # AIX 3 has no versioning support, so we append a major version to the name.
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 ;;
14539
14540aix4* | aix5*)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 hardcode_into_libs=yes
14545 if test "$host_cpu" = ia64; then
14546 # AIX 5 supports IA64
14547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 else
14550 # With GCC up to 2.95.x, collect2 would create an import file
14551 # for dependence libraries. The import file would start with
14552 # the line `#! .'. This would cause the generated library to
14553 # depend on `.', always an invalid library. This was fixed in
14554 # development snapshots of GCC prior to 3.0.
14555 case $host_os in
14556 aix4 | aix4.[01] | aix4.[01].*)
14557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14558 echo ' yes '
14559 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14560 :
14561 else
14562 can_build_shared=no
14563 fi
14564 ;;
14565 esac
14566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14567 # soname into executable. Probably we can add versioning support to
14568 # collect2, so additional links can be useful in future.
14569 if test "$aix_use_runtimelinking" = yes; then
14570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14571 # instead of lib<name>.a to let people know that these are not
14572 # typical AIX shared libraries.
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 else
14575 # We preserve .a as extension for shared libraries through AIX4.2
14576 # and later when we are not doing run time linking.
14577 library_names_spec='${libname}${release}.a $libname.a'
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 fi
14580 shlibpath_var=LIBPATH
14581 fi
14582 ;;
14583
14584amigaos*)
14585 library_names_spec='$libname.ixlibrary $libname.a'
14586 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14587 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'
14588 ;;
14589
14590beos*)
14591 library_names_spec='${libname}${shared_ext}'
14592 dynamic_linker="$host_os ld.so"
14593 shlibpath_var=LIBRARY_PATH
14594 ;;
14595
14596bsdi[45]*)
14597 version_type=linux
14598 need_version=no
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14605 # the default ld.so.conf also contains /usr/contrib/lib and
14606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14607 # libtool to hard-code these into programs
14608 ;;
14609
14610cygwin* | mingw* | pw32*)
14611 version_type=windows
14612 shrext_cmds=".dll"
14613 need_version=no
14614 need_lib_prefix=no
14615
14616 case $GCC,$host_os in
14617 yes,cygwin* | yes,mingw* | yes,pw32*)
14618 library_names_spec='$libname.dll.a'
14619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14620 postinstall_cmds='base_file=`basename \${file}`~
14621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14622 dldir=$destdir/`dirname \$dlpath`~
14623 test -d \$dldir || mkdir -p \$dldir~
14624 $install_prog $dir/$dlname \$dldir/$dlname~
14625 chmod a+x \$dldir/$dlname'
14626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14627 dlpath=$dir/\$dldll~
14628 $rm \$dlpath'
14629 shlibpath_overrides_runpath=yes
14630
14631 case $host_os in
14632 cygwin*)
14633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14636 ;;
14637 mingw*)
14638 # MinGW DLLs use traditional 'lib' prefix
14639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14641 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14642 # It is most probably a Windows format PATH printed by
14643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14644 # path with ; separators, and with drive letters. We can handle the
14645 # drive letters (cygwin fileutils understands them), so leave them,
14646 # especially as we might pass files found there to a mingw objdump,
14647 # which wouldn't understand a cygwinified path. Ahh.
14648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14649 else
14650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14651 fi
14652 ;;
14653 pw32*)
14654 # pw32 DLLs use 'pw' prefix rather than 'lib'
14655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14656 ;;
14657 esac
14658 ;;
14659
14660 *)
14661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14662 ;;
14663 esac
14664 dynamic_linker='Win32 ld.exe'
14665 # FIXME: first we should search . and the directory the executable is in
14666 shlibpath_var=PATH
14667 ;;
14668
14669darwin* | rhapsody*)
14670 dynamic_linker="$host_os dyld"
14671 version_type=darwin
14672 need_lib_prefix=no
14673 need_version=no
14674 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14675 soname_spec='${libname}${release}${major}$shared_ext'
14676 shlibpath_overrides_runpath=yes
14677 shlibpath_var=DYLD_LIBRARY_PATH
14678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14679 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14680 if test "$GCC" = yes; then
14681 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14682 else
14683 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14684 fi
14685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14686 ;;
14687
14688dgux*)
14689 version_type=linux
14690 need_lib_prefix=no
14691 need_version=no
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 ;;
14696
14697freebsd1*)
14698 dynamic_linker=no
14699 ;;
14700
14701kfreebsd*-gnu)
14702 version_type=linux
14703 need_lib_prefix=no
14704 need_version=no
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 shlibpath_var=LD_LIBRARY_PATH
14708 shlibpath_overrides_runpath=no
14709 hardcode_into_libs=yes
14710 dynamic_linker='GNU ld.so'
14711 ;;
14712
14713freebsd* | dragonfly*)
14714 # DragonFly does not have aout. When/if they implement a new
14715 # versioning mechanism, adjust this.
14716 if test -x /usr/bin/objformat; then
14717 objformat=`/usr/bin/objformat`
14718 else
14719 case $host_os in
14720 freebsd[123]*) objformat=aout ;;
14721 *) objformat=elf ;;
14722 esac
14723 fi
14724 version_type=freebsd-$objformat
14725 case $version_type in
14726 freebsd-elf*)
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14728 need_version=no
14729 need_lib_prefix=no
14730 ;;
14731 freebsd-*)
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14733 need_version=yes
14734 ;;
14735 esac
14736 shlibpath_var=LD_LIBRARY_PATH
14737 case $host_os in
14738 freebsd2*)
14739 shlibpath_overrides_runpath=yes
14740 ;;
14741 freebsd3.[01]* | freebsdelf3.[01]*)
14742 shlibpath_overrides_runpath=yes
14743 hardcode_into_libs=yes
14744 ;;
14745 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14746 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14747 shlibpath_overrides_runpath=no
14748 hardcode_into_libs=yes
14749 ;;
14750 freebsd*) # from 4.6 on
14751 shlibpath_overrides_runpath=yes
14752 hardcode_into_libs=yes
14753 ;;
14754 esac
14755 ;;
14756
14757gnu*)
14758 version_type=linux
14759 need_lib_prefix=no
14760 need_version=no
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 hardcode_into_libs=yes
14765 ;;
14766
14767hpux9* | hpux10* | hpux11*)
14768 # Give a soname corresponding to the major version so that dld.sl refuses to
14769 # link against other versions.
14770 version_type=sunos
14771 need_lib_prefix=no
14772 need_version=no
14773 case $host_cpu in
14774 ia64*)
14775 shrext_cmds='.so'
14776 hardcode_into_libs=yes
14777 dynamic_linker="$host_os dld.so"
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 if test "X$HPUX_IA64_MODE" = X32; then
14783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14784 else
14785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14786 fi
14787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14788 ;;
14789 hppa*64*)
14790 shrext_cmds='.sl'
14791 hardcode_into_libs=yes
14792 dynamic_linker="$host_os dld.sl"
14793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14799 ;;
14800 *)
14801 shrext_cmds='.sl'
14802 dynamic_linker="$host_os dld.sl"
14803 shlibpath_var=SHLIB_PATH
14804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 ;;
14808 esac
14809 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14810 postinstall_cmds='chmod 555 $lib'
14811 ;;
14812
14813interix3*)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=no
14822 hardcode_into_libs=yes
14823 ;;
14824
14825irix5* | irix6* | nonstopux*)
14826 case $host_os in
14827 nonstopux*) version_type=nonstopux ;;
14828 *)
14829 if test "$lt_cv_prog_gnu_ld" = yes; then
14830 version_type=linux
14831 else
14832 version_type=irix
14833 fi ;;
14834 esac
14835 need_lib_prefix=no
14836 need_version=no
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14839 case $host_os in
14840 irix5* | nonstopux*)
14841 libsuff= shlibsuff=
14842 ;;
14843 *)
14844 case $LD in # libtool.m4 will add one of these switches to LD
14845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14846 libsuff= shlibsuff= libmagic=32-bit;;
14847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14848 libsuff=32 shlibsuff=N32 libmagic=N32;;
14849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14851 *) libsuff= shlibsuff= libmagic=never-match;;
14852 esac
14853 ;;
14854 esac
14855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14856 shlibpath_overrides_runpath=no
14857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14859 hardcode_into_libs=yes
14860 ;;
14861
14862# No shared lib support for Linux oldld, aout, or coff.
14863linux*oldld* | linux*aout* | linux*coff*)
14864 dynamic_linker=no
14865 ;;
14866
14867# This must be Linux ELF.
14868linux*)
14869 version_type=linux
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=no
14877 # This implies no fast_install, which is unacceptable.
14878 # Some rework will be needed to allow for fast_install
14879 # before this can be enabled.
14880 hardcode_into_libs=yes
14881
14882 # find out which ABI we are using
14883 libsuff=
14884 case "$host_cpu" in
14885 x86_64*|s390x*|powerpc64*)
14886 echo '#line 14886 "configure"' > conftest.$ac_ext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; then
14892 case `/usr/bin/file conftest.$ac_objext` in
14893 *64-bit*)
14894 libsuff=64
14895 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14896 ;;
14897 esac
14898 fi
14899 rm -rf conftest*
14900 ;;
14901 esac
14902
14903 # Append ld.so.conf contents to the search path
14904 if test -f /etc/ld.so.conf; then
14905 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' ' '`
14906 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14907 fi
14908
14909 # We used to test for /lib/ld.so.1 and disable shared libraries on
14910 # powerpc, because MkLinux only supported shared libraries with the
14911 # GNU dynamic linker. Since this was broken with cross compilers,
14912 # most powerpc-linux boxes support dynamic linking these days and
14913 # people can always --disable-shared, the test was removed, and we
14914 # assume the GNU/Linux dynamic linker is in use.
14915 dynamic_linker='GNU/Linux ld.so'
14916 ;;
14917
14918knetbsd*-gnu)
14919 version_type=linux
14920 need_lib_prefix=no
14921 need_version=no
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 shlibpath_overrides_runpath=no
14926 hardcode_into_libs=yes
14927 dynamic_linker='GNU ld.so'
14928 ;;
14929
14930netbsd*)
14931 version_type=sunos
14932 need_lib_prefix=no
14933 need_version=no
14934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14937 dynamic_linker='NetBSD (a.out) ld.so'
14938 else
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 dynamic_linker='NetBSD ld.elf_so'
14942 fi
14943 shlibpath_var=LD_LIBRARY_PATH
14944 shlibpath_overrides_runpath=yes
14945 hardcode_into_libs=yes
14946 ;;
14947
14948newsos6)
14949 version_type=linux
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 ;;
14954
14955nto-qnx*)
14956 version_type=linux
14957 need_lib_prefix=no
14958 need_version=no
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=yes
14963 ;;
14964
14965openbsd*)
14966 version_type=sunos
14967 sys_lib_dlsearch_path_spec="/usr/lib"
14968 need_lib_prefix=no
14969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14970 case $host_os in
14971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14972 *) need_version=no ;;
14973 esac
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14978 case $host_os in
14979 openbsd2.[89] | openbsd2.[89].*)
14980 shlibpath_overrides_runpath=no
14981 ;;
14982 *)
14983 shlibpath_overrides_runpath=yes
14984 ;;
14985 esac
14986 else
14987 shlibpath_overrides_runpath=yes
14988 fi
14989 ;;
14990
14991os2*)
14992 libname_spec='$name'
14993 shrext_cmds=".dll"
14994 need_lib_prefix=no
14995 library_names_spec='$libname${shared_ext} $libname.a'
14996 dynamic_linker='OS/2 ld.exe'
14997 shlibpath_var=LIBPATH
14998 ;;
14999
15000osf3* | osf4* | osf5*)
15001 version_type=osf
15002 need_lib_prefix=no
15003 need_version=no
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15009 ;;
15010
15011solaris*)
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=yes
15019 hardcode_into_libs=yes
15020 # ldd complains unless libraries are executable
15021 postinstall_cmds='chmod +x $lib'
15022 ;;
15023
15024sunos4*)
15025 version_type=sunos
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=yes
15030 if test "$with_gnu_ld" = yes; then
15031 need_lib_prefix=no
15032 fi
15033 need_version=yes
15034 ;;
15035
15036sysv4 | sysv4.3*)
15037 version_type=linux
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 case $host_vendor in
15042 sni)
15043 shlibpath_overrides_runpath=no
15044 need_lib_prefix=no
15045 export_dynamic_flag_spec='${wl}-Blargedynsym'
15046 runpath_var=LD_RUN_PATH
15047 ;;
15048 siemens)
15049 need_lib_prefix=no
15050 ;;
15051 motorola)
15052 need_lib_prefix=no
15053 need_version=no
15054 shlibpath_overrides_runpath=no
15055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15056 ;;
15057 esac
15058 ;;
15059
15060sysv4*MP*)
15061 if test -d /usr/nec ;then
15062 version_type=linux
15063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15064 soname_spec='$libname${shared_ext}.$major'
15065 shlibpath_var=LD_LIBRARY_PATH
15066 fi
15067 ;;
15068
15069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15070 version_type=freebsd-elf
15071 need_lib_prefix=no
15072 need_version=no
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 shlibpath_var=LD_LIBRARY_PATH
15076 hardcode_into_libs=yes
15077 if test "$with_gnu_ld" = yes; then
15078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15079 shlibpath_overrides_runpath=no
15080 else
15081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15082 shlibpath_overrides_runpath=yes
15083 case $host_os in
15084 sco3.2v5*)
15085 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15086 ;;
15087 esac
15088 fi
15089 sys_lib_dlsearch_path_spec='/usr/lib'
15090 ;;
15091
15092uts4*)
15093 version_type=linux
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15097 ;;
15098
15099*)
15100 dynamic_linker=no
15101 ;;
15102esac
15103echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15104echo "${ECHO_T}$dynamic_linker" >&6
15105test "$dynamic_linker" = no && can_build_shared=no
15106
15107variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15108if test "$GCC" = yes; then
15109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15110fi
15111
15112echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15113echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15114hardcode_action_F77=
15115if test -n "$hardcode_libdir_flag_spec_F77" || \
15116 test -n "$runpath_var_F77" || \
15117 test "X$hardcode_automatic_F77" = "Xyes" ; then
15118
15119 # We can hardcode non-existant directories.
15120 if test "$hardcode_direct_F77" != no &&
15121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15122 # have to relink, otherwise we might link with an installed library
15123 # when we should be linking with a yet-to-be-installed one
15124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15125 test "$hardcode_minus_L_F77" != no; then
15126 # Linking always hardcodes the temporary library directory.
15127 hardcode_action_F77=relink
15128 else
15129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15130 hardcode_action_F77=immediate
15131 fi
15132else
15133 # We cannot hardcode anything, or else we can only hardcode existing
15134 # directories.
15135 hardcode_action_F77=unsupported
15136fi
15137echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15138echo "${ECHO_T}$hardcode_action_F77" >&6
15139
15140if test "$hardcode_action_F77" = relink; then
15141 # Fast installation is not supported
15142 enable_fast_install=no
15143elif test "$shlibpath_overrides_runpath" = yes ||
15144 test "$enable_shared" = no; then
15145 # Fast installation is not necessary
15146 enable_fast_install=needless
15147fi
15148
15149
15150# The else clause should only fire when bootstrapping the
15151# libtool distribution, otherwise you forgot to ship ltmain.sh
15152# with your package, and you will get complaints that there are
15153# no rules to generate ltmain.sh.
15154if test -f "$ltmain"; then
15155 # See if we are running on zsh, and set the options which allow our commands through
15156 # without removal of \ escapes.
15157 if test -n "${ZSH_VERSION+set}" ; then
15158 setopt NO_GLOB_SUBST
15159 fi
15160 # Now quote all the things that may contain metacharacters while being
15161 # careful not to overquote the AC_SUBSTed values. We take copies of the
15162 # variables and quote the copies for generation of the libtool script.
15163 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15164 SED SHELL STRIP \
15165 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15166 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15167 deplibs_check_method reload_flag reload_cmds need_locks \
15168 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15169 lt_cv_sys_global_symbol_to_c_name_address \
15170 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15171 old_postinstall_cmds old_postuninstall_cmds \
15172 compiler_F77 \
15173 CC_F77 \
15174 LD_F77 \
15175 lt_prog_compiler_wl_F77 \
15176 lt_prog_compiler_pic_F77 \
15177 lt_prog_compiler_static_F77 \
15178 lt_prog_compiler_no_builtin_flag_F77 \
15179 export_dynamic_flag_spec_F77 \
15180 thread_safe_flag_spec_F77 \
15181 whole_archive_flag_spec_F77 \
15182 enable_shared_with_static_runtimes_F77 \
15183 old_archive_cmds_F77 \
15184 old_archive_from_new_cmds_F77 \
15185 predep_objects_F77 \
15186 postdep_objects_F77 \
15187 predeps_F77 \
15188 postdeps_F77 \
15189 compiler_lib_search_path_F77 \
15190 archive_cmds_F77 \
15191 archive_expsym_cmds_F77 \
15192 postinstall_cmds_F77 \
15193 postuninstall_cmds_F77 \
15194 old_archive_from_expsyms_cmds_F77 \
15195 allow_undefined_flag_F77 \
15196 no_undefined_flag_F77 \
15197 export_symbols_cmds_F77 \
15198 hardcode_libdir_flag_spec_F77 \
15199 hardcode_libdir_flag_spec_ld_F77 \
15200 hardcode_libdir_separator_F77 \
15201 hardcode_automatic_F77 \
15202 module_cmds_F77 \
15203 module_expsym_cmds_F77 \
15204 lt_cv_prog_compiler_c_o_F77 \
15205 exclude_expsyms_F77 \
15206 include_expsyms_F77; do
15207
15208 case $var in
15209 old_archive_cmds_F77 | \
15210 old_archive_from_new_cmds_F77 | \
15211 archive_cmds_F77 | \
15212 archive_expsym_cmds_F77 | \
15213 module_cmds_F77 | \
15214 module_expsym_cmds_F77 | \
15215 old_archive_from_expsyms_cmds_F77 | \
15216 export_symbols_cmds_F77 | \
15217 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15218 postinstall_cmds | postuninstall_cmds | \
15219 old_postinstall_cmds | old_postuninstall_cmds | \
15220 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15221 # Double-quote double-evaled strings.
15222 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15223 ;;
15224 *)
15225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15226 ;;
15227 esac
15228 done
15229
15230 case $lt_echo in
15231 *'\$0 --fallback-echo"')
15232 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15233 ;;
15234 esac
15235
15236cfgfile="$ofile"
15237
15238 cat <<__EOF__ >> "$cfgfile"
15239# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15240
15241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15242
15243# Shell to use when invoking shell scripts.
15244SHELL=$lt_SHELL
15245
15246# Whether or not to build shared libraries.
15247build_libtool_libs=$enable_shared
15248
15249# Whether or not to build static libraries.
15250build_old_libs=$enable_static
15251
15252# Whether or not to add -lc for building shared libraries.
15253build_libtool_need_lc=$archive_cmds_need_lc_F77
15254
15255# Whether or not to disallow shared libs when runtime libs are static
15256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15257
15258# Whether or not to optimize for fast installation.
15259fast_install=$enable_fast_install
15260
15261# The host system.
15262host_alias=$host_alias
15263host=$host
15264host_os=$host_os
15265
15266# The build system.
15267build_alias=$build_alias
15268build=$build
15269build_os=$build_os
15270
15271# An echo program that does not interpret backslashes.
15272echo=$lt_echo
15273
15274# The archiver.
15275AR=$lt_AR
15276AR_FLAGS=$lt_AR_FLAGS
15277
15278# A C compiler.
15279LTCC=$lt_LTCC
15280
15281# LTCC compiler flags.
15282LTCFLAGS=$lt_LTCFLAGS
15283
15284# A language-specific compiler.
15285CC=$lt_compiler_F77
15286
15287# Is the compiler the GNU C compiler?
15288with_gcc=$GCC_F77
15289
15290gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15291gcc_ver=\`gcc -dumpversion\`
15292
15293# An ERE matcher.
15294EGREP=$lt_EGREP
15295
15296# The linker used to build libraries.
15297LD=$lt_LD_F77
15298
15299# Whether we need hard or soft links.
15300LN_S=$lt_LN_S
15301
15302# A BSD-compatible nm program.
15303NM=$lt_NM
15304
15305# A symbol stripping program
15306STRIP=$lt_STRIP
15307
15308# Used to examine libraries when file_magic_cmd begins "file"
15309MAGIC_CMD=$MAGIC_CMD
15310
15311# Used on cygwin: DLL creation program.
15312DLLTOOL="$DLLTOOL"
15313
15314# Used on cygwin: object dumper.
15315OBJDUMP="$OBJDUMP"
15316
15317# Used on cygwin: assembler.
15318AS="$AS"
15319
15320# The name of the directory that contains temporary libtool files.
15321objdir=$objdir
15322
15323# How to create reloadable object files.
15324reload_flag=$lt_reload_flag
15325reload_cmds=$lt_reload_cmds
15326
15327# How to pass a linker flag through the compiler.
15328wl=$lt_lt_prog_compiler_wl_F77
15329
15330# Object file suffix (normally "o").
15331objext="$ac_objext"
15332
15333# Old archive suffix (normally "a").
15334libext="$libext"
15335
15336# Shared library suffix (normally ".so").
15337shrext_cmds='$shrext_cmds'
15338
15339# Executable file suffix (normally "").
15340exeext="$exeext"
15341
15342# Additional compiler flags for building library objects.
15343pic_flag=$lt_lt_prog_compiler_pic_F77
15344pic_mode=$pic_mode
15345
15346# What is the maximum length of a command?
15347max_cmd_len=$lt_cv_sys_max_cmd_len
15348
15349# Does compiler simultaneously support -c and -o options?
15350compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15351
15352# Must we lock files when doing compilation?
15353need_locks=$lt_need_locks
15354
15355# Do we need the lib prefix for modules?
15356need_lib_prefix=$need_lib_prefix
15357
15358# Do we need a version for libraries?
15359need_version=$need_version
15360
15361# Whether dlopen is supported.
15362dlopen_support=$enable_dlopen
15363
15364# Whether dlopen of programs is supported.
15365dlopen_self=$enable_dlopen_self
15366
15367# Whether dlopen of statically linked programs is supported.
15368dlopen_self_static=$enable_dlopen_self_static
15369
15370# Compiler flag to prevent dynamic linking.
15371link_static_flag=$lt_lt_prog_compiler_static_F77
15372
15373# Compiler flag to turn off builtin functions.
15374no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15375
15376# Compiler flag to allow reflexive dlopens.
15377export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15378
15379# Compiler flag to generate shared objects directly from archives.
15380whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15381
15382# Compiler flag to generate thread-safe objects.
15383thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15384
15385# Library versioning type.
15386version_type=$version_type
15387
15388# Format of library name prefix.
15389libname_spec=$lt_libname_spec
15390
15391# List of archive names. First name is the real one, the rest are links.
15392# The last name is the one that the linker finds with -lNAME.
15393library_names_spec=$lt_library_names_spec
15394
15395# The coded name of the library, if different from the real name.
15396soname_spec=$lt_soname_spec
15397
15398# Commands used to build and install an old-style archive.
15399RANLIB=$lt_RANLIB
15400old_archive_cmds=$lt_old_archive_cmds_F77
15401old_postinstall_cmds=$lt_old_postinstall_cmds
15402old_postuninstall_cmds=$lt_old_postuninstall_cmds
15403
15404# Create an old-style archive from a shared archive.
15405old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15406
15407# Create a temporary old-style archive to link instead of a shared archive.
15408old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15409
15410# Commands used to build and install a shared archive.
15411archive_cmds=$lt_archive_cmds_F77
15412archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15413postinstall_cmds=$lt_postinstall_cmds
15414postuninstall_cmds=$lt_postuninstall_cmds
15415
15416# Commands used to build a loadable module (assumed same as above if empty)
15417module_cmds=$lt_module_cmds_F77
15418module_expsym_cmds=$lt_module_expsym_cmds_F77
15419
15420# Commands to strip libraries.
15421old_striplib=$lt_old_striplib
15422striplib=$lt_striplib
15423
15424# Dependencies to place before the objects being linked to create a
15425# shared library.
15426predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15427
15428# Dependencies to place after the objects being linked to create a
15429# shared library.
15430postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15431
15432# Dependencies to place before the objects being linked to create a
15433# shared library.
15434predeps=$lt_predeps_F77
15435
15436# Dependencies to place after the objects being linked to create a
15437# shared library.
15438postdeps=$lt_postdeps_F77
15439
15440# The library search path used internally by the compiler when linking
15441# a shared library.
15442compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15443
15444# Method to check whether dependent libraries are shared objects.
15445deplibs_check_method=$lt_deplibs_check_method
15446
15447# Command to use when deplibs_check_method == file_magic.
15448file_magic_cmd=$lt_file_magic_cmd
15449
15450# Flag that allows shared libraries with undefined symbols to be built.
15451allow_undefined_flag=$lt_allow_undefined_flag_F77
15452
15453# Flag that forces no undefined symbols.
15454no_undefined_flag=$lt_no_undefined_flag_F77
15455
15456# Commands used to finish a libtool library installation in a directory.
15457finish_cmds=$lt_finish_cmds
15458
15459# Same as above, but a single script fragment to be evaled but not shown.
15460finish_eval=$lt_finish_eval
15461
15462# Take the output of nm and produce a listing of raw symbols and C names.
15463global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15464
15465# Transform the output of nm in a proper C declaration
15466global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15467
15468# Transform the output of nm in a C name address pair
15469global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15470
15471# This is the shared library runtime path variable.
15472runpath_var=$runpath_var
15473
15474# This is the shared library path variable.
15475shlibpath_var=$shlibpath_var
15476
15477# Is shlibpath searched before the hard-coded library search path?
15478shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15479
15480# How to hardcode a shared library path into an executable.
15481hardcode_action=$hardcode_action_F77
15482
15483# Whether we should hardcode library paths into libraries.
15484hardcode_into_libs=$hardcode_into_libs
15485
15486# Flag to hardcode \$libdir into a binary during linking.
15487# This must work even if \$libdir does not exist.
15488hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15489
15490# If ld is used when linking, flag to hardcode \$libdir into
15491# a binary during linking. This must work even if \$libdir does
15492# not exist.
15493hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15494
15495# Whether we need a single -rpath flag with a separated argument.
15496hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15497
15498# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15499# resulting binary.
15500hardcode_direct=$hardcode_direct_F77
15501
15502# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15503# resulting binary.
15504hardcode_minus_L=$hardcode_minus_L_F77
15505
15506# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15507# the resulting binary.
15508hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15509
15510# Set to yes if building a shared library automatically hardcodes DIR into the library
15511# and all subsequent libraries and executables linked against it.
15512hardcode_automatic=$hardcode_automatic_F77
15513
15514# Variables whose values should be saved in libtool wrapper scripts and
15515# restored at relink time.
15516variables_saved_for_relink="$variables_saved_for_relink"
15517
15518# Whether libtool must link a program against all its dependency libraries.
15519link_all_deplibs=$link_all_deplibs_F77
15520
15521# Compile-time system search path for libraries
15522sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15523
15524# Run-time system search path for libraries
15525sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15526
15527# Fix the shell variable \$srcfile for the compiler.
15528fix_srcfile_path="$fix_srcfile_path_F77"
15529
15530# Set to yes if exported symbols are required.
15531always_export_symbols=$always_export_symbols_F77
15532
15533# The commands to list exported symbols.
15534export_symbols_cmds=$lt_export_symbols_cmds_F77
15535
15536# The commands to extract the exported symbol list from a shared archive.
15537extract_expsyms_cmds=$lt_extract_expsyms_cmds
15538
15539# Symbols that should not be listed in the preloaded symbols.
15540exclude_expsyms=$lt_exclude_expsyms_F77
15541
15542# Symbols that must always be exported.
15543include_expsyms=$lt_include_expsyms_F77
15544
15545# ### END LIBTOOL TAG CONFIG: $tagname
15546
15547__EOF__
15548
15549
15550else
15551 # If there is no Makefile yet, we rely on a make rule to execute
15552 # `config.status --recheck' to rerun these tests and create the
15553 # libtool script then.
15554 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15555 if test -f "$ltmain_in"; then
15556 test -f Makefile && make "$ltmain"
15557 fi
15558fi
15559
15560
15561ac_ext=c
15562ac_cpp='$CPP $CPPFLAGS'
15563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15565ac_compiler_gnu=$ac_cv_c_compiler_gnu
15566
15567CC="$lt_save_CC"
15568
15569 else
15570 tagname=""
15571 fi
15572 ;;
15573
15574 GCJ)
15575 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15576
15577
15578
15579# Source file extension for Java test sources.
15580ac_ext=java
15581
15582# Object file extension for compiled Java test sources.
15583objext=o
15584objext_GCJ=$objext
15585
15586# Code to be used in simple compile tests
15587lt_simple_compile_test_code="class foo {}\n"
15588
15589# Code to be used in simple link tests
15590lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15591
15592# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15593
15594# If no C compiler was specified, use CC.
15595LTCC=${LTCC-"$CC"}
15596
15597# If no C compiler flags were specified, use CFLAGS.
15598LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15599
15600# Allow CC to be a program name with arguments.
15601compiler=$CC
15602
15603
15604# save warnings/boilerplate of simple test code
15605ac_outfile=conftest.$ac_objext
15606printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15608_lt_compiler_boilerplate=`cat conftest.err`
15609$rm conftest*
15610
15611ac_outfile=conftest.$ac_objext
15612printf "$lt_simple_link_test_code" >conftest.$ac_ext
15613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15614_lt_linker_boilerplate=`cat conftest.err`
15615$rm conftest*
15616
15617
15618# Allow CC to be a program name with arguments.
15619lt_save_CC="$CC"
15620CC=${GCJ-"gcj"}
15621compiler=$CC
15622compiler_GCJ=$CC
15623for cc_temp in $compiler""; do
15624 case $cc_temp in
15625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15627 \-*) ;;
15628 *) break;;
15629 esac
15630done
15631cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15632
15633
15634# GCJ did not exist at the time GCC didn't implicitly link libc in.
15635archive_cmds_need_lc_GCJ=no
15636
15637old_archive_cmds_GCJ=$old_archive_cmds
15638
15639
15640lt_prog_compiler_no_builtin_flag_GCJ=
15641
15642if test "$GCC" = yes; then
15643 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15644
15645
15646echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15647echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15648if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650else
15651 lt_cv_prog_compiler_rtti_exceptions=no
15652 ac_outfile=conftest.$ac_objext
15653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15654 lt_compiler_flag="-fno-rtti -fno-exceptions"
15655 # Insert the option either (1) after the last *FLAGS variable, or
15656 # (2) before a word containing "conftest.", or (3) at the end.
15657 # Note that $ac_compile itself does not contain backslashes and begins
15658 # with a dollar sign (not a hyphen), so the echo should work correctly.
15659 # The option is referenced via a variable to avoid confusing sed.
15660 lt_compile=`echo "$ac_compile" | $SED \
15661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15663 -e 's:$: $lt_compiler_flag:'`
15664 (eval echo "\"\$as_me:15664: $lt_compile\"" >&5)
15665 (eval "$lt_compile" 2>conftest.err)
15666 ac_status=$?
15667 cat conftest.err >&5
15668 echo "$as_me:15668: \$? = $ac_status" >&5
15669 if (exit $ac_status) && test -s "$ac_outfile"; then
15670 # The compiler can only warn and ignore the option if not recognized
15671 # So say no if there are warnings other than the usual output.
15672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15675 lt_cv_prog_compiler_rtti_exceptions=yes
15676 fi
15677 fi
15678 $rm conftest*
15679
15680fi
15681echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15682echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15683
15684if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15685 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15686else
15687 :
15688fi
15689
15690fi
15691
15692lt_prog_compiler_wl_GCJ=
15693lt_prog_compiler_pic_GCJ=
15694lt_prog_compiler_static_GCJ=
15695
15696echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15697echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15698
15699 if test "$GCC" = yes; then
15700 lt_prog_compiler_wl_GCJ='-Wl,'
15701 lt_prog_compiler_static_GCJ='-static'
15702
15703 case $host_os in
15704 aix*)
15705 # All AIX code is PIC.
15706 if test "$host_cpu" = ia64; then
15707 # AIX 5 now supports IA64 processor
15708 lt_prog_compiler_static_GCJ='-Bstatic'
15709 fi
15710 ;;
15711
15712 amigaos*)
15713 # FIXME: we need at least 68020 code to build shared libraries, but
15714 # adding the `-m68020' flag to GCC prevents building anything better,
15715 # like `-m68040'.
15716 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15717 ;;
15718
15719 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15720 # PIC is the default for these OSes.
15721 ;;
15722
15723 mingw* | pw32* | os2*)
15724 # This hack is so that the source file can tell whether it is being
15725 # built for inclusion in a dll (and should export symbols for example).
15726 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15727 ;;
15728
15729 darwin* | rhapsody*)
15730 # PIC is the default on this platform
15731 # Common symbols not allowed in MH_DYLIB files
15732 lt_prog_compiler_pic_GCJ='-fno-common'
15733 ;;
15734
15735 interix3*)
15736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15737 # Instead, we relocate shared libraries at runtime.
15738 ;;
15739
15740 msdosdjgpp*)
15741 # Just because we use GCC doesn't mean we suddenly get shared libraries
15742 # on systems that don't support them.
15743 lt_prog_compiler_can_build_shared_GCJ=no
15744 enable_shared=no
15745 ;;
15746
15747 sysv4*MP*)
15748 if test -d /usr/nec; then
15749 lt_prog_compiler_pic_GCJ=-Kconform_pic
15750 fi
15751 ;;
15752
15753 hpux*)
15754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15755 # not for PA HP-UX.
15756 case $host_cpu in
15757 hppa*64*|ia64*)
15758 # +Z the default
15759 ;;
15760 *)
15761 lt_prog_compiler_pic_GCJ='-fPIC'
15762 ;;
15763 esac
15764 ;;
15765
15766 *)
15767 lt_prog_compiler_pic_GCJ='-fPIC'
15768 ;;
15769 esac
15770 else
15771 # PORTME Check for flag to pass linker flags through the system compiler.
15772 case $host_os in
15773 aix*)
15774 lt_prog_compiler_wl_GCJ='-Wl,'
15775 if test "$host_cpu" = ia64; then
15776 # AIX 5 now supports IA64 processor
15777 lt_prog_compiler_static_GCJ='-Bstatic'
15778 else
15779 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15780 fi
15781 ;;
15782 darwin*)
15783 # PIC is the default on this platform
15784 # Common symbols not allowed in MH_DYLIB files
15785 case $cc_basename in
15786 xlc*)
15787 lt_prog_compiler_pic_GCJ='-qnocommon'
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 ;;
15790 esac
15791 ;;
15792
15793 mingw* | pw32* | os2*)
15794 # This hack is so that the source file can tell whether it is being
15795 # built for inclusion in a dll (and should export symbols for example).
15796 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15797 ;;
15798
15799 hpux9* | hpux10* | hpux11*)
15800 lt_prog_compiler_wl_GCJ='-Wl,'
15801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15802 # not for PA HP-UX.
15803 case $host_cpu in
15804 hppa*64*|ia64*)
15805 # +Z the default
15806 ;;
15807 *)
15808 lt_prog_compiler_pic_GCJ='+Z'
15809 ;;
15810 esac
15811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15812 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15813 ;;
15814
15815 irix5* | irix6* | nonstopux*)
15816 lt_prog_compiler_wl_GCJ='-Wl,'
15817 # PIC (with -KPIC) is the default.
15818 lt_prog_compiler_static_GCJ='-non_shared'
15819 ;;
15820
15821 newsos6)
15822 lt_prog_compiler_pic_GCJ='-KPIC'
15823 lt_prog_compiler_static_GCJ='-Bstatic'
15824 ;;
15825
15826 linux*)
15827 case $cc_basename in
15828 icc* | ecc*)
15829 lt_prog_compiler_wl_GCJ='-Wl,'
15830 lt_prog_compiler_pic_GCJ='-KPIC'
15831 lt_prog_compiler_static_GCJ='-static'
15832 ;;
15833 pgcc* | pgf77* | pgf90* | pgf95*)
15834 # Portland Group compilers (*not* the Pentium gcc compiler,
15835 # which looks to be a dead project)
15836 lt_prog_compiler_wl_GCJ='-Wl,'
15837 lt_prog_compiler_pic_GCJ='-fpic'
15838 lt_prog_compiler_static_GCJ='-Bstatic'
15839 ;;
15840 ccc*)
15841 lt_prog_compiler_wl_GCJ='-Wl,'
15842 # All Alpha code is PIC.
15843 lt_prog_compiler_static_GCJ='-non_shared'
15844 ;;
15845 esac
15846 ;;
15847
15848 osf3* | osf4* | osf5*)
15849 lt_prog_compiler_wl_GCJ='-Wl,'
15850 # All OSF/1 code is PIC.
15851 lt_prog_compiler_static_GCJ='-non_shared'
15852 ;;
15853
15854 solaris*)
15855 lt_prog_compiler_pic_GCJ='-KPIC'
15856 lt_prog_compiler_static_GCJ='-Bstatic'
15857 case $cc_basename in
15858 f77* | f90* | f95*)
15859 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15860 *)
15861 lt_prog_compiler_wl_GCJ='-Wl,';;
15862 esac
15863 ;;
15864
15865 sunos4*)
15866 lt_prog_compiler_wl_GCJ='-Qoption ld '
15867 lt_prog_compiler_pic_GCJ='-PIC'
15868 lt_prog_compiler_static_GCJ='-Bstatic'
15869 ;;
15870
15871 sysv4 | sysv4.2uw2* | sysv4.3*)
15872 lt_prog_compiler_wl_GCJ='-Wl,'
15873 lt_prog_compiler_pic_GCJ='-KPIC'
15874 lt_prog_compiler_static_GCJ='-Bstatic'
15875 ;;
15876
15877 sysv4*MP*)
15878 if test -d /usr/nec ;then
15879 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15880 lt_prog_compiler_static_GCJ='-Bstatic'
15881 fi
15882 ;;
15883
15884 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15885 lt_prog_compiler_wl_GCJ='-Wl,'
15886 lt_prog_compiler_pic_GCJ='-KPIC'
15887 lt_prog_compiler_static_GCJ='-Bstatic'
15888 ;;
15889
15890 unicos*)
15891 lt_prog_compiler_wl_GCJ='-Wl,'
15892 lt_prog_compiler_can_build_shared_GCJ=no
15893 ;;
15894
15895 uts4*)
15896 lt_prog_compiler_pic_GCJ='-pic'
15897 lt_prog_compiler_static_GCJ='-Bstatic'
15898 ;;
15899
15900 *)
15901 lt_prog_compiler_can_build_shared_GCJ=no
15902 ;;
15903 esac
15904 fi
15905
15906echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15907echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15908
15909#
15910# Check to make sure the PIC flag actually works.
15911#
15912if test -n "$lt_prog_compiler_pic_GCJ"; then
15913
15914echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15915echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15916if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918else
15919 lt_prog_compiler_pic_works_GCJ=no
15920 ac_outfile=conftest.$ac_objext
15921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15922 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15923 # Insert the option either (1) after the last *FLAGS variable, or
15924 # (2) before a word containing "conftest.", or (3) at the end.
15925 # Note that $ac_compile itself does not contain backslashes and begins
15926 # with a dollar sign (not a hyphen), so the echo should work correctly.
15927 # The option is referenced via a variable to avoid confusing sed.
15928 lt_compile=`echo "$ac_compile" | $SED \
15929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931 -e 's:$: $lt_compiler_flag:'`
15932 (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
15933 (eval "$lt_compile" 2>conftest.err)
15934 ac_status=$?
15935 cat conftest.err >&5
15936 echo "$as_me:15936: \$? = $ac_status" >&5
15937 if (exit $ac_status) && test -s "$ac_outfile"; then
15938 # The compiler can only warn and ignore the option if not recognized
15939 # So say no if there are warnings other than the usual output.
15940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15943 lt_prog_compiler_pic_works_GCJ=yes
15944 fi
15945 fi
15946 $rm conftest*
15947
15948fi
15949echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15950echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15951
15952if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15953 case $lt_prog_compiler_pic_GCJ in
15954 "" | " "*) ;;
15955 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15956 esac
15957else
15958 lt_prog_compiler_pic_GCJ=
15959 lt_prog_compiler_can_build_shared_GCJ=no
15960fi
15961
15962fi
15963case $host_os in
15964 # For platforms which do not support PIC, -DPIC is meaningless:
15965 *djgpp*)
15966 lt_prog_compiler_pic_GCJ=
15967 ;;
15968 *)
15969 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15970 ;;
15971esac
15972
15973#
15974# Check to make sure the static flag actually works.
15975#
15976wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15977echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15978echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15979if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981else
15982 lt_prog_compiler_static_works_GCJ=no
15983 save_LDFLAGS="$LDFLAGS"
15984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15985 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15987 # The linker can only warn and ignore the option if not recognized
15988 # So say no if there are warnings
15989 if test -s conftest.err; then
15990 # Append any errors to the config.log.
15991 cat conftest.err 1>&5
15992 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15994 if diff conftest.exp conftest.er2 >/dev/null; then
15995 lt_prog_compiler_static_works_GCJ=yes
15996 fi
15997 else
15998 lt_prog_compiler_static_works_GCJ=yes
15999 fi
16000 fi
16001 $rm conftest*
16002 LDFLAGS="$save_LDFLAGS"
16003
16004fi
16005echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16006echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16007
16008if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16009 :
16010else
16011 lt_prog_compiler_static_GCJ=
16012fi
16013
16014
16015echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16016echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16017if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16019else
16020 lt_cv_prog_compiler_c_o_GCJ=no
16021 $rm -r conftest 2>/dev/null
16022 mkdir conftest
16023 cd conftest
16024 mkdir out
16025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16026
16027 lt_compiler_flag="-o out/conftest2.$ac_objext"
16028 # Insert the option either (1) after the last *FLAGS variable, or
16029 # (2) before a word containing "conftest.", or (3) at the end.
16030 # Note that $ac_compile itself does not contain backslashes and begins
16031 # with a dollar sign (not a hyphen), so the echo should work correctly.
16032 lt_compile=`echo "$ac_compile" | $SED \
16033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16035 -e 's:$: $lt_compiler_flag:'`
16036 (eval echo "\"\$as_me:16036: $lt_compile\"" >&5)
16037 (eval "$lt_compile" 2>out/conftest.err)
16038 ac_status=$?
16039 cat out/conftest.err >&5
16040 echo "$as_me:16040: \$? = $ac_status" >&5
16041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16042 then
16043 # The compiler can only warn and ignore the option if not recognized
16044 # So say no if there are warnings
16045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16048 lt_cv_prog_compiler_c_o_GCJ=yes
16049 fi
16050 fi
16051 chmod u+w . 2>&5
16052 $rm conftest*
16053 # SGI C++ compiler will create directory out/ii_files/ for
16054 # template instantiation
16055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16056 $rm out/* && rmdir out
16057 cd ..
16058 rmdir conftest
16059 $rm conftest*
16060
16061fi
16062echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16063echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16064
16065
16066hard_links="nottested"
16067if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16068 # do not overwrite the value of need_locks provided by the user
16069 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16070echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16071 hard_links=yes
16072 $rm conftest*
16073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16074 touch conftest.a
16075 ln conftest.a conftest.b 2>&5 || hard_links=no
16076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16077 echo "$as_me:$LINENO: result: $hard_links" >&5
16078echo "${ECHO_T}$hard_links" >&6
16079 if test "$hard_links" = no; then
16080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16081echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16082 need_locks=warn
16083 fi
16084else
16085 need_locks=no
16086fi
16087
16088echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16089echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16090
16091 runpath_var=
16092 allow_undefined_flag_GCJ=
16093 enable_shared_with_static_runtimes_GCJ=no
16094 archive_cmds_GCJ=
16095 archive_expsym_cmds_GCJ=
16096 old_archive_From_new_cmds_GCJ=
16097 old_archive_from_expsyms_cmds_GCJ=
16098 export_dynamic_flag_spec_GCJ=
16099 whole_archive_flag_spec_GCJ=
16100 thread_safe_flag_spec_GCJ=
16101 hardcode_libdir_flag_spec_GCJ=
16102 hardcode_libdir_flag_spec_ld_GCJ=
16103 hardcode_libdir_separator_GCJ=
16104 hardcode_direct_GCJ=no
16105 hardcode_minus_L_GCJ=no
16106 hardcode_shlibpath_var_GCJ=unsupported
16107 link_all_deplibs_GCJ=unknown
16108 hardcode_automatic_GCJ=no
16109 module_cmds_GCJ=
16110 module_expsym_cmds_GCJ=
16111 always_export_symbols_GCJ=no
16112 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16113 # include_expsyms should be a list of space-separated symbols to be *always*
16114 # included in the symbol list
16115 include_expsyms_GCJ=
16116 # exclude_expsyms can be an extended regexp of symbols to exclude
16117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16119 # as well as any symbol that contains `d'.
16120 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16122 # platforms (ab)use it in PIC code, but their linkers get confused if
16123 # the symbol is explicitly referenced. Since portable code cannot
16124 # rely on this symbol name, it's probably fine to never include it in
16125 # preloaded symbol tables.
16126 extract_expsyms_cmds=
16127 # Just being paranoid about ensuring that cc_basename is set.
16128 for cc_temp in $compiler""; do
16129 case $cc_temp in
16130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16132 \-*) ;;
16133 *) break;;
16134 esac
16135done
16136cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16137
16138 case $host_os in
16139 cygwin* | mingw* | pw32*)
16140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16141 # When not using gcc, we currently assume that we are using
16142 # Microsoft Visual C++.
16143 if test "$GCC" != yes; then
16144 with_gnu_ld=no
16145 fi
16146 ;;
16147 interix*)
16148 # we just hope/assume this is gcc and not c89 (= MSVC++)
16149 with_gnu_ld=yes
16150 ;;
16151 openbsd*)
16152 with_gnu_ld=no
16153 ;;
16154 esac
16155
16156 ld_shlibs_GCJ=yes
16157 if test "$with_gnu_ld" = yes; then
16158 # If archive_cmds runs LD, not CC, wlarc should be empty
16159 wlarc='${wl}'
16160
16161 # Set some defaults for GNU ld with shared library support. These
16162 # are reset later if shared libraries are not supported. Putting them
16163 # here allows them to be overridden if necessary.
16164 runpath_var=LD_RUN_PATH
16165 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16166 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16167 # ancient GNU ld didn't support --whole-archive et. al.
16168 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16169 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16170 else
16171 whole_archive_flag_spec_GCJ=
16172 fi
16173 supports_anon_versioning=no
16174 case `$LD -v 2>/dev/null` in
16175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16178 *\ 2.11.*) ;; # other 2.11 versions
16179 *) supports_anon_versioning=yes ;;
16180 esac
16181
16182 # See if GNU ld supports shared libraries.
16183 case $host_os in
16184 aix3* | aix4* | aix5*)
16185 # On AIX/PPC, the GNU linker is very broken
16186 if test "$host_cpu" != ia64; then
16187 ld_shlibs_GCJ=no
16188 cat <<EOF 1>&2
16189
16190*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16191*** to be unable to reliably create shared libraries on AIX.
16192*** Therefore, libtool is disabling shared libraries support. If you
16193*** really care for shared libraries, you may want to modify your PATH
16194*** so that a non-GNU linker is found, and then restart.
16195
16196EOF
16197 fi
16198 ;;
16199
16200 amigaos*)
16201 archive_cmds_GCJ='$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)'
16202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16203 hardcode_minus_L_GCJ=yes
16204
16205 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16206 # that the semantics of dynamic libraries on AmigaOS, at least up
16207 # to version 4, is to share data among multiple programs linked
16208 # with the same dynamic library. Since this doesn't match the
16209 # behavior of shared libraries on other platforms, we can't use
16210 # them.
16211 ld_shlibs_GCJ=no
16212 ;;
16213
16214 beos*)
16215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16216 allow_undefined_flag_GCJ=unsupported
16217 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16218 # support --undefined. This deserves some investigation. FIXME
16219 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220 else
16221 ld_shlibs_GCJ=no
16222 fi
16223 ;;
16224
16225 cygwin* | mingw* | pw32*)
16226 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16227 # as there is no search path for DLLs.
16228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16229 allow_undefined_flag_GCJ=unsupported
16230 always_export_symbols_GCJ=no
16231 enable_shared_with_static_runtimes_GCJ=yes
16232 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16233
16234 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16235 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16236 # If the export-symbols file already is a .def file (1st line
16237 # is EXPORTS), use it as is; otherwise, prepend...
16238 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16239 cp $export_symbols $output_objdir/$soname.def;
16240 else
16241 echo EXPORTS > $output_objdir/$soname.def;
16242 cat $export_symbols >> $output_objdir/$soname.def;
16243 fi~
16244 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16245 else
16246 ld_shlibs_GCJ=no
16247 fi
16248 ;;
16249
16250 interix3*)
16251 hardcode_direct_GCJ=no
16252 hardcode_shlibpath_var_GCJ=no
16253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16254 export_dynamic_flag_spec_GCJ='${wl}-E'
16255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16256 # Instead, shared libraries are loaded at an image base (0x10000000 by
16257 # default) and relocated if they conflict, which is a slow very memory
16258 # consuming and fragmenting process. To avoid this, we pick a random,
16259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16261 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16262 archive_expsym_cmds_GCJ='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'
16263 ;;
16264
16265 linux*)
16266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16267 tmp_addflag=
16268 case $cc_basename,$host_cpu in
16269 pgcc*) # Portland Group C compiler
16270 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16271 tmp_addflag=' $pic_flag'
16272 ;;
16273 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16274 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16275 tmp_addflag=' $pic_flag -Mnomain' ;;
16276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16277 tmp_addflag=' -i_dynamic' ;;
16278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16279 tmp_addflag=' -i_dynamic -nofor_main' ;;
16280 ifc* | ifort*) # Intel Fortran compiler
16281 tmp_addflag=' -nofor_main' ;;
16282 esac
16283 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284
16285 if test $supports_anon_versioning = yes; then
16286 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16288 $echo "local: *; };" >> $output_objdir/$libname.ver~
16289 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16290 fi
16291 else
16292 ld_shlibs_GCJ=no
16293 fi
16294 ;;
16295
16296 netbsd*)
16297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16298 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16299 wlarc=
16300 else
16301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 fi
16304 ;;
16305
16306 solaris*)
16307 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16308 ld_shlibs_GCJ=no
16309 cat <<EOF 1>&2
16310
16311*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16312*** create shared libraries on Solaris systems. Therefore, libtool
16313*** is disabling shared libraries support. We urge you to upgrade GNU
16314*** binutils to release 2.9.1 or newer. Another option is to modify
16315*** your PATH or compiler configuration so that the native linker is
16316*** used, and then restart.
16317
16318EOF
16319 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16320 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16322 else
16323 ld_shlibs_GCJ=no
16324 fi
16325 ;;
16326
16327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16328 case `$LD -v 2>&1` in
16329 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16330 ld_shlibs_GCJ=no
16331 cat <<_LT_EOF 1>&2
16332
16333*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16334*** reliably create shared libraries on SCO systems. Therefore, libtool
16335*** is disabling shared libraries support. We urge you to upgrade GNU
16336*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16337*** your PATH or compiler configuration so that the native linker is
16338*** used, and then restart.
16339
16340_LT_EOF
16341 ;;
16342 *)
16343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16344 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16345 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16346 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16347 else
16348 ld_shlibs_GCJ=no
16349 fi
16350 ;;
16351 esac
16352 ;;
16353
16354 sunos4*)
16355 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16356 wlarc=
16357 hardcode_direct_GCJ=yes
16358 hardcode_shlibpath_var_GCJ=no
16359 ;;
16360
16361 *)
16362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16363 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16364 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16365 else
16366 ld_shlibs_GCJ=no
16367 fi
16368 ;;
16369 esac
16370
16371 if test "$ld_shlibs_GCJ" = no; then
16372 runpath_var=
16373 hardcode_libdir_flag_spec_GCJ=
16374 export_dynamic_flag_spec_GCJ=
16375 whole_archive_flag_spec_GCJ=
16376 fi
16377 else
16378 # PORTME fill in a description of your system's linker (not GNU ld)
16379 case $host_os in
16380 aix3*)
16381 allow_undefined_flag_GCJ=unsupported
16382 always_export_symbols_GCJ=yes
16383 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16384 # Note: this linker hardcodes the directories in LIBPATH if there
16385 # are no directories specified by -L.
16386 hardcode_minus_L_GCJ=yes
16387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16388 # Neither direct hardcoding nor static linking is supported with a
16389 # broken collect2.
16390 hardcode_direct_GCJ=unsupported
16391 fi
16392 ;;
16393
16394 aix4* | aix5*)
16395 if test "$host_cpu" = ia64; then
16396 # On IA64, the linker does run time linking by default, so we don't
16397 # have to do anything special.
16398 aix_use_runtimelinking=no
16399 exp_sym_flag='-Bexport'
16400 no_entry_flag=""
16401 else
16402 # If we're using GNU nm, then we don't want the "-C" option.
16403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16405 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16406 else
16407 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16408 fi
16409 aix_use_runtimelinking=no
16410
16411 # Test if we are trying to use run time linking or normal
16412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16413 # need to do runtime linking.
16414 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16415 for ld_flag in $LDFLAGS; do
16416 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16417 aix_use_runtimelinking=yes
16418 break
16419 fi
16420 done
16421 ;;
16422 esac
16423
16424 exp_sym_flag='-bexport'
16425 no_entry_flag='-bnoentry'
16426 fi
16427
16428 # When large executables or shared objects are built, AIX ld can
16429 # have problems creating the table of contents. If linking a library
16430 # or program results in "error TOC overflow" add -mminimal-toc to
16431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16433
16434 archive_cmds_GCJ=''
16435 hardcode_direct_GCJ=yes
16436 hardcode_libdir_separator_GCJ=':'
16437 link_all_deplibs_GCJ=yes
16438
16439 if test "$GCC" = yes; then
16440 case $host_os in aix4.[012]|aix4.[012].*)
16441 # We only want to do this on AIX 4.2 and lower, the check
16442 # below for broken collect2 doesn't work under 4.3+
16443 collect2name=`${CC} -print-prog-name=collect2`
16444 if test -f "$collect2name" && \
16445 strings "$collect2name" | grep resolve_lib_name >/dev/null
16446 then
16447 # We have reworked collect2
16448 hardcode_direct_GCJ=yes
16449 else
16450 # We have old collect2
16451 hardcode_direct_GCJ=unsupported
16452 # It fails to find uninstalled libraries when the uninstalled
16453 # path is not listed in the libpath. Setting hardcode_minus_L
16454 # to unsupported forces relinking
16455 hardcode_minus_L_GCJ=yes
16456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16457 hardcode_libdir_separator_GCJ=
16458 fi
16459 ;;
16460 esac
16461 shared_flag='-shared'
16462 if test "$aix_use_runtimelinking" = yes; then
16463 shared_flag="$shared_flag "'${wl}-G'
16464 fi
16465 else
16466 # not using gcc
16467 if test "$host_cpu" = ia64; then
16468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16469 # chokes on -Wl,-G. The following line is correct:
16470 shared_flag='-G'
16471 else
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag='${wl}-G'
16474 else
16475 shared_flag='${wl}-bM:SRE'
16476 fi
16477 fi
16478 fi
16479
16480 # It seems that -bexpall does not export symbols beginning with
16481 # underscore (_), so it is better to generate a list of symbols to export.
16482 always_export_symbols_GCJ=yes
16483 if test "$aix_use_runtimelinking" = yes; then
16484 # Warning - without using the other runtime loading flags (-brtl),
16485 # -berok will link without error, but may produce a broken library.
16486 allow_undefined_flag_GCJ='-berok'
16487 # Determine the default libpath from the value encoded in an empty executable.
16488 cat >conftest.$ac_ext <<_ACEOF
16489/* confdefs.h. */
16490_ACEOF
16491cat confdefs.h >>conftest.$ac_ext
16492cat >>conftest.$ac_ext <<_ACEOF
16493/* end confdefs.h. */
16494
16495int
16496main ()
16497{
16498
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest.$ac_objext conftest$ac_exeext
16504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16505 (eval $ac_link) 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag"
16513 || test ! -s conftest.err'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; } &&
16519 { ac_try='test -s conftest$ac_exeext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525
16526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16527}'`
16528# Check for a 64-bit object if we didn't find anything.
16529if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16530}'`; fi
16531else
16532 echo "$as_me: failed program was:" >&5
16533sed 's/^/| /' conftest.$ac_ext >&5
16534
16535fi
16536rm -f conftest.err conftest.$ac_objext \
16537 conftest$ac_exeext conftest.$ac_ext
16538if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16539
16540 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16541 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16542 else
16543 if test "$host_cpu" = ia64; then
16544 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16545 allow_undefined_flag_GCJ="-z nodefs"
16546 archive_expsym_cmds_GCJ="\$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"
16547 else
16548 # Determine the default libpath from the value encoded in an empty executable.
16549 cat >conftest.$ac_ext <<_ACEOF
16550/* confdefs.h. */
16551_ACEOF
16552cat confdefs.h >>conftest.$ac_ext
16553cat >>conftest.$ac_ext <<_ACEOF
16554/* end confdefs.h. */
16555
16556int
16557main ()
16558{
16559
16560 ;
16561 return 0;
16562}
16563_ACEOF
16564rm -f conftest.$ac_objext conftest$ac_exeext
16565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566 (eval $ac_link) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586
16587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16588}'`
16589# Check for a 64-bit object if we didn't find anything.
16590if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16591}'`; fi
16592else
16593 echo "$as_me: failed program was:" >&5
16594sed 's/^/| /' conftest.$ac_ext >&5
16595
16596fi
16597rm -f conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
16599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16600
16601 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16602 # Warning - without using the other run time loading flags,
16603 # -berok will link without error, but may produce a broken library.
16604 no_undefined_flag_GCJ=' ${wl}-bernotok'
16605 allow_undefined_flag_GCJ=' ${wl}-berok'
16606 # Exported symbols can be pulled into shared objects from archives
16607 whole_archive_flag_spec_GCJ='$convenience'
16608 archive_cmds_need_lc_GCJ=yes
16609 # This is similar to how AIX traditionally builds its shared libraries.
16610 archive_expsym_cmds_GCJ="\$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'
16611 fi
16612 fi
16613 ;;
16614
16615 amigaos*)
16616 archive_cmds_GCJ='$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)'
16617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16618 hardcode_minus_L_GCJ=yes
16619 # see comment about different semantics on the GNU ld section
16620 ld_shlibs_GCJ=no
16621 ;;
16622
16623 bsdi[45]*)
16624 export_dynamic_flag_spec_GCJ=-rdynamic
16625 ;;
16626
16627 cygwin* | mingw* | pw32*)
16628 # When not using gcc, we currently assume that we are using
16629 # Microsoft Visual C++.
16630 # hardcode_libdir_flag_spec is actually meaningless, as there is
16631 # no search path for DLLs.
16632 hardcode_libdir_flag_spec_GCJ=' '
16633 allow_undefined_flag_GCJ=unsupported
16634 # Tell ltmain to make .lib files, not .a files.
16635 libext=lib
16636 # Tell ltmain to make .dll files, not .so files.
16637 shrext_cmds=".dll"
16638 # FIXME: Setting linknames here is a bad hack.
16639 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16640 # The linker will automatically build a .lib file if we build a DLL.
16641 old_archive_From_new_cmds_GCJ='true'
16642 # FIXME: Should let the user specify the lib program.
16643 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16644 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16645 enable_shared_with_static_runtimes_GCJ=yes
16646 ;;
16647
16648 darwin* | rhapsody*)
16649 case $host_os in
16650 rhapsody* | darwin1.[012])
16651 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16652 ;;
16653 *) # Darwin 1.3 on
16654 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16655 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16656 else
16657 case ${MACOSX_DEPLOYMENT_TARGET} in
16658 10.[012])
16659 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16660 ;;
16661 10.*)
16662 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16663 ;;
16664 esac
16665 fi
16666 ;;
16667 esac
16668 archive_cmds_need_lc_GCJ=no
16669 hardcode_direct_GCJ=no
16670 hardcode_automatic_GCJ=yes
16671 hardcode_shlibpath_var_GCJ=unsupported
16672 whole_archive_flag_spec_GCJ=''
16673 link_all_deplibs_GCJ=yes
16674 if test "$GCC" = yes ; then
16675 output_verbose_link_cmd='echo'
16676 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16677 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16679 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16680 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16681 else
16682 case $cc_basename in
16683 xlc*)
16684 output_verbose_link_cmd='echo'
16685 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16686 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16688 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16689 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16690 ;;
16691 *)
16692 ld_shlibs_GCJ=no
16693 ;;
16694 esac
16695 fi
16696 ;;
16697
16698 dgux*)
16699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701 hardcode_shlibpath_var_GCJ=no
16702 ;;
16703
16704 freebsd1*)
16705 ld_shlibs_GCJ=no
16706 ;;
16707
16708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16709 # support. Future versions do this automatically, but an explicit c++rt0.o
16710 # does not break anything, and helps significantly (at the cost of a little
16711 # extra space).
16712 freebsd2.2*)
16713 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16715 hardcode_direct_GCJ=yes
16716 hardcode_shlibpath_var_GCJ=no
16717 ;;
16718
16719 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16720 freebsd2*)
16721 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_direct_GCJ=yes
16723 hardcode_minus_L_GCJ=yes
16724 hardcode_shlibpath_var_GCJ=no
16725 ;;
16726
16727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16728 freebsd* | kfreebsd*-gnu | dragonfly*)
16729 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16730 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16731 hardcode_direct_GCJ=yes
16732 hardcode_shlibpath_var_GCJ=no
16733 ;;
16734
16735 hpux9*)
16736 if test "$GCC" = yes; then
16737 archive_cmds_GCJ='$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'
16738 else
16739 archive_cmds_GCJ='$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'
16740 fi
16741 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16742 hardcode_libdir_separator_GCJ=:
16743 hardcode_direct_GCJ=yes
16744
16745 # hardcode_minus_L: Not really in the search PATH,
16746 # but as the default location of the library.
16747 hardcode_minus_L_GCJ=yes
16748 export_dynamic_flag_spec_GCJ='${wl}-E'
16749 ;;
16750
16751 hpux10*)
16752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16753 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16754 else
16755 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16756 fi
16757 if test "$with_gnu_ld" = no; then
16758 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16759 hardcode_libdir_separator_GCJ=:
16760
16761 hardcode_direct_GCJ=yes
16762 export_dynamic_flag_spec_GCJ='${wl}-E'
16763
16764 # hardcode_minus_L: Not really in the search PATH,
16765 # but as the default location of the library.
16766 hardcode_minus_L_GCJ=yes
16767 fi
16768 ;;
16769
16770 hpux11*)
16771 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16772 case $host_cpu in
16773 hppa*64*)
16774 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 ;;
16776 ia64*)
16777 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16778 ;;
16779 *)
16780 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16781 ;;
16782 esac
16783 else
16784 case $host_cpu in
16785 hppa*64*)
16786 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787 ;;
16788 ia64*)
16789 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16790 ;;
16791 *)
16792 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16793 ;;
16794 esac
16795 fi
16796 if test "$with_gnu_ld" = no; then
16797 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16798 hardcode_libdir_separator_GCJ=:
16799
16800 case $host_cpu in
16801 hppa*64*|ia64*)
16802 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16803 hardcode_direct_GCJ=no
16804 hardcode_shlibpath_var_GCJ=no
16805 ;;
16806 *)
16807 hardcode_direct_GCJ=yes
16808 export_dynamic_flag_spec_GCJ='${wl}-E'
16809
16810 # hardcode_minus_L: Not really in the search PATH,
16811 # but as the default location of the library.
16812 hardcode_minus_L_GCJ=yes
16813 ;;
16814 esac
16815 fi
16816 ;;
16817
16818 irix5* | irix6* | nonstopux*)
16819 if test "$GCC" = yes; then
16820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16821 else
16822 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16823 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16824 fi
16825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16826 hardcode_libdir_separator_GCJ=:
16827 link_all_deplibs_GCJ=yes
16828 ;;
16829
16830 netbsd*)
16831 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16832 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16833 else
16834 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16835 fi
16836 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16837 hardcode_direct_GCJ=yes
16838 hardcode_shlibpath_var_GCJ=no
16839 ;;
16840
16841 newsos6)
16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_direct_GCJ=yes
16844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16845 hardcode_libdir_separator_GCJ=:
16846 hardcode_shlibpath_var_GCJ=no
16847 ;;
16848
16849 openbsd*)
16850 hardcode_direct_GCJ=yes
16851 hardcode_shlibpath_var_GCJ=no
16852 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16853 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16854 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16855 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16856 export_dynamic_flag_spec_GCJ='${wl}-E'
16857 else
16858 case $host_os in
16859 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16860 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16861 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16862 ;;
16863 *)
16864 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16865 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16866 ;;
16867 esac
16868 fi
16869 ;;
16870
16871 os2*)
16872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16873 hardcode_minus_L_GCJ=yes
16874 allow_undefined_flag_GCJ=unsupported
16875 archive_cmds_GCJ='$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'
16876 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16877 ;;
16878
16879 osf3*)
16880 if test "$GCC" = yes; then
16881 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16882 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16883 else
16884 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16885 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16886 fi
16887 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16888 hardcode_libdir_separator_GCJ=:
16889 ;;
16890
16891 osf4* | osf5*) # as osf3* with the addition of -msym flag
16892 if test "$GCC" = yes; then
16893 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16894 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16896 else
16897 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16898 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16899 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16900 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16901
16902 # Both c and cxx compiler support -rpath directly
16903 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16904 fi
16905 hardcode_libdir_separator_GCJ=:
16906 ;;
16907
16908 solaris*)
16909 no_undefined_flag_GCJ=' -z text'
16910 if test "$GCC" = yes; then
16911 wlarc='${wl}'
16912 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16914 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16915 else
16916 wlarc=''
16917 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16920 fi
16921 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16922 hardcode_shlibpath_var_GCJ=no
16923 case $host_os in
16924 solaris2.[0-5] | solaris2.[0-5].*) ;;
16925 *)
16926 # The compiler driver will combine linker options so we
16927 # cannot just pass the convience library names through
16928 # without $wl, iff we do not link with $LD.
16929 # Luckily, gcc supports the same syntax we need for Sun Studio.
16930 # Supported since Solaris 2.6 (maybe 2.5.1?)
16931 case $wlarc in
16932 '')
16933 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16934 *)
16935 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16936 esac ;;
16937 esac
16938 link_all_deplibs_GCJ=yes
16939 ;;
16940
16941 sunos4*)
16942 if test "x$host_vendor" = xsequent; then
16943 # Use $CC to link under sequent, because it throws in some extra .o
16944 # files that make .init and .fini sections work.
16945 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16946 else
16947 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16948 fi
16949 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16950 hardcode_direct_GCJ=yes
16951 hardcode_minus_L_GCJ=yes
16952 hardcode_shlibpath_var_GCJ=no
16953 ;;
16954
16955 sysv4)
16956 case $host_vendor in
16957 sni)
16958 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16959 hardcode_direct_GCJ=yes # is this really true???
16960 ;;
16961 siemens)
16962 ## LD is ld it makes a PLAMLIB
16963 ## CC just makes a GrossModule.
16964 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16965 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16966 hardcode_direct_GCJ=no
16967 ;;
16968 motorola)
16969 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16971 ;;
16972 esac
16973 runpath_var='LD_RUN_PATH'
16974 hardcode_shlibpath_var_GCJ=no
16975 ;;
16976
16977 sysv4.3*)
16978 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16979 hardcode_shlibpath_var_GCJ=no
16980 export_dynamic_flag_spec_GCJ='-Bexport'
16981 ;;
16982
16983 sysv4*MP*)
16984 if test -d /usr/nec; then
16985 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_shlibpath_var_GCJ=no
16987 runpath_var=LD_RUN_PATH
16988 hardcode_runpath_var=yes
16989 ld_shlibs_GCJ=yes
16990 fi
16991 ;;
16992
16993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16994 no_undefined_flag_GCJ='${wl}-z,text'
16995 archive_cmds_need_lc_GCJ=no
16996 hardcode_shlibpath_var_GCJ=no
16997 runpath_var='LD_RUN_PATH'
16998
16999 if test "$GCC" = yes; then
17000 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17001 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17002 else
17003 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17004 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 fi
17006 ;;
17007
17008 sysv5* | sco3.2v5* | sco5v6*)
17009 # Note: We can NOT use -z defs as we might desire, because we do not
17010 # link with -lc, and that would cause any symbols used from libc to
17011 # always be unresolved, which means just about no library would
17012 # ever link correctly. If we're not using GNU ld we use -z text
17013 # though, which does catch some bad symbols but isn't as heavy-handed
17014 # as -z defs.
17015 no_undefined_flag_GCJ='${wl}-z,text'
17016 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17017 archive_cmds_need_lc_GCJ=no
17018 hardcode_shlibpath_var_GCJ=no
17019 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17020 hardcode_libdir_separator_GCJ=':'
17021 link_all_deplibs_GCJ=yes
17022 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17023 runpath_var='LD_RUN_PATH'
17024
17025 if test "$GCC" = yes; then
17026 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 else
17029 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17030 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17031 fi
17032 ;;
17033
17034 uts4*)
17035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17037 hardcode_shlibpath_var_GCJ=no
17038 ;;
17039
17040 *)
17041 ld_shlibs_GCJ=no
17042 ;;
17043 esac
17044 fi
17045
17046echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17047echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17048test "$ld_shlibs_GCJ" = no && can_build_shared=no
17049
17050#
17051# Do we need to explicitly link libc?
17052#
17053case "x$archive_cmds_need_lc_GCJ" in
17054x|xyes)
17055 # Assume -lc should be added
17056 archive_cmds_need_lc_GCJ=yes
17057
17058 if test "$enable_shared" = yes && test "$GCC" = yes; then
17059 case $archive_cmds_GCJ in
17060 *'~'*)
17061 # FIXME: we may have to deal with multi-command sequences.
17062 ;;
17063 '$CC '*)
17064 # Test whether the compiler implicitly links with -lc since on some
17065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17066 # to ld, don't add -lc before -lgcc.
17067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17069 $rm conftest*
17070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17071
17072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17073 (eval $ac_compile) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } 2>conftest.err; then
17077 soname=conftest
17078 lib=conftest
17079 libobjs=conftest.$ac_objext
17080 deplibs=
17081 wl=$lt_prog_compiler_wl_GCJ
17082 pic_flag=$lt_prog_compiler_pic_GCJ
17083 compiler_flags=-v
17084 linker_flags=-v
17085 verstring=
17086 output_objdir=.
17087 libname=conftest
17088 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17089 allow_undefined_flag_GCJ=
17090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17091 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }
17095 then
17096 archive_cmds_need_lc_GCJ=no
17097 else
17098 archive_cmds_need_lc_GCJ=yes
17099 fi
17100 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17101 else
17102 cat conftest.err 1>&5
17103 fi
17104 $rm conftest*
17105 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17106echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17107 ;;
17108 esac
17109 fi
17110 ;;
17111esac
17112
17113echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17114echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17115library_names_spec=
17116libname_spec='lib$name'
17117soname_spec=
17118shrext_cmds=".so"
17119postinstall_cmds=
17120postuninstall_cmds=
17121finish_cmds=
17122finish_eval=
17123shlibpath_var=
17124shlibpath_overrides_runpath=unknown
17125version_type=none
17126dynamic_linker="$host_os ld.so"
17127sys_lib_dlsearch_path_spec="/lib /usr/lib"
17128if test "$GCC" = yes; then
17129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17130 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17131 # if the path contains ";" then we assume it to be the separator
17132 # otherwise default to the standard path separator (i.e. ":") - it is
17133 # assumed that no part of a normal pathname contains ";" but that should
17134 # okay in the real world where ";" in dirpaths is itself problematic.
17135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17136 else
17137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17138 fi
17139else
17140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17141fi
17142need_lib_prefix=unknown
17143hardcode_into_libs=no
17144
17145# when you set need_version to no, make sure it does not cause -set_version
17146# flags to be left without arguments
17147need_version=unknown
17148
17149case $host_os in
17150aix3*)
17151 version_type=linux
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17153 shlibpath_var=LIBPATH
17154
17155 # AIX 3 has no versioning support, so we append a major version to the name.
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 ;;
17158
17159aix4* | aix5*)
17160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 hardcode_into_libs=yes
17164 if test "$host_cpu" = ia64; then
17165 # AIX 5 supports IA64
17166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 else
17169 # With GCC up to 2.95.x, collect2 would create an import file
17170 # for dependence libraries. The import file would start with
17171 # the line `#! .'. This would cause the generated library to
17172 # depend on `.', always an invalid library. This was fixed in
17173 # development snapshots of GCC prior to 3.0.
17174 case $host_os in
17175 aix4 | aix4.[01] | aix4.[01].*)
17176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17177 echo ' yes '
17178 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17179 :
17180 else
17181 can_build_shared=no
17182 fi
17183 ;;
17184 esac
17185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17186 # soname into executable. Probably we can add versioning support to
17187 # collect2, so additional links can be useful in future.
17188 if test "$aix_use_runtimelinking" = yes; then
17189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17190 # instead of lib<name>.a to let people know that these are not
17191 # typical AIX shared libraries.
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 else
17194 # We preserve .a as extension for shared libraries through AIX4.2
17195 # and later when we are not doing run time linking.
17196 library_names_spec='${libname}${release}.a $libname.a'
17197 soname_spec='${libname}${release}${shared_ext}$major'
17198 fi
17199 shlibpath_var=LIBPATH
17200 fi
17201 ;;
17202
17203amigaos*)
17204 library_names_spec='$libname.ixlibrary $libname.a'
17205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17206 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'
17207 ;;
17208
17209beos*)
17210 library_names_spec='${libname}${shared_ext}'
17211 dynamic_linker="$host_os ld.so"
17212 shlibpath_var=LIBRARY_PATH
17213 ;;
17214
17215bsdi[45]*)
17216 version_type=linux
17217 need_version=no
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17223 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17224 # the default ld.so.conf also contains /usr/contrib/lib and
17225 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17226 # libtool to hard-code these into programs
17227 ;;
17228
17229cygwin* | mingw* | pw32*)
17230 version_type=windows
17231 shrext_cmds=".dll"
17232 need_version=no
17233 need_lib_prefix=no
17234
17235 case $GCC,$host_os in
17236 yes,cygwin* | yes,mingw* | yes,pw32*)
17237 library_names_spec='$libname.dll.a'
17238 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17239 postinstall_cmds='base_file=`basename \${file}`~
17240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17241 dldir=$destdir/`dirname \$dlpath`~
17242 test -d \$dldir || mkdir -p \$dldir~
17243 $install_prog $dir/$dlname \$dldir/$dlname~
17244 chmod a+x \$dldir/$dlname'
17245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17246 dlpath=$dir/\$dldll~
17247 $rm \$dlpath'
17248 shlibpath_overrides_runpath=yes
17249
17250 case $host_os in
17251 cygwin*)
17252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17254 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17255 ;;
17256 mingw*)
17257 # MinGW DLLs use traditional 'lib' prefix
17258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17259 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17260 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17261 # It is most probably a Windows format PATH printed by
17262 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17263 # path with ; separators, and with drive letters. We can handle the
17264 # drive letters (cygwin fileutils understands them), so leave them,
17265 # especially as we might pass files found there to a mingw objdump,
17266 # which wouldn't understand a cygwinified path. Ahh.
17267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17268 else
17269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17270 fi
17271 ;;
17272 pw32*)
17273 # pw32 DLLs use 'pw' prefix rather than 'lib'
17274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17275 ;;
17276 esac
17277 ;;
17278
17279 *)
17280 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17281 ;;
17282 esac
17283 dynamic_linker='Win32 ld.exe'
17284 # FIXME: first we should search . and the directory the executable is in
17285 shlibpath_var=PATH
17286 ;;
17287
17288darwin* | rhapsody*)
17289 dynamic_linker="$host_os dyld"
17290 version_type=darwin
17291 need_lib_prefix=no
17292 need_version=no
17293 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17294 soname_spec='${libname}${release}${major}$shared_ext'
17295 shlibpath_overrides_runpath=yes
17296 shlibpath_var=DYLD_LIBRARY_PATH
17297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17298 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17299 if test "$GCC" = yes; then
17300 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17301 else
17302 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17303 fi
17304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17305 ;;
17306
17307dgux*)
17308 version_type=linux
17309 need_lib_prefix=no
17310 need_version=no
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 ;;
17315
17316freebsd1*)
17317 dynamic_linker=no
17318 ;;
17319
17320kfreebsd*-gnu)
17321 version_type=linux
17322 need_lib_prefix=no
17323 need_version=no
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 shlibpath_overrides_runpath=no
17328 hardcode_into_libs=yes
17329 dynamic_linker='GNU ld.so'
17330 ;;
17331
17332freebsd* | dragonfly*)
17333 # DragonFly does not have aout. When/if they implement a new
17334 # versioning mechanism, adjust this.
17335 if test -x /usr/bin/objformat; then
17336 objformat=`/usr/bin/objformat`
17337 else
17338 case $host_os in
17339 freebsd[123]*) objformat=aout ;;
17340 *) objformat=elf ;;
17341 esac
17342 fi
17343 version_type=freebsd-$objformat
17344 case $version_type in
17345 freebsd-elf*)
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17347 need_version=no
17348 need_lib_prefix=no
17349 ;;
17350 freebsd-*)
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17352 need_version=yes
17353 ;;
17354 esac
17355 shlibpath_var=LD_LIBRARY_PATH
17356 case $host_os in
17357 freebsd2*)
17358 shlibpath_overrides_runpath=yes
17359 ;;
17360 freebsd3.[01]* | freebsdelf3.[01]*)
17361 shlibpath_overrides_runpath=yes
17362 hardcode_into_libs=yes
17363 ;;
17364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17366 shlibpath_overrides_runpath=no
17367 hardcode_into_libs=yes
17368 ;;
17369 freebsd*) # from 4.6 on
17370 shlibpath_overrides_runpath=yes
17371 hardcode_into_libs=yes
17372 ;;
17373 esac
17374 ;;
17375
17376gnu*)
17377 version_type=linux
17378 need_lib_prefix=no
17379 need_version=no
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 hardcode_into_libs=yes
17384 ;;
17385
17386hpux9* | hpux10* | hpux11*)
17387 # Give a soname corresponding to the major version so that dld.sl refuses to
17388 # link against other versions.
17389 version_type=sunos
17390 need_lib_prefix=no
17391 need_version=no
17392 case $host_cpu in
17393 ia64*)
17394 shrext_cmds='.so'
17395 hardcode_into_libs=yes
17396 dynamic_linker="$host_os dld.so"
17397 shlibpath_var=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400 soname_spec='${libname}${release}${shared_ext}$major'
17401 if test "X$HPUX_IA64_MODE" = X32; then
17402 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17403 else
17404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17405 fi
17406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17407 ;;
17408 hppa*64*)
17409 shrext_cmds='.sl'
17410 hardcode_into_libs=yes
17411 dynamic_linker="$host_os dld.sl"
17412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17418 ;;
17419 *)
17420 shrext_cmds='.sl'
17421 dynamic_linker="$host_os dld.sl"
17422 shlibpath_var=SHLIB_PATH
17423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 ;;
17427 esac
17428 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17429 postinstall_cmds='chmod 555 $lib'
17430 ;;
17431
17432interix3*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=no
17441 hardcode_into_libs=yes
17442 ;;
17443
17444irix5* | irix6* | nonstopux*)
17445 case $host_os in
17446 nonstopux*) version_type=nonstopux ;;
17447 *)
17448 if test "$lt_cv_prog_gnu_ld" = yes; then
17449 version_type=linux
17450 else
17451 version_type=irix
17452 fi ;;
17453 esac
17454 need_lib_prefix=no
17455 need_version=no
17456 soname_spec='${libname}${release}${shared_ext}$major'
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17458 case $host_os in
17459 irix5* | nonstopux*)
17460 libsuff= shlibsuff=
17461 ;;
17462 *)
17463 case $LD in # libtool.m4 will add one of these switches to LD
17464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17465 libsuff= shlibsuff= libmagic=32-bit;;
17466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17467 libsuff=32 shlibsuff=N32 libmagic=N32;;
17468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17470 *) libsuff= shlibsuff= libmagic=never-match;;
17471 esac
17472 ;;
17473 esac
17474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17475 shlibpath_overrides_runpath=no
17476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17478 hardcode_into_libs=yes
17479 ;;
17480
17481# No shared lib support for Linux oldld, aout, or coff.
17482linux*oldld* | linux*aout* | linux*coff*)
17483 dynamic_linker=no
17484 ;;
17485
17486# This must be Linux ELF.
17487linux*)
17488 version_type=linux
17489 need_lib_prefix=no
17490 need_version=no
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=no
17496 # This implies no fast_install, which is unacceptable.
17497 # Some rework will be needed to allow for fast_install
17498 # before this can be enabled.
17499 hardcode_into_libs=yes
17500
17501 # find out which ABI we are using
17502 libsuff=
17503 case "$host_cpu" in
17504 x86_64*|s390x*|powerpc64*)
17505 echo '#line 17505 "configure"' > conftest.$ac_ext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17507 (eval $ac_compile) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; then
17511 case `/usr/bin/file conftest.$ac_objext` in
17512 *64-bit*)
17513 libsuff=64
17514 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17515 ;;
17516 esac
17517 fi
17518 rm -rf conftest*
17519 ;;
17520 esac
17521
17522 # Append ld.so.conf contents to the search path
17523 if test -f /etc/ld.so.conf; then
17524 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' ' '`
17525 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17526 fi
17527
17528 # We used to test for /lib/ld.so.1 and disable shared libraries on
17529 # powerpc, because MkLinux only supported shared libraries with the
17530 # GNU dynamic linker. Since this was broken with cross compilers,
17531 # most powerpc-linux boxes support dynamic linking these days and
17532 # people can always --disable-shared, the test was removed, and we
17533 # assume the GNU/Linux dynamic linker is in use.
17534 dynamic_linker='GNU/Linux ld.so'
17535 ;;
17536
17537knetbsd*-gnu)
17538 version_type=linux
17539 need_lib_prefix=no
17540 need_version=no
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=no
17545 hardcode_into_libs=yes
17546 dynamic_linker='GNU ld.so'
17547 ;;
17548
17549netbsd*)
17550 version_type=sunos
17551 need_lib_prefix=no
17552 need_version=no
17553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17556 dynamic_linker='NetBSD (a.out) ld.so'
17557 else
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 dynamic_linker='NetBSD ld.elf_so'
17561 fi
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes
17564 hardcode_into_libs=yes
17565 ;;
17566
17567newsos6)
17568 version_type=linux
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 shlibpath_overrides_runpath=yes
17572 ;;
17573
17574nto-qnx*)
17575 version_type=linux
17576 need_lib_prefix=no
17577 need_version=no
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579 soname_spec='${libname}${release}${shared_ext}$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes
17582 ;;
17583
17584openbsd*)
17585 version_type=sunos
17586 sys_lib_dlsearch_path_spec="/usr/lib"
17587 need_lib_prefix=no
17588 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17589 case $host_os in
17590 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17591 *) need_version=no ;;
17592 esac
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17597 case $host_os in
17598 openbsd2.[89] | openbsd2.[89].*)
17599 shlibpath_overrides_runpath=no
17600 ;;
17601 *)
17602 shlibpath_overrides_runpath=yes
17603 ;;
17604 esac
17605 else
17606 shlibpath_overrides_runpath=yes
17607 fi
17608 ;;
17609
17610os2*)
17611 libname_spec='$name'
17612 shrext_cmds=".dll"
17613 need_lib_prefix=no
17614 library_names_spec='$libname${shared_ext} $libname.a'
17615 dynamic_linker='OS/2 ld.exe'
17616 shlibpath_var=LIBPATH
17617 ;;
17618
17619osf3* | osf4* | osf5*)
17620 version_type=osf
17621 need_lib_prefix=no
17622 need_version=no
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17625 shlibpath_var=LD_LIBRARY_PATH
17626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17628 ;;
17629
17630solaris*)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=yes
17638 hardcode_into_libs=yes
17639 # ldd complains unless libraries are executable
17640 postinstall_cmds='chmod +x $lib'
17641 ;;
17642
17643sunos4*)
17644 version_type=sunos
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes
17649 if test "$with_gnu_ld" = yes; then
17650 need_lib_prefix=no
17651 fi
17652 need_version=yes
17653 ;;
17654
17655sysv4 | sysv4.3*)
17656 version_type=linux
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 case $host_vendor in
17661 sni)
17662 shlibpath_overrides_runpath=no
17663 need_lib_prefix=no
17664 export_dynamic_flag_spec='${wl}-Blargedynsym'
17665 runpath_var=LD_RUN_PATH
17666 ;;
17667 siemens)
17668 need_lib_prefix=no
17669 ;;
17670 motorola)
17671 need_lib_prefix=no
17672 need_version=no
17673 shlibpath_overrides_runpath=no
17674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17675 ;;
17676 esac
17677 ;;
17678
17679sysv4*MP*)
17680 if test -d /usr/nec ;then
17681 version_type=linux
17682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17683 soname_spec='$libname${shared_ext}.$major'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 fi
17686 ;;
17687
17688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17689 version_type=freebsd-elf
17690 need_lib_prefix=no
17691 need_version=no
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 hardcode_into_libs=yes
17696 if test "$with_gnu_ld" = yes; then
17697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17698 shlibpath_overrides_runpath=no
17699 else
17700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17701 shlibpath_overrides_runpath=yes
17702 case $host_os in
17703 sco3.2v5*)
17704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17705 ;;
17706 esac
17707 fi
17708 sys_lib_dlsearch_path_spec='/usr/lib'
17709 ;;
17710
17711uts4*)
17712 version_type=linux
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 shlibpath_var=LD_LIBRARY_PATH
17716 ;;
17717
17718*)
17719 dynamic_linker=no
17720 ;;
17721esac
17722echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17723echo "${ECHO_T}$dynamic_linker" >&6
17724test "$dynamic_linker" = no && can_build_shared=no
17725
17726variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17727if test "$GCC" = yes; then
17728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17729fi
17730
17731echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17732echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17733hardcode_action_GCJ=
17734if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17735 test -n "$runpath_var_GCJ" || \
17736 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17737
17738 # We can hardcode non-existant directories.
17739 if test "$hardcode_direct_GCJ" != no &&
17740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17741 # have to relink, otherwise we might link with an installed library
17742 # when we should be linking with a yet-to-be-installed one
17743 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17744 test "$hardcode_minus_L_GCJ" != no; then
17745 # Linking always hardcodes the temporary library directory.
17746 hardcode_action_GCJ=relink
17747 else
17748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17749 hardcode_action_GCJ=immediate
17750 fi
17751else
17752 # We cannot hardcode anything, or else we can only hardcode existing
17753 # directories.
17754 hardcode_action_GCJ=unsupported
17755fi
17756echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17757echo "${ECHO_T}$hardcode_action_GCJ" >&6
17758
17759if test "$hardcode_action_GCJ" = relink; then
17760 # Fast installation is not supported
17761 enable_fast_install=no
17762elif test "$shlibpath_overrides_runpath" = yes ||
17763 test "$enable_shared" = no; then
17764 # Fast installation is not necessary
17765 enable_fast_install=needless
17766fi
17767
17768
17769# The else clause should only fire when bootstrapping the
17770# libtool distribution, otherwise you forgot to ship ltmain.sh
17771# with your package, and you will get complaints that there are
17772# no rules to generate ltmain.sh.
17773if test -f "$ltmain"; then
17774 # See if we are running on zsh, and set the options which allow our commands through
17775 # without removal of \ escapes.
17776 if test -n "${ZSH_VERSION+set}" ; then
17777 setopt NO_GLOB_SUBST
17778 fi
17779 # Now quote all the things that may contain metacharacters while being
17780 # careful not to overquote the AC_SUBSTed values. We take copies of the
17781 # variables and quote the copies for generation of the libtool script.
17782 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17783 SED SHELL STRIP \
17784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17786 deplibs_check_method reload_flag reload_cmds need_locks \
17787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17788 lt_cv_sys_global_symbol_to_c_name_address \
17789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17790 old_postinstall_cmds old_postuninstall_cmds \
17791 compiler_GCJ \
17792 CC_GCJ \
17793 LD_GCJ \
17794 lt_prog_compiler_wl_GCJ \
17795 lt_prog_compiler_pic_GCJ \
17796 lt_prog_compiler_static_GCJ \
17797 lt_prog_compiler_no_builtin_flag_GCJ \
17798 export_dynamic_flag_spec_GCJ \
17799 thread_safe_flag_spec_GCJ \
17800 whole_archive_flag_spec_GCJ \
17801 enable_shared_with_static_runtimes_GCJ \
17802 old_archive_cmds_GCJ \
17803 old_archive_from_new_cmds_GCJ \
17804 predep_objects_GCJ \
17805 postdep_objects_GCJ \
17806 predeps_GCJ \
17807 postdeps_GCJ \
17808 compiler_lib_search_path_GCJ \
17809 archive_cmds_GCJ \
17810 archive_expsym_cmds_GCJ \
17811 postinstall_cmds_GCJ \
17812 postuninstall_cmds_GCJ \
17813 old_archive_from_expsyms_cmds_GCJ \
17814 allow_undefined_flag_GCJ \
17815 no_undefined_flag_GCJ \
17816 export_symbols_cmds_GCJ \
17817 hardcode_libdir_flag_spec_GCJ \
17818 hardcode_libdir_flag_spec_ld_GCJ \
17819 hardcode_libdir_separator_GCJ \
17820 hardcode_automatic_GCJ \
17821 module_cmds_GCJ \
17822 module_expsym_cmds_GCJ \
17823 lt_cv_prog_compiler_c_o_GCJ \
17824 exclude_expsyms_GCJ \
17825 include_expsyms_GCJ; do
17826
17827 case $var in
17828 old_archive_cmds_GCJ | \
17829 old_archive_from_new_cmds_GCJ | \
17830 archive_cmds_GCJ | \
17831 archive_expsym_cmds_GCJ | \
17832 module_cmds_GCJ | \
17833 module_expsym_cmds_GCJ | \
17834 old_archive_from_expsyms_cmds_GCJ | \
17835 export_symbols_cmds_GCJ | \
17836 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17837 postinstall_cmds | postuninstall_cmds | \
17838 old_postinstall_cmds | old_postuninstall_cmds | \
17839 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17840 # Double-quote double-evaled strings.
17841 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17842 ;;
17843 *)
17844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17845 ;;
17846 esac
17847 done
17848
17849 case $lt_echo in
17850 *'\$0 --fallback-echo"')
17851 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17852 ;;
17853 esac
17854
17855cfgfile="$ofile"
17856
17857 cat <<__EOF__ >> "$cfgfile"
17858# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17859
17860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17861
17862# Shell to use when invoking shell scripts.
17863SHELL=$lt_SHELL
17864
17865# Whether or not to build shared libraries.
17866build_libtool_libs=$enable_shared
17867
17868# Whether or not to build static libraries.
17869build_old_libs=$enable_static
17870
17871# Whether or not to add -lc for building shared libraries.
17872build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17873
17874# Whether or not to disallow shared libs when runtime libs are static
17875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17876
17877# Whether or not to optimize for fast installation.
17878fast_install=$enable_fast_install
17879
17880# The host system.
17881host_alias=$host_alias
17882host=$host
17883host_os=$host_os
17884
17885# The build system.
17886build_alias=$build_alias
17887build=$build
17888build_os=$build_os
17889
17890# An echo program that does not interpret backslashes.
17891echo=$lt_echo
17892
17893# The archiver.
17894AR=$lt_AR
17895AR_FLAGS=$lt_AR_FLAGS
17896
17897# A C compiler.
17898LTCC=$lt_LTCC
17899
17900# LTCC compiler flags.
17901LTCFLAGS=$lt_LTCFLAGS
17902
17903# A language-specific compiler.
17904CC=$lt_compiler_GCJ
17905
17906# Is the compiler the GNU C compiler?
17907with_gcc=$GCC_GCJ
17908
17909gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17910gcc_ver=\`gcc -dumpversion\`
17911
17912# An ERE matcher.
17913EGREP=$lt_EGREP
17914
17915# The linker used to build libraries.
17916LD=$lt_LD_GCJ
17917
17918# Whether we need hard or soft links.
17919LN_S=$lt_LN_S
17920
17921# A BSD-compatible nm program.
17922NM=$lt_NM
17923
17924# A symbol stripping program
17925STRIP=$lt_STRIP
17926
17927# Used to examine libraries when file_magic_cmd begins "file"
17928MAGIC_CMD=$MAGIC_CMD
17929
17930# Used on cygwin: DLL creation program.
17931DLLTOOL="$DLLTOOL"
17932
17933# Used on cygwin: object dumper.
17934OBJDUMP="$OBJDUMP"
17935
17936# Used on cygwin: assembler.
17937AS="$AS"
17938
17939# The name of the directory that contains temporary libtool files.
17940objdir=$objdir
17941
17942# How to create reloadable object files.
17943reload_flag=$lt_reload_flag
17944reload_cmds=$lt_reload_cmds
17945
17946# How to pass a linker flag through the compiler.
17947wl=$lt_lt_prog_compiler_wl_GCJ
17948
17949# Object file suffix (normally "o").
17950objext="$ac_objext"
17951
17952# Old archive suffix (normally "a").
17953libext="$libext"
17954
17955# Shared library suffix (normally ".so").
17956shrext_cmds='$shrext_cmds'
17957
17958# Executable file suffix (normally "").
17959exeext="$exeext"
17960
17961# Additional compiler flags for building library objects.
17962pic_flag=$lt_lt_prog_compiler_pic_GCJ
17963pic_mode=$pic_mode
17964
17965# What is the maximum length of a command?
17966max_cmd_len=$lt_cv_sys_max_cmd_len
17967
17968# Does compiler simultaneously support -c and -o options?
17969compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17970
17971# Must we lock files when doing compilation?
17972need_locks=$lt_need_locks
17973
17974# Do we need the lib prefix for modules?
17975need_lib_prefix=$need_lib_prefix
17976
17977# Do we need a version for libraries?
17978need_version=$need_version
17979
17980# Whether dlopen is supported.
17981dlopen_support=$enable_dlopen
17982
17983# Whether dlopen of programs is supported.
17984dlopen_self=$enable_dlopen_self
17985
17986# Whether dlopen of statically linked programs is supported.
17987dlopen_self_static=$enable_dlopen_self_static
17988
17989# Compiler flag to prevent dynamic linking.
17990link_static_flag=$lt_lt_prog_compiler_static_GCJ
17991
17992# Compiler flag to turn off builtin functions.
17993no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17994
17995# Compiler flag to allow reflexive dlopens.
17996export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17997
17998# Compiler flag to generate shared objects directly from archives.
17999whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18000
18001# Compiler flag to generate thread-safe objects.
18002thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18003
18004# Library versioning type.
18005version_type=$version_type
18006
18007# Format of library name prefix.
18008libname_spec=$lt_libname_spec
18009
18010# List of archive names. First name is the real one, the rest are links.
18011# The last name is the one that the linker finds with -lNAME.
18012library_names_spec=$lt_library_names_spec
18013
18014# The coded name of the library, if different from the real name.
18015soname_spec=$lt_soname_spec
18016
18017# Commands used to build and install an old-style archive.
18018RANLIB=$lt_RANLIB
18019old_archive_cmds=$lt_old_archive_cmds_GCJ
18020old_postinstall_cmds=$lt_old_postinstall_cmds
18021old_postuninstall_cmds=$lt_old_postuninstall_cmds
18022
18023# Create an old-style archive from a shared archive.
18024old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18025
18026# Create a temporary old-style archive to link instead of a shared archive.
18027old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18028
18029# Commands used to build and install a shared archive.
18030archive_cmds=$lt_archive_cmds_GCJ
18031archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18032postinstall_cmds=$lt_postinstall_cmds
18033postuninstall_cmds=$lt_postuninstall_cmds
18034
18035# Commands used to build a loadable module (assumed same as above if empty)
18036module_cmds=$lt_module_cmds_GCJ
18037module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18038
18039# Commands to strip libraries.
18040old_striplib=$lt_old_striplib
18041striplib=$lt_striplib
18042
18043# Dependencies to place before the objects being linked to create a
18044# shared library.
18045predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18046
18047# Dependencies to place after the objects being linked to create a
18048# shared library.
18049postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18050
18051# Dependencies to place before the objects being linked to create a
18052# shared library.
18053predeps=$lt_predeps_GCJ
18054
18055# Dependencies to place after the objects being linked to create a
18056# shared library.
18057postdeps=$lt_postdeps_GCJ
18058
18059# The library search path used internally by the compiler when linking
18060# a shared library.
18061compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18062
18063# Method to check whether dependent libraries are shared objects.
18064deplibs_check_method=$lt_deplibs_check_method
18065
18066# Command to use when deplibs_check_method == file_magic.
18067file_magic_cmd=$lt_file_magic_cmd
18068
18069# Flag that allows shared libraries with undefined symbols to be built.
18070allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18071
18072# Flag that forces no undefined symbols.
18073no_undefined_flag=$lt_no_undefined_flag_GCJ
18074
18075# Commands used to finish a libtool library installation in a directory.
18076finish_cmds=$lt_finish_cmds
18077
18078# Same as above, but a single script fragment to be evaled but not shown.
18079finish_eval=$lt_finish_eval
18080
18081# Take the output of nm and produce a listing of raw symbols and C names.
18082global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18083
18084# Transform the output of nm in a proper C declaration
18085global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18086
18087# Transform the output of nm in a C name address pair
18088global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18089
18090# This is the shared library runtime path variable.
18091runpath_var=$runpath_var
18092
18093# This is the shared library path variable.
18094shlibpath_var=$shlibpath_var
18095
18096# Is shlibpath searched before the hard-coded library search path?
18097shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18098
18099# How to hardcode a shared library path into an executable.
18100hardcode_action=$hardcode_action_GCJ
18101
18102# Whether we should hardcode library paths into libraries.
18103hardcode_into_libs=$hardcode_into_libs
18104
18105# Flag to hardcode \$libdir into a binary during linking.
18106# This must work even if \$libdir does not exist.
18107hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18108
18109# If ld is used when linking, flag to hardcode \$libdir into
18110# a binary during linking. This must work even if \$libdir does
18111# not exist.
18112hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18113
18114# Whether we need a single -rpath flag with a separated argument.
18115hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18116
18117# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18118# resulting binary.
18119hardcode_direct=$hardcode_direct_GCJ
18120
18121# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18122# resulting binary.
18123hardcode_minus_L=$hardcode_minus_L_GCJ
18124
18125# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18126# the resulting binary.
18127hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18128
18129# Set to yes if building a shared library automatically hardcodes DIR into the library
18130# and all subsequent libraries and executables linked against it.
18131hardcode_automatic=$hardcode_automatic_GCJ
18132
18133# Variables whose values should be saved in libtool wrapper scripts and
18134# restored at relink time.
18135variables_saved_for_relink="$variables_saved_for_relink"
18136
18137# Whether libtool must link a program against all its dependency libraries.
18138link_all_deplibs=$link_all_deplibs_GCJ
18139
18140# Compile-time system search path for libraries
18141sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18142
18143# Run-time system search path for libraries
18144sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18145
18146# Fix the shell variable \$srcfile for the compiler.
18147fix_srcfile_path="$fix_srcfile_path_GCJ"
18148
18149# Set to yes if exported symbols are required.
18150always_export_symbols=$always_export_symbols_GCJ
18151
18152# The commands to list exported symbols.
18153export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18154
18155# The commands to extract the exported symbol list from a shared archive.
18156extract_expsyms_cmds=$lt_extract_expsyms_cmds
18157
18158# Symbols that should not be listed in the preloaded symbols.
18159exclude_expsyms=$lt_exclude_expsyms_GCJ
18160
18161# Symbols that must always be exported.
18162include_expsyms=$lt_include_expsyms_GCJ
18163
18164# ### END LIBTOOL TAG CONFIG: $tagname
18165
18166__EOF__
18167
18168
18169else
18170 # If there is no Makefile yet, we rely on a make rule to execute
18171 # `config.status --recheck' to rerun these tests and create the
18172 # libtool script then.
18173 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18174 if test -f "$ltmain_in"; then
18175 test -f Makefile && make "$ltmain"
18176 fi
18177fi
18178
18179
18180ac_ext=c
18181ac_cpp='$CPP $CPPFLAGS'
18182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18184ac_compiler_gnu=$ac_cv_c_compiler_gnu
18185
18186CC="$lt_save_CC"
18187
18188 else
18189 tagname=""
18190 fi
18191 ;;
18192
18193 RC)
18194
18195
18196
18197# Source file extension for RC test sources.
18198ac_ext=rc
18199
18200# Object file extension for compiled RC test sources.
18201objext=o
18202objext_RC=$objext
18203
18204# Code to be used in simple compile tests
18205lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18206
18207# Code to be used in simple link tests
18208lt_simple_link_test_code="$lt_simple_compile_test_code"
18209
18210# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18211
18212# If no C compiler was specified, use CC.
18213LTCC=${LTCC-"$CC"}
18214
18215# If no C compiler flags were specified, use CFLAGS.
18216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18217
18218# Allow CC to be a program name with arguments.
18219compiler=$CC
18220
18221
18222# save warnings/boilerplate of simple test code
18223ac_outfile=conftest.$ac_objext
18224printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18226_lt_compiler_boilerplate=`cat conftest.err`
18227$rm conftest*
18228
18229ac_outfile=conftest.$ac_objext
18230printf "$lt_simple_link_test_code" >conftest.$ac_ext
18231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18232_lt_linker_boilerplate=`cat conftest.err`
18233$rm conftest*
18234
18235
18236# Allow CC to be a program name with arguments.
18237lt_save_CC="$CC"
18238CC=${RC-"windres"}
18239compiler=$CC
18240compiler_RC=$CC
18241for cc_temp in $compiler""; do
18242 case $cc_temp in
18243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18245 \-*) ;;
18246 *) break;;
18247 esac
18248done
18249cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18250
18251lt_cv_prog_compiler_c_o_RC=yes
18252
18253# The else clause should only fire when bootstrapping the
18254# libtool distribution, otherwise you forgot to ship ltmain.sh
18255# with your package, and you will get complaints that there are
18256# no rules to generate ltmain.sh.
18257if test -f "$ltmain"; then
18258 # See if we are running on zsh, and set the options which allow our commands through
18259 # without removal of \ escapes.
18260 if test -n "${ZSH_VERSION+set}" ; then
18261 setopt NO_GLOB_SUBST
18262 fi
18263 # Now quote all the things that may contain metacharacters while being
18264 # careful not to overquote the AC_SUBSTed values. We take copies of the
18265 # variables and quote the copies for generation of the libtool script.
18266 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18267 SED SHELL STRIP \
18268 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18269 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18270 deplibs_check_method reload_flag reload_cmds need_locks \
18271 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18272 lt_cv_sys_global_symbol_to_c_name_address \
18273 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18274 old_postinstall_cmds old_postuninstall_cmds \
18275 compiler_RC \
18276 CC_RC \
18277 LD_RC \
18278 lt_prog_compiler_wl_RC \
18279 lt_prog_compiler_pic_RC \
18280 lt_prog_compiler_static_RC \
18281 lt_prog_compiler_no_builtin_flag_RC \
18282 export_dynamic_flag_spec_RC \
18283 thread_safe_flag_spec_RC \
18284 whole_archive_flag_spec_RC \
18285 enable_shared_with_static_runtimes_RC \
18286 old_archive_cmds_RC \
18287 old_archive_from_new_cmds_RC \
18288 predep_objects_RC \
18289 postdep_objects_RC \
18290 predeps_RC \
18291 postdeps_RC \
18292 compiler_lib_search_path_RC \
18293 archive_cmds_RC \
18294 archive_expsym_cmds_RC \
18295 postinstall_cmds_RC \
18296 postuninstall_cmds_RC \
18297 old_archive_from_expsyms_cmds_RC \
18298 allow_undefined_flag_RC \
18299 no_undefined_flag_RC \
18300 export_symbols_cmds_RC \
18301 hardcode_libdir_flag_spec_RC \
18302 hardcode_libdir_flag_spec_ld_RC \
18303 hardcode_libdir_separator_RC \
18304 hardcode_automatic_RC \
18305 module_cmds_RC \
18306 module_expsym_cmds_RC \
18307 lt_cv_prog_compiler_c_o_RC \
18308 exclude_expsyms_RC \
18309 include_expsyms_RC; do
18310
18311 case $var in
18312 old_archive_cmds_RC | \
18313 old_archive_from_new_cmds_RC | \
18314 archive_cmds_RC | \
18315 archive_expsym_cmds_RC | \
18316 module_cmds_RC | \
18317 module_expsym_cmds_RC | \
18318 old_archive_from_expsyms_cmds_RC | \
18319 export_symbols_cmds_RC | \
18320 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18321 postinstall_cmds | postuninstall_cmds | \
18322 old_postinstall_cmds | old_postuninstall_cmds | \
18323 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18324 # Double-quote double-evaled strings.
18325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18326 ;;
18327 *)
18328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18329 ;;
18330 esac
18331 done
18332
18333 case $lt_echo in
18334 *'\$0 --fallback-echo"')
18335 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18336 ;;
18337 esac
18338
18339cfgfile="$ofile"
18340
18341 cat <<__EOF__ >> "$cfgfile"
18342# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18343
18344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18345
18346# Shell to use when invoking shell scripts.
18347SHELL=$lt_SHELL
18348
18349# Whether or not to build shared libraries.
18350build_libtool_libs=$enable_shared
18351
18352# Whether or not to build static libraries.
18353build_old_libs=$enable_static
18354
18355# Whether or not to add -lc for building shared libraries.
18356build_libtool_need_lc=$archive_cmds_need_lc_RC
18357
18358# Whether or not to disallow shared libs when runtime libs are static
18359allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18360
18361# Whether or not to optimize for fast installation.
18362fast_install=$enable_fast_install
18363
18364# The host system.
18365host_alias=$host_alias
18366host=$host
18367host_os=$host_os
18368
18369# The build system.
18370build_alias=$build_alias
18371build=$build
18372build_os=$build_os
18373
18374# An echo program that does not interpret backslashes.
18375echo=$lt_echo
18376
18377# The archiver.
18378AR=$lt_AR
18379AR_FLAGS=$lt_AR_FLAGS
18380
18381# A C compiler.
18382LTCC=$lt_LTCC
18383
18384# LTCC compiler flags.
18385LTCFLAGS=$lt_LTCFLAGS
18386
18387# A language-specific compiler.
18388CC=$lt_compiler_RC
18389
18390# Is the compiler the GNU C compiler?
18391with_gcc=$GCC_RC
18392
18393gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18394gcc_ver=\`gcc -dumpversion\`
18395
18396# An ERE matcher.
18397EGREP=$lt_EGREP
18398
18399# The linker used to build libraries.
18400LD=$lt_LD_RC
18401
18402# Whether we need hard or soft links.
18403LN_S=$lt_LN_S
18404
18405# A BSD-compatible nm program.
18406NM=$lt_NM
18407
18408# A symbol stripping program
18409STRIP=$lt_STRIP
18410
18411# Used to examine libraries when file_magic_cmd begins "file"
18412MAGIC_CMD=$MAGIC_CMD
18413
18414# Used on cygwin: DLL creation program.
18415DLLTOOL="$DLLTOOL"
18416
18417# Used on cygwin: object dumper.
18418OBJDUMP="$OBJDUMP"
18419
18420# Used on cygwin: assembler.
18421AS="$AS"
18422
18423# The name of the directory that contains temporary libtool files.
18424objdir=$objdir
18425
18426# How to create reloadable object files.
18427reload_flag=$lt_reload_flag
18428reload_cmds=$lt_reload_cmds
18429
18430# How to pass a linker flag through the compiler.
18431wl=$lt_lt_prog_compiler_wl_RC
18432
18433# Object file suffix (normally "o").
18434objext="$ac_objext"
18435
18436# Old archive suffix (normally "a").
18437libext="$libext"
18438
18439# Shared library suffix (normally ".so").
18440shrext_cmds='$shrext_cmds'
18441
18442# Executable file suffix (normally "").
18443exeext="$exeext"
18444
18445# Additional compiler flags for building library objects.
18446pic_flag=$lt_lt_prog_compiler_pic_RC
18447pic_mode=$pic_mode
18448
18449# What is the maximum length of a command?
18450max_cmd_len=$lt_cv_sys_max_cmd_len
18451
18452# Does compiler simultaneously support -c and -o options?
18453compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18454
18455# Must we lock files when doing compilation?
18456need_locks=$lt_need_locks
18457
18458# Do we need the lib prefix for modules?
18459need_lib_prefix=$need_lib_prefix
18460
18461# Do we need a version for libraries?
18462need_version=$need_version
18463
18464# Whether dlopen is supported.
18465dlopen_support=$enable_dlopen
18466
18467# Whether dlopen of programs is supported.
18468dlopen_self=$enable_dlopen_self
18469
18470# Whether dlopen of statically linked programs is supported.
18471dlopen_self_static=$enable_dlopen_self_static
18472
18473# Compiler flag to prevent dynamic linking.
18474link_static_flag=$lt_lt_prog_compiler_static_RC
18475
18476# Compiler flag to turn off builtin functions.
18477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18478
18479# Compiler flag to allow reflexive dlopens.
18480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18481
18482# Compiler flag to generate shared objects directly from archives.
18483whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18484
18485# Compiler flag to generate thread-safe objects.
18486thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18487
18488# Library versioning type.
18489version_type=$version_type
18490
18491# Format of library name prefix.
18492libname_spec=$lt_libname_spec
18493
18494# List of archive names. First name is the real one, the rest are links.
18495# The last name is the one that the linker finds with -lNAME.
18496library_names_spec=$lt_library_names_spec
18497
18498# The coded name of the library, if different from the real name.
18499soname_spec=$lt_soname_spec
18500
18501# Commands used to build and install an old-style archive.
18502RANLIB=$lt_RANLIB
18503old_archive_cmds=$lt_old_archive_cmds_RC
18504old_postinstall_cmds=$lt_old_postinstall_cmds
18505old_postuninstall_cmds=$lt_old_postuninstall_cmds
18506
18507# Create an old-style archive from a shared archive.
18508old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18509
18510# Create a temporary old-style archive to link instead of a shared archive.
18511old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18512
18513# Commands used to build and install a shared archive.
18514archive_cmds=$lt_archive_cmds_RC
18515archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18516postinstall_cmds=$lt_postinstall_cmds
18517postuninstall_cmds=$lt_postuninstall_cmds
18518
18519# Commands used to build a loadable module (assumed same as above if empty)
18520module_cmds=$lt_module_cmds_RC
18521module_expsym_cmds=$lt_module_expsym_cmds_RC
18522
18523# Commands to strip libraries.
18524old_striplib=$lt_old_striplib
18525striplib=$lt_striplib
18526
18527# Dependencies to place before the objects being linked to create a
18528# shared library.
18529predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18530
18531# Dependencies to place after the objects being linked to create a
18532# shared library.
18533postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18534
18535# Dependencies to place before the objects being linked to create a
18536# shared library.
18537predeps=$lt_predeps_RC
18538
18539# Dependencies to place after the objects being linked to create a
18540# shared library.
18541postdeps=$lt_postdeps_RC
18542
18543# The library search path used internally by the compiler when linking
18544# a shared library.
18545compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18546
18547# Method to check whether dependent libraries are shared objects.
18548deplibs_check_method=$lt_deplibs_check_method
18549
18550# Command to use when deplibs_check_method == file_magic.
18551file_magic_cmd=$lt_file_magic_cmd
18552
18553# Flag that allows shared libraries with undefined symbols to be built.
18554allow_undefined_flag=$lt_allow_undefined_flag_RC
18555
18556# Flag that forces no undefined symbols.
18557no_undefined_flag=$lt_no_undefined_flag_RC
18558
18559# Commands used to finish a libtool library installation in a directory.
18560finish_cmds=$lt_finish_cmds
18561
18562# Same as above, but a single script fragment to be evaled but not shown.
18563finish_eval=$lt_finish_eval
18564
18565# Take the output of nm and produce a listing of raw symbols and C names.
18566global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18567
18568# Transform the output of nm in a proper C declaration
18569global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18570
18571# Transform the output of nm in a C name address pair
18572global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18573
18574# This is the shared library runtime path variable.
18575runpath_var=$runpath_var
18576
18577# This is the shared library path variable.
18578shlibpath_var=$shlibpath_var
18579
18580# Is shlibpath searched before the hard-coded library search path?
18581shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18582
18583# How to hardcode a shared library path into an executable.
18584hardcode_action=$hardcode_action_RC
18585
18586# Whether we should hardcode library paths into libraries.
18587hardcode_into_libs=$hardcode_into_libs
18588
18589# Flag to hardcode \$libdir into a binary during linking.
18590# This must work even if \$libdir does not exist.
18591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18592
18593# If ld is used when linking, flag to hardcode \$libdir into
18594# a binary during linking. This must work even if \$libdir does
18595# not exist.
18596hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18597
18598# Whether we need a single -rpath flag with a separated argument.
18599hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18600
18601# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18602# resulting binary.
18603hardcode_direct=$hardcode_direct_RC
18604
18605# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18606# resulting binary.
18607hardcode_minus_L=$hardcode_minus_L_RC
18608
18609# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18610# the resulting binary.
18611hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18612
18613# Set to yes if building a shared library automatically hardcodes DIR into the library
18614# and all subsequent libraries and executables linked against it.
18615hardcode_automatic=$hardcode_automatic_RC
18616
18617# Variables whose values should be saved in libtool wrapper scripts and
18618# restored at relink time.
18619variables_saved_for_relink="$variables_saved_for_relink"
18620
18621# Whether libtool must link a program against all its dependency libraries.
18622link_all_deplibs=$link_all_deplibs_RC
18623
18624# Compile-time system search path for libraries
18625sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18626
18627# Run-time system search path for libraries
18628sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18629
18630# Fix the shell variable \$srcfile for the compiler.
18631fix_srcfile_path="$fix_srcfile_path_RC"
18632
18633# Set to yes if exported symbols are required.
18634always_export_symbols=$always_export_symbols_RC
18635
18636# The commands to list exported symbols.
18637export_symbols_cmds=$lt_export_symbols_cmds_RC
18638
18639# The commands to extract the exported symbol list from a shared archive.
18640extract_expsyms_cmds=$lt_extract_expsyms_cmds
18641
18642# Symbols that should not be listed in the preloaded symbols.
18643exclude_expsyms=$lt_exclude_expsyms_RC
18644
18645# Symbols that must always be exported.
18646include_expsyms=$lt_include_expsyms_RC
18647
18648# ### END LIBTOOL TAG CONFIG: $tagname
18649
18650__EOF__
18651
18652
18653else
18654 # If there is no Makefile yet, we rely on a make rule to execute
18655 # `config.status --recheck' to rerun these tests and create the
18656 # libtool script then.
18657 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18658 if test -f "$ltmain_in"; then
18659 test -f Makefile && make "$ltmain"
18660 fi
18661fi
18662
18663
18664ac_ext=c
18665ac_cpp='$CPP $CPPFLAGS'
18666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18668ac_compiler_gnu=$ac_cv_c_compiler_gnu
18669
18670CC="$lt_save_CC"
18671
18672 ;;
18673
18674 *)
18675 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18676echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18677 { (exit 1); exit 1; }; }
18678 ;;
18679 esac
18680
18681 # Append the new tag name to the list of available tags.
18682 if test -n "$tagname" ; then
18683 available_tags="$available_tags $tagname"
18684 fi
18685 fi
18686 done
18687 IFS="$lt_save_ifs"
18688
18689 # Now substitute the updated list of available tags.
18690 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18691 mv "${ofile}T" "$ofile"
18692 chmod +x "$ofile"
18693 else
18694 rm -f "${ofile}T"
18695 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18696echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18697 { (exit 1); exit 1; }; }
18698 fi
18699fi
18700
18701
18702
18703# This can be used to rebuild libtool when needed
18704LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18705
18706# Always use our own libtool.
18707LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18708
18709# Prevent multiple expansion
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731if test "$GCC" = "yes"
18732then
18733 CFLAGS="$CFLAGS -Wall"
18734fi
18735
18736
18737
18738
18739for ac_header in unistd.h
18740do
18741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18742if eval "test \"\${$as_ac_Header+set}\" = set"; then
18743 echo "$as_me:$LINENO: checking for $ac_header" >&5
18744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18745if eval "test \"\${$as_ac_Header+set}\" = set"; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747fi
18748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18750else
18751 # Is the header compilable?
18752echo "$as_me:$LINENO: checking $ac_header usability" >&5
18753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18754cat >conftest.$ac_ext <<_ACEOF
18755/* confdefs.h. */
18756_ACEOF
18757cat confdefs.h >>conftest.$ac_ext
18758cat >>conftest.$ac_ext <<_ACEOF
18759/* end confdefs.h. */
18760$ac_includes_default
18761#include <$ac_header>
18762_ACEOF
18763rm -f conftest.$ac_objext
18764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765 (eval $ac_compile) 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_header_compiler=yes
18786else
18787 echo "$as_me: failed program was:" >&5
18788sed 's/^/| /' conftest.$ac_ext >&5
18789
18790ac_header_compiler=no
18791fi
18792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18794echo "${ECHO_T}$ac_header_compiler" >&6
18795
18796# Is the header present?
18797echo "$as_me:$LINENO: checking $ac_header presence" >&5
18798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18799cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805#include <$ac_header>
18806_ACEOF
18807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } >/dev/null; then
18815 if test -s conftest.err; then
18816 ac_cpp_err=$ac_c_preproc_warn_flag
18817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18818 else
18819 ac_cpp_err=
18820 fi
18821else
18822 ac_cpp_err=yes
18823fi
18824if test -z "$ac_cpp_err"; then
18825 ac_header_preproc=yes
18826else
18827 echo "$as_me: failed program was:" >&5
18828sed 's/^/| /' conftest.$ac_ext >&5
18829
18830 ac_header_preproc=no
18831fi
18832rm -f conftest.err conftest.$ac_ext
18833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18834echo "${ECHO_T}$ac_header_preproc" >&6
18835
18836# So? What about this header?
18837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18838 yes:no: )
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18843 ac_header_preproc=yes
18844 ;;
18845 no:yes:* )
18846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18858 (
18859 cat <<\_ASBOX
18860## -------------------------------------------------- ##
18861## Report this to courier-users@lists.sourceforge.net ##
18862## -------------------------------------------------- ##
18863_ASBOX
18864 ) |
18865 sed "s/^/$as_me: WARNING: /" >&2
18866 ;;
18867esac
18868echo "$as_me:$LINENO: checking for $ac_header" >&5
18869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18870if eval "test \"\${$as_ac_Header+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872else
18873 eval "$as_ac_Header=\$ac_header_preproc"
18874fi
18875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18877
18878fi
18879if test `eval echo '${'$as_ac_Header'}'` = yes; then
18880 cat >>confdefs.h <<_ACEOF
18881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18882_ACEOF
18883
18884fi
18885
18886done
18887
18888
18889echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18890echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
18891if test "${ac_cv_type_uid_t+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894 cat >conftest.$ac_ext <<_ACEOF
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
18900#include <sys/types.h>
18901
18902_ACEOF
18903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18904 $EGREP "uid_t" >/dev/null 2>&1; then
18905 ac_cv_type_uid_t=yes
18906else
18907 ac_cv_type_uid_t=no
18908fi
18909rm -f conftest*
18910
18911fi
18912echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18913echo "${ECHO_T}$ac_cv_type_uid_t" >&6
18914if test $ac_cv_type_uid_t = no; then
18915
18916cat >>confdefs.h <<\_ACEOF
18917#define uid_t int
18918_ACEOF
18919
18920
18921cat >>confdefs.h <<\_ACEOF
18922#define gid_t int
18923_ACEOF
18924
18925fi
18926
18927echo "$as_me:$LINENO: checking for pid_t" >&5
18928echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18929if test "${ac_cv_type_pid_t+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 cat >conftest.$ac_ext <<_ACEOF
18933/* confdefs.h. */
18934_ACEOF
18935cat confdefs.h >>conftest.$ac_ext
18936cat >>conftest.$ac_ext <<_ACEOF
18937/* end confdefs.h. */
18938$ac_includes_default
18939int
18940main ()
18941{
18942if ((pid_t *) 0)
18943 return 0;
18944if (sizeof (pid_t))
18945 return 0;
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext
18951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952 (eval $ac_compile) 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag"
18960 || test ! -s conftest.err'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest.$ac_objext'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_type_pid_t=yes
18973else
18974 echo "$as_me: failed program was:" >&5
18975sed 's/^/| /' conftest.$ac_ext >&5
18976
18977ac_cv_type_pid_t=no
18978fi
18979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18980fi
18981echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18982echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18983if test $ac_cv_type_pid_t = yes; then
18984 :
18985else
18986
18987cat >>confdefs.h <<_ACEOF
18988#define pid_t int
18989_ACEOF
18990
18991fi
18992
18993
18994
18995
18996
18997for ac_func in setgroups initgroups
18998do
18999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19000echo "$as_me:$LINENO: checking for $ac_func" >&5
19001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19002if eval "test \"\${$as_ac_var+set}\" = set"; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19004else
19005 cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19013#define $ac_func innocuous_$ac_func
19014
19015/* System header to define __stub macros and hopefully few prototypes,
19016 which can conflict with char $ac_func (); below.
19017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19018 <limits.h> exists even on freestanding compilers. */
19019
19020#ifdef __STDC__
19021# include <limits.h>
19022#else
19023# include <assert.h>
19024#endif
19025
19026#undef $ac_func
19027
19028/* Override any gcc2 internal prototype to avoid an error. */
19029#ifdef __cplusplus
19030extern "C"
19031{
19032#endif
19033/* We use char because int might match the return type of a gcc2
19034 builtin and then its argument prototype would still apply. */
19035char $ac_func ();
19036/* The GNU C library defines this for functions which it implements
19037 to always fail with ENOSYS. Some functions are actually named
19038 something starting with __ and the normal name is an alias. */
19039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19040choke me
19041#else
19042char (*f) () = $ac_func;
19043#endif
19044#ifdef __cplusplus
19045}
19046#endif
19047
19048int
19049main ()
19050{
19051return f != $ac_func;
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest.$ac_objext conftest$ac_exeext
19057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest$ac_exeext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 eval "$as_ac_var=yes"
19079else
19080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083eval "$as_ac_var=no"
19084fi
19085rm -f conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087fi
19088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19090if test `eval echo '${'$as_ac_var'}'` = yes; then
19091 cat >>confdefs.h <<_ACEOF
19092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19093_ACEOF
19094
19095fi
19096done
19097
19098 ac_config_files="$ac_config_files Makefile"
19099cat >confcache <<\_ACEOF
19100# This file is a shell script that caches the results of configure
19101# tests run on this system so they can be shared between configure
19102# scripts and configure runs, see configure's option --config-cache.
19103# It is not useful on other systems. If it contains results you don't
19104# want to keep, you may remove or edit it.
19105#
19106# config.status only pays attention to the cache file if you give it
19107# the --recheck option to rerun configure.
19108#
19109# `ac_cv_env_foo' variables (set or unset) will be overridden when
19110# loading this file, other *unset* `ac_cv_foo' will be assigned the
19111# following values.
19112
19113_ACEOF
19114
19115# The following way of writing the cache mishandles newlines in values,
19116# but we know of no workaround that is simple, portable, and efficient.
19117# So, don't put newlines in cache variables' values.
19118# Ultrix sh set writes to stderr and can't be redirected directly,
19119# and sets the high bit in the cache file unless we assign to the vars.
19120{
19121 (set) 2>&1 |
19122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19123 *ac_space=\ *)
19124 # `set' does not quote correctly, so add quotes (double-quote
19125 # substitution turns \\\\ into \\, and sed turns \\ into \).
19126 sed -n \
19127 "s/'/'\\\\''/g;
19128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19129 ;;
19130 *)
19131 # `set' quotes correctly as required by POSIX, so do not add quotes.
19132 sed -n \
19133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19134 ;;
19135 esac;
19136} |
19137 sed '
19138 t clear
19139 : clear
19140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19141 t end
19142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19143 : end' >>confcache
19144if diff $cache_file confcache >/dev/null 2>&1; then :; else
19145 if test -w $cache_file; then
19146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19147 cat confcache >$cache_file
19148 else
19149 echo "not updating unwritable cache $cache_file"
19150 fi
19151fi
19152rm -f confcache
19153
19154test "x$prefix" = xNONE && prefix=$ac_default_prefix
19155# Let make expand exec_prefix.
19156test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19157
19158# VPATH may cause trouble with some makes, so we remove $(srcdir),
19159# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19160# trailing colons and then remove the whole line if VPATH becomes empty
19161# (actually we leave an empty line to preserve line numbers).
19162if test "x$srcdir" = x.; then
19163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19164s/:*\$(srcdir):*/:/;
19165s/:*\${srcdir}:*/:/;
19166s/:*@srcdir@:*/:/;
19167s/^\([^=]*=[ ]*\):*/\1/;
19168s/:*$//;
19169s/^[^=]*=[ ]*$//;
19170}'
19171fi
19172
19173DEFS=-DHAVE_CONFIG_H
19174
19175ac_libobjs=
19176ac_ltlibobjs=
19177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19178 # 1. Remove the extension, and $U if already installed.
19179 ac_i=`echo "$ac_i" |
19180 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19181 # 2. Add them.
19182 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19183 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19184done
19185LIBOBJS=$ac_libobjs
19186
19187LTLIBOBJS=$ac_ltlibobjs
19188
19189
19190if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19191 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19192Usually this means the macro was only invoked conditionally." >&5
19193echo "$as_me: error: conditional \"AMDEP\" was never defined.
19194Usually this means the macro was only invoked conditionally." >&2;}
19195 { (exit 1); exit 1; }; }
19196fi
19197if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19198 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19199Usually this means the macro was only invoked conditionally." >&5
19200echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19201Usually this means the macro was only invoked conditionally." >&2;}
19202 { (exit 1); exit 1; }; }
19203fi
19204if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19205 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19206Usually this means the macro was only invoked conditionally." >&5
19207echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19208Usually this means the macro was only invoked conditionally." >&2;}
19209 { (exit 1); exit 1; }; }
19210fi
19211
19212: ${CONFIG_STATUS=./config.status}
19213ac_clean_files_save=$ac_clean_files
19214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19215{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19216echo "$as_me: creating $CONFIG_STATUS" >&6;}
19217cat >$CONFIG_STATUS <<_ACEOF
19218#! $SHELL
19219# Generated by $as_me.
19220# Run this file to recreate the current configuration.
19221# Compiler output produced by configure, useful for debugging
19222# configure, is in config.log if it exists.
19223
19224debug=false
19225ac_cs_recheck=false
19226ac_cs_silent=false
19227SHELL=\${CONFIG_SHELL-$SHELL}
19228_ACEOF
19229
19230cat >>$CONFIG_STATUS <<\_ACEOF
19231## --------------------- ##
19232## M4sh Initialization. ##
19233## --------------------- ##
19234
19235# Be Bourne compatible
19236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19237 emulate sh
19238 NULLCMD=:
19239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19240 # is contrary to our usage. Disable this feature.
19241 alias -g '${1+"$@"}'='"$@"'
19242elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19243 set -o posix
19244fi
19245DUALCASE=1; export DUALCASE # for MKS sh
19246
19247# Support unset when possible.
19248if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19249 as_unset=unset
19250else
19251 as_unset=false
19252fi
19253
19254
19255# Work around bugs in pre-3.0 UWIN ksh.
19256$as_unset ENV MAIL MAILPATH
19257PS1='$ '
19258PS2='> '
19259PS4='+ '
19260
19261# NLS nuisances.
19262for as_var in \
19263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19265 LC_TELEPHONE LC_TIME
19266do
19267 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19268 eval $as_var=C; export $as_var
19269 else
19270 $as_unset $as_var
19271 fi
19272done
19273
19274# Required to use basename.
19275if expr a : '\(a\)' >/dev/null 2>&1; then
19276 as_expr=expr
19277else
19278 as_expr=false
19279fi
19280
19281if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19282 as_basename=basename
19283else
19284 as_basename=false
19285fi
19286
19287
19288# Name of the executable.
19289as_me=`$as_basename "$0" ||
19290$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19291 X"$0" : 'X\(//\)$' \| \
19292 X"$0" : 'X\(/\)$' \| \
19293 . : '\(.\)' 2>/dev/null ||
19294echo X/"$0" |
19295 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19296 /^X\/\(\/\/\)$/{ s//\1/; q; }
19297 /^X\/\(\/\).*/{ s//\1/; q; }
19298 s/.*/./; q'`
19299
19300
19301# PATH needs CR, and LINENO needs CR and PATH.
19302# Avoid depending upon Character Ranges.
19303as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19304as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19305as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19306as_cr_digits='0123456789'
19307as_cr_alnum=$as_cr_Letters$as_cr_digits
19308
19309# The user is always right.
19310if test "${PATH_SEPARATOR+set}" != set; then
19311 echo "#! /bin/sh" >conf$$.sh
19312 echo "exit 0" >>conf$$.sh
19313 chmod +x conf$$.sh
19314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19315 PATH_SEPARATOR=';'
19316 else
19317 PATH_SEPARATOR=:
19318 fi
19319 rm -f conf$$.sh
19320fi
19321
19322
19323 as_lineno_1=$LINENO
19324 as_lineno_2=$LINENO
19325 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19326 test "x$as_lineno_1" != "x$as_lineno_2" &&
19327 test "x$as_lineno_3" = "x$as_lineno_2" || {
19328 # Find who we are. Look in the path if we contain no path at all
19329 # relative or not.
19330 case $0 in
19331 *[\\/]* ) as_myself=$0 ;;
19332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19333for as_dir in $PATH
19334do
19335 IFS=$as_save_IFS
19336 test -z "$as_dir" && as_dir=.
19337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19338done
19339
19340 ;;
19341 esac
19342 # We did not find ourselves, most probably we were run as `sh COMMAND'
19343 # in which case we are not to be found in the path.
19344 if test "x$as_myself" = x; then
19345 as_myself=$0
19346 fi
19347 if test ! -f "$as_myself"; then
19348 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19349echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19350 { (exit 1); exit 1; }; }
19351 fi
19352 case $CONFIG_SHELL in
19353 '')
19354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19355for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19356do
19357 IFS=$as_save_IFS
19358 test -z "$as_dir" && as_dir=.
19359 for as_base in sh bash ksh sh5; do
19360 case $as_dir in
19361 /*)
19362 if ("$as_dir/$as_base" -c '
19363 as_lineno_1=$LINENO
19364 as_lineno_2=$LINENO
19365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19366 test "x$as_lineno_1" != "x$as_lineno_2" &&
19367 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19368 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19369 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19370 CONFIG_SHELL=$as_dir/$as_base
19371 export CONFIG_SHELL
19372 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19373 fi;;
19374 esac
19375 done
19376done
19377;;
19378 esac
19379
19380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19381 # uniformly replaced by the line number. The first 'sed' inserts a
19382 # line-number line before each line; the second 'sed' does the real
19383 # work. The second script uses 'N' to pair each line-number line
19384 # with the numbered line, and appends trailing '-' during
19385 # substitution so that $LINENO is not a special case at line end.
19386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19387 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19388 sed '=' <$as_myself |
19389 sed '
19390 N
19391 s,$,-,
19392 : loop
19393 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19394 t loop
19395 s,-$,,
19396 s,^['$as_cr_digits']*\n,,
19397 ' >$as_me.lineno &&
19398 chmod +x $as_me.lineno ||
19399 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19400echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19401 { (exit 1); exit 1; }; }
19402
19403 # Don't try to exec as it changes $[0], causing all sort of problems
19404 # (the dirname of $[0] is not the place where we might find the
19405 # original and so on. Autoconf is especially sensible to this).
19406 . ./$as_me.lineno
19407 # Exit status is that of the last command.
19408 exit
19409}
19410
19411
19412case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19413 *c*,-n*) ECHO_N= ECHO_C='
19414' ECHO_T=' ' ;;
19415 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19416 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19417esac
19418
19419if expr a : '\(a\)' >/dev/null 2>&1; then
19420 as_expr=expr
19421else
19422 as_expr=false
19423fi
19424
19425rm -f conf$$ conf$$.exe conf$$.file
19426echo >conf$$.file
19427if ln -s conf$$.file conf$$ 2>/dev/null; then
19428 # We could just check for DJGPP; but this test a) works b) is more generic
19429 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19430 if test -f conf$$.exe; then
19431 # Don't use ln at all; we don't have any links
19432 as_ln_s='cp -p'
19433 else
19434 as_ln_s='ln -s'
19435 fi
19436elif ln conf$$.file conf$$ 2>/dev/null; then
19437 as_ln_s=ln
19438else
19439 as_ln_s='cp -p'
19440fi
19441rm -f conf$$ conf$$.exe conf$$.file
19442
19443if mkdir -p . 2>/dev/null; then
19444 as_mkdir_p=:
19445else
19446 test -d ./-p && rmdir ./-p
19447 as_mkdir_p=false
19448fi
19449
19450as_executable_p="test -f"
19451
19452# Sed expression to map a string onto a valid CPP name.
19453as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19454
19455# Sed expression to map a string onto a valid variable name.
19456as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19457
19458
19459# IFS
19460# We need space, tab and new line, in precisely that order.
19461as_nl='
19462'
19463IFS=" $as_nl"
19464
19465# CDPATH.
19466$as_unset CDPATH
19467
19468exec 6>&1
19469
19470# Open the log real soon, to keep \$[0] and so on meaningful, and to
19471# report actual input values of CONFIG_FILES etc. instead of their
19472# values after options handling. Logging --version etc. is OK.
19473exec 5>>config.log
19474{
19475 echo
19476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19477## Running $as_me. ##
19478_ASBOX
19479} >&5
19480cat >&5 <<_CSEOF
19481
19482This file was extended by numlib $as_me 0.10, which was
19483generated by GNU Autoconf 2.59. Invocation command line was
19484
19485 CONFIG_FILES = $CONFIG_FILES
19486 CONFIG_HEADERS = $CONFIG_HEADERS
19487 CONFIG_LINKS = $CONFIG_LINKS
19488 CONFIG_COMMANDS = $CONFIG_COMMANDS
19489 $ $0 $@
19490
19491_CSEOF
19492echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19493echo >&5
19494_ACEOF
19495
19496# Files that config.status was made for.
19497if test -n "$ac_config_files"; then
19498 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19499fi
19500
19501if test -n "$ac_config_headers"; then
19502 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19503fi
19504
19505if test -n "$ac_config_links"; then
19506 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19507fi
19508
19509if test -n "$ac_config_commands"; then
19510 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19511fi
19512
19513cat >>$CONFIG_STATUS <<\_ACEOF
19514
19515ac_cs_usage="\
19516\`$as_me' instantiates files from templates according to the
19517current configuration.
19518
19519Usage: $0 [OPTIONS] [FILE]...
19520
19521 -h, --help print this help, then exit
19522 -V, --version print version number, then exit
19523 -q, --quiet do not print progress messages
19524 -d, --debug don't remove temporary files
19525 --recheck update $as_me by reconfiguring in the same conditions
19526 --file=FILE[:TEMPLATE]
19527 instantiate the configuration file FILE
19528 --header=FILE[:TEMPLATE]
19529 instantiate the configuration header FILE
19530
19531Configuration files:
19532$config_files
19533
19534Configuration headers:
19535$config_headers
19536
19537Configuration commands:
19538$config_commands
19539
19540Report bugs to <bug-autoconf@gnu.org>."
19541_ACEOF
19542
19543cat >>$CONFIG_STATUS <<_ACEOF
19544ac_cs_version="\\
19545numlib config.status 0.10
19546configured by $0, generated by GNU Autoconf 2.59,
19547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19548
19549Copyright (C) 2003 Free Software Foundation, Inc.
19550This config.status script is free software; the Free Software Foundation
19551gives unlimited permission to copy, distribute and modify it."
19552srcdir=$srcdir
19553INSTALL="$INSTALL"
19554_ACEOF
19555
19556cat >>$CONFIG_STATUS <<\_ACEOF
19557# If no file are specified by the user, then we need to provide default
19558# value. By we need to know if files were specified by the user.
19559ac_need_defaults=:
19560while test $# != 0
19561do
19562 case $1 in
19563 --*=*)
19564 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19565 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19566 ac_shift=:
19567 ;;
19568 -*)
19569 ac_option=$1
19570 ac_optarg=$2
19571 ac_shift=shift
19572 ;;
19573 *) # This is not an option, so the user has probably given explicit
19574 # arguments.
19575 ac_option=$1
19576 ac_need_defaults=false;;
19577 esac
19578
19579 case $ac_option in
19580 # Handling of the options.
19581_ACEOF
19582cat >>$CONFIG_STATUS <<\_ACEOF
19583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19584 ac_cs_recheck=: ;;
19585 --version | --vers* | -V )
19586 echo "$ac_cs_version"; exit 0 ;;
19587 --he | --h)
19588 # Conflict between --help and --header
19589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19590Try \`$0 --help' for more information." >&5
19591echo "$as_me: error: ambiguous option: $1
19592Try \`$0 --help' for more information." >&2;}
19593 { (exit 1); exit 1; }; };;
19594 --help | --hel | -h )
19595 echo "$ac_cs_usage"; exit 0 ;;
19596 --debug | --d* | -d )
19597 debug=: ;;
19598 --file | --fil | --fi | --f )
19599 $ac_shift
19600 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19601 ac_need_defaults=false;;
19602 --header | --heade | --head | --hea )
19603 $ac_shift
19604 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19605 ac_need_defaults=false;;
19606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19608 ac_cs_silent=: ;;
19609
19610 # This is an error.
19611 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19612Try \`$0 --help' for more information." >&5
19613echo "$as_me: error: unrecognized option: $1
19614Try \`$0 --help' for more information." >&2;}
19615 { (exit 1); exit 1; }; } ;;
19616
19617 *) ac_config_targets="$ac_config_targets $1" ;;
19618
19619 esac
19620 shift
19621done
19622
19623ac_configure_extra_args=
19624
19625if $ac_cs_silent; then
19626 exec 6>/dev/null
19627 ac_configure_extra_args="$ac_configure_extra_args --silent"
19628fi
19629
19630_ACEOF
19631cat >>$CONFIG_STATUS <<_ACEOF
19632if \$ac_cs_recheck; then
19633 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19634 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19635fi
19636
19637_ACEOF
19638
19639cat >>$CONFIG_STATUS <<_ACEOF
19640#
19641# INIT-COMMANDS section.
19642#
19643
19644AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19645
19646_ACEOF
19647
19648
19649
19650cat >>$CONFIG_STATUS <<\_ACEOF
19651for ac_config_target in $ac_config_targets
19652do
19653 case "$ac_config_target" in
19654 # Handling of arguments.
19655 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19656 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19657 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19658 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19659echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19660 { (exit 1); exit 1; }; };;
19661 esac
19662done
19663
19664# If the user did not use the arguments to specify the items to instantiate,
19665# then the envvar interface is used. Set only those that are not.
19666# We use the long form for the default assignment because of an extremely
19667# bizarre bug on SunOS 4.1.3.
19668if $ac_need_defaults; then
19669 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19670 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19671 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19672fi
19673
19674# Have a temporary directory for convenience. Make it in the build tree
19675# simply because there is no reason to put it here, and in addition,
19676# creating and moving files from /tmp can sometimes cause problems.
19677# Create a temporary directory, and hook for its removal unless debugging.
19678$debug ||
19679{
19680 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19681 trap '{ (exit 1); exit 1; }' 1 2 13 15
19682}
19683
19684# Create a (secure) tmp directory for tmp files.
19685
19686{
19687 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19688 test -n "$tmp" && test -d "$tmp"
19689} ||
19690{
19691 tmp=./confstat$$-$RANDOM
19692 (umask 077 && mkdir $tmp)
19693} ||
19694{
19695 echo "$me: cannot create a temporary directory in ." >&2
19696 { (exit 1); exit 1; }
19697}
19698
19699_ACEOF
19700
19701cat >>$CONFIG_STATUS <<_ACEOF
19702
19703#
19704# CONFIG_FILES section.
19705#
19706
19707# No need to generate the scripts if there are no CONFIG_FILES.
19708# This happens for instance when ./config.status config.h
19709if test -n "\$CONFIG_FILES"; then
19710 # Protect against being on the right side of a sed subst in config.status.
19711 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19712 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19713s,@SHELL@,$SHELL,;t t
19714s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19715s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19716s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19717s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19718s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19719s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19720s,@exec_prefix@,$exec_prefix,;t t
19721s,@prefix@,$prefix,;t t
19722s,@program_transform_name@,$program_transform_name,;t t
19723s,@bindir@,$bindir,;t t
19724s,@sbindir@,$sbindir,;t t
19725s,@libexecdir@,$libexecdir,;t t
19726s,@datadir@,$datadir,;t t
19727s,@sysconfdir@,$sysconfdir,;t t
19728s,@sharedstatedir@,$sharedstatedir,;t t
19729s,@localstatedir@,$localstatedir,;t t
19730s,@libdir@,$libdir,;t t
19731s,@includedir@,$includedir,;t t
19732s,@oldincludedir@,$oldincludedir,;t t
19733s,@infodir@,$infodir,;t t
19734s,@mandir@,$mandir,;t t
19735s,@build_alias@,$build_alias,;t t
19736s,@host_alias@,$host_alias,;t t
19737s,@target_alias@,$target_alias,;t t
19738s,@DEFS@,$DEFS,;t t
19739s,@ECHO_C@,$ECHO_C,;t t
19740s,@ECHO_N@,$ECHO_N,;t t
19741s,@ECHO_T@,$ECHO_T,;t t
19742s,@LIBS@,$LIBS,;t t
19743s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19744s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19745s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19746s,@CYGPATH_W@,$CYGPATH_W,;t t
19747s,@PACKAGE@,$PACKAGE,;t t
19748s,@VERSION@,$VERSION,;t t
19749s,@ACLOCAL@,$ACLOCAL,;t t
19750s,@AUTOCONF@,$AUTOCONF,;t t
19751s,@AUTOMAKE@,$AUTOMAKE,;t t
19752s,@AUTOHEADER@,$AUTOHEADER,;t t
19753s,@MAKEINFO@,$MAKEINFO,;t t
19754s,@install_sh@,$install_sh,;t t
19755s,@STRIP@,$STRIP,;t t
19756s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19757s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19758s,@mkdir_p@,$mkdir_p,;t t
19759s,@AWK@,$AWK,;t t
19760s,@SET_MAKE@,$SET_MAKE,;t t
19761s,@am__leading_dot@,$am__leading_dot,;t t
19762s,@AMTAR@,$AMTAR,;t t
19763s,@am__tar@,$am__tar,;t t
19764s,@am__untar@,$am__untar,;t t
19765s,@CC@,$CC,;t t
19766s,@CFLAGS@,$CFLAGS,;t t
19767s,@LDFLAGS@,$LDFLAGS,;t t
19768s,@CPPFLAGS@,$CPPFLAGS,;t t
19769s,@ac_ct_CC@,$ac_ct_CC,;t t
19770s,@EXEEXT@,$EXEEXT,;t t
19771s,@OBJEXT@,$OBJEXT,;t t
19772s,@DEPDIR@,$DEPDIR,;t t
19773s,@am__include@,$am__include,;t t
19774s,@am__quote@,$am__quote,;t t
19775s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19776s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19777s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19778s,@CCDEPMODE@,$CCDEPMODE,;t t
19779s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19780s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19781s,@LN_S@,$LN_S,;t t
19782s,@build@,$build,;t t
19783s,@build_cpu@,$build_cpu,;t t
19784s,@build_vendor@,$build_vendor,;t t
19785s,@build_os@,$build_os,;t t
19786s,@host@,$host,;t t
19787s,@host_cpu@,$host_cpu,;t t
19788s,@host_vendor@,$host_vendor,;t t
19789s,@host_os@,$host_os,;t t
19790s,@SED@,$SED,;t t
19791s,@EGREP@,$EGREP,;t t
19792s,@ECHO@,$ECHO,;t t
19793s,@AR@,$AR,;t t
19794s,@ac_ct_AR@,$ac_ct_AR,;t t
19795s,@RANLIB@,$RANLIB,;t t
19796s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19797s,@CPP@,$CPP,;t t
19798s,@CXX@,$CXX,;t t
19799s,@CXXFLAGS@,$CXXFLAGS,;t t
19800s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19801s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19802s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19803s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19804s,@CXXCPP@,$CXXCPP,;t t
19805s,@F77@,$F77,;t t
19806s,@FFLAGS@,$FFLAGS,;t t
19807s,@ac_ct_F77@,$ac_ct_F77,;t t
19808s,@LIBTOOL@,$LIBTOOL,;t t
19809s,@LIBOBJS@,$LIBOBJS,;t t
19810s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19811CEOF
19812
19813_ACEOF
19814
19815 cat >>$CONFIG_STATUS <<\_ACEOF
19816 # Split the substitutions into bite-sized pieces for seds with
19817 # small command number limits, like on Digital OSF/1 and HP-UX.
19818 ac_max_sed_lines=48
19819 ac_sed_frag=1 # Number of current file.
19820 ac_beg=1 # First line for current file.
19821 ac_end=$ac_max_sed_lines # Line after last line for current file.
19822 ac_more_lines=:
19823 ac_sed_cmds=
19824 while $ac_more_lines; do
19825 if test $ac_beg -gt 1; then
19826 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19827 else
19828 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19829 fi
19830 if test ! -s $tmp/subs.frag; then
19831 ac_more_lines=false
19832 else
19833 # The purpose of the label and of the branching condition is to
19834 # speed up the sed processing (if there are no `@' at all, there
19835 # is no need to browse any of the substitutions).
19836 # These are the two extra sed commands mentioned above.
19837 (echo ':t
19838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19839 if test -z "$ac_sed_cmds"; then
19840 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19841 else
19842 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19843 fi
19844 ac_sed_frag=`expr $ac_sed_frag + 1`
19845 ac_beg=$ac_end
19846 ac_end=`expr $ac_end + $ac_max_sed_lines`
19847 fi
19848 done
19849 if test -z "$ac_sed_cmds"; then
19850 ac_sed_cmds=cat
19851 fi
19852fi # test -n "$CONFIG_FILES"
19853
19854_ACEOF
19855cat >>$CONFIG_STATUS <<\_ACEOF
19856for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19858 case $ac_file in
19859 - | *:- | *:-:* ) # input from stdin
19860 cat >$tmp/stdin
19861 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19863 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19865 * ) ac_file_in=$ac_file.in ;;
19866 esac
19867
19868 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19869 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19871 X"$ac_file" : 'X\(//\)[^/]' \| \
19872 X"$ac_file" : 'X\(//\)$' \| \
19873 X"$ac_file" : 'X\(/\)' \| \
19874 . : '\(.\)' 2>/dev/null ||
19875echo X"$ac_file" |
19876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19878 /^X\(\/\/\)$/{ s//\1/; q; }
19879 /^X\(\/\).*/{ s//\1/; q; }
19880 s/.*/./; q'`
19881 { if $as_mkdir_p; then
19882 mkdir -p "$ac_dir"
19883 else
19884 as_dir="$ac_dir"
19885 as_dirs=
19886 while test ! -d "$as_dir"; do
19887 as_dirs="$as_dir $as_dirs"
19888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19890 X"$as_dir" : 'X\(//\)[^/]' \| \
19891 X"$as_dir" : 'X\(//\)$' \| \
19892 X"$as_dir" : 'X\(/\)' \| \
19893 . : '\(.\)' 2>/dev/null ||
19894echo X"$as_dir" |
19895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19897 /^X\(\/\/\)$/{ s//\1/; q; }
19898 /^X\(\/\).*/{ s//\1/; q; }
19899 s/.*/./; q'`
19900 done
19901 test ! -n "$as_dirs" || mkdir $as_dirs
19902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19903echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19904 { (exit 1); exit 1; }; }; }
19905
19906 ac_builddir=.
19907
19908if test "$ac_dir" != .; then
19909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19910 # A "../" for each directory in $ac_dir_suffix.
19911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19912else
19913 ac_dir_suffix= ac_top_builddir=
19914fi
19915
19916case $srcdir in
19917 .) # No --srcdir option. We are building in place.
19918 ac_srcdir=.
19919 if test -z "$ac_top_builddir"; then
19920 ac_top_srcdir=.
19921 else
19922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19923 fi ;;
19924 [\\/]* | ?:[\\/]* ) # Absolute path.
19925 ac_srcdir=$srcdir$ac_dir_suffix;
19926 ac_top_srcdir=$srcdir ;;
19927 *) # Relative path.
19928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19930esac
19931
19932# Do not use `cd foo && pwd` to compute absolute paths, because
19933# the directories may not exist.
19934case `pwd` in
19935.) ac_abs_builddir="$ac_dir";;
19936*)
19937 case "$ac_dir" in
19938 .) ac_abs_builddir=`pwd`;;
19939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19941 esac;;
19942esac
19943case $ac_abs_builddir in
19944.) ac_abs_top_builddir=${ac_top_builddir}.;;
19945*)
19946 case ${ac_top_builddir}. in
19947 .) ac_abs_top_builddir=$ac_abs_builddir;;
19948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19950 esac;;
19951esac
19952case $ac_abs_builddir in
19953.) ac_abs_srcdir=$ac_srcdir;;
19954*)
19955 case $ac_srcdir in
19956 .) ac_abs_srcdir=$ac_abs_builddir;;
19957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19959 esac;;
19960esac
19961case $ac_abs_builddir in
19962.) ac_abs_top_srcdir=$ac_top_srcdir;;
19963*)
19964 case $ac_top_srcdir in
19965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19968 esac;;
19969esac
19970
19971
19972 case $INSTALL in
19973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19974 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19975 esac
19976
19977 if test x"$ac_file" != x-; then
19978 { echo "$as_me:$LINENO: creating $ac_file" >&5
19979echo "$as_me: creating $ac_file" >&6;}
19980 rm -f "$ac_file"
19981 fi
19982 # Let's still pretend it is `configure' which instantiates (i.e., don't
19983 # use $as_me), people would be surprised to read:
19984 # /* config.h. Generated by config.status. */
19985 if test x"$ac_file" = x-; then
19986 configure_input=
19987 else
19988 configure_input="$ac_file. "
19989 fi
19990 configure_input=$configure_input"Generated from `echo $ac_file_in |
19991 sed 's,.*/,,'` by configure."
19992
19993 # First look for the input files in the build tree, otherwise in the
19994 # src tree.
19995 ac_file_inputs=`IFS=:
19996 for f in $ac_file_in; do
19997 case $f in
19998 -) echo $tmp/stdin ;;
19999 [\\/$]*)
20000 # Absolute (can't be DOS-style, as IFS=:)
20001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20002echo "$as_me: error: cannot find input file: $f" >&2;}
20003 { (exit 1); exit 1; }; }
20004 echo "$f";;
20005 *) # Relative
20006 if test -f "$f"; then
20007 # Build tree
20008 echo "$f"
20009 elif test -f "$srcdir/$f"; then
20010 # Source tree
20011 echo "$srcdir/$f"
20012 else
20013 # /dev/null tree
20014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20015echo "$as_me: error: cannot find input file: $f" >&2;}
20016 { (exit 1); exit 1; }; }
20017 fi;;
20018 esac
20019 done` || { (exit 1); exit 1; }
20020_ACEOF
20021cat >>$CONFIG_STATUS <<_ACEOF
20022 sed "$ac_vpsub
20023$extrasub
20024_ACEOF
20025cat >>$CONFIG_STATUS <<\_ACEOF
20026:t
20027/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20028s,@configure_input@,$configure_input,;t t
20029s,@srcdir@,$ac_srcdir,;t t
20030s,@abs_srcdir@,$ac_abs_srcdir,;t t
20031s,@top_srcdir@,$ac_top_srcdir,;t t
20032s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20033s,@builddir@,$ac_builddir,;t t
20034s,@abs_builddir@,$ac_abs_builddir,;t t
20035s,@top_builddir@,$ac_top_builddir,;t t
20036s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20037s,@INSTALL@,$ac_INSTALL,;t t
20038" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20039 rm -f $tmp/stdin
20040 if test x"$ac_file" != x-; then
20041 mv $tmp/out $ac_file
20042 else
20043 cat $tmp/out
20044 rm -f $tmp/out
20045 fi
20046
20047done
20048_ACEOF
20049cat >>$CONFIG_STATUS <<\_ACEOF
20050
20051#
20052# CONFIG_HEADER section.
20053#
20054
20055# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20056# NAME is the cpp macro being defined and VALUE is the value it is being given.
20057#
20058# ac_d sets the value in "#define NAME VALUE" lines.
20059ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20060ac_dB='[ ].*$,\1#\2'
20061ac_dC=' '
20062ac_dD=',;t'
20063# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20064ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20065ac_uB='$,\1#\2define\3'
20066ac_uC=' '
20067ac_uD=',;t'
20068
20069for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20071 case $ac_file in
20072 - | *:- | *:-:* ) # input from stdin
20073 cat >$tmp/stdin
20074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20078 * ) ac_file_in=$ac_file.in ;;
20079 esac
20080
20081 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20082echo "$as_me: creating $ac_file" >&6;}
20083
20084 # First look for the input files in the build tree, otherwise in the
20085 # src tree.
20086 ac_file_inputs=`IFS=:
20087 for f in $ac_file_in; do
20088 case $f in
20089 -) echo $tmp/stdin ;;
20090 [\\/$]*)
20091 # Absolute (can't be DOS-style, as IFS=:)
20092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20093echo "$as_me: error: cannot find input file: $f" >&2;}
20094 { (exit 1); exit 1; }; }
20095 # Do quote $f, to prevent DOS paths from being IFS'd.
20096 echo "$f";;
20097 *) # Relative
20098 if test -f "$f"; then
20099 # Build tree
20100 echo "$f"
20101 elif test -f "$srcdir/$f"; then
20102 # Source tree
20103 echo "$srcdir/$f"
20104 else
20105 # /dev/null tree
20106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20107echo "$as_me: error: cannot find input file: $f" >&2;}
20108 { (exit 1); exit 1; }; }
20109 fi;;
20110 esac
20111 done` || { (exit 1); exit 1; }
20112 # Remove the trailing spaces.
20113 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20114
20115_ACEOF
20116
20117# Transform confdefs.h into two sed scripts, `conftest.defines' and
20118# `conftest.undefs', that substitutes the proper values into
20119# config.h.in to produce config.h. The first handles `#define'
20120# templates, and the second `#undef' templates.
20121# And first: Protect against being on the right side of a sed subst in
20122# config.status. Protect against being in an unquoted here document
20123# in config.status.
20124rm -f conftest.defines conftest.undefs
20125# Using a here document instead of a string reduces the quoting nightmare.
20126# Putting comments in sed scripts is not portable.
20127#
20128# `end' is used to avoid that the second main sed command (meant for
20129# 0-ary CPP macros) applies to n-ary macro definitions.
20130# See the Autoconf documentation for `clear'.
20131cat >confdef2sed.sed <<\_ACEOF
20132s/[\\&,]/\\&/g
20133s,[\\$`],\\&,g
20134t clear
20135: clear
20136s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20137t end
20138s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20139: end
20140_ACEOF
20141# If some macros were called several times there might be several times
20142# the same #defines, which is useless. Nevertheless, we may not want to
20143# sort them, since we want the *last* AC-DEFINE to be honored.
20144uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20145sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20146rm -f confdef2sed.sed
20147
20148# This sed command replaces #undef with comments. This is necessary, for
20149# example, in the case of _POSIX_SOURCE, which is predefined and required
20150# on some systems where configure will not decide to define it.
20151cat >>conftest.undefs <<\_ACEOF
20152s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20153_ACEOF
20154
20155# Break up conftest.defines because some shells have a limit on the size
20156# of here documents, and old seds have small limits too (100 cmds).
20157echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20158echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20159echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20160echo ' :' >>$CONFIG_STATUS
20161rm -f conftest.tail
20162while grep . conftest.defines >/dev/null
20163do
20164 # Write a limited-size here document to $tmp/defines.sed.
20165 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20166 # Speed up: don't consider the non `#define' lines.
20167 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20168 # Work around the forget-to-reset-the-flag bug.
20169 echo 't clr' >>$CONFIG_STATUS
20170 echo ': clr' >>$CONFIG_STATUS
20171 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20172 echo 'CEOF
20173 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20174 rm -f $tmp/in
20175 mv $tmp/out $tmp/in
20176' >>$CONFIG_STATUS
20177 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20178 rm -f conftest.defines
20179 mv conftest.tail conftest.defines
20180done
20181rm -f conftest.defines
20182echo ' fi # grep' >>$CONFIG_STATUS
20183echo >>$CONFIG_STATUS
20184
20185# Break up conftest.undefs because some shells have a limit on the size
20186# of here documents, and old seds have small limits too (100 cmds).
20187echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20188rm -f conftest.tail
20189while grep . conftest.undefs >/dev/null
20190do
20191 # Write a limited-size here document to $tmp/undefs.sed.
20192 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20193 # Speed up: don't consider the non `#undef'
20194 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20195 # Work around the forget-to-reset-the-flag bug.
20196 echo 't clr' >>$CONFIG_STATUS
20197 echo ': clr' >>$CONFIG_STATUS
20198 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20199 echo 'CEOF
20200 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20201 rm -f $tmp/in
20202 mv $tmp/out $tmp/in
20203' >>$CONFIG_STATUS
20204 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20205 rm -f conftest.undefs
20206 mv conftest.tail conftest.undefs
20207done
20208rm -f conftest.undefs
20209
20210cat >>$CONFIG_STATUS <<\_ACEOF
20211 # Let's still pretend it is `configure' which instantiates (i.e., don't
20212 # use $as_me), people would be surprised to read:
20213 # /* config.h. Generated by config.status. */
20214 if test x"$ac_file" = x-; then
20215 echo "/* Generated by configure. */" >$tmp/config.h
20216 else
20217 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20218 fi
20219 cat $tmp/in >>$tmp/config.h
20220 rm -f $tmp/in
20221 if test x"$ac_file" != x-; then
20222 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20223 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20224echo "$as_me: $ac_file is unchanged" >&6;}
20225 else
20226 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20227$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20228 X"$ac_file" : 'X\(//\)[^/]' \| \
20229 X"$ac_file" : 'X\(//\)$' \| \
20230 X"$ac_file" : 'X\(/\)' \| \
20231 . : '\(.\)' 2>/dev/null ||
20232echo X"$ac_file" |
20233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20235 /^X\(\/\/\)$/{ s//\1/; q; }
20236 /^X\(\/\).*/{ s//\1/; q; }
20237 s/.*/./; q'`
20238 { if $as_mkdir_p; then
20239 mkdir -p "$ac_dir"
20240 else
20241 as_dir="$ac_dir"
20242 as_dirs=
20243 while test ! -d "$as_dir"; do
20244 as_dirs="$as_dir $as_dirs"
20245 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20246$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20247 X"$as_dir" : 'X\(//\)[^/]' \| \
20248 X"$as_dir" : 'X\(//\)$' \| \
20249 X"$as_dir" : 'X\(/\)' \| \
20250 . : '\(.\)' 2>/dev/null ||
20251echo X"$as_dir" |
20252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20254 /^X\(\/\/\)$/{ s//\1/; q; }
20255 /^X\(\/\).*/{ s//\1/; q; }
20256 s/.*/./; q'`
20257 done
20258 test ! -n "$as_dirs" || mkdir $as_dirs
20259 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20260echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20261 { (exit 1); exit 1; }; }; }
20262
20263 rm -f $ac_file
20264 mv $tmp/config.h $ac_file
20265 fi
20266 else
20267 cat $tmp/config.h
20268 rm -f $tmp/config.h
20269 fi
20270# Compute $ac_file's index in $config_headers.
20271_am_stamp_count=1
20272for _am_header in $config_headers :; do
20273 case $_am_header in
20274 $ac_file | $ac_file:* )
20275 break ;;
20276 * )
20277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20278 esac
20279done
20280echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20281$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20282 X$ac_file : 'X\(//\)[^/]' \| \
20283 X$ac_file : 'X\(//\)$' \| \
20284 X$ac_file : 'X\(/\)' \| \
20285 . : '\(.\)' 2>/dev/null ||
20286echo X$ac_file |
20287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20289 /^X\(\/\/\)$/{ s//\1/; q; }
20290 /^X\(\/\).*/{ s//\1/; q; }
20291 s/.*/./; q'`/stamp-h$_am_stamp_count
20292done
20293_ACEOF
20294cat >>$CONFIG_STATUS <<\_ACEOF
20295
20296#
20297# CONFIG_COMMANDS section.
20298#
20299for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20300 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20301 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20302 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20303$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20304 X"$ac_dest" : 'X\(//\)[^/]' \| \
20305 X"$ac_dest" : 'X\(//\)$' \| \
20306 X"$ac_dest" : 'X\(/\)' \| \
20307 . : '\(.\)' 2>/dev/null ||
20308echo X"$ac_dest" |
20309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20311 /^X\(\/\/\)$/{ s//\1/; q; }
20312 /^X\(\/\).*/{ s//\1/; q; }
20313 s/.*/./; q'`
20314 { if $as_mkdir_p; then
20315 mkdir -p "$ac_dir"
20316 else
20317 as_dir="$ac_dir"
20318 as_dirs=
20319 while test ! -d "$as_dir"; do
20320 as_dirs="$as_dir $as_dirs"
20321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20323 X"$as_dir" : 'X\(//\)[^/]' \| \
20324 X"$as_dir" : 'X\(//\)$' \| \
20325 X"$as_dir" : 'X\(/\)' \| \
20326 . : '\(.\)' 2>/dev/null ||
20327echo X"$as_dir" |
20328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20330 /^X\(\/\/\)$/{ s//\1/; q; }
20331 /^X\(\/\).*/{ s//\1/; q; }
20332 s/.*/./; q'`
20333 done
20334 test ! -n "$as_dirs" || mkdir $as_dirs
20335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20336echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20337 { (exit 1); exit 1; }; }; }
20338
20339 ac_builddir=.
20340
20341if test "$ac_dir" != .; then
20342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20343 # A "../" for each directory in $ac_dir_suffix.
20344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20345else
20346 ac_dir_suffix= ac_top_builddir=
20347fi
20348
20349case $srcdir in
20350 .) # No --srcdir option. We are building in place.
20351 ac_srcdir=.
20352 if test -z "$ac_top_builddir"; then
20353 ac_top_srcdir=.
20354 else
20355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20356 fi ;;
20357 [\\/]* | ?:[\\/]* ) # Absolute path.
20358 ac_srcdir=$srcdir$ac_dir_suffix;
20359 ac_top_srcdir=$srcdir ;;
20360 *) # Relative path.
20361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20363esac
20364
20365# Do not use `cd foo && pwd` to compute absolute paths, because
20366# the directories may not exist.
20367case `pwd` in
20368.) ac_abs_builddir="$ac_dir";;
20369*)
20370 case "$ac_dir" in
20371 .) ac_abs_builddir=`pwd`;;
20372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20374 esac;;
20375esac
20376case $ac_abs_builddir in
20377.) ac_abs_top_builddir=${ac_top_builddir}.;;
20378*)
20379 case ${ac_top_builddir}. in
20380 .) ac_abs_top_builddir=$ac_abs_builddir;;
20381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20383 esac;;
20384esac
20385case $ac_abs_builddir in
20386.) ac_abs_srcdir=$ac_srcdir;;
20387*)
20388 case $ac_srcdir in
20389 .) ac_abs_srcdir=$ac_abs_builddir;;
20390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20392 esac;;
20393esac
20394case $ac_abs_builddir in
20395.) ac_abs_top_srcdir=$ac_top_srcdir;;
20396*)
20397 case $ac_top_srcdir in
20398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20401 esac;;
20402esac
20403
20404
20405 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20406echo "$as_me: executing $ac_dest commands" >&6;}
20407 case $ac_dest in
20408 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20409 # Strip MF so we end up with the name of the file.
20410 mf=`echo "$mf" | sed -e 's/:.*$//'`
20411 # Check whether this is an Automake generated Makefile or not.
20412 # We used to match only the files named `Makefile.in', but
20413 # some people rename them; so instead we look at the file content.
20414 # Grep'ing the first line is not enough: some people post-process
20415 # each Makefile.in and add a new line on top of each file to say so.
20416 # So let's grep whole file.
20417 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20418 dirpart=`(dirname "$mf") 2>/dev/null ||
20419$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20420 X"$mf" : 'X\(//\)[^/]' \| \
20421 X"$mf" : 'X\(//\)$' \| \
20422 X"$mf" : 'X\(/\)' \| \
20423 . : '\(.\)' 2>/dev/null ||
20424echo X"$mf" |
20425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20427 /^X\(\/\/\)$/{ s//\1/; q; }
20428 /^X\(\/\).*/{ s//\1/; q; }
20429 s/.*/./; q'`
20430 else
20431 continue
20432 fi
20433 # Extract the definition of DEPDIR, am__include, and am__quote
20434 # from the Makefile without running `make'.
20435 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20436 test -z "$DEPDIR" && continue
20437 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20438 test -z "am__include" && continue
20439 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20440 # When using ansi2knr, U may be empty or an underscore; expand it
20441 U=`sed -n 's/^U = //p' < "$mf"`
20442 # Find all dependency output files, they are included files with
20443 # $(DEPDIR) in their names. We invoke sed twice because it is the
20444 # simplest approach to changing $(DEPDIR) to its actual value in the
20445 # expansion.
20446 for file in `sed -n "
20447 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20448 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20449 # Make sure the directory exists.
20450 test -f "$dirpart/$file" && continue
20451 fdir=`(dirname "$file") 2>/dev/null ||
20452$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20453 X"$file" : 'X\(//\)[^/]' \| \
20454 X"$file" : 'X\(//\)$' \| \
20455 X"$file" : 'X\(/\)' \| \
20456 . : '\(.\)' 2>/dev/null ||
20457echo X"$file" |
20458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20460 /^X\(\/\/\)$/{ s//\1/; q; }
20461 /^X\(\/\).*/{ s//\1/; q; }
20462 s/.*/./; q'`
20463 { if $as_mkdir_p; then
20464 mkdir -p $dirpart/$fdir
20465 else
20466 as_dir=$dirpart/$fdir
20467 as_dirs=
20468 while test ! -d "$as_dir"; do
20469 as_dirs="$as_dir $as_dirs"
20470 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20472 X"$as_dir" : 'X\(//\)[^/]' \| \
20473 X"$as_dir" : 'X\(//\)$' \| \
20474 X"$as_dir" : 'X\(/\)' \| \
20475 . : '\(.\)' 2>/dev/null ||
20476echo X"$as_dir" |
20477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20479 /^X\(\/\/\)$/{ s//\1/; q; }
20480 /^X\(\/\).*/{ s//\1/; q; }
20481 s/.*/./; q'`
20482 done
20483 test ! -n "$as_dirs" || mkdir $as_dirs
20484 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20485echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20486 { (exit 1); exit 1; }; }; }
20487
20488 # echo "creating $dirpart/$file"
20489 echo '# dummy' > "$dirpart/$file"
20490 done
20491done
20492 ;;
20493 esac
20494done
20495_ACEOF
20496
20497cat >>$CONFIG_STATUS <<\_ACEOF
20498
20499{ (exit 0); exit 0; }
20500_ACEOF
20501chmod +x $CONFIG_STATUS
20502ac_clean_files=$ac_clean_files_save
20503
20504
20505# configure is writing to config.log, and then calls config.status.
20506# config.status does its own redirection, appending to config.log.
20507# Unfortunately, on DOS this fails, as config.log is still kept open
20508# by configure, so config.status won't be able to write to it; its
20509# output is simply discarded. So we exec the FD to /dev/null,
20510# effectively closing config.log, so it can be properly (re)opened and
20511# appended to by config.status. When coming back to configure, we
20512# need to make the FD available again.
20513if test "$no_create" != yes; then
20514 ac_cs_success=:
20515 ac_config_status_args=
20516 test "$silent" = yes &&
20517 ac_config_status_args="$ac_config_status_args --quiet"
20518 exec 5>/dev/null
20519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20520 exec 5>>config.log
20521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20522 # would make configure fail if this is the last instruction.
20523 $ac_cs_success || { (exit 1); exit 1; }
20524fi
20525